fix: import js files not ts

This commit is contained in:
Derrick Hammer 2023-12-10 15:22:21 -05:00
parent 2a57fb2a7e
commit 2752499444
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
6 changed files with 12 additions and 13 deletions

View File

@ -5,7 +5,6 @@
"config": {
"tsconfig": {
"compilerOptions": {
"allowImportingTsExtensions": true,
"module": "nodenext"
}
}

View File

@ -14,9 +14,9 @@ import {
uploadSmallFileRequest,
uploadLargeFileRequest,
} from "./upload.ts";
import { downloadFile, getCidUrl, getMetadata } from "./download.ts";
import { downloadFile, getCidUrl, getMetadata } from "./download.js";
import { defaultPortalUrl, ensureUrl } from "./utils/url.ts";
import { defaultPortalUrl, ensureUrl } from "./utils/url.js";
import {
buildRequestHeaders,

View File

@ -1,7 +1,7 @@
import { ResponseType } from "axios";
import { S5Client } from "./client.ts";
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.ts";
import { S5Client } from "./client.js";
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.js";
import path from "path";
/**

View File

@ -1 +1 @@
export { S5Client } from "./client.ts";
export { S5Client } from "./client.js";

View File

@ -1,12 +1,12 @@
import { AxiosError, AxiosResponse, InternalAxiosRequestConfig } from "axios";
import { S5Client } from "./client.ts";
import { S5Client } from "./client.js";
import {
addUrlQuery,
addUrlSubdomain,
ensureUrlPrefix,
makeUrl,
} from "./utils/url.ts";
} from "./utils/url.js";
export type Headers = { [key: string]: string };

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.ts";
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.ts";
import { S5Client } from "./client.ts";
import type { JsonData } from "./utils/types.ts";
import { buildRequestHeaders, buildRequestUrl } from "./request.ts";
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";
/**