refactor: move upload and download to methods folder
This commit is contained in:
parent
04143ec463
commit
41274582b9
|
@ -13,8 +13,8 @@ import {
|
|||
uploadSmallFile,
|
||||
uploadSmallFileRequest,
|
||||
uploadLargeFileRequest,
|
||||
} from "./upload.js";
|
||||
import { downloadFile, getCidUrl, getMetadata } from "./download.js";
|
||||
} from "./methods/upload.js";
|
||||
import { downloadFile, getCidUrl, getMetadata } from "./methods/download.js";
|
||||
|
||||
import { defaultPortalUrl, ensureUrl } from "./utils/url.js";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ResponseType } from "axios";
|
||||
|
||||
import { S5Client } from "./client.js";
|
||||
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.js";
|
||||
import { S5Client } from "../client.js";
|
||||
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "../utils/options.js";
|
||||
import path from "path";
|
||||
|
||||
/**
|
|
@ -4,11 +4,11 @@ import { DetailedError, HttpRequest, Upload } from "tus-js-client";
|
|||
import { blake3 } from "@noble/hashes/blake3";
|
||||
import { Buffer } from "buffer";
|
||||
|
||||
import { getFileMimeType } from "./utils/file.js";
|
||||
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.js";
|
||||
import { S5Client } from "./client.js";
|
||||
import type { JsonData } from "./utils/types.js";
|
||||
import { buildRequestHeaders, buildRequestUrl } from "./request.js";
|
||||
import { getFileMimeType } from "../utils/file.js";
|
||||
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "../utils/options.js";
|
||||
import { S5Client } from "../client.js";
|
||||
import type { JsonData } from "../utils/types.js";
|
||||
import { buildRequestHeaders, buildRequestUrl } from "../request.js";
|
||||
import { CID_HASH_TYPES, CID_TYPES } from "@lumeweb/libs5";
|
||||
|
||||
/**
|
Loading…
Reference in New Issue