fix: import js files not ts
This commit is contained in:
parent
2a57fb2a7e
commit
2752499444
|
@ -5,7 +5,6 @@
|
||||||
"config": {
|
"config": {
|
||||||
"tsconfig": {
|
"tsconfig": {
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowImportingTsExtensions": true,
|
|
||||||
"module": "nodenext"
|
"module": "nodenext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,9 +14,9 @@ import {
|
||||||
uploadSmallFileRequest,
|
uploadSmallFileRequest,
|
||||||
uploadLargeFileRequest,
|
uploadLargeFileRequest,
|
||||||
} from "./upload.ts";
|
} 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 {
|
import {
|
||||||
buildRequestHeaders,
|
buildRequestHeaders,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ResponseType } from "axios";
|
import { ResponseType } from "axios";
|
||||||
|
|
||||||
import { S5Client } from "./client.ts";
|
import { S5Client } from "./client.js";
|
||||||
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.ts";
|
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.js";
|
||||||
import path from "path";
|
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 { AxiosError, AxiosResponse, InternalAxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
import { S5Client } from "./client.ts";
|
import { S5Client } from "./client.js";
|
||||||
import {
|
import {
|
||||||
addUrlQuery,
|
addUrlQuery,
|
||||||
addUrlSubdomain,
|
addUrlSubdomain,
|
||||||
ensureUrlPrefix,
|
ensureUrlPrefix,
|
||||||
makeUrl,
|
makeUrl,
|
||||||
} from "./utils/url.ts";
|
} from "./utils/url.js";
|
||||||
|
|
||||||
export type Headers = { [key: string]: string };
|
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 { blake3 } from "@noble/hashes/blake3";
|
||||||
import { Buffer } from "buffer";
|
import { Buffer } from "buffer";
|
||||||
|
|
||||||
import { getFileMimeType } from "./utils/file.ts";
|
import { getFileMimeType } from "./utils/file.js";
|
||||||
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.ts";
|
import { BaseCustomOptions, DEFAULT_BASE_OPTIONS } from "./utils/options.js";
|
||||||
import { S5Client } from "./client.ts";
|
import { S5Client } from "./client.js";
|
||||||
import type { JsonData } from "./utils/types.ts";
|
import type { JsonData } from "./utils/types.js";
|
||||||
import { buildRequestHeaders, buildRequestUrl } from "./request.ts";
|
import { buildRequestHeaders, buildRequestUrl } from "./request.js";
|
||||||
import { CID_HASH_TYPES, CID_TYPES } from "@lumeweb/libs5";
|
import { CID_HASH_TYPES, CID_TYPES } from "@lumeweb/libs5";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue