@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/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 {