rezo 1.0.14 → 1.0.15

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.
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -1,6 +1,6 @@
1
- const _mod_wby0uw = require('./picker.cjs');
2
- exports.detectRuntime = _mod_wby0uw.detectRuntime;
3
- exports.getAdapterCapabilities = _mod_wby0uw.getAdapterCapabilities;
4
- exports.buildAdapterContext = _mod_wby0uw.buildAdapterContext;
5
- exports.getAvailableAdapters = _mod_wby0uw.getAvailableAdapters;
6
- exports.selectAdapter = _mod_wby0uw.selectAdapter;;
1
+ const _mod_58re9h = require('./picker.cjs');
2
+ exports.detectRuntime = _mod_58re9h.detectRuntime;
3
+ exports.getAdapterCapabilities = _mod_58re9h.getAdapterCapabilities;
4
+ exports.buildAdapterContext = _mod_58re9h.buildAdapterContext;
5
+ exports.getAvailableAdapters = _mod_58re9h.getAvailableAdapters;
6
+ exports.selectAdapter = _mod_58re9h.selectAdapter;;
@@ -133,7 +133,7 @@ function getAdapterCapabilities(adapter) {
133
133
  function buildAdapterContext(options, defaultOptions) {
134
134
  const internal = options;
135
135
  return {
136
- needsCookies: !!(options.cookieJar || defaultOptions.cookieJar),
136
+ needsCookies: !!(options.jar || defaultOptions.jar),
137
137
  needsProxy: !!options.proxy,
138
138
  needsStreaming: !!internal._isStream,
139
139
  needsHttp2: false,
@@ -133,7 +133,7 @@ export function getAdapterCapabilities(adapter) {
133
133
  export function buildAdapterContext(options, defaultOptions) {
134
134
  const internal = options;
135
135
  return {
136
- needsCookies: !!(options.cookieJar || defaultOptions.cookieJar),
136
+ needsCookies: !!(options.jar || defaultOptions.jar),
137
137
  needsProxy: !!options.proxy,
138
138
  needsStreaming: !!internal._isStream,
139
139
  needsHttp2: false,
@@ -1,13 +1,13 @@
1
- const _mod_hi5yx4 = require('./lru-cache.cjs');
2
- exports.LRUCache = _mod_hi5yx4.LRUCache;;
3
- const _mod_xvsb8i = require('./dns-cache.cjs');
4
- exports.DNSCache = _mod_xvsb8i.DNSCache;
5
- exports.getGlobalDNSCache = _mod_xvsb8i.getGlobalDNSCache;
6
- exports.resetGlobalDNSCache = _mod_xvsb8i.resetGlobalDNSCache;;
7
- const _mod_gble7l = require('./response-cache.cjs');
8
- exports.ResponseCache = _mod_gble7l.ResponseCache;
9
- exports.normalizeResponseCacheConfig = _mod_gble7l.normalizeResponseCacheConfig;;
10
- const _mod_oq9kzw = require('./file-cacher.cjs');
11
- exports.FileCacher = _mod_oq9kzw.FileCacher;;
12
- const _mod_mhhavh = require('./url-store.cjs');
13
- exports.UrlStore = _mod_mhhavh.UrlStore;;
1
+ const _mod_4clxtx = require('./lru-cache.cjs');
2
+ exports.LRUCache = _mod_4clxtx.LRUCache;;
3
+ const _mod_8thcxt = require('./dns-cache.cjs');
4
+ exports.DNSCache = _mod_8thcxt.DNSCache;
5
+ exports.getGlobalDNSCache = _mod_8thcxt.getGlobalDNSCache;
6
+ exports.resetGlobalDNSCache = _mod_8thcxt.resetGlobalDNSCache;;
7
+ const _mod_k4qt4t = require('./response-cache.cjs');
8
+ exports.ResponseCache = _mod_k4qt4t.ResponseCache;
9
+ exports.normalizeResponseCacheConfig = _mod_k4qt4t.normalizeResponseCacheConfig;;
10
+ const _mod_7l7g18 = require('./file-cacher.cjs');
11
+ exports.FileCacher = _mod_7l7g18.FileCacher;;
12
+ const _mod_x7x6qu = require('./url-store.cjs');
13
+ exports.UrlStore = _mod_x7x6qu.UrlStore;;
@@ -49,8 +49,8 @@ class Rezo {
49
49
  }
50
50
  this.adapter = adapter || globalAdapter;
51
51
  this.defaults = config || {};
52
- if (config?.cookieJar instanceof RezoCookieJar) {
53
- this.jar = config.cookieJar;
52
+ if (config?.jar instanceof RezoCookieJar) {
53
+ this.jar = config.jar;
54
54
  } else if (config?.cookieFile) {
55
55
  this.jar = RezoCookieJar.fromFile(config.cookieFile);
56
56
  } else {
package/dist/core/rezo.js CHANGED
@@ -49,8 +49,8 @@ export class Rezo {
49
49
  }
50
50
  this.adapter = adapter || globalAdapter;
51
51
  this.defaults = config || {};
52
- if (config?.cookieJar instanceof RezoCookieJar) {
53
- this.jar = config.cookieJar;
52
+ if (config?.jar instanceof RezoCookieJar) {
53
+ this.jar = config.jar;
54
54
  } else if (config?.cookieFile) {
55
55
  this.jar = RezoCookieJar.fromFile(config.cookieFile);
56
56
  } else {
package/dist/crawler.d.ts CHANGED
@@ -2811,8 +2811,19 @@ export interface RezoRequestConfig<D = any> {
2811
2811
  useProxyManager?: boolean;
2812
2812
  /** Whether to enable automatic cookie handling */
2813
2813
  useCookies?: boolean;
2814
- /** Custom cookie jar for managing cookies */
2815
- cookieJar?: RezoCookieJar;
2814
+ /**
2815
+ * Custom cookie jar for managing cookies in this request.
2816
+ * Note: Passing jar per-request is supported but not recommended.
2817
+ * For better cookie management, pass the jar when creating the instance:
2818
+ * @example
2819
+ * ```typescript
2820
+ * const client = new Rezo({ jar: myJar });
2821
+ * // or
2822
+ * const client = rezo.create({ jar: myJar });
2823
+ * ```
2824
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2825
+ */
2826
+ jar?: RezoCookieJar;
2816
2827
  /** Cookies to send with the request in various formats */
2817
2828
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2818
2829
  /** Callback for upload progress events */
@@ -3243,8 +3254,17 @@ export interface RezoDefaultOptions {
3243
3254
  hooks?: Partial<RezoHooks>;
3244
3255
  /** Whether to enable automatic cookie handling (default: true)*/
3245
3256
  enableCookieJar?: boolean;
3246
- /** Custom cookie jar for managing cookies */
3247
- cookieJar?: RezoHttpRequest["cookieJar"];
3257
+ /**
3258
+ * Custom cookie jar for managing cookies.
3259
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3260
+ * @example
3261
+ * ```typescript
3262
+ * const client = new Rezo({ jar: myJar });
3263
+ * // or
3264
+ * const client = rezo.create({ jar: myJar });
3265
+ * ```
3266
+ */
3267
+ jar?: RezoHttpRequest["jar"];
3248
3268
  /** Set default cookies to send with the requests in various formats */
3249
3269
  cookies?: RezoHttpRequest["cookies"];
3250
3270
  /**
@@ -1,5 +1,5 @@
1
- const _mod_6aofz8 = require('../plugin/crawler.cjs');
2
- exports.Crawler = _mod_6aofz8.Crawler;;
3
- const _mod_t23px8 = require('../plugin/crawler-options.cjs');
4
- exports.CrawlerOptions = _mod_t23px8.CrawlerOptions;
5
- exports.Domain = _mod_t23px8.Domain;;
1
+ const _mod_sr4bcr = require('../plugin/crawler.cjs');
2
+ exports.Crawler = _mod_sr4bcr.Crawler;;
3
+ const _mod_fra6kj = require('../plugin/crawler-options.cjs');
4
+ exports.CrawlerOptions = _mod_fra6kj.CrawlerOptions;
5
+ exports.Domain = _mod_fra6kj.Domain;;
package/dist/index.cjs CHANGED
@@ -1,27 +1,27 @@
1
- const _mod_wsc945 = require('./core/rezo.cjs');
2
- exports.Rezo = _mod_wsc945.Rezo;
3
- exports.createRezoInstance = _mod_wsc945.createRezoInstance;
4
- exports.createDefaultInstance = _mod_wsc945.createDefaultInstance;;
5
- const _mod_pc2qgs = require('./errors/rezo-error.cjs');
6
- exports.RezoError = _mod_pc2qgs.RezoError;
7
- exports.RezoErrorCode = _mod_pc2qgs.RezoErrorCode;;
8
- const _mod_wei4ay = require('./utils/headers.cjs');
9
- exports.RezoHeaders = _mod_wei4ay.RezoHeaders;;
10
- const _mod_honebj = require('./utils/form-data.cjs');
11
- exports.RezoFormData = _mod_honebj.RezoFormData;;
12
- const _mod_6yx1gr = require('./utils/cookies.cjs');
13
- exports.RezoCookieJar = _mod_6yx1gr.RezoCookieJar;
14
- exports.Cookie = _mod_6yx1gr.Cookie;;
15
- const _mod_dyuwd6 = require('./core/hooks.cjs');
16
- exports.createDefaultHooks = _mod_dyuwd6.createDefaultHooks;
17
- exports.mergeHooks = _mod_dyuwd6.mergeHooks;;
18
- const _mod_h49ine = require('./proxy/manager.cjs');
19
- exports.ProxyManager = _mod_h49ine.ProxyManager;;
20
- const _mod_psyc82 = require('./queue/index.cjs');
21
- exports.RezoQueue = _mod_psyc82.RezoQueue;
22
- exports.HttpQueue = _mod_psyc82.HttpQueue;
23
- exports.Priority = _mod_psyc82.Priority;
24
- exports.HttpMethodPriority = _mod_psyc82.HttpMethodPriority;;
1
+ const _mod_izj7ua = require('./core/rezo.cjs');
2
+ exports.Rezo = _mod_izj7ua.Rezo;
3
+ exports.createRezoInstance = _mod_izj7ua.createRezoInstance;
4
+ exports.createDefaultInstance = _mod_izj7ua.createDefaultInstance;;
5
+ const _mod_tgc1sb = require('./errors/rezo-error.cjs');
6
+ exports.RezoError = _mod_tgc1sb.RezoError;
7
+ exports.RezoErrorCode = _mod_tgc1sb.RezoErrorCode;;
8
+ const _mod_h7bez0 = require('./utils/headers.cjs');
9
+ exports.RezoHeaders = _mod_h7bez0.RezoHeaders;;
10
+ const _mod_ez8yvh = require('./utils/form-data.cjs');
11
+ exports.RezoFormData = _mod_ez8yvh.RezoFormData;;
12
+ const _mod_fqunh0 = require('./utils/cookies.cjs');
13
+ exports.RezoCookieJar = _mod_fqunh0.RezoCookieJar;
14
+ exports.Cookie = _mod_fqunh0.Cookie;;
15
+ const _mod_ydcmkw = require('./core/hooks.cjs');
16
+ exports.createDefaultHooks = _mod_ydcmkw.createDefaultHooks;
17
+ exports.mergeHooks = _mod_ydcmkw.mergeHooks;;
18
+ const _mod_3apyk1 = require('./proxy/manager.cjs');
19
+ exports.ProxyManager = _mod_3apyk1.ProxyManager;;
20
+ const _mod_ilywic = require('./queue/index.cjs');
21
+ exports.RezoQueue = _mod_ilywic.RezoQueue;
22
+ exports.HttpQueue = _mod_ilywic.HttpQueue;
23
+ exports.Priority = _mod_ilywic.Priority;
24
+ exports.HttpMethodPriority = _mod_ilywic.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
@@ -2819,8 +2819,19 @@ export interface RezoRequestConfig<D = any> {
2819
2819
  useProxyManager?: boolean;
2820
2820
  /** Whether to enable automatic cookie handling */
2821
2821
  useCookies?: boolean;
2822
- /** Custom cookie jar for managing cookies */
2823
- cookieJar?: RezoCookieJar;
2822
+ /**
2823
+ * Custom cookie jar for managing cookies in this request.
2824
+ * Note: Passing jar per-request is supported but not recommended.
2825
+ * For better cookie management, pass the jar when creating the instance:
2826
+ * @example
2827
+ * ```typescript
2828
+ * const client = new Rezo({ jar: myJar });
2829
+ * // or
2830
+ * const client = rezo.create({ jar: myJar });
2831
+ * ```
2832
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2833
+ */
2834
+ jar?: RezoCookieJar;
2824
2835
  /** Cookies to send with the request in various formats */
2825
2836
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2826
2837
  /** Callback for upload progress events */
@@ -3270,8 +3281,17 @@ export interface RezoDefaultOptions {
3270
3281
  hooks?: Partial<RezoHooks>;
3271
3282
  /** Whether to enable automatic cookie handling (default: true)*/
3272
3283
  enableCookieJar?: boolean;
3273
- /** Custom cookie jar for managing cookies */
3274
- cookieJar?: RezoHttpRequest["cookieJar"];
3284
+ /**
3285
+ * Custom cookie jar for managing cookies.
3286
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3287
+ * @example
3288
+ * ```typescript
3289
+ * const client = new Rezo({ jar: myJar });
3290
+ * // or
3291
+ * const client = rezo.create({ jar: myJar });
3292
+ * ```
3293
+ */
3294
+ jar?: RezoHttpRequest["jar"];
3275
3295
  /** Set default cookies to send with the requests in various formats */
3276
3296
  cookies?: RezoHttpRequest["cookies"];
3277
3297
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -2693,8 +2693,19 @@ export interface RezoRequestConfig<D = any> {
2693
2693
  useProxyManager?: boolean;
2694
2694
  /** Whether to enable automatic cookie handling */
2695
2695
  useCookies?: boolean;
2696
- /** Custom cookie jar for managing cookies */
2697
- cookieJar?: RezoCookieJar;
2696
+ /**
2697
+ * Custom cookie jar for managing cookies in this request.
2698
+ * Note: Passing jar per-request is supported but not recommended.
2699
+ * For better cookie management, pass the jar when creating the instance:
2700
+ * @example
2701
+ * ```typescript
2702
+ * const client = new Rezo({ jar: myJar });
2703
+ * // or
2704
+ * const client = rezo.create({ jar: myJar });
2705
+ * ```
2706
+ * If you need custom cookies for a single request, use the `cookies` option instead.
2707
+ */
2708
+ jar?: RezoCookieJar;
2698
2709
  /** Cookies to send with the request in various formats */
2699
2710
  cookies?: Cookies["array"] | Cookies["netscape"] | Cookies["serialized"] | Cookies["setCookiesString"];
2700
2711
  /** Callback for upload progress events */
@@ -3125,8 +3136,17 @@ export interface RezoDefaultOptions {
3125
3136
  hooks?: Partial<RezoHooks>;
3126
3137
  /** Whether to enable automatic cookie handling (default: true)*/
3127
3138
  enableCookieJar?: boolean;
3128
- /** Custom cookie jar for managing cookies */
3129
- cookieJar?: RezoHttpRequest["cookieJar"];
3139
+ /**
3140
+ * Custom cookie jar for managing cookies.
3141
+ * The recommended way to manage cookies - pass the jar when creating the instance.
3142
+ * @example
3143
+ * ```typescript
3144
+ * const client = new Rezo({ jar: myJar });
3145
+ * // or
3146
+ * const client = rezo.create({ jar: myJar });
3147
+ * ```
3148
+ */
3149
+ jar?: RezoHttpRequest["jar"];
3130
3150
  /** Set default cookies to send with the requests in various formats */
3131
3151
  cookies?: RezoHttpRequest["cookies"];
3132
3152
  /**
@@ -1,36 +1,36 @@
1
- const _mod_61gqt8 = require('./crawler.cjs');
2
- exports.Crawler = _mod_61gqt8.Crawler;;
3
- const _mod_s20ywb = require('./crawler-options.cjs');
4
- exports.CrawlerOptions = _mod_s20ywb.CrawlerOptions;;
5
- const _mod_slgnf8 = require('../cache/file-cacher.cjs');
6
- exports.FileCacher = _mod_slgnf8.FileCacher;;
7
- const _mod_jvu3uj = require('../cache/url-store.cjs');
8
- exports.UrlStore = _mod_jvu3uj.UrlStore;;
9
- const _mod_v2pwhj = require('./addon/oxylabs/index.cjs');
10
- exports.Oxylabs = _mod_v2pwhj.Oxylabs;;
11
- const _mod_lxafyd = require('./addon/oxylabs/options.cjs');
12
- exports.OXYLABS_BROWSER_TYPES = _mod_lxafyd.OXYLABS_BROWSER_TYPES;
13
- exports.OXYLABS_COMMON_LOCALES = _mod_lxafyd.OXYLABS_COMMON_LOCALES;
14
- exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_lxafyd.OXYLABS_COMMON_GEO_LOCATIONS;
15
- exports.OXYLABS_US_STATES = _mod_lxafyd.OXYLABS_US_STATES;
16
- exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_lxafyd.OXYLABS_EUROPEAN_COUNTRIES;
17
- exports.OXYLABS_ASIAN_COUNTRIES = _mod_lxafyd.OXYLABS_ASIAN_COUNTRIES;
18
- exports.getRandomOxylabsBrowserType = _mod_lxafyd.getRandomBrowserType;
19
- exports.getRandomOxylabsLocale = _mod_lxafyd.getRandomLocale;
20
- exports.getRandomOxylabsGeoLocation = _mod_lxafyd.getRandomGeoLocation;;
21
- const _mod_wknbgy = require('./addon/decodo/index.cjs');
22
- exports.Decodo = _mod_wknbgy.Decodo;;
23
- const _mod_wp7ex5 = require('./addon/decodo/options.cjs');
24
- exports.DECODO_DEVICE_TYPES = _mod_wp7ex5.DECODO_DEVICE_TYPES;
25
- exports.DECODO_HEADLESS_MODES = _mod_wp7ex5.DECODO_HEADLESS_MODES;
26
- exports.DECODO_COMMON_LOCALES = _mod_wp7ex5.DECODO_COMMON_LOCALES;
27
- exports.DECODO_COMMON_COUNTRIES = _mod_wp7ex5.DECODO_COMMON_COUNTRIES;
28
- exports.DECODO_EUROPEAN_COUNTRIES = _mod_wp7ex5.DECODO_EUROPEAN_COUNTRIES;
29
- exports.DECODO_ASIAN_COUNTRIES = _mod_wp7ex5.DECODO_ASIAN_COUNTRIES;
30
- exports.DECODO_US_STATES = _mod_wp7ex5.DECODO_US_STATES;
31
- exports.DECODO_COMMON_CITIES = _mod_wp7ex5.DECODO_COMMON_CITIES;
32
- exports.getRandomDecodoDeviceType = _mod_wp7ex5.getRandomDeviceType;
33
- exports.getRandomDecodoLocale = _mod_wp7ex5.getRandomLocale;
34
- exports.getRandomDecodoCountry = _mod_wp7ex5.getRandomCountry;
35
- exports.getRandomDecodoCity = _mod_wp7ex5.getRandomCity;
36
- exports.generateDecodoSessionId = _mod_wp7ex5.generateSessionId;;
1
+ const _mod_xp0ne3 = require('./crawler.cjs');
2
+ exports.Crawler = _mod_xp0ne3.Crawler;;
3
+ const _mod_zix686 = require('./crawler-options.cjs');
4
+ exports.CrawlerOptions = _mod_zix686.CrawlerOptions;;
5
+ const _mod_lt3nae = require('../cache/file-cacher.cjs');
6
+ exports.FileCacher = _mod_lt3nae.FileCacher;;
7
+ const _mod_6jrabt = require('../cache/url-store.cjs');
8
+ exports.UrlStore = _mod_6jrabt.UrlStore;;
9
+ const _mod_4joht5 = require('./addon/oxylabs/index.cjs');
10
+ exports.Oxylabs = _mod_4joht5.Oxylabs;;
11
+ const _mod_fz188n = require('./addon/oxylabs/options.cjs');
12
+ exports.OXYLABS_BROWSER_TYPES = _mod_fz188n.OXYLABS_BROWSER_TYPES;
13
+ exports.OXYLABS_COMMON_LOCALES = _mod_fz188n.OXYLABS_COMMON_LOCALES;
14
+ exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_fz188n.OXYLABS_COMMON_GEO_LOCATIONS;
15
+ exports.OXYLABS_US_STATES = _mod_fz188n.OXYLABS_US_STATES;
16
+ exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_fz188n.OXYLABS_EUROPEAN_COUNTRIES;
17
+ exports.OXYLABS_ASIAN_COUNTRIES = _mod_fz188n.OXYLABS_ASIAN_COUNTRIES;
18
+ exports.getRandomOxylabsBrowserType = _mod_fz188n.getRandomBrowserType;
19
+ exports.getRandomOxylabsLocale = _mod_fz188n.getRandomLocale;
20
+ exports.getRandomOxylabsGeoLocation = _mod_fz188n.getRandomGeoLocation;;
21
+ const _mod_mycz3h = require('./addon/decodo/index.cjs');
22
+ exports.Decodo = _mod_mycz3h.Decodo;;
23
+ const _mod_omyn21 = require('./addon/decodo/options.cjs');
24
+ exports.DECODO_DEVICE_TYPES = _mod_omyn21.DECODO_DEVICE_TYPES;
25
+ exports.DECODO_HEADLESS_MODES = _mod_omyn21.DECODO_HEADLESS_MODES;
26
+ exports.DECODO_COMMON_LOCALES = _mod_omyn21.DECODO_COMMON_LOCALES;
27
+ exports.DECODO_COMMON_COUNTRIES = _mod_omyn21.DECODO_COMMON_COUNTRIES;
28
+ exports.DECODO_EUROPEAN_COUNTRIES = _mod_omyn21.DECODO_EUROPEAN_COUNTRIES;
29
+ exports.DECODO_ASIAN_COUNTRIES = _mod_omyn21.DECODO_ASIAN_COUNTRIES;
30
+ exports.DECODO_US_STATES = _mod_omyn21.DECODO_US_STATES;
31
+ exports.DECODO_COMMON_CITIES = _mod_omyn21.DECODO_COMMON_CITIES;
32
+ exports.getRandomDecodoDeviceType = _mod_omyn21.getRandomDeviceType;
33
+ exports.getRandomDecodoLocale = _mod_omyn21.getRandomLocale;
34
+ exports.getRandomDecodoCountry = _mod_omyn21.getRandomCountry;
35
+ exports.getRandomDecodoCity = _mod_omyn21.getRandomCity;
36
+ exports.generateDecodoSessionId = _mod_omyn21.generateSessionId;;
@@ -1,8 +1,8 @@
1
1
  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
- const _mod_c6k1hi = require('./manager.cjs');
5
- exports.ProxyManager = _mod_c6k1hi.ProxyManager;;
4
+ const _mod_7lhr2y = require('./manager.cjs');
5
+ exports.ProxyManager = _mod_7lhr2y.ProxyManager;;
6
6
  function createOptions(uri, opts) {
7
7
  if (uri instanceof URL || typeof uri === "string") {
8
8
  return {
@@ -1,8 +1,8 @@
1
- const _mod_ywac6g = require('./queue.cjs');
2
- exports.RezoQueue = _mod_ywac6g.RezoQueue;;
3
- const _mod_id4rdx = require('./http-queue.cjs');
4
- exports.HttpQueue = _mod_id4rdx.HttpQueue;
5
- exports.extractDomain = _mod_id4rdx.extractDomain;;
6
- const _mod_dnemth = require('./types.cjs');
7
- exports.Priority = _mod_dnemth.Priority;
8
- exports.HttpMethodPriority = _mod_dnemth.HttpMethodPriority;;
1
+ const _mod_0fmt7n = require('./queue.cjs');
2
+ exports.RezoQueue = _mod_0fmt7n.RezoQueue;;
3
+ const _mod_lmjsvb = require('./http-queue.cjs');
4
+ exports.HttpQueue = _mod_lmjsvb.HttpQueue;
5
+ exports.extractDomain = _mod_lmjsvb.extractDomain;;
6
+ const _mod_x9aox1 = require('./types.cjs');
7
+ exports.Priority = _mod_x9aox1.Priority;
8
+ exports.HttpMethodPriority = _mod_x9aox1.HttpMethodPriority;;
@@ -562,7 +562,7 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
562
562
  timeout: typeof requestOptions.timeout === "number" ? requestOptions.timeout : null,
563
563
  enableCookieJar: typeof defaultOptions.enableCookieJar === "boolean" ? defaultOptions.enableCookieJar : true,
564
564
  useCookies: typeof requestOptions.useCookies === "boolean" ? requestOptions.useCookies : true,
565
- cookieJar: requestOptions.cookieJar || jar,
565
+ cookieJar: requestOptions.jar || jar,
566
566
  retry: {
567
567
  maxRetries: retryLimit,
568
568
  retryDelay,
@@ -562,7 +562,7 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
562
562
  timeout: typeof requestOptions.timeout === "number" ? requestOptions.timeout : null,
563
563
  enableCookieJar: typeof defaultOptions.enableCookieJar === "boolean" ? defaultOptions.enableCookieJar : true,
564
564
  useCookies: typeof requestOptions.useCookies === "boolean" ? requestOptions.useCookies : true,
565
- cookieJar: requestOptions.cookieJar || jar,
565
+ cookieJar: requestOptions.jar || jar,
566
566
  retry: {
567
567
  maxRetries: retryLimit,
568
568
  retryDelay,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rezo",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Lightning-fast, enterprise-grade HTTP client for modern JavaScript. Full HTTP/2 support, intelligent cookie management, multiple adapters (HTTP, Fetch, cURL, XHR), streaming, proxy support (HTTP/HTTPS/SOCKS), and cross-environment compatibility.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",