rezo 1.0.36 → 1.0.38

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.
Files changed (43) hide show
  1. package/dist/adapters/curl.cjs +320 -9
  2. package/dist/adapters/curl.js +320 -9
  3. package/dist/adapters/entries/curl.d.ts +20 -2
  4. package/dist/adapters/entries/fetch.d.ts +20 -2
  5. package/dist/adapters/entries/http.d.ts +20 -2
  6. package/dist/adapters/entries/http2.d.ts +20 -2
  7. package/dist/adapters/entries/react-native.d.ts +20 -2
  8. package/dist/adapters/entries/xhr.d.ts +20 -2
  9. package/dist/adapters/fetch.cjs +10 -2
  10. package/dist/adapters/fetch.js +10 -2
  11. package/dist/adapters/http.cjs +206 -35
  12. package/dist/adapters/http.js +206 -35
  13. package/dist/adapters/http2.cjs +10 -2
  14. package/dist/adapters/http2.js +10 -2
  15. package/dist/adapters/index.cjs +6 -6
  16. package/dist/adapters/react-native.cjs +10 -2
  17. package/dist/adapters/react-native.js +10 -2
  18. package/dist/adapters/xhr.cjs +9 -1
  19. package/dist/adapters/xhr.js +9 -1
  20. package/dist/cache/index.cjs +13 -13
  21. package/dist/crawler.d.ts +20 -2
  22. package/dist/entries/crawler.cjs +5 -5
  23. package/dist/index.cjs +24 -24
  24. package/dist/index.d.ts +20 -2
  25. package/dist/platform/browser.d.ts +20 -2
  26. package/dist/platform/bun.d.ts +20 -2
  27. package/dist/platform/deno.d.ts +20 -2
  28. package/dist/platform/node.d.ts +20 -2
  29. package/dist/platform/react-native.d.ts +20 -2
  30. package/dist/platform/worker.d.ts +20 -2
  31. package/dist/plugin/index.cjs +36 -36
  32. package/dist/proxy/index.cjs +4 -4
  33. package/dist/queue/index.cjs +8 -8
  34. package/dist/responses/universal/index.cjs +11 -11
  35. package/dist/utils/agent-pool.cjs +204 -0
  36. package/dist/utils/agent-pool.js +201 -0
  37. package/dist/utils/http-config.cjs +24 -7
  38. package/dist/utils/http-config.js +24 -7
  39. package/dist/utils/index.cjs +2 -0
  40. package/dist/utils/index.js +2 -0
  41. package/dist/utils/staged-timeout.cjs +143 -0
  42. package/dist/utils/staged-timeout.js +139 -0
  43. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,27 +1,27 @@
