rezo 1.0.134 → 1.0.136
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/adapters/curl.cjs +18 -7
- package/dist/adapters/curl.js +18 -7
- package/dist/adapters/entries/curl.d.ts +68 -77
- package/dist/adapters/entries/fetch.d.ts +57 -66
- package/dist/adapters/entries/http.d.ts +57 -66
- package/dist/adapters/entries/http2.d.ts +60 -70
- package/dist/adapters/entries/react-native.cjs +6 -6
- package/dist/adapters/entries/react-native.d.ts +57 -66
- package/dist/adapters/entries/xhr.d.ts +57 -66
- package/dist/adapters/fetch.cjs +25 -10
- package/dist/adapters/fetch.js +25 -10
- package/dist/adapters/http.cjs +20 -9
- package/dist/adapters/http.js +20 -9
- package/dist/adapters/http2.cjs +19 -9
- package/dist/adapters/http2.js +19 -9
- package/dist/adapters/index.cjs +10 -10
- package/dist/adapters/index.d.ts +4548 -0
- package/dist/adapters/react-native.cjs +19 -8
- package/dist/adapters/react-native.js +19 -8
- package/dist/cache/index.cjs +9 -9
- package/dist/cookies/cookie-jar.cjs +18 -8
- package/dist/cookies/cookie-jar.js +14 -4
- package/dist/cookies/cookie.cjs +1 -1
- package/dist/cookies/cookie.js +1 -1
- package/dist/cookies/file-store.cjs +4 -1
- package/dist/cookies/file-store.js +4 -1
- package/dist/cookies/index.cjs +10 -10
- package/dist/core/rezo.cjs +16 -3
- package/dist/core/rezo.js +16 -3
- package/dist/crawler/addon/decodo/options.cjs +1 -1
- package/dist/crawler/addon/decodo/options.js +1 -1
- package/dist/crawler/addon/oxylabs/options.cjs +1 -1
- package/dist/crawler/addon/oxylabs/options.js +1 -1
- package/dist/crawler/index.cjs +42 -42
- package/dist/crawler/plugin/index.cjs +1 -1
- package/dist/crawler.d.ts +141 -93
- package/dist/entries/crawler.cjs +24 -24
- package/dist/index.cjs +58 -58
- package/dist/index.d.ts +62 -71
- package/dist/internal/agents/index.cjs +14 -14
- package/dist/platform/browser.d.ts +57 -66
- package/dist/platform/bun.d.ts +57 -66
- package/dist/platform/deno.d.ts +57 -66
- package/dist/platform/node.d.ts +57 -66
- package/dist/platform/react-native.cjs +6 -6
- package/dist/platform/react-native.d.ts +57 -66
- package/dist/platform/worker.d.ts +57 -66
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +8 -8
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/stealth/index.cjs +17 -17
- package/dist/stealth/index.d.ts +288 -0
- package/dist/stealth/profiles/index.cjs +10 -10
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/wget/index.cjs +51 -51
- package/dist/wget/index.d.ts +133 -88
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Blob as Blob$1 } from 'node:buffer';
|
|
2
1
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
3
2
|
import { Agent as HttpsAgent } from 'node:https';
|
|
4
3
|
import { Socket } from 'node:net';
|
|
@@ -541,7 +540,10 @@ export interface RedirectEvent {
|
|
|
541
540
|
/** Duration of this redirect in milliseconds */
|
|
542
541
|
duration: number;
|
|
543
542
|
}
|
|
544
|
-
|
|
543
|
+
/**
|
|
544
|
+
* Emitted during download/upload to track progress
|
|
545
|
+
*/
|
|
546
|
+
export interface RezoProgressEvent {
|
|
545
547
|
/** Bytes transferred so far */
|
|
546
548
|
loaded: number;
|
|
547
549
|
/** Total bytes (from Content-Length or file size) */
|
|
@@ -758,7 +760,7 @@ export interface RezoStreamResponse extends BaseEventEmitter {
|
|
|
758
760
|
on(event: "cookies", listener: (cookies: Cookie[]) => void): this;
|
|
759
761
|
on(event: "status", listener: (status: number, statusText: string) => void): this;
|
|
760
762
|
on(event: "redirect", listener: (info: RedirectEvent) => void): this;
|
|
761
|
-
on(event: "progress", listener: (progress:
|
|
763
|
+
on(event: "progress", listener: (progress: RezoProgressEvent) => void): this;
|
|
762
764
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
763
765
|
once(event: "data", listener: (chunk: Uint8Array | string) => void): this;
|
|
764
766
|
once(event: "error", listener: (err: RezoError) => void): this;
|
|
@@ -770,7 +772,7 @@ export interface RezoStreamResponse extends BaseEventEmitter {
|
|
|
770
772
|
once(event: "cookies", listener: (cookies: Cookie[]) => void): this;
|
|
771
773
|
once(event: "status", listener: (status: number, statusText: string) => void): this;
|
|
772
774
|
once(event: "redirect", listener: (info: RedirectEvent) => void): this;
|
|
773
|
-
once(event: "progress", listener: (progress:
|
|
775
|
+
once(event: "progress", listener: (progress: RezoProgressEvent) => void): this;
|
|
774
776
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
775
777
|
isFinished(): boolean;
|
|
776
778
|
setEncoding?(encoding: string): this;
|
|
@@ -795,7 +797,7 @@ export interface RezoDownloadResponse extends BaseEventEmitter {
|
|
|
795
797
|
on(event: "cookies", listener: (cookies: Cookie[]) => void): this;
|
|
796
798
|
on(event: "status", listener: (status: number, statusText: string) => void): this;
|
|
797
799
|
on(event: "redirect", listener: (info: RedirectEvent) => void): this;
|
|
798
|
-
on(event: "progress", listener: (progress:
|
|
800
|
+
on(event: "progress", listener: (progress: RezoProgressEvent) => void): this;
|
|
799
801
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
800
802
|
once(event: "error", listener: (err: RezoError) => void): this;
|
|
801
803
|
once(event: "finish", listener: (info: DownloadFinishEvent) => void): this;
|
|
@@ -806,7 +808,7 @@ export interface RezoDownloadResponse extends BaseEventEmitter {
|
|
|
806
808
|
once(event: "cookies", listener: (cookies: Cookie[]) => void): this;
|
|
807
809
|
once(event: "status", listener: (status: number, statusText: string) => void): this;
|
|
808
810
|
once(event: "redirect", listener: (info: RedirectEvent) => void): this;
|
|
809
|
-
once(event: "progress", listener: (progress:
|
|
811
|
+
once(event: "progress", listener: (progress: RezoProgressEvent) => void): this;
|
|
810
812
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
811
813
|
isFinished(): boolean;
|
|
812
814
|
}
|
|
@@ -829,7 +831,7 @@ export interface RezoUploadResponse extends BaseEventEmitter {
|
|
|
829
831
|
on(event: "cookies", listener: (cookies: Cookie[]) => void): this;
|
|
830
832
|
on(event: "status", listener: (status: number, statusText: string) => void): this;
|
|
831
833
|
on(event: "redirect", listener: (info: RedirectEvent) => void): this;
|
|
832
|
-
on(event: "progress", listener: (progress:
|
|
834
|
+
on(event: "progress", listener: (progress: RezoProgressEvent) => void): this;
|
|
833
835
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
834
836
|
once(event: "error", listener: (err: RezoError) => void): this;
|
|
835
837
|
once(event: "finish", listener: (info: UploadFinishEvent) => void): this;
|
|
@@ -840,7 +842,7 @@ export interface RezoUploadResponse extends BaseEventEmitter {
|
|
|
840
842
|
once(event: "cookies", listener: (cookies: Cookie[]) => void): this;
|
|
841
843
|
once(event: "status", listener: (status: number, statusText: string) => void): this;
|
|
842
844
|
once(event: "redirect", listener: (info: RedirectEvent) => void): this;
|
|
843
|
-
once(event: "progress", listener: (progress:
|
|
845
|
+
once(event: "progress", listener: (progress: RezoProgressEvent) => void): this;
|
|
844
846
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
845
847
|
isFinished(): boolean;
|
|
846
848
|
}
|
|
@@ -1702,32 +1704,23 @@ declare class ResponseCache {
|
|
|
1702
1704
|
get isPersistent(): boolean;
|
|
1703
1705
|
getConfig(): ResponseCacheConfig;
|
|
1704
1706
|
}
|
|
1705
|
-
type BeforeProxySelectHook$1 = (context: BeforeProxySelectContext) => ProxyInfo | void;
|
|
1706
|
-
type AfterProxySelectHook$1 = (context: AfterProxySelectContext) => void | Promise<void>;
|
|
1707
|
-
type BeforeProxyErrorHook$1 = (context: BeforeProxyErrorContext) => void | Promise<void>;
|
|
1708
|
-
type AfterProxyErrorHook$1 = (context: AfterProxyErrorContext) => void | Promise<void>;
|
|
1709
|
-
type BeforeProxyDisableHook$1 = (context: BeforeProxyDisableContext) => boolean | void;
|
|
1710
|
-
type AfterProxyDisableHook$1 = (context: AfterProxyDisableContext) => void | Promise<void>;
|
|
1711
|
-
type AfterProxyRotateHook$1 = (context: AfterProxyRotateContext) => void | Promise<void>;
|
|
1712
|
-
type AfterProxyEnableHook$1 = (context: AfterProxyEnableContext) => void | Promise<void>;
|
|
1713
1707
|
export type AfterProxySuccessHook = (context: AfterProxySuccessContext) => void | Promise<void>;
|
|
1714
|
-
type OnNoProxiesAvailableHook$1 = (context: OnNoProxiesAvailableContext) => void | Promise<void>;
|
|
1715
1708
|
/**
|
|
1716
1709
|
* Proxy hooks collection for ProxyManager events
|
|
1717
1710
|
*/
|
|
1718
1711
|
export interface ProxyHooks {
|
|
1719
|
-
beforeProxySelect: BeforeProxySelectHook
|
|
1720
|
-
afterProxySelect: AfterProxySelectHook
|
|
1721
|
-
beforeProxyError: BeforeProxyErrorHook
|
|
1722
|
-
afterProxyError: AfterProxyErrorHook
|
|
1723
|
-
beforeProxyDisable: BeforeProxyDisableHook
|
|
1724
|
-
afterProxyDisable: AfterProxyDisableHook
|
|
1725
|
-
afterProxyRotate: AfterProxyRotateHook
|
|
1726
|
-
afterProxyEnable: AfterProxyEnableHook
|
|
1712
|
+
beforeProxySelect: BeforeProxySelectHook[];
|
|
1713
|
+
afterProxySelect: AfterProxySelectHook[];
|
|
1714
|
+
beforeProxyError: BeforeProxyErrorHook[];
|
|
1715
|
+
afterProxyError: AfterProxyErrorHook[];
|
|
1716
|
+
beforeProxyDisable: BeforeProxyDisableHook[];
|
|
1717
|
+
afterProxyDisable: AfterProxyDisableHook[];
|
|
1718
|
+
afterProxyRotate: AfterProxyRotateHook[];
|
|
1719
|
+
afterProxyEnable: AfterProxyEnableHook[];
|
|
1727
1720
|
/** Hook triggered when a request succeeds through a proxy */
|
|
1728
1721
|
afterProxySuccess: AfterProxySuccessHook[];
|
|
1729
1722
|
/** Hook triggered when no proxies are available */
|
|
1730
|
-
onNoProxiesAvailable: OnNoProxiesAvailableHook
|
|
1723
|
+
onNoProxiesAvailable: OnNoProxiesAvailableHook[];
|
|
1731
1724
|
}
|
|
1732
1725
|
declare class ProxyManager {
|
|
1733
1726
|
/** Internal configuration (use getter for external access) */
|
|
@@ -2978,7 +2971,7 @@ export interface RezoDefaultOptions {
|
|
|
2978
2971
|
/** Request headers as various supported formats */
|
|
2979
2972
|
headers?: RezoHttpRequest["headers"];
|
|
2980
2973
|
/** Expected response data type */
|
|
2981
|
-
responseType?:
|
|
2974
|
+
responseType?: RezoResponseType;
|
|
2982
2975
|
/** Character encoding for the response */
|
|
2983
2976
|
responseEncoding?: string;
|
|
2984
2977
|
/** Basic authentication credentials */
|
|
@@ -3653,13 +3646,12 @@ export declare class RezoError<T = any> extends Error {
|
|
|
3653
3646
|
toString(): string;
|
|
3654
3647
|
getFullDetails(): string;
|
|
3655
3648
|
}
|
|
3656
|
-
type ProxyProtocol$1 = "http" | "https" | "socks4" | "socks5";
|
|
3657
3649
|
/**
|
|
3658
3650
|
* Configuration options for proxy connections
|
|
3659
3651
|
*/
|
|
3660
3652
|
export type ProxyOptions = {
|
|
3661
3653
|
/** The proxy protocol to use */
|
|
3662
|
-
protocol: ProxyProtocol
|
|
3654
|
+
protocol: ProxyProtocol;
|
|
3663
3655
|
/** Proxy server hostname or IP address */
|
|
3664
3656
|
host: string;
|
|
3665
3657
|
/** Proxy server port number */
|
|
@@ -3745,7 +3737,7 @@ export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" |
|
|
|
3745
3737
|
*
|
|
3746
3738
|
* @default 'auto'
|
|
3747
3739
|
*/
|
|
3748
|
-
type
|
|
3740
|
+
export type RezoResponseType = "json" | "text" | "blob" | "arrayBuffer" | "buffer" | "auto";
|
|
3749
3741
|
/**
|
|
3750
3742
|
* MIME content types for request/response bodies
|
|
3751
3743
|
*/
|
|
@@ -3804,7 +3796,7 @@ export interface RezoRequestConfig<D = any> {
|
|
|
3804
3796
|
* // Get image as buffer
|
|
3805
3797
|
* const { data: img } = await rezo.get('/image.png', { responseType: 'buffer' });
|
|
3806
3798
|
*/
|
|
3807
|
-
responseType?:
|
|
3799
|
+
responseType?: RezoResponseType;
|
|
3808
3800
|
/** Character encoding for the response */
|
|
3809
3801
|
responseEncoding?: string;
|
|
3810
3802
|
/** Base URL for the request (used with relative URLs) */
|
|
@@ -4524,7 +4516,7 @@ export interface httpAdapterOverloads {
|
|
|
4524
4516
|
}): Promise<RezoResponse<Buffer>>;
|
|
4525
4517
|
request(options: RezoRequestOptions & {
|
|
4526
4518
|
responseType: "blob";
|
|
4527
|
-
}): Promise<RezoResponse<Blob
|
|
4519
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4528
4520
|
request(options: RezoRequestOptions & {
|
|
4529
4521
|
responseType: "text";
|
|
4530
4522
|
}): Promise<RezoResponse<string>>;
|
|
@@ -4556,7 +4548,7 @@ export interface httpAdapterOverloads {
|
|
|
4556
4548
|
}): Promise<RezoResponse<Buffer>>;
|
|
4557
4549
|
get(url: string | URL, options: RezoHttpGetRequest & {
|
|
4558
4550
|
responseType: "blob";
|
|
4559
|
-
}): Promise<RezoResponse<Blob
|
|
4551
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4560
4552
|
get(url: string | URL, options: RezoHttpGetRequest & {
|
|
4561
4553
|
responseType: "text";
|
|
4562
4554
|
}): Promise<RezoResponse<string>>;
|
|
@@ -4590,7 +4582,7 @@ export interface httpAdapterOverloads {
|
|
|
4590
4582
|
}): Promise<RezoResponse<Buffer>>;
|
|
4591
4583
|
delete(url: string | URL, options: RezoHttpDeleteRequest & {
|
|
4592
4584
|
responseType: "blob";
|
|
4593
|
-
}): Promise<RezoResponse<Blob
|
|
4585
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4594
4586
|
delete(url: string | URL, options: RezoHttpDeleteRequest & {
|
|
4595
4587
|
responseType: "text";
|
|
4596
4588
|
}): Promise<RezoResponse<string>>;
|
|
@@ -4679,7 +4671,7 @@ export interface httpAdapterPostOverloads {
|
|
|
4679
4671
|
}): Promise<RezoResponse<Buffer>>;
|
|
4680
4672
|
post(url: string | URL, data: any, options: RezoHttpPostRequest & {
|
|
4681
4673
|
responseType: "blob";
|
|
4682
|
-
}): Promise<RezoResponse<Blob
|
|
4674
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4683
4675
|
post(url: string | URL, data: any, options: RezoHttpPostRequest & {
|
|
4684
4676
|
responseType: "text";
|
|
4685
4677
|
}): Promise<RezoResponse<string>>;
|
|
@@ -4739,13 +4731,13 @@ export interface httpAdapterPostOverloads {
|
|
|
4739
4731
|
}): Promise<RezoResponse<Buffer>>;
|
|
4740
4732
|
postJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPostRequest & {
|
|
4741
4733
|
responseType: "blob";
|
|
4742
|
-
}): Promise<RezoResponse<Blob
|
|
4734
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4743
4735
|
postJson(url: string | URL, jsonString: string, options: RezoHttpPostRequest & {
|
|
4744
4736
|
responseType: "blob";
|
|
4745
|
-
}): Promise<RezoResponse<Blob
|
|
4737
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4746
4738
|
postJson(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
4747
4739
|
responseType: "blob";
|
|
4748
|
-
}): Promise<RezoResponse<Blob
|
|
4740
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4749
4741
|
postJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPostRequest & {
|
|
4750
4742
|
responseType: "stream";
|
|
4751
4743
|
}): Promise<RezoStreamResponse>;
|
|
@@ -4799,13 +4791,13 @@ export interface httpAdapterPostOverloads {
|
|
|
4799
4791
|
}): Promise<RezoResponse<Buffer>>;
|
|
4800
4792
|
postForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPostRequest & {
|
|
4801
4793
|
responseType: "blob";
|
|
4802
|
-
}): Promise<RezoResponse<Blob
|
|
4794
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4803
4795
|
postForm(url: string | URL, string: string, options: RezoHttpPostRequest & {
|
|
4804
4796
|
responseType: "blob";
|
|
4805
|
-
}): Promise<RezoResponse<Blob
|
|
4797
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4806
4798
|
postForm(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
4807
4799
|
responseType: "blob";
|
|
4808
|
-
}): Promise<RezoResponse<Blob
|
|
4800
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4809
4801
|
postForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPostRequest & {
|
|
4810
4802
|
responseType: "stream";
|
|
4811
4803
|
}): Promise<RezoStreamResponse>;
|
|
@@ -4877,13 +4869,13 @@ export interface httpAdapterPostOverloads {
|
|
|
4877
4869
|
}): Promise<RezoResponse<Buffer>>;
|
|
4878
4870
|
postMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPostRequest & {
|
|
4879
4871
|
responseType: "blob";
|
|
4880
|
-
}): Promise<RezoResponse<Blob
|
|
4872
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4881
4873
|
postMultipart(url: string | URL, formData: FormData, options: RezoHttpPostRequest & {
|
|
4882
4874
|
responseType: "blob";
|
|
4883
|
-
}): Promise<RezoResponse<Blob
|
|
4875
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4884
4876
|
postMultipart(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPostRequest & {
|
|
4885
4877
|
responseType: "blob";
|
|
4886
|
-
}): Promise<RezoResponse<Blob
|
|
4878
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4887
4879
|
}
|
|
4888
4880
|
export interface httpAdapterPatchOverloads {
|
|
4889
4881
|
patch<T = any>(url: string | URL, data?: any): Promise<RezoResponse<T>>;
|
|
@@ -4902,7 +4894,7 @@ export interface httpAdapterPatchOverloads {
|
|
|
4902
4894
|
}): Promise<RezoResponse<Buffer>>;
|
|
4903
4895
|
patch(url: string | URL, data: any, options: RezoHttpPatchRequest & {
|
|
4904
4896
|
responseType: "blob";
|
|
4905
|
-
}): Promise<RezoResponse<Blob
|
|
4897
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4906
4898
|
patch(url: string | URL, data: any, options: RezoHttpPatchRequest & {
|
|
4907
4899
|
responseType: "text";
|
|
4908
4900
|
}): Promise<RezoResponse<string>>;
|
|
@@ -4962,13 +4954,13 @@ export interface httpAdapterPatchOverloads {
|
|
|
4962
4954
|
}): Promise<RezoResponse<Buffer>>;
|
|
4963
4955
|
patchJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPatchRequest & {
|
|
4964
4956
|
responseType: "blob";
|
|
4965
|
-
}): Promise<RezoResponse<Blob
|
|
4957
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4966
4958
|
patchJson(url: string | URL, jsonString: string, options: RezoHttpPatchRequest & {
|
|
4967
4959
|
responseType: "blob";
|
|
4968
|
-
}): Promise<RezoResponse<Blob
|
|
4960
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4969
4961
|
patchJson(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
4970
4962
|
responseType: "blob";
|
|
4971
|
-
}): Promise<RezoResponse<Blob
|
|
4963
|
+
}): Promise<RezoResponse<Blob>>;
|
|
4972
4964
|
patchJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPatchRequest & {
|
|
4973
4965
|
responseType: "stream";
|
|
4974
4966
|
}): RezoStreamResponse;
|
|
@@ -5031,13 +5023,13 @@ export interface httpAdapterPatchOverloads {
|
|
|
5031
5023
|
}): Promise<RezoResponse<Buffer>>;
|
|
5032
5024
|
patchForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPatchRequest & {
|
|
5033
5025
|
responseType: "blob";
|
|
5034
|
-
}): Promise<RezoResponse<Blob
|
|
5026
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5035
5027
|
patchForm(url: string | URL, string: string, options: RezoHttpPatchRequest & {
|
|
5036
5028
|
responseType: "blob";
|
|
5037
|
-
}): Promise<RezoResponse<Blob
|
|
5029
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5038
5030
|
patchForm(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
5039
5031
|
responseType: "blob";
|
|
5040
|
-
}): Promise<RezoResponse<Blob
|
|
5032
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5041
5033
|
patchForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPatchRequest & {
|
|
5042
5034
|
responseType: "stream";
|
|
5043
5035
|
}): RezoStreamResponse;
|
|
@@ -5109,13 +5101,13 @@ export interface httpAdapterPatchOverloads {
|
|
|
5109
5101
|
}): Promise<RezoResponse<Buffer>>;
|
|
5110
5102
|
patchMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPatchRequest & {
|
|
5111
5103
|
responseType: "blob";
|
|
5112
|
-
}): Promise<RezoResponse<Blob
|
|
5104
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5113
5105
|
patchMultipart(url: string | URL, formData: FormData, options: RezoHttpPatchRequest & {
|
|
5114
5106
|
responseType: "blob";
|
|
5115
|
-
}): Promise<RezoResponse<Blob
|
|
5107
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5116
5108
|
patchMultipart(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPatchRequest & {
|
|
5117
5109
|
responseType: "blob";
|
|
5118
|
-
}): Promise<RezoResponse<Blob
|
|
5110
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5119
5111
|
patchMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPatchRequest & {
|
|
5120
5112
|
responseType: "upload";
|
|
5121
5113
|
}): Promise<RezoUploadResponse>;
|
|
@@ -5143,7 +5135,7 @@ export interface httpAdapterPutOverloads {
|
|
|
5143
5135
|
}): Promise<RezoResponse<Buffer>>;
|
|
5144
5136
|
put(url: string | URL, data: any, options: RezoHttpPutRequest & {
|
|
5145
5137
|
responseType: "blob";
|
|
5146
|
-
}): Promise<RezoResponse<Blob
|
|
5138
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5147
5139
|
put(url: string | URL, data: any, options: RezoHttpPutRequest & {
|
|
5148
5140
|
responseType: "text";
|
|
5149
5141
|
}): Promise<RezoResponse<string>>;
|
|
@@ -5203,13 +5195,13 @@ export interface httpAdapterPutOverloads {
|
|
|
5203
5195
|
}): Promise<RezoResponse<Buffer>>;
|
|
5204
5196
|
putJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPutRequest & {
|
|
5205
5197
|
responseType: "blob";
|
|
5206
|
-
}): Promise<RezoResponse<Blob
|
|
5198
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5207
5199
|
putJson(url: string | URL, jsonString: string, options: RezoHttpPutRequest & {
|
|
5208
5200
|
responseType: "blob";
|
|
5209
|
-
}): Promise<RezoResponse<Blob
|
|
5201
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5210
5202
|
putJson(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
5211
5203
|
responseType: "blob";
|
|
5212
|
-
}): Promise<RezoResponse<Blob
|
|
5204
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5213
5205
|
putJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPutRequest & {
|
|
5214
5206
|
responseType: "stream";
|
|
5215
5207
|
}): RezoStreamResponse;
|
|
@@ -5272,13 +5264,13 @@ export interface httpAdapterPutOverloads {
|
|
|
5272
5264
|
}): Promise<RezoResponse<Buffer>>;
|
|
5273
5265
|
putForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPutRequest & {
|
|
5274
5266
|
responseType: "blob";
|
|
5275
|
-
}): Promise<RezoResponse<Blob
|
|
5267
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5276
5268
|
putForm(url: string | URL, string: string, options: RezoHttpPutRequest & {
|
|
5277
5269
|
responseType: "blob";
|
|
5278
|
-
}): Promise<RezoResponse<Blob
|
|
5270
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5279
5271
|
putForm(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
5280
5272
|
responseType: "blob";
|
|
5281
|
-
}): Promise<RezoResponse<Blob
|
|
5273
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5282
5274
|
putForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPutRequest & {
|
|
5283
5275
|
responseType: "stream";
|
|
5284
5276
|
}): RezoStreamResponse;
|
|
@@ -5350,13 +5342,13 @@ export interface httpAdapterPutOverloads {
|
|
|
5350
5342
|
}): Promise<RezoResponse<Buffer>>;
|
|
5351
5343
|
putMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPutRequest & {
|
|
5352
5344
|
responseType: "blob";
|
|
5353
|
-
}): Promise<RezoResponse<Blob
|
|
5345
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5354
5346
|
putMultipart(url: string | URL, formData: FormData, options: RezoHttpPutRequest & {
|
|
5355
5347
|
responseType: "blob";
|
|
5356
|
-
}): Promise<RezoResponse<Blob
|
|
5348
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5357
5349
|
putMultipart(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPutRequest & {
|
|
5358
5350
|
responseType: "blob";
|
|
5359
|
-
}): Promise<RezoResponse<Blob
|
|
5351
|
+
}): Promise<RezoResponse<Blob>>;
|
|
5360
5352
|
putMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPutRequest & {
|
|
5361
5353
|
responseType: "upload";
|
|
5362
5354
|
}): Promise<RezoUploadResponse>;
|
|
@@ -6069,7 +6061,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
6069
6061
|
*
|
|
6070
6062
|
* IMPORTANT: Update these values when bumping package version.
|
|
6071
6063
|
*/
|
|
6072
|
-
export declare const VERSION = "1.0.
|
|
6064
|
+
export declare const VERSION = "1.0.136";
|
|
6073
6065
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
6074
6066
|
export declare const Cancel: typeof RezoError;
|
|
6075
6067
|
export declare const CancelToken: {
|
|
@@ -6088,7 +6080,6 @@ export declare const spread: <T extends unknown[], R>(callback: (...args: T) =>
|
|
|
6088
6080
|
declare const rezo: RezoInstance;
|
|
6089
6081
|
|
|
6090
6082
|
export {
|
|
6091
|
-
ResponseType$1 as ResponseType,
|
|
6092
6083
|
rezo as default,
|
|
6093
6084
|
};
|
|
6094
6085
|
|