refactor: move upload and download to methods folder

This commit is contained in:
Derrick Hammer 2023-12-10 20:05:57 -05:00
parent 04143ec463
commit 41274582b9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 9 additions and 9 deletions

View File

@ -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";

View File

@ -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";
/**

View File

@ -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";
/**