1
- const _mod_xkzztz = require('./core/rezo.cjs');
2
- exports.Rezo = _mod_xkzztz.Rezo;
3
- exports.createRezoInstance = _mod_xkzztz.createRezoInstance;
4
- exports.createDefaultInstance = _mod_xkzztz.createDefaultInstance;;
5
- const _mod_oqvigw = require('./errors/rezo-error.cjs');
6
- exports.RezoError = _mod_oqvigw.RezoError;
7
- exports.RezoErrorCode = _mod_oqvigw.RezoErrorCode;;
8
- const _mod_fb4djh = require('./utils/headers.cjs');
9
- exports.RezoHeaders = _mod_fb4djh.RezoHeaders;;
10
- const _mod_0h34z5 = require('./utils/form-data.cjs');
11
- exports.RezoFormData = _mod_0h34z5.RezoFormData;;
12
- const _mod_c1ukg1 = require('./utils/cookies.cjs');
13
- exports.RezoCookieJar = _mod_c1ukg1.RezoCookieJar;
14
- exports.Cookie = _mod_c1ukg1.Cookie;;
15
- const _mod_06t0jk = require('./core/hooks.cjs');
16
- exports.createDefaultHooks = _mod_06t0jk.createDefaultHooks;
17
- exports.mergeHooks = _mod_06t0jk.mergeHooks;;
18
- const _mod_akttew = require('./proxy/manager.cjs');
19
- exports.ProxyManager = _mod_akttew.ProxyManager;;
20
- const _mod_9zy2my = require('./queue/index.cjs');
21
- exports.RezoQueue = _mod_9zy2my.RezoQueue;
22
- exports.HttpQueue = _mod_9zy2my.HttpQueue;
23
- exports.Priority = _mod_9zy2my.Priority;
24
- exports.HttpMethodPriority = _mod_9zy2my.HttpMethodPriority;;
1
+ const _mod_8kh4v0 = require('./core/rezo.cjs');
2
+ exports.Rezo = _mod_8kh4v0.Rezo;
3
+ exports.createRezoInstance = _mod_8kh4v0.createRezoInstance;
4
+ exports.createDefaultInstance = _mod_8kh4v0.createDefaultInstance;;
5
+ const _mod_qre162 = require('./errors/rezo-error.cjs');
6
+ exports.RezoError = _mod_qre162.RezoError;
7
+ exports.RezoErrorCode = _mod_qre162.RezoErrorCode;;
8
+ const _mod_ltk2zp = require('./utils/headers.cjs');
9
+ exports.RezoHeaders = _mod_ltk2zp.RezoHeaders;;
10
+ const _mod_rpds6z = require('./utils/form-data.cjs');
11
+ exports.RezoFormData = _mod_rpds6z.RezoFormData;;
12
+ const _mod_wn5amd = require('./utils/cookies.cjs');
13
+ exports.RezoCookieJar = _mod_wn5amd.RezoCookieJar;
14
+ exports.Cookie = _mod_wn5amd.Cookie;;
15
+ const _mod_meh3fm = require('./core/hooks.cjs');
16
+ exports.createDefaultHooks = _mod_meh3fm.createDefaultHooks;
17
+ exports.mergeHooks = _mod_meh3fm.mergeHooks;;
18
+ const _mod_3bs2z2 = require('./proxy/manager.cjs');
19
+ exports.ProxyManager = _mod_3bs2z2.ProxyManager;;
20
+ const _mod_o8mlnk = require('./queue/index.cjs');
21
+ exports.RezoQueue = _mod_o8mlnk.RezoQueue;
22
+ exports.HttpQueue = _mod_o8mlnk.HttpQueue;
23
+ exports.Priority = _mod_o8mlnk.Priority;
24
+ exports.HttpMethodPriority = _mod_o8mlnk.HttpMethodPriority;;
25
25
  const { RezoError } = require('./errors/rezo-error.cjs');
26
26
  const isRezoError = exports.isRezoError = RezoError.isRezoError;
27
27
  const Cancel = exports.Cancel = RezoError;
package/dist/index.d.ts CHANGED
@@ -1561,7 +1561,14 @@ export interface RezoConfig {
1561
1561
  /** @description Supported compression algorithms */
1562
1562
  algorithms?: string[];
1563
1563
  };
1564
- /** @description Enable cookie jar for session management */
1564
+ /**
1565
+ * @description Disable cookie jar for session management.
1566
+ * When false (default), cookies are automatically managed.
1567
+ * Set to true to disable automatic cookie handling.
1568
+ * @default false
1569
+ */
1570
+ disableCookieJar?: boolean;
1571
+ /** @deprecated Use `disableCookieJar` instead */
1565
1572
  enableCookieJar?: boolean;
1566
1573
  /** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
1567
1574
  withCredentials?: boolean;
@@ -1672,6 +1679,8 @@ export interface RezoConfig {
1672
1679
  hooks: Partial<RezoHooks> | null;
1673
1680
  /** @description Snapshot of the original request configuration */
1674
1681
  originalRequest: RezoRequestConfig;
1682
+ /** @description Original request body, preserved for POST body retention during redirects */
1683
+ originalBody?: RezoRequestConfig["body"];
1675
1684
  /** @description Final resolved URL after redirects and processing */
1676
1685
  finalUrl: string;
1677
1686
  /** @description HTTP adapter used for the request */
@@ -2828,6 +2837,8 @@ export interface OnRedirectOptions {
2828
2837
  headers: RezoHeaders;
2829
2838
  sameDomain: boolean;
2830
2839
  method: string;
2840
+ /** The current request body (RezoFormData, string, object, etc.) - allows user to inspect/modify */
2841
+ body?: any;
2831
2842
  }
2832
2843
  export type OnRedirectResponse = boolean | ToRedirectOptions | undefined;
