rezo 1.0.21 → 1.0.23
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 +9 -0
- package/dist/adapters/entries/fetch.d.ts +9 -0
- package/dist/adapters/entries/http.d.ts +9 -0
- package/dist/adapters/entries/http2.d.ts +9 -0
- package/dist/adapters/entries/react-native.d.ts +9 -0
- package/dist/adapters/entries/xhr.d.ts +9 -0
- package/dist/adapters/fetch.cjs +59 -6
- package/dist/adapters/fetch.js +59 -6
- package/dist/adapters/http.cjs +120 -8
- package/dist/adapters/http.js +120 -8
- package/dist/adapters/http2.cjs +69 -8
- package/dist/adapters/http2.js +69 -8
- package/dist/adapters/index.cjs +6 -6
- package/dist/cache/index.cjs +13 -13
- package/dist/core/rezo.cjs +48 -2
- package/dist/core/rezo.js +48 -2
- package/dist/crawler.d.ts +9 -0
- package/dist/entries/crawler.cjs +5 -5
- package/dist/errors/rezo-error.cjs +2 -2
- package/dist/errors/rezo-error.js +2 -2
- package/dist/index.cjs +24 -24
- package/dist/index.d.ts +9 -0
- package/dist/platform/browser.d.ts +9 -0
- package/dist/platform/bun.d.ts +9 -0
- package/dist/platform/deno.d.ts +9 -0
- package/dist/platform/node.d.ts +9 -0
- package/dist/platform/react-native.d.ts +9 -0
- package/dist/platform/worker.d.ts +9 -0
- 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 +3 -0
- package/dist/utils/http-config.js +3 -0
- package/package.json +1 -1
|
@@ -585,8 +585,8 @@ export class RezoError extends Error {
|
|
|
585
585
|
Object.defineProperty(this, "suggestion", { value: "Check the error for more information.", enumerable: false });
|
|
586
586
|
}
|
|
587
587
|
if (response) {
|
|
588
|
-
Object.defineProperty(this, "status", { value: response.status, enumerable: false });
|
|
589
|
-
Object.defineProperty(this, "statusText", { value: response.statusText, enumerable: false });
|
|
588
|
+
Object.defineProperty(this, "status", { value: response.status, enumerable: false, configurable: true });
|
|
589
|
+
Object.defineProperty(this, "statusText", { value: response.statusText, enumerable: false, configurable: true });
|
|
590
590
|
}
|
|
591
591
|
this.name = this.constructor.name;
|
|
592
592
|
Object.setPrototypeOf(this, RezoError.prototype);
|
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_bseuia = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_bseuia.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_bseuia.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_bseuia.createDefaultInstance;;
|
|
5
|
+
const _mod_mzimmd = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_mzimmd.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_mzimmd.RezoErrorCode;;
|
|
8
|
+
const _mod_r9peyg = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_r9peyg.RezoHeaders;;
|
|
10
|
+
const _mod_7pvqmp = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_7pvqmp.RezoFormData;;
|
|
12
|
+
const _mod_vdykyy = require('./utils/cookies.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_vdykyy.RezoCookieJar;
|
|
14
|
+
exports.Cookie = _mod_vdykyy.Cookie;;
|
|
15
|
+
const _mod_3p5c5b = require('./core/hooks.cjs');
|
|
16
|
+
exports.createDefaultHooks = _mod_3p5c5b.createDefaultHooks;
|
|
17
|
+
exports.mergeHooks = _mod_3p5c5b.mergeHooks;;
|
|
18
|
+
const _mod_vd73s2 = require('./proxy/manager.cjs');
|
|
19
|
+
exports.ProxyManager = _mod_vd73s2.ProxyManager;;
|
|
20
|
+
const _mod_dqq646 = require('./queue/index.cjs');
|
|
21
|
+
exports.RezoQueue = _mod_dqq646.RezoQueue;
|
|
22
|
+
exports.HttpQueue = _mod_dqq646.HttpQueue;
|
|
23
|
+
exports.Priority = _mod_dqq646.Priority;
|
|
24
|
+
exports.HttpMethodPriority = _mod_dqq646.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
|
@@ -1934,6 +1934,8 @@ export interface RezoConfig {
|
|
|
1934
1934
|
* ```
|
|
1935
1935
|
*/
|
|
1936
1936
|
beforeRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
|
+
/** Alias for beforeRedirect */
|
|
1938
|
+
onRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
1939
|
/** Character encoding for request body and response data */
|
|
1938
1940
|
encoding?: BufferEncoding;
|
|
1939
1941
|
/**
|
|
@@ -2810,6 +2812,11 @@ export interface RezoRequestConfig<D = any> {
|
|
|
2810
2812
|
* ```
|
|
2811
2813
|
*/
|
|
2812
2814
|
beforeRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2815
|
+
/**
|
|
2816
|
+
* Alias for beforeRedirect - callback invoked when a redirect response is received.
|
|
2817
|
+
* @see beforeRedirect
|
|
2818
|
+
*/
|
|
2819
|
+
onRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2813
2820
|
/** Whether to send cookies and authorization headers with cross-origin requests */
|
|
2814
2821
|
withCredentials?: boolean;
|
|
2815
2822
|
/** Proxy configuration (URL string or detailed options) */
|
|
@@ -3378,6 +3385,8 @@ export interface RezoDefaultOptions {
|
|
|
3378
3385
|
* ```
|
|
3379
3386
|
*/
|
|
3380
3387
|
beforeRedirect?: RezoHttpRequest["beforeRedirect"];
|
|
3388
|
+
/** Alias for beforeRedirect */
|
|
3389
|
+
onRedirect?: RezoHttpRequest["onRedirect"];
|
|
3381
3390
|
/** Array of functions to transform request data */
|
|
3382
3391
|
transformRequest?: RezoHttpRequest["transformRequest"];
|
|
3383
3392
|
/** Array of functions to transform response data */
|
|
@@ -1934,6 +1934,8 @@ export interface RezoConfig {
|
|
|
1934
1934
|
* ```
|
|
1935
1935
|
*/
|
|
1936
1936
|
beforeRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
|
+
/** Alias for beforeRedirect */
|
|
1938
|
+
onRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
1939
|
/** Character encoding for request body and response data */
|
|
1938
1940
|
encoding?: BufferEncoding;
|
|
1939
1941
|
/**
|
|
@@ -2684,6 +2686,11 @@ export interface RezoRequestConfig<D = any> {
|
|
|
2684
2686
|
* ```
|
|
2685
2687
|
*/
|
|
2686
2688
|
beforeRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2689
|
+
/**
|
|
2690
|
+
* Alias for beforeRedirect - callback invoked when a redirect response is received.
|
|
2691
|
+
* @see beforeRedirect
|
|
2692
|
+
*/
|
|
2693
|
+
onRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2687
2694
|
/** Whether to send cookies and authorization headers with cross-origin requests */
|
|
2688
2695
|
withCredentials?: boolean;
|
|
2689
2696
|
/** Proxy configuration (URL string or detailed options) */
|
|
@@ -3233,6 +3240,8 @@ export interface RezoDefaultOptions {
|
|
|
3233
3240
|
* ```
|
|
3234
3241
|
*/
|
|
3235
3242
|
beforeRedirect?: RezoHttpRequest["beforeRedirect"];
|
|
3243
|
+
/** Alias for beforeRedirect */
|
|
3244
|
+
onRedirect?: RezoHttpRequest["onRedirect"];
|
|
3236
3245
|
/** Array of functions to transform request data */
|
|
3237
3246
|
transformRequest?: RezoHttpRequest["transformRequest"];
|
|
3238
3247
|
/** Array of functions to transform response data */
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -1934,6 +1934,8 @@ export interface RezoConfig {
|
|
|
1934
1934
|
* ```
|
|
1935
1935
|
*/
|
|
1936
1936
|
beforeRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
|
+
/** Alias for beforeRedirect */
|
|
1938
|
+
onRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
1939
|
/** Character encoding for request body and response data */
|
|
1938
1940
|
encoding?: BufferEncoding;
|
|
1939
1941
|
/**
|
|
@@ -2684,6 +2686,11 @@ export interface RezoRequestConfig<D = any> {
|
|
|
2684
2686
|
* ```
|
|
2685
2687
|
*/
|
|
2686
2688
|
beforeRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2689
|
+
/**
|
|
2690
|
+
* Alias for beforeRedirect - callback invoked when a redirect response is received.
|
|
2691
|
+
* @see beforeRedirect
|
|
2692
|
+
*/
|
|
2693
|
+
onRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2687
2694
|
/** Whether to send cookies and authorization headers with cross-origin requests */
|
|
2688
2695
|
withCredentials?: boolean;
|
|
2689
2696
|
/** Proxy configuration (URL string or detailed options) */
|
|
@@ -3233,6 +3240,8 @@ export interface RezoDefaultOptions {
|
|
|
3233
3240
|
* ```
|
|
3234
3241
|
*/
|
|
3235
3242
|
beforeRedirect?: RezoHttpRequest["beforeRedirect"];
|
|
3243
|
+
/** Alias for beforeRedirect */
|
|
3244
|
+
onRedirect?: RezoHttpRequest["onRedirect"];
|
|
3236
3245
|
/** Array of functions to transform request data */
|
|
3237
3246
|
transformRequest?: RezoHttpRequest["transformRequest"];
|
|
3238
3247
|
/** Array of functions to transform response data */
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -1934,6 +1934,8 @@ export interface RezoConfig {
|
|
|
1934
1934
|
* ```
|
|
1935
1935
|
*/
|
|
1936
1936
|
beforeRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
|
+
/** Alias for beforeRedirect */
|
|
1938
|
+
onRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
1939
|
/** Character encoding for request body and response data */
|
|
1938
1940
|
encoding?: BufferEncoding;
|
|
1939
1941
|
/**
|
|
@@ -2684,6 +2686,11 @@ export interface RezoRequestConfig<D = any> {
|
|
|
2684
2686
|
* ```
|
|
2685
2687
|
*/
|
|
2686
2688
|
beforeRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2689
|
+
/**
|
|
2690
|
+
* Alias for beforeRedirect - callback invoked when a redirect response is received.
|
|
2691
|
+
* @see beforeRedirect
|
|
2692
|
+
*/
|
|
2693
|
+
onRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2687
2694
|
/** Whether to send cookies and authorization headers with cross-origin requests */
|
|
2688
2695
|
withCredentials?: boolean;
|
|
2689
2696
|
/** Proxy configuration (URL string or detailed options) */
|
|
@@ -3233,6 +3240,8 @@ export interface RezoDefaultOptions {
|
|
|
3233
3240
|
* ```
|
|
3234
3241
|
*/
|
|
3235
3242
|
beforeRedirect?: RezoHttpRequest["beforeRedirect"];
|
|
3243
|
+
/** Alias for beforeRedirect */
|
|
3244
|
+
onRedirect?: RezoHttpRequest["onRedirect"];
|
|
3236
3245
|
/** Array of functions to transform request data */
|
|
3237
3246
|
transformRequest?: RezoHttpRequest["transformRequest"];
|
|
3238
3247
|
/** Array of functions to transform response data */
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -1934,6 +1934,8 @@ export interface RezoConfig {
|
|
|
1934
1934
|
* ```
|
|
1935
1935
|
*/
|
|
1936
1936
|
beforeRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
|
+
/** Alias for beforeRedirect */
|
|
1938
|
+
onRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
1939
|
/** Character encoding for request body and response data */
|
|
1938
1940
|
encoding?: BufferEncoding;
|
|
1939
1941
|
/**
|
|
@@ -2684,6 +2686,11 @@ export interface RezoRequestConfig<D = any> {
|
|
|
2684
2686
|
* ```
|
|
2685
2687
|
*/
|
|
2686
2688
|
beforeRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2689
|
+
/**
|
|
2690
|
+
* Alias for beforeRedirect - callback invoked when a redirect response is received.
|
|
2691
|
+
* @see beforeRedirect
|
|
2692
|
+
*/
|
|
2693
|
+
onRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2687
2694
|
/** Whether to send cookies and authorization headers with cross-origin requests */
|
|
2688
2695
|
withCredentials?: boolean;
|
|
2689
2696
|
/** Proxy configuration (URL string or detailed options) */
|
|
@@ -3233,6 +3240,8 @@ export interface RezoDefaultOptions {
|
|
|
3233
3240
|
* ```
|
|
3234
3241
|
*/
|
|
3235
3242
|
beforeRedirect?: RezoHttpRequest["beforeRedirect"];
|
|
3243
|
+
/** Alias for beforeRedirect */
|
|
3244
|
+
onRedirect?: RezoHttpRequest["onRedirect"];
|
|
3236
3245
|
/** Array of functions to transform request data */
|
|
3237
3246
|
transformRequest?: RezoHttpRequest["transformRequest"];
|
|
3238
3247
|
/** Array of functions to transform response data */
|
|
@@ -1934,6 +1934,8 @@ export interface RezoConfig {
|
|
|
1934
1934
|
* ```
|
|
1935
1935
|
*/
|
|
1936
1936
|
beforeRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
|
+
/** Alias for beforeRedirect */
|
|
1938
|
+
onRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
1939
|
/** Character encoding for request body and response data */
|
|
1938
1940
|
encoding?: BufferEncoding;
|
|
1939
1941
|
/**
|
|
@@ -2684,6 +2686,11 @@ export interface RezoRequestConfig<D = any> {
|
|
|
2684
2686
|
* ```
|
|
2685
2687
|
*/
|
|
2686
2688
|
beforeRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2689
|
+
/**
|
|
2690
|
+
* Alias for beforeRedirect - callback invoked when a redirect response is received.
|
|
2691
|
+
* @see beforeRedirect
|
|
2692
|
+
*/
|
|
2693
|
+
onRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2687
2694
|
/** Whether to send cookies and authorization headers with cross-origin requests */
|
|
2688
2695
|
withCredentials?: boolean;
|
|
2689
2696
|
/** Proxy configuration (URL string or detailed options) */
|
|
@@ -3233,6 +3240,8 @@ export interface RezoDefaultOptions {
|
|
|
3233
3240
|
* ```
|
|
3234
3241
|
*/
|
|
3235
3242
|
beforeRedirect?: RezoHttpRequest["beforeRedirect"];
|
|
3243
|
+
/** Alias for beforeRedirect */
|
|
3244
|
+
onRedirect?: RezoHttpRequest["onRedirect"];
|
|
3236
3245
|
/** Array of functions to transform request data */
|
|
3237
3246
|
transformRequest?: RezoHttpRequest["transformRequest"];
|
|
3238
3247
|
/** Array of functions to transform response data */
|
|
@@ -1934,6 +1934,8 @@ export interface RezoConfig {
|
|
|
1934
1934
|
* ```
|
|
1935
1935
|
*/
|
|
1936
1936
|
beforeRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
|
+
/** Alias for beforeRedirect */
|
|
1938
|
+
onRedirect?: RezoRequestConfig["beforeRedirect"];
|
|
1937
1939
|
/** Character encoding for request body and response data */
|
|
1938
1940
|
encoding?: BufferEncoding;
|
|
1939
1941
|
/**
|
|
@@ -2684,6 +2686,11 @@ export interface RezoRequestConfig<D = any> {
|
|
|
2684
2686
|
* ```
|
|
2685
2687
|
*/
|
|
2686
2688
|
beforeRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2689
|
+
/**
|
|
2690
|
+
* Alias for beforeRedirect - callback invoked when a redirect response is received.
|
|
2691
|
+
* @see beforeRedirect
|
|
2692
|
+
*/
|
|
2693
|
+
onRedirect?: (options: OnRedirectOptions) => OnRedirectResponse;
|
|
2687
2694
|
/** Whether to send cookies and authorization headers with cross-origin requests */
|
|
2688
2695
|
withCredentials?: boolean;
|
|
2689
2696
|
/** Proxy configuration (URL string or detailed options) */
|
|
@@ -3233,6 +3240,8 @@ export interface RezoDefaultOptions {
|
|
|
3233
3240
|
* ```
|
|
3234
3241
|
*/
|
|
3235
3242
|
beforeRedirect?: RezoHttpRequest["beforeRedirect"];
|
|
3243
|
+
/** Alias for beforeRedirect */
|
|
3244
|
+
onRedirect?: RezoHttpRequest["onRedirect"];
|
|
3236
3245
|
/** Array of functions to transform request data */
|
|
3237
3246
|
transformRequest?: RezoHttpRequest["transformRequest"];
|
|
3238
3247
|
/** Array of functions to transform response data */
|
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_ey9wal = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_ey9wal.Crawler;;
|
|
3
|
+
const _mod_1a0svj = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_1a0svj.CrawlerOptions;;
|
|
5
|
+
const _mod_ldpz72 = require('../cache/file-cacher.cjs');
|
|
6
|
+
exports.FileCacher = _mod_ldpz72.FileCacher;;
|
|
7
|
+
const _mod_n14nrr = require('../cache/url-store.cjs');
|
|
8
|
+
exports.UrlStore = _mod_n14nrr.UrlStore;;
|
|
9
|
+
const _mod_cg7bvo = require('./addon/oxylabs/index.cjs');
|
|
10
|
+
exports.Oxylabs = _mod_cg7bvo.Oxylabs;;
|
|
11
|
+
const _mod_06iufd = require('./addon/oxylabs/options.cjs');
|
|
12
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_06iufd.OXYLABS_BROWSER_TYPES;
|
|
13
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_06iufd.OXYLABS_COMMON_LOCALES;
|
|
14
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_06iufd.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
15
|
+
exports.OXYLABS_US_STATES = _mod_06iufd.OXYLABS_US_STATES;
|
|
16
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_06iufd.OXYLABS_EUROPEAN_COUNTRIES;
|
|
17
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_06iufd.OXYLABS_ASIAN_COUNTRIES;
|
|
18
|
+
exports.getRandomOxylabsBrowserType = _mod_06iufd.getRandomBrowserType;
|
|
19
|
+
exports.getRandomOxylabsLocale = _mod_06iufd.getRandomLocale;
|
|
20
|
+
exports.getRandomOxylabsGeoLocation = _mod_06iufd.getRandomGeoLocation;;
|
|
21
|
+
const _mod_1mm4n9 = require('./addon/decodo/index.cjs');
|
|
22
|
+
exports.Decodo = _mod_1mm4n9.Decodo;;
|
|
23
|
+
const _mod_hramg2 = require('./addon/decodo/options.cjs');
|
|
24
|
+
exports.DECODO_DEVICE_TYPES = _mod_hramg2.DECODO_DEVICE_TYPES;
|
|
25
|
+
exports.DECODO_HEADLESS_MODES = _mod_hramg2.DECODO_HEADLESS_MODES;
|
|
26
|
+
exports.DECODO_COMMON_LOCALES = _mod_hramg2.DECODO_COMMON_LOCALES;
|
|
27
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_hramg2.DECODO_COMMON_COUNTRIES;
|
|
28
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_hramg2.DECODO_EUROPEAN_COUNTRIES;
|
|
29
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_hramg2.DECODO_ASIAN_COUNTRIES;
|
|
30
|
+
exports.DECODO_US_STATES = _mod_hramg2.DECODO_US_STATES;
|
|
31
|
+
exports.DECODO_COMMON_CITIES = _mod_hramg2.DECODO_COMMON_CITIES;
|
|
32
|
+
exports.getRandomDecodoDeviceType = _mod_hramg2.getRandomDeviceType;
|
|
33
|
+
exports.getRandomDecodoLocale = _mod_hramg2.getRandomLocale;
|
|
34
|
+
exports.getRandomDecodoCountry = _mod_hramg2.getRandomCountry;
|
|
35
|
+
exports.getRandomDecodoCity = _mod_hramg2.getRandomCity;
|
|
36
|
+
exports.generateDecodoSessionId = _mod_hramg2.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_mpoy0o = require('./manager.cjs');
|
|
5
|
+
exports.ProxyManager = _mod_mpoy0o.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_aupzai = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_aupzai.RezoQueue;;
|
|
3
|
+
const _mod_6g163q = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_6g163q.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_6g163q.extractDomain;;
|
|
6
|
+
const _mod_sqrola = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_sqrola.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_sqrola.HttpMethodPriority;;
|
|
@@ -596,6 +596,9 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
|
|
|
596
596
|
if (requestOptions.beforeRedirect || defaultOptions.beforeRedirect) {
|
|
597
597
|
config.beforeRedirect = requestOptions.beforeRedirect || defaultOptions.beforeRedirect;
|
|
598
598
|
}
|
|
599
|
+
if (requestOptions.onRedirect || defaultOptions.onRedirect) {
|
|
600
|
+
config.onRedirect = requestOptions.onRedirect || defaultOptions.onRedirect;
|
|
601
|
+
}
|
|
599
602
|
config.requestCookies = [];
|
|
600
603
|
config.responseCookies = {
|
|
601
604
|
array: [],
|
|
@@ -596,6 +596,9 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
|
|
|
596
596
|
if (requestOptions.beforeRedirect || defaultOptions.beforeRedirect) {
|
|
597
597
|
config.beforeRedirect = requestOptions.beforeRedirect || defaultOptions.beforeRedirect;
|
|
598
598
|
}
|
|
599
|
+
if (requestOptions.onRedirect || defaultOptions.onRedirect) {
|
|
600
|
+
config.onRedirect = requestOptions.onRedirect || defaultOptions.onRedirect;
|
|
601
|
+
}
|
|
599
602
|
config.requestCookies = [];
|
|
600
603
|
config.responseCookies = {
|
|
601
604
|
array: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
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",
|