rezo 1.0.35 → 1.0.37

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 +204 -35
  12. package/dist/adapters/http.js +204 -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_t8rr5i = require('./core/rezo.cjs');
2
- exports.Rezo = _mod_t8rr5i.Rezo;
3
- exports.createRezoInstance = _mod_t8rr5i.createRezoInstance;
4
- exports.createDefaultInstance = _mod_t8rr5i.createDefaultInstance;;
5
- const _mod_s3hurf = require('./errors/rezo-error.cjs');
6
- exports.RezoError = _mod_s3hurf.RezoError;
7
- exports.RezoErrorCode = _mod_s3hurf.RezoErrorCode;;
8
- const _mod_1apkpq = require('./utils/headers.cjs');
9
- exports.RezoHeaders = _mod_1apkpq.RezoHeaders;;
10
- const _mod_f8erho = require('./utils/form-data.cjs');
11
- exports.RezoFormData = _mod_f8erho.RezoFormData;;
12
- const _mod_k0ull9 = require('./utils/cookies.cjs');
13
- exports.RezoCookieJar = _mod_k0ull9.RezoCookieJar;
14
- exports.Cookie = _mod_k0ull9.Cookie;;
15
- const _mod_ffegae = require('./core/hooks.cjs');
16
- exports.createDefaultHooks = _mod_ffegae.createDefaultHooks;
17
- exports.mergeHooks = _mod_ffegae.mergeHooks;;
18
- const _mod_bwq8ak = require('./proxy/manager.cjs');
19
- exports.ProxyManager = _mod_bwq8ak.ProxyManager;;
20
- const _mod_zzhhmv = require('./queue/index.cjs');
21
- exports.RezoQueue = _mod_zzhhmv.RezoQueue;
22
- exports.HttpQueue = _mod_zzhhmv.HttpQueue;
23
- exports.Priority = _mod_zzhhmv.Priority;
24
- exports.HttpMethodPriority = _mod_zzhhmv.HttpMethodPriority;;
1
+ const _mod_7mlnwk = require('./core/rezo.cjs');
2
+ exports.Rezo = _mod_7mlnwk.Rezo;
3
+ exports.createRezoInstance = _mod_7mlnwk.createRezoInstance;
4
+ exports.createDefaultInstance = _mod_7mlnwk.createDefaultInstance;;
5
+ const _mod_dpezn2 = require('./errors/rezo-error.cjs');
6
+ exports.RezoError = _mod_dpezn2.RezoError;
7
+ exports.RezoErrorCode = _mod_dpezn2.RezoErrorCode;;
8
+ const _mod_cx8q1t = require('./utils/headers.cjs');
9
+ exports.RezoHeaders = _mod_cx8q1t.RezoHeaders;;
10
+ const _mod_zcjprx = require('./utils/form-data.cjs');
11
+ exports.RezoFormData = _mod_zcjprx.RezoFormData;;
12
+ const _mod_ldhf9q = require('./utils/cookies.cjs');
13
+ exports.RezoCookieJar = _mod_ldhf9q.RezoCookieJar;
14
+ exports.Cookie = _mod_ldhf9q.Cookie;;
15
+ const _mod_tv2jg3 = require('./core/hooks.cjs');
16
+ exports.createDefaultHooks = _mod_tv2jg3.createDefaultHooks;
17
+ exports.mergeHooks = _mod_tv2jg3.mergeHooks;;
18
+ const _mod_46xpko = require('./proxy/manager.cjs');
19
+ exports.ProxyManager = _mod_46xpko.ProxyManager;;
20
+ const _mod_mdz88c = require('./queue/index.cjs');
21
+ exports.RezoQueue = _mod_mdz88c.RezoQueue;
22
+ exports.HttpQueue = _mod_mdz88c.HttpQueue;
23
+ exports.Priority = _mod_mdz88c.Priority;
24
+ exports.HttpMethodPriority = _mod_mdz88c.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_0tcja9 = require('./crawler.cjs');
2
- exports.Crawler = _mod_0tcja9.Crawler;;
3
- const _mod_06951s = require('./crawler-options.cjs');
4
- exports.CrawlerOptions = _mod_06951s.CrawlerOptions;;
5
- const _mod_25luuj = require('../cache/file-cacher.cjs');
6
- exports.FileCacher = _mod_25luuj.FileCacher;;
7
- const _mod_mkhjp3 = require('../cache/url-store.cjs');
8
- exports.UrlStore = _mod_mkhjp3.UrlStore;;
9
- const _mod_lw5slr = require('./addon/oxylabs/index.cjs');
10
- exports.Oxylabs = _mod_lw5slr.Oxylabs;;
11
- const _mod_g73yro = require('./addon/oxylabs/options.cjs');
12
- exports.OXYLABS_BROWSER_TYPES = _mod_g73yro.OXYLABS_BROWSER_TYPES;
13
- exports.OXYLABS_COMMON_LOCALES = _mod_g73yro.OXYLABS_COMMON_LOCALES;
14
- exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_g73yro.OXYLABS_COMMON_GEO_LOCATIONS;
15
- exports.OXYLABS_US_STATES = _mod_g73yro.OXYLABS_US_STATES;
16
- exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_g73yro.OXYLABS_EUROPEAN_COUNTRIES;
17
- exports.OXYLABS_ASIAN_COUNTRIES = _mod_g73yro.OXYLABS_ASIAN_COUNTRIES;
18
- exports.getRandomOxylabsBrowserType = _mod_g73yro.getRandomBrowserType;
19
- exports.getRandomOxylabsLocale = _mod_g73yro.getRandomLocale;
20
- exports.getRandomOxylabsGeoLocation = _mod_g73yro.getRandomGeoLocation;;
21
- const _mod_krq9x2 = require('./addon/decodo/index.cjs');
22
- exports.Decodo = _mod_krq9x2.Decodo;;
23
- const _mod_8mpj7i = require('./addon/decodo/options.cjs');
24
- exports.DECODO_DEVICE_TYPES = _mod_8mpj7i.DECODO_DEVICE_TYPES;
25
- exports.DECODO_HEADLESS_MODES = _mod_8mpj7i.DECODO_HEADLESS_MODES;
26
- exports.DECODO_COMMON_LOCALES = _mod_8mpj7i.DECODO_COMMON_LOCALES;
27
- exports.DECODO_COMMON_COUNTRIES = _mod_8mpj7i.DECODO_COMMON_COUNTRIES;
28
- exports.DECODO_EUROPEAN_COUNTRIES = _mod_8mpj7i.DECODO_EUROPEAN_COUNTRIES;
29
- exports.DECODO_ASIAN_COUNTRIES = _mod_8mpj7i.DECODO_ASIAN_COUNTRIES;
30
- exports.DECODO_US_STATES = _mod_8mpj7i.DECODO_US_STATES;
31
- exports.DECODO_COMMON_CITIES = _mod_8mpj7i.DECODO_COMMON_CITIES;
32
- exports.getRandomDecodoDeviceType = _mod_8mpj7i.getRandomDeviceType;
33
- exports.getRandomDecodoLocale = _mod_8mpj7i.getRandomLocale;
34
- exports.getRandomDecodoCountry = _mod_8mpj7i.getRandomCountry;
35
- exports.getRandomDecodoCity = _mod_8mpj7i.getRandomCity;
36
- exports.generateDecodoSessionId = _mod_8mpj7i.generateSessionId;;
1
+ const _mod_82a2rb = require('./crawler.cjs');
2
+ exports.Crawler = _mod_82a2rb.Crawler;;
3
+ const _mod_3qq2q5 = require('./crawler-options.cjs');
4
+ exports.CrawlerOptions = _mod_3qq2q5.CrawlerOptions;;
5
+ const _mod_4j8yxb = require('../cache/file-cacher.cjs');
6
+ exports.FileCacher = _mod_4j8yxb.FileCacher;;
7
+ const _mod_zz95gk = require('../cache/url-store.cjs');
8
+ exports.UrlStore = _mod_zz95gk.UrlStore;;
9
+ const _mod_d926nc = require('./addon/oxylabs/index.cjs');
10
+ exports.Oxylabs = _mod_d926nc.Oxylabs;;
11
+ const _mod_43m3h2 = require('./addon/oxylabs/options.cjs');
12
+ exports.OXYLABS_BROWSER_TYPES = _mod_43m3h2.OXYLABS_BROWSER_TYPES;
13
+ exports.OXYLABS_COMMON_LOCALES = _mod_43m3h2.OXYLABS_COMMON_LOCALES;
14
+ exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_43m3h2.OXYLABS_COMMON_GEO_LOCATIONS;
15
+ exports.OXYLABS_US_STATES = _mod_43m3h2.OXYLABS_US_STATES;
16
+ exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_43m3h2.OXYLABS_EUROPEAN_COUNTRIES;
17
+ exports.OXYLABS_ASIAN_COUNTRIES = _mod_43m3h2.OXYLABS_ASIAN_COUNTRIES;
18
+ exports.getRandomOxylabsBrowserType = _mod_43m3h2.getRandomBrowserType;
19
+ exports.getRandomOxylabsLocale = _mod_43m3h2.getRandomLocale;
20
+ exports.getRandomOxylabsGeoLocation = _mod_43m3h2.getRandomGeoLocation;;
21
+ const _mod_0wt6of = require('./addon/decodo/index.cjs');
22
+ exports.Decodo = _mod_0wt6of.Decodo;;
23
+ const _mod_dvwehx = require('./addon/decodo/options.cjs');
24
+ exports.DECODO_DEVICE_TYPES = _mod_dvwehx.DECODO_DEVICE_TYPES;
25
+ exports.DECODO_HEADLESS_MODES = _mod_dvwehx.DECODO_HEADLESS_MODES;
26
+ exports.DECODO_COMMON_LOCALES = _mod_dvwehx.DECODO_COMMON_LOCALES;
27
+ exports.DECODO_COMMON_COUNTRIES = _mod_dvwehx.DECODO_COMMON_COUNTRIES;
28
+ exports.DECODO_EUROPEAN_COUNTRIES = _mod_dvwehx.DECODO_EUROPEAN_COUNTRIES;
29
+ exports.DECODO_ASIAN_COUNTRIES = _mod_dvwehx.DECODO_ASIAN_COUNTRIES;
30
+ exports.DECODO_US_STATES = _mod_dvwehx.DECODO_US_STATES;
31
+ exports.DECODO_COMMON_CITIES = _mod_dvwehx.DECODO_COMMON_CITIES;
32
+ exports.getRandomDecodoDeviceType = _mod_dvwehx.getRandomDeviceType;
33
+ exports.getRandomDecodoLocale = _mod_dvwehx.getRandomLocale;
34
+ exports.getRandomDecodoCountry = _mod_dvwehx.getRandomCountry;
35
+ exports.getRandomDecodoCity = _mod_dvwehx.getRandomCity;
36
+ exports.generateDecodoSessionId = _mod_dvwehx.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_loka58 = require('./manager.cjs');
6
- exports.ProxyManager = _mod_loka58.ProxyManager;;
7
- const _mod_yt6s7c = require('./parse.cjs');
8
- exports.parseProxyString = _mod_yt6s7c.parseProxyString;;
5
+ const _mod_mfb6oo = require('./manager.cjs');
6
+ exports.ProxyManager = _mod_mfb6oo.ProxyManager;;
7
+ const _mod_msp7ha = require('./parse.cjs');
8
+ exports.parseProxyString = _mod_msp7ha.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_z5coz3 = require('./queue.cjs');
2
- exports.RezoQueue = _mod_z5coz3.RezoQueue;;
3
- const _mod_cq6ew9 = require('./http-queue.cjs');
4
- exports.HttpQueue = _mod_cq6ew9.HttpQueue;
5
- exports.extractDomain = _mod_cq6ew9.extractDomain;;
6
- const _mod_r8a8fv = require('./types.cjs');
7
- exports.Priority = _mod_r8a8fv.Priority;
8
- exports.HttpMethodPriority = _mod_r8a8fv.HttpMethodPriority;;
1
+ const _mod_hl4yb7 = require('./queue.cjs');
2
+ exports.RezoQueue = _mod_hl4yb7.RezoQueue;;
3
+ const _mod_asidmy = require('./http-queue.cjs');
4
+ exports.HttpQueue = _mod_asidmy.HttpQueue;
5
+ exports.extractDomain = _mod_asidmy.extractDomain;;
6
+ const _mod_l187x4 = require('./types.cjs');
7
+ exports.Priority = _mod_l187x4.Priority;
8
+ exports.HttpMethodPriority = _mod_l187x4.HttpMethodPriority;;
@@ -1,11 +1,11 @@
1
- const _mod_ltkfjk = require('./event-emitter.cjs');
2
- exports.UniversalEventEmitter = _mod_ltkfjk.UniversalEventEmitter;;
3
- const _mod_qstsx5 = require('./stream.cjs');
4
- exports.UniversalStreamResponse = _mod_qstsx5.UniversalStreamResponse;
5
- exports.StreamResponse = _mod_qstsx5.StreamResponse;;
6
- const _mod_gw5ov2 = require('./download.cjs');
7
- exports.UniversalDownloadResponse = _mod_gw5ov2.UniversalDownloadResponse;
8
- exports.DownloadResponse = _mod_gw5ov2.DownloadResponse;;
9
- const _mod_or37qe = require('./upload.cjs');
10
- exports.UniversalUploadResponse = _mod_or37qe.UniversalUploadResponse;
11
- exports.UploadResponse = _mod_or37qe.UploadResponse;;
1
+ const _mod_54ovg5 = require('./event-emitter.cjs');
2
+ exports.UniversalEventEmitter = _mod_54ovg5.UniversalEventEmitter;;
3
+ const _mod_o1khjx = require('./stream.cjs');
4
+ exports.UniversalStreamResponse = _mod_o1khjx.UniversalStreamResponse;
5
+ exports.StreamResponse = _mod_o1khjx.StreamResponse;;
6
+ const _mod_4dhbe0 = require('./download.cjs');
7
+ exports.UniversalDownloadResponse = _mod_4dhbe0.UniversalDownloadResponse;
8
+ exports.DownloadResponse = _mod_4dhbe0.DownloadResponse;;
9
+ const _mod_bycysi = require('./upload.cjs');
10
+ exports.UniversalUploadResponse = _mod_bycysi.UniversalUploadResponse;
11
+ exports.UploadResponse = _mod_bycysi.UploadResponse;;