2833
2844
  export type ToRedirectOptions = {
@@ -3197,7 +3208,14 @@ export interface RezoDefaultOptions {
3197
3208
  baseURL?: string;
3198
3209
  /** Hooks for request/response lifecycle */
3199
3210
  hooks?: Partial<RezoHooks>;
3200
- /** Whether to enable automatic cookie handling (default: true)*/
3211
+ /**
3212
+ * Whether to disable automatic cookie handling.
3213
+ * When false (default), cookies are automatically managed via the jar.
3214
+ * Set to true to disable automatic cookie management.
3215
+ * @default false
3216
+ */
3217
+ disableCookieJar?: boolean;
3218
+ /** @deprecated Use `disableCookieJar` instead. Will be removed in next major version. */
3201
3219
  enableCookieJar?: boolean;
3202
3220
  /**
3203
3221
  * Custom cookie jar for managing cookies.
@@ -1561,7 +1561,14 @@ export interface RezoConfig {
1561
1561
  /** @description Supported compression algorithms */
1562
1562
  algorithms?: string[];
1563
1563
  };
1564
- /** @description Enable cookie jar for session management */
1564
+ /**
1565
+ * @description Disable cookie jar for session management.
1566
+ * When false (default), cookies are automatically managed.
1567
+ * Set to true to disable automatic cookie handling.
1568
+ * @default false
1569
+ */
1570
+ disableCookieJar?: boolean;
1571
+ /** @deprecated Use `disableCookieJar` instead */
1565
1572
  enableCookieJar?: boolean;
1566
1573
  /** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
1567
1574
  withCredentials?: boolean;
@@ -1672,6 +1679,8 @@ export interface RezoConfig {
1672
1679
  hooks: Partial<RezoHooks> | null;
1673
1680
  /** @description Snapshot of the original request configuration */
1674
1681
  originalRequest: RezoRequestConfig;
1682
+ /** @description Original request body, preserved for POST body retention during redirects */
1683
+ originalBody?: RezoRequestConfig["body"];
1675
1684
  /** @description Final resolved URL after redirects and processing */
1676
1685
  finalUrl: string;
1677
1686
  /** @description HTTP adapter used for the request */
@@ -2702,6 +2711,8 @@ export interface OnRedirectOptions {
2702
2711
  headers: RezoHeaders;
2703
2712
  sameDomain: boolean;
2704
2713
  method: string;
2714
+ /** The current request body (RezoFormData, string, object, etc.) - allows user to inspect/modify */
2715
+ body?: any;
2705
2716
  }
2706
2717
  export type OnRedirectResponse = boolean | ToRedirectOptions | undefined;
2707
2718
  export type ToRedirectOptions = {
@@ -3052,7 +3063,14 @@ export interface RezoDefaultOptions {
3052
3063
  baseURL?: string;
3053
3064
  /** Hooks for request/response lifecycle */
3054
3065
  hooks?: Partial<RezoHooks>;
3055
- /** Whether to enable automatic cookie handling (default: true)*/
3066
+ /**
3067
+ * Whether to disable automatic cookie handling.
3068
+ * When false (default), cookies are automatically managed via the jar.
3069
+ * Set to true to disable automatic cookie management.
3070
+ * @default false
3071
+ */
3072
+ disableCookieJar?: boolean;
3073
+ /** @deprecated Use `disableCookieJar` instead. Will be removed in next major version. */
3056
3074
  enableCookieJar?: boolean;
3057
3075
  /**
3058
3076
  * Custom cookie jar for managing cookies.
@@ -1561,7 +1561,14 @@ export interface RezoConfig {
1561
1561
  /** @description Supported compression algorithms */
1562
1562
  algorithms?: string[];
1563
1563
  };
1564
- /** @description Enable cookie jar for session management */
1564
+ /**
1565
+ * @description Disable cookie jar for session management.
1566
+ * When false (default), cookies are automatically managed.
1567
+ * Set to true to disable automatic cookie handling.
1568
+ * @default false
1569
+ */
1570
+ disableCookieJar?: boolean;
1571
+ /** @deprecated Use `disableCookieJar` instead */
1565
1572
  enableCookieJar?: boolean;
1566
1573
  /** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
1567
1574
  withCredentials?: boolean;
@@ -1672,6 +1679,8 @@ export interface RezoConfig {
1672
1679
  hooks: Partial<RezoHooks> | null;
1673
1680
  /** @description Snapshot of the original request configuration */
1674
1681
  originalRequest: RezoRequestConfig;
1682
+ /** @description Original request body, preserved for POST body retention during redirects */
1683
+ originalBody?: RezoRequestConfig["body"];
1675
1684
  /** @description Final resolved URL after redirects and processing */
1676
1685
  finalUrl: string;
1677
1686
  /** @description HTTP adapter used for the request */
@@ -2702,6 +2711,8 @@ export interface OnRedirectOptions {
2702
2711
  headers: RezoHeaders;
2703
2712
  sameDomain: boolean;
2704
2713
  method: string;
2714
+ /** The current request body (RezoFormData, string, object, etc.) - allows user to inspect/modify */
2715
+ body?: any;
2705
2716
  }
2706
2717
  export type OnRedirectResponse = boolean | ToRedirectOptions | undefined;
2707
2718
  export type ToRedirectOptions = {
@@ -3052,7 +3063,14 @@ export interface RezoDefaultOptions {
3052
3063
  baseURL?: string;
3053
3064
  /** Hooks for request/response lifecycle */
3054
3065
  hooks?: Partial<RezoHooks>;
3055
- /** Whether to enable automatic cookie handling (default: true)*/
3066
+ /**
3067
+ * Whether to disable automatic cookie handling.
3068
+ * When false (default), cookies are automatically managed via the jar.
3069
+ * Set to true to disable automatic cookie management.
3070
+ * @default false
3071
+ */
3072
+ disableCookieJar?: boolean;
3073
+ /** @deprecated Use `disableCookieJar` instead. Will be removed in next major version. */
3056
3074
  enableCookieJar?: boolean;
3057
3075
  /**
3058
3076
  * Custom cookie jar for managing cookies.
@@ -1561,7 +1561,14 @@ export interface RezoConfig {
1561
1561
  /** @description Supported compression algorithms */
1562
1562
  algorithms?: string[];
1563
1563
  };
1564
- /** @description Enable cookie jar for session management */
1564
+ /**
1565
+ * @description Disable cookie jar for session management.
1566
+ * When false (default), cookies are automatically managed.
1567
+ * Set to true to disable automatic cookie handling.
1568
+ * @default false
1569
+ */
1570
+ disableCookieJar?: boolean;
1571
+ /** @deprecated Use `disableCookieJar` instead */
1565
1572
  enableCookieJar?: boolean;
1566
1573
  /** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
1567
1574
  withCredentials?: boolean;
@@ -1672,6 +1679,8 @@ export interface RezoConfig {
1672
1679
  hooks: Partial<RezoHooks> | null;
1673
1680
  /** @description Snapshot of the original request configuration */
1674
1681
  originalRequest: RezoRequestConfig;
1682
+ /** @description Original request body, preserved for POST body retention during redirects */
1683
+ originalBody?: RezoRequestConfig["body"];
1675
1684
  /** @description Final resolved URL after redirects and processing */
1676
1685
  finalUrl: string;
1677
1686
  /** @description HTTP adapter used for the request */
@@ -2702,6 +2711,8 @@ export interface OnRedirectOptions {
2702
2711
  headers: RezoHeaders;
2703
2712
  sameDomain: boolean;
2704
2713
  method: string;
2714
+ /** The current request body (RezoFormData, string, object, etc.) - allows user to inspect/modify */
2715
+ body?: any;
2705
2716
  }
2706
2717
  export type OnRedirectResponse = boolean | ToRedirectOptions | undefined;
2707
2718
  export type ToRedirectOptions = {
@@ -3052,7 +3063,14 @@ export interface RezoDefaultOptions {
3052
3063
  baseURL?: string;
3053
3064
  /** Hooks for request/response lifecycle */
3054
3065
  hooks?: Partial<RezoHooks>;
3055
- /** Whether to enable automatic cookie handling (default: true)*/
3066
+ /**
3067
+ * Whether to disable automatic cookie handling.
3068
+ * When false (default), cookies are automatically managed via the jar.
3069
+ * Set to true to disable automatic cookie management.
3070
+ * @default false
3071
+ */
3072
+ disableCookieJar?: boolean;
3073
+ /** @deprecated Use `disableCookieJar` instead. Will be removed in next major version. */
3056
3074
  enableCookieJar?: boolean;
3057
3075
  /**
3058
3076
  * Custom cookie jar for managing cookies.
@@ -1561,7 +1561,14 @@ export interface RezoConfig {
1561
1561
  /** @description Supported compression algorithms */
1562
1562
  algorithms?: string[];
1563
1563
  };
1564
- /** @description Enable cookie jar for session management */
1564
+ /**
1565
+ * @description Disable cookie jar for session management.
1566
+ * When false (default), cookies are automatically managed.
1567
+ * Set to true to disable automatic cookie handling.
1568
+ * @default false
1569
+ */
1570
+ disableCookieJar?: boolean;
1571
+ /** @deprecated Use `disableCookieJar` instead */
1565
1572
  enableCookieJar?: boolean;
1566
1573
  /** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
1567
1574
  withCredentials?: boolean;
@@ -1672,6 +1679,8 @@ export interface RezoConfig {
1672
1679
  hooks: Partial<RezoHooks> | null;
1673
1680
  /** @description Snapshot of the original request configuration */
1674
1681
  originalRequest: RezoRequestConfig;
1682
+ /** @description Original request body, preserved for POST body retention during redirects */
1683
+ originalBody?: RezoRequestConfig["body"];
1675
1684
  /** @description Final resolved URL after redirects and processing */
1676
1685
  finalUrl: string;
1677
1686
  /** @description HTTP adapter used for the request */
@@ -2702,6 +2711,8 @@ export interface OnRedirectOptions {
2702
2711
  headers: RezoHeaders;
2703
2712
  sameDomain: boolean;
2704
2713
  method: string;
2714
+ /** The current request body (RezoFormData, string, object, etc.) - allows user to inspect/modify */
2715
+ body?: any;
2705
2716
  }
2706
2717
  export type OnRedirectResponse = boolean | ToRedirectOptions | undefined;
2707
2718
  export type ToRedirectOptions = {
@@ -3052,7 +3063,14 @@ export interface RezoDefaultOptions {
3052
3063
  baseURL?: string;
3053
3064
  /** Hooks for request/response lifecycle */
3054
3065
  hooks?: Partial<RezoHooks>;
3055
- /** Whether to enable automatic cookie handling (default: true)*/
3066
+ /**
3067
+ * Whether to disable automatic cookie handling.
3068
+ * When false (default), cookies are automatically managed via the jar.
3069
+ * Set to true to disable automatic cookie management.
3070
+ * @default false
3071
+ */
3072
+ disableCookieJar?: boolean;
3073
+ /** @deprecated Use `disableCookieJar` instead. Will be removed in next major version. */
3056
3074
  enableCookieJar?: boolean;
3057
3075
  /**
3058
3076
  * Custom cookie jar for managing cookies.
@@ -1561,7 +1561,14 @@ export interface RezoConfig {
1561
1561
  /** @description Supported compression algorithms */
1562
1562
  algorithms?: string[];
1563
1563
  };
1564
- /** @description Enable cookie jar for session management */
1564
+ /**
1565
+ * @description Disable cookie jar for session management.
1566
+ * When false (default), cookies are automatically managed.
1567
+ * Set to true to disable automatic cookie handling.
1568
+ * @default false
1569
+ */
1570
+ disableCookieJar?: boolean;
1571
+ /** @deprecated Use `disableCookieJar` instead */
1565
1572
  enableCookieJar?: boolean;
1566
1573
  /** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
1567
1574
  withCredentials?: boolean;
@@ -1672,6 +1679,8 @@ export interface RezoConfig {
1672
1679
  hooks: Partial<RezoHooks> | null;
1673
1680
  /** @description Snapshot of the original request configuration */
1674
1681
  originalRequest: RezoRequestConfig;
1682
+ /** @description Original request body, preserved for POST body retention during redirects */
1683
+ originalBody?: RezoRequestConfig["body"];
1675
1684
  /** @description Final resolved URL after redirects and processing */
1676
1685
  finalUrl: string;
1677
1686
  /** @description HTTP adapter used for the request */
@@ -2702,6 +2711,8 @@ export interface OnRedirectOptions {
2702
2711
  headers: RezoHeaders;
2703
2712
  sameDomain: boolean;
2704
2713
  method: string;
2714
+ /** The current request body (RezoFormData, string, object, etc.) - allows user to inspect/modify */
2715
+ body?: any;
2705
2716
  }
2706
2717
  export type OnRedirectResponse = boolean | ToRedirectOptions | undefined;
2707
2718
  export type ToRedirectOptions = {
@@ -3052,7 +3063,14 @@ export interface RezoDefaultOptions {
3052
3063
  baseURL?: string;
3053
3064
  /** Hooks for request/response lifecycle */
3054
3065
  hooks?: Partial<RezoHooks>;
3055
- /** Whether to enable automatic cookie handling (default: true)*/
3066
+ /**
3067
+ * Whether to disable automatic cookie handling.
3068
+ * When false (default), cookies are automatically managed via the jar.
3069
+ * Set to true to disable automatic cookie management.
3070
+ * @default false
3071
+ */
3072
+ disableCookieJar?: boolean;
3073
+ /** @deprecated Use `disableCookieJar` instead. Will be removed in next major version. */
3056
3074
  enableCookieJar?: boolean;
3057
3075
  /**
3058
3076
  * Custom cookie jar for managing cookies.
@@ -1561,7 +1561,14 @@ export interface RezoConfig {
1561
1561
  /** @description Supported compression algorithms */
1562
1562
  algorithms?: string[];
1563
1563
  };
1564
- /** @description Enable cookie jar for session management */
1564
+ /**
1565
+ * @description Disable cookie jar for session management.
1566
+ * When false (default), cookies are automatically managed.
1567
+ * Set to true to disable automatic cookie handling.
1568
+ * @default false
1569
+ */
1570
+ disableCookieJar?: boolean;
1571
+ /** @deprecated Use `disableCookieJar` instead */
1565
1572
  enableCookieJar?: boolean;
1566
1573
  /** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
1567
1574
  withCredentials?: boolean;
@@ -1672,6 +1679,8 @@ export interface RezoConfig {
1672
1679
  hooks: Partial<RezoHooks> | null;
1673
1680
  /** @description Snapshot of the original request configuration */
1674
1681
  originalRequest: RezoRequestConfig;
1682
+ /** @description Original request body, preserved for POST body retention during redirects */
1683
+ originalBody?: RezoRequestConfig["body"];
1675
1684
  /** @description Final resolved URL after redirects and processing */
1676
1685
  finalUrl: string;
1677
1686
  /** @description HTTP adapter used for the request */
@@ -2702,6 +2711,8 @@ export interface OnRedirectOptions {
2702
2711
  headers: RezoHeaders;
2703
2712
  sameDomain: boolean;
2704
2713
  method: string;
2714
+ /** The current request body (RezoFormData, string, object, etc.) - allows user to inspect/modify */
2715
+ body?: any;
2705
2716
  }
2706
2717
  export type OnRedirectResponse = boolean | ToRedirectOptions | undefined;
2707
2718
  export type ToRedirectOptions = {
@@ -3052,7 +3063,14 @@ export interface RezoDefaultOptions {
3052
3063
  baseURL?: string;
3053
3064
  /** Hooks for request/response lifecycle */
3054
3065
  hooks?: Partial<RezoHooks>;
3055
- /** Whether to enable automatic cookie handling (default: true)*/
3066
+ /**
3067
+ * Whether to disable automatic cookie handling.
3068
+ * When false (default), cookies are automatically managed via the jar.
3069
+ * Set to true to disable automatic cookie management.
3070
+ * @default false
3071
+ */
3072
+ disableCookieJar?: boolean;
3073
+ /** @deprecated Use `disableCookieJar` instead. Will be removed in next major version. */
3056
3074
  enableCookieJar?: boolean;
3057
3075
  /**
3058
3076
  * Custom cookie jar for managing cookies.
@@ -1,36 +1,36 @@
1
- const _mod_aurudk = require('./crawler.cjs');
2
- exports.Crawler = _mod_aurudk.Crawler;;
3
- const _mod_v8pmzf = require('./crawler-options.cjs');
4
- exports.CrawlerOptions = _mod_v8pmzf.CrawlerOptions;;
5
- const _mod_41vmvs = require('../cache/file-cacher.cjs');
6
- exports.FileCacher = _mod_41vmvs.FileCacher;;
7
- const _mod_oowfwr = require('../cache/url-store.cjs');
8
- exports.UrlStore = _mod_oowfwr.UrlStore;;
9
- const _mod_mczhjw = require('./addon/oxylabs/index.cjs');
10
- exports.Oxylabs = _mod_mczhjw.Oxylabs;;
11
- const _mod_2p4yuc = require('./addon/oxylabs/options.cjs');
12
- exports.OXYLABS_BROWSER_TYPES = _mod_2p4yuc.OXYLABS_BROWSER_TYPES;
13
- exports.OXYLABS_COMMON_LOCALES = _mod_2p4yuc.OXYLABS_COMMON_LOCALES;
14
- exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_2p4yuc.OXYLABS_COMMON_GEO_LOCATIONS;
15
- exports.OXYLABS_US_STATES = _mod_2p4yuc.OXYLABS_US_STATES;
16
- exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_2p4yuc.OXYLABS_EUROPEAN_COUNTRIES;
17
- exports.OXYLABS_ASIAN_COUNTRIES = _mod_2p4yuc.OXYLABS_ASIAN_COUNTRIES;
18
- exports.getRandomOxylabsBrowserType = _mod_2p4yuc.getRandomBrowserType;
19
- exports.getRandomOxylabsLocale = _mod_2p4yuc.getRandomLocale;
20
- exports.getRandomOxylabsGeoLocation = _mod_2p4yuc.getRandomGeoLocation;;
21
- const _mod_qut8vm = require('./addon/decodo/index.cjs');
22
- exports.Decodo = _mod_qut8vm.Decodo;;
23
- const _mod_q5fzo0 = require('./addon/decodo/options.cjs');
24
- exports.DECODO_DEVICE_TYPES = _mod_q5fzo0.DECODO_DEVICE_TYPES;
25
- exports.DECODO_HEADLESS_MODES = _mod_q5fzo0.DECODO_HEADLESS_MODES;
26
- exports.DECODO_COMMON_LOCALES = _mod_q5fzo0.DECODO_COMMON_LOCALES;
27
- exports.DECODO_COMMON_COUNTRIES = _mod_q5fzo0.DECODO_COMMON_COUNTRIES;
28
- exports.DECODO_EUROPEAN_COUNTRIES = _mod_q5fzo0.DECODO_EUROPEAN_COUNTRIES;
29
- exports.DECODO_ASIAN_COUNTRIES = _mod_q5fzo0.DECODO_ASIAN_COUNTRIES;
30
- exports.DECODO_US_STATES = _mod_q5fzo0.DECODO_US_STATES;
31
- exports.DECODO_COMMON_CITIES = _mod_q5fzo0.DECODO_COMMON_CITIES;
32
- exports.getRandomDecodoDeviceType = _mod_q5fzo0.getRandomDeviceType;
33
- exports.getRandomDecodoLocale = _mod_q5fzo0.getRandomLocale;
34
- exports.getRandomDecodoCountry = _mod_q5fzo0.getRandomCountry;
35
- exports.getRandomDecodoCity = _mod_q5fzo0.getRandomCity;
36
- exports.generateDecodoSessionId = _mod_q5fzo0.generateSessionId;;
1
+ const _mod_9lvpbi = require('./crawler.cjs');
2
+ exports.Crawler = _mod_9lvpbi.Crawler;;
3
+ const _mod_azmk6o = require('./crawler-options.cjs');
4
+ exports.CrawlerOptions = _mod_azmk6o.CrawlerOptions;;
5
+ const _mod_bpq7v8 = require('../cache/file-cacher.cjs');
6
+ exports.FileCacher = _mod_bpq7v8.FileCacher;;
7
+ const _mod_icima3 = require('../cache/url-store.cjs');
8
+ exports.UrlStore = _mod_icima3.UrlStore;;
9
+ const _mod_aj7atj = require('./addon/oxylabs/index.cjs');
10
+ exports.Oxylabs = _mod_aj7atj.Oxylabs;;
11
+ const _mod_uvrxq0 = require('./addon/oxylabs/options.cjs');
12
+ exports.OXYLABS_BROWSER_TYPES = _mod_uvrxq0.OXYLABS_BROWSER_TYPES;
13
+ exports.OXYLABS_COMMON_LOCALES = _mod_uvrxq0.OXYLABS_COMMON_LOCALES;
14
+ exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_uvrxq0.OXYLABS_COMMON_GEO_LOCATIONS;
15
+ exports.OXYLABS_US_STATES = _mod_uvrxq0.OXYLABS_US_STATES;
16
+ exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_uvrxq0.OXYLABS_EUROPEAN_COUNTRIES;
17
+ exports.OXYLABS_ASIAN_COUNTRIES = _mod_uvrxq0.OXYLABS_ASIAN_COUNTRIES;
18
+ exports.getRandomOxylabsBrowserType = _mod_uvrxq0.getRandomBrowserType;
19
+ exports.getRandomOxylabsLocale = _mod_uvrxq0.getRandomLocale;
20
+ exports.getRandomOxylabsGeoLocation = _mod_uvrxq0.getRandomGeoLocation;;
21
+ const _mod_xll40f = require('./addon/decodo/index.cjs');
22
+ exports.Decodo = _mod_xll40f.Decodo;;
23
+ const _mod_1dmbbz = require('./addon/decodo/options.cjs');
24
+ exports.DECODO_DEVICE_TYPES = _mod_1dmbbz.DECODO_DEVICE_TYPES;
25
+ exports.DECODO_HEADLESS_MODES = _mod_1dmbbz.DECODO_HEADLESS_MODES;
26
+ exports.DECODO_COMMON_LOCALES = _mod_1dmbbz.DECODO_COMMON_LOCALES;
27
+ exports.DECODO_COMMON_COUNTRIES = _mod_1dmbbz.DECODO_COMMON_COUNTRIES;
28
+ exports.DECODO_EUROPEAN_COUNTRIES = _mod_1dmbbz.DECODO_EUROPEAN_COUNTRIES;
29
+ exports.DECODO_ASIAN_COUNTRIES = _mod_1dmbbz.DECODO_ASIAN_COUNTRIES;
30
+ exports.DECODO_US_STATES = _mod_1dmbbz.DECODO_US_STATES;
31
+ exports.DECODO_COMMON_CITIES = _mod_1dmbbz.DECODO_COMMON_CITIES;
32
+ exports.getRandomDecodoDeviceType = _mod_1dmbbz.getRandomDeviceType;
33
+ exports.getRandomDecodoLocale = _mod_1dmbbz.getRandomLocale;
34
+ exports.getRandomDecodoCountry = _mod_1dmbbz.getRandomCountry;
35
+ exports.getRandomDecodoCity = _mod_1dmbbz.getRandomCity;
36
+ exports.generateDecodoSessionId = _mod_1dmbbz.generateSessionId;;
@@ -2,10 +2,10 @@ const { SocksProxyAgent: RezoSocksProxy } = require("socks-proxy-agent");
2
2
  const { HttpsProxyAgent: RezoHttpsSocks } = require("https-proxy-agent");
3
3
  const { HttpProxyAgent: RezoHttpSocks } = require("http-proxy-agent");
4
4
  const { parseProxyString } = require('./parse.cjs');
5
- const _mod_yfcw4i = require('./manager.cjs');
6
- exports.ProxyManager = _mod_yfcw4i.ProxyManager;;
7
- const _mod_3o6to5 = require('./parse.cjs');
8
- exports.parseProxyString = _mod_3o6to5.parseProxyString;;
5
+ const _mod_11e7eb = require('./manager.cjs');
6
+ exports.ProxyManager = _mod_11e7eb.ProxyManager;;
7
+ const _mod_3hcd63 = require('./parse.cjs');
8
+ exports.parseProxyString = _mod_3hcd63.parseProxyString;;
9
9
  function createOptions(uri, opts) {
10
10
  if (uri instanceof URL || typeof uri === "string") {
11
11
  return {
@@ -1,8 +1,8 @@
1
- const _mod_kpj84p = require('./queue.cjs');
2
- exports.RezoQueue = _mod_kpj84p.RezoQueue;;
3
- const _mod_qacfqg = require('./http-queue.cjs');
4
- exports.HttpQueue = _mod_qacfqg.HttpQueue;
5
- exports.extractDomain = _mod_qacfqg.extractDomain;;
6
- const _mod_lbq7hp = require('./types.cjs');
7
- exports.Priority = _mod_lbq7hp.Priority;
8
- exports.HttpMethodPriority = _mod_lbq7hp.HttpMethodPriority;;
1
+ const _mod_r4j54k = require('./queue.cjs');
2
+ exports.RezoQueue = _mod_r4j54k.RezoQueue;;
3
+ const _mod_q6btxk = require('./http-queue.cjs');
4
+ exports.HttpQueue = _mod_q6btxk.HttpQueue;
5
+ exports.extractDomain = _mod_q6btxk.extractDomain;;
6
+ const _mod_jw3ukg = require('./types.cjs');
7
+ exports.Priority = _mod_jw3ukg.Priority;
8
+ exports.HttpMethodPriority = _mod_jw3ukg.HttpMethodPriority;;
@@ -1,11 +1,11 @@
1
- const _mod_0rm12v = require('./event-emitter.cjs');
2
- exports.UniversalEventEmitter = _mod_0rm12v.UniversalEventEmitter;;
3
- const _mod_17tpqu = require('./stream.cjs');
4
- exports.UniversalStreamResponse = _mod_17tpqu.UniversalStreamResponse;
5
- exports.StreamResponse = _mod_17tpqu.StreamResponse;;
6
- const _mod_l0vc60 = require('./download.cjs');
7
- exports.UniversalDownloadResponse = _mod_l0vc60.UniversalDownloadResponse;
8
- exports.DownloadResponse = _mod_l0vc60.DownloadResponse;;
9
- const _mod_yp4ki9 = require('./upload.cjs');
10
- exports.UniversalUploadResponse = _mod_yp4ki9.UniversalUploadResponse;
11
- exports.UploadResponse = _mod_yp4ki9.UploadResponse;;
1
+ const _mod_xayj2h = require('./event-emitter.cjs');
2
+ exports.UniversalEventEmitter = _mod_xayj2h.UniversalEventEmitter;;
3
+ const _mod_x2topy = require('./stream.cjs');
4
+ exports.UniversalStreamResponse = _mod_x2topy.UniversalStreamResponse;
5
+ exports.StreamResponse = _mod_x2topy.StreamResponse;;
6
+ const _mod_kxypc7 = require('./download.cjs');
7
+ exports.UniversalDownloadResponse = _mod_kxypc7.UniversalDownloadResponse;
8
+ exports.DownloadResponse = _mod_kxypc7.DownloadResponse;;
9
+ const _mod_7guhvn = require('./upload.cjs');
10
+ exports.UniversalUploadResponse = _mod_7guhvn.UniversalUploadResponse;
11
+ exports.UploadResponse = _mod_7guhvn.UploadResponse;;