@easbot/utils 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/chunk-2XMNW35H.mjs +1 -0
- package/dist/chunks/chunk-JL3GR4P7.cjs +1 -0
- package/dist/chunks/{filesystem-NRWL3JOL.cjs → filesystem-ALW6PJKX.cjs} +1 -1
- package/dist/chunks/filesystem-BAT2ZG5X.mjs +1 -0
- package/dist/index.cjs +59 -51
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.mjs +61 -53
- package/package.json +2 -2
- package/dist/chunks/chunk-6FROKXK6.mjs +0 -1
- package/dist/chunks/chunk-6WIM3NST.cjs +0 -1
- package/dist/chunks/filesystem-IEDC2UL2.mjs +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -397,6 +397,7 @@ declare namespace Filesystem {
|
|
|
397
397
|
function writeJson(p: string, data: unknown, mode?: number): Promise<void>;
|
|
398
398
|
function writeStream(p: string, stream: ReadableStream<Uint8Array> | Readable, mode?: number): Promise<void>;
|
|
399
399
|
function mimeType(p: string): string;
|
|
400
|
+
function mimeTypeToExt(mimeType: string): string | undefined;
|
|
400
401
|
function dirname(p: string): string;
|
|
401
402
|
function basename(p: string, ext?: string): string;
|
|
402
403
|
function extname(p: string): string;
|
|
@@ -752,6 +753,12 @@ declare namespace Fetch {
|
|
|
752
753
|
function patch<T = any>(url: string | URL, body?: any, options?: RequestOptions): Promise<FetchResponse<T>>;
|
|
753
754
|
function request<T = any>(url: string | URL, options?: RequestOptions): Promise<FetchResponse<T>>;
|
|
754
755
|
function autoProxy(options?: ProxyOptions): boolean;
|
|
756
|
+
interface FormField {
|
|
757
|
+
name: string;
|
|
758
|
+
value: string | Uint8Array | Buffer;
|
|
759
|
+
filename?: string;
|
|
760
|
+
}
|
|
761
|
+
function postForm<T = any>(url: string | URL, fields: FormField[], options?: RequestOptions): Promise<FetchResponse<T>>;
|
|
755
762
|
}
|
|
756
763
|
|
|
757
764
|
declare namespace Slug {
|
package/dist/index.d.ts
CHANGED
|
@@ -397,6 +397,7 @@ declare namespace Filesystem {
|
|
|
397
397
|
function writeJson(p: string, data: unknown, mode?: number): Promise<void>;
|
|
398
398
|
function writeStream(p: string, stream: ReadableStream<Uint8Array> | Readable, mode?: number): Promise<void>;
|
|
399
399
|
function mimeType(p: string): string;
|
|
400
|
+
function mimeTypeToExt(mimeType: string): string | undefined;
|
|
400
401
|
function dirname(p: string): string;
|
|
401
402
|
function basename(p: string, ext?: string): string;
|
|
402
403
|
function extname(p: string): string;
|
|
@@ -752,6 +753,12 @@ declare namespace Fetch {
|
|
|
752
753
|
function patch<T = any>(url: string | URL, body?: any, options?: RequestOptions): Promise<FetchResponse<T>>;
|
|
753
754
|
function request<T = any>(url: string | URL, options?: RequestOptions): Promise<FetchResponse<T>>;
|
|
754
755
|
function autoProxy(options?: ProxyOptions): boolean;
|
|
756
|
+
interface FormField {
|
|
757
|
+
name: string;
|
|
758
|
+
value: string | Uint8Array | Buffer;
|
|
759
|
+
filename?: string;
|
|
760
|
+
}
|
|
761
|
+
function postForm<T = any>(url: string | URL, fields: FormField[], options?: RequestOptions): Promise<FetchResponse<T>>;
|
|
755
762
|
}
|
|
756
763
|
|
|
757
764
|
declare namespace Slug {
|