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.
- package/dist/adapters/entries/curl.d.ts +24 -4
- package/dist/adapters/entries/fetch.d.ts +24 -4
- package/dist/adapters/entries/http.d.ts +24 -4
- package/dist/adapters/entries/http2.d.ts +24 -4
- package/dist/adapters/entries/react-native.d.ts +24 -4
- package/dist/adapters/entries/xhr.d.ts +24 -4
- package/dist/adapters/index.cjs +6 -6
- package/dist/adapters/picker.cjs +1 -1
- package/dist/adapters/picker.js +1 -1
- package/dist/cache/index.cjs +13 -13
- package/dist/core/rezo.cjs +2 -2
- package/dist/core/rezo.js +2 -2
- package/dist/crawler.d.ts +24 -4
- package/dist/entries/crawler.cjs +5 -5
- package/dist/index.cjs +24 -24
- package/dist/index.d.ts +24 -4
- package/dist/platform/browser.d.ts +24 -4
- package/dist/platform/bun.d.ts +24 -4
- package/dist/platform/deno.d.ts +24 -4
- package/dist/platform/node.d.ts +24 -4
- package/dist/platform/react-native.d.ts +24 -4
- package/dist/platform/worker.d.ts +24 -4
- package/dist/plugin/index.cjs +36 -36
- package/dist/proxy/index.cjs +2 -2
- package/dist/queue/index.cjs +8 -8
- package/dist/utils/http-config.cjs +1 -1
- package/dist/utils/http-config.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
/**
|
package/dist/adapters/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.detectRuntime =
|
|
3
|
-
exports.getAdapterCapabilities =
|
|
4
|
-
exports.buildAdapterContext =
|
|
5
|
-
exports.getAvailableAdapters =
|
|
6
|
-
exports.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;;
|
package/dist/adapters/picker.cjs
CHANGED
|
@@ -133,7 +133,7 @@ function getAdapterCapabilities(adapter) {
|
|
|
133
133
|
function buildAdapterContext(options, defaultOptions) {
|
|
134
134
|
const internal = options;
|
|
135
135
|
return {
|
|
136
|
-
needsCookies: !!(options.
|
|
136
|
+
needsCookies: !!(options.jar || defaultOptions.jar),
|
|
137
137
|
needsProxy: !!options.proxy,
|
|
138
138
|
needsStreaming: !!internal._isStream,
|
|
139
139
|
needsHttp2: false,
|
package/dist/adapters/picker.js
CHANGED
|
@@ -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.
|
|
136
|
+
needsCookies: !!(options.jar || defaultOptions.jar),
|
|
137
137
|
needsProxy: !!options.proxy,
|
|
138
138
|
needsStreaming: !!internal._isStream,
|
|
139
139
|
needsHttp2: false,
|
package/dist/cache/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.LRUCache =
|
|
3
|
-
const
|
|
4
|
-
exports.DNSCache =
|
|
5
|
-
exports.getGlobalDNSCache =
|
|
6
|
-
exports.resetGlobalDNSCache =
|
|
7
|
-
const
|
|
8
|
-
exports.ResponseCache =
|
|
9
|
-
exports.normalizeResponseCacheConfig =
|
|
10
|
-
const
|
|
11
|
-
exports.FileCacher =
|
|
12
|
-
const
|
|
13
|
-
exports.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;;
|
package/dist/core/rezo.cjs
CHANGED
|
@@ -49,8 +49,8 @@ class Rezo {
|
|
|
49
49
|
}
|
|
50
50
|
this.adapter = adapter || globalAdapter;
|
|
51
51
|
this.defaults = config || {};
|
|
52
|
-
if (config?.
|
|
53
|
-
this.jar = config.
|
|
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?.
|
|
53
|
-
this.jar = config.
|
|
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
|
-
/**
|
|
2815
|
-
|
|
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
|
-
/**
|
|
3247
|
-
|
|
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
|
/**
|
package/dist/entries/crawler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
exports.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
|
|
2
|
-
exports.Rezo =
|
|
3
|
-
exports.createRezoInstance =
|
|
4
|
-
exports.createDefaultInstance =
|
|
5
|
-
const
|
|
6
|
-
exports.RezoError =
|
|
7
|
-
exports.RezoErrorCode =
|
|
8
|
-
const
|
|
9
|
-
exports.RezoHeaders =
|
|
10
|
-
const
|
|
11
|
-
exports.RezoFormData =
|
|
12
|
-
const
|
|
13
|
-
exports.RezoCookieJar =
|
|
14
|
-
exports.Cookie =
|
|
15
|
-
const
|
|
16
|
-
exports.createDefaultHooks =
|
|
17
|
-
exports.mergeHooks =
|
|
18
|
-
const
|
|
19
|
-
exports.ProxyManager =
|
|
20
|
-
const
|
|
21
|
-
exports.RezoQueue =
|
|
22
|
-
exports.HttpQueue =
|
|
23
|
-
exports.Priority =
|
|
24
|
-
exports.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
|
-
/**
|
|
2823
|
-
|
|
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
|
-
/**
|
|
3274
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
/**
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
/**
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
/**
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
-
/**
|
|
2697
|
-
|
|
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
|
-
/**
|
|
3129
|
-
|
|
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
|
/**
|
package/dist/plugin/index.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
const
|
|
6
|
-
exports.FileCacher =
|
|
7
|
-
const
|
|
8
|
-
exports.UrlStore =
|
|
9
|
-
const
|
|
10
|
-
exports.Oxylabs =
|
|
11
|
-
const
|
|
12
|
-
exports.OXYLABS_BROWSER_TYPES =
|
|
13
|
-
exports.OXYLABS_COMMON_LOCALES =
|
|
14
|
-
exports.OXYLABS_COMMON_GEO_LOCATIONS =
|
|
15
|
-
exports.OXYLABS_US_STATES =
|
|
16
|
-
exports.OXYLABS_EUROPEAN_COUNTRIES =
|
|
17
|
-
exports.OXYLABS_ASIAN_COUNTRIES =
|
|
18
|
-
exports.getRandomOxylabsBrowserType =
|
|
19
|
-
exports.getRandomOxylabsLocale =
|
|
20
|
-
exports.getRandomOxylabsGeoLocation =
|
|
21
|
-
const
|
|
22
|
-
exports.Decodo =
|
|
23
|
-
const
|
|
24
|
-
exports.DECODO_DEVICE_TYPES =
|
|
25
|
-
exports.DECODO_HEADLESS_MODES =
|
|
26
|
-
exports.DECODO_COMMON_LOCALES =
|
|
27
|
-
exports.DECODO_COMMON_COUNTRIES =
|
|
28
|
-
exports.DECODO_EUROPEAN_COUNTRIES =
|
|
29
|
-
exports.DECODO_ASIAN_COUNTRIES =
|
|
30
|
-
exports.DECODO_US_STATES =
|
|
31
|
-
exports.DECODO_COMMON_CITIES =
|
|
32
|
-
exports.getRandomDecodoDeviceType =
|
|
33
|
-
exports.getRandomDecodoLocale =
|
|
34
|
-
exports.getRandomDecodoCountry =
|
|
35
|
-
exports.getRandomDecodoCity =
|
|
36
|
-
exports.generateDecodoSessionId =
|
|
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;;
|
package/dist/proxy/index.cjs
CHANGED
|
@@ -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
|
|
5
|
-
exports.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 {
|
package/dist/queue/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.RezoQueue =
|
|
3
|
-
const
|
|
4
|
-
exports.HttpQueue =
|
|
5
|
-
exports.extractDomain =
|
|
6
|
-
const
|
|
7
|
-
exports.Priority =
|
|
8
|
-
exports.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.
|
|
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.
|
|
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.
|
|
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",
|