fix: import js files not ts
This commit is contained in:
parent
2a57fb2a7e
commit
2752499444
|
@ -5,7 +5,6 @@
|
|||
"config": {
|
||||
"tsconfig": {
|
||||
"compilerOptions": {
|
||||
"allowImportingTsExtensions": true,
|
||||
"module": "nodenext"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
||||
/**
|
||||
|
|
|
@ -1 +1 @@
|
|||
export { S5Client } from "./client.ts";
|
||||
export { S5Client } from "./client.js";
|
||||
|
|
|
@ -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 };
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue