rezo 1.0.34 → 1.0.36
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 +2 -0
- package/dist/adapters/entries/fetch.d.ts +2 -0
- package/dist/adapters/entries/http.d.ts +2 -0
- package/dist/adapters/entries/http2.d.ts +2 -0
- package/dist/adapters/entries/react-native.d.ts +2 -0
- package/dist/adapters/entries/xhr.d.ts +2 -0
- package/dist/adapters/fetch.cjs +1 -1
- package/dist/adapters/fetch.js +1 -1
- package/dist/adapters/index.cjs +6 -6
- package/dist/adapters/xhr.cjs +1 -3
- package/dist/adapters/xhr.js +1 -3
- package/dist/cache/index.cjs +13 -13
- package/dist/crawler.d.ts +2 -0
- package/dist/entries/crawler.cjs +5 -5
- package/dist/index.cjs +24 -24
- package/dist/index.d.ts +2 -0
- package/dist/platform/browser.d.ts +2 -0
- package/dist/platform/bun.d.ts +2 -0
- package/dist/platform/deno.d.ts +2 -0
- package/dist/platform/node.d.ts +2 -0
- package/dist/platform/react-native.d.ts +2 -0
- package/dist/platform/worker.d.ts +2 -0
- package/dist/plugin/index.cjs +36 -36
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +8 -8
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/utils/http-config.cjs +1 -0
- package/dist/utils/http-config.js +1 -0
- package/package.json +1 -1
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
package/dist/adapters/fetch.cjs
CHANGED
|
@@ -691,7 +691,7 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
|
|
|
691
691
|
body: preparedBody,
|
|
692
692
|
signal: abortController.signal,
|
|
693
693
|
redirect: "manual",
|
|
694
|
-
credentials: config.
|
|
694
|
+
credentials: config.withCredentials ? "include" : "omit"
|
|
695
695
|
};
|
|
696
696
|
let response;
|
|
697
697
|
try {
|
package/dist/adapters/fetch.js
CHANGED
|
@@ -691,7 +691,7 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
|
|
|
691
691
|
body: preparedBody,
|
|
692
692
|
signal: abortController.signal,
|
|
693
693
|
redirect: "manual",
|
|
694
|
-
credentials: config.
|
|
694
|
+
credentials: config.withCredentials ? "include" : "omit"
|
|
695
695
|
};
|
|
696
696
|
let response;
|
|
697
697
|
try {
|
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_0uwppv = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_0uwppv.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_0uwppv.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_0uwppv.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_0uwppv.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_0uwppv.selectAdapter;;
|
package/dist/adapters/xhr.cjs
CHANGED
|
@@ -372,9 +372,7 @@ function executeSingleXHRRequest(config, fetchOptions, timing, streamResult, dow
|
|
|
372
372
|
if (config.timeout) {
|
|
373
373
|
xhr.timeout = config.timeout;
|
|
374
374
|
}
|
|
375
|
-
|
|
376
|
-
xhr.withCredentials = true;
|
|
377
|
-
}
|
|
375
|
+
xhr.withCredentials = config.withCredentials === true;
|
|
378
376
|
const eventEmitter = streamResult || downloadResult || uploadResult;
|
|
379
377
|
if (eventEmitter) {
|
|
380
378
|
const reqHeaders = fetchOptions.headers instanceof RezoHeaders ? fetchOptions.headers.toObject() : fetchOptions.headers || {};
|
package/dist/adapters/xhr.js
CHANGED
|
@@ -372,9 +372,7 @@ function executeSingleXHRRequest(config, fetchOptions, timing, streamResult, dow
|
|
|
372
372
|
if (config.timeout) {
|
|
373
373
|
xhr.timeout = config.timeout;
|
|
374
374
|
}
|
|
375
|
-
|
|
376
|
-
xhr.withCredentials = true;
|
|
377
|
-
}
|
|
375
|
+
xhr.withCredentials = config.withCredentials === true;
|
|
378
376
|
const eventEmitter = streamResult || downloadResult || uploadResult;
|
|
379
377
|
if (eventEmitter) {
|
|
380
378
|
const reqHeaders = fetchOptions.headers instanceof RezoHeaders ? fetchOptions.headers.toObject() : fetchOptions.headers || {};
|
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_b0oo9m = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_b0oo9m.LRUCache;;
|
|
3
|
+
const _mod_h9tgni = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_h9tgni.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_h9tgni.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_h9tgni.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_aevbf9 = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_aevbf9.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_aevbf9.normalizeResponseCacheConfig;;
|
|
10
|
+
const _mod_y2allt = require('./file-cacher.cjs');
|
|
11
|
+
exports.FileCacher = _mod_y2allt.FileCacher;;
|
|
12
|
+
const _mod_hevuhh = require('./url-store.cjs');
|
|
13
|
+
exports.UrlStore = _mod_hevuhh.UrlStore;;
|
package/dist/crawler.d.ts
CHANGED
|
@@ -1771,6 +1771,8 @@ export interface RezoConfig {
|
|
|
1771
1771
|
};
|
|
1772
1772
|
/** @description Enable cookie jar for session management */
|
|
1773
1773
|
enableCookieJar?: boolean;
|
|
1774
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1775
|
+
withCredentials?: boolean;
|
|
1774
1776
|
/** @description Feature flags for adapter capabilities */
|
|
1775
1777
|
features?: {
|
|
1776
1778
|
/** @description HTTP/2 support */
|
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_lnc8go = require('../plugin/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_lnc8go.Crawler;;
|
|
3
|
+
const _mod_w9wbqk = require('../plugin/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_w9wbqk.CrawlerOptions;
|
|
5
|
+
exports.Domain = _mod_w9wbqk.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_xkzztz = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_xkzztz.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_xkzztz.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_xkzztz.createDefaultInstance;;
|
|
5
|
+
const _mod_oqvigw = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_oqvigw.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_oqvigw.RezoErrorCode;;
|
|
8
|
+
const _mod_fb4djh = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_fb4djh.RezoHeaders;;
|
|
10
|
+
const _mod_0h34z5 = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_0h34z5.RezoFormData;;
|
|
12
|
+
const _mod_c1ukg1 = require('./utils/cookies.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_c1ukg1.RezoCookieJar;
|
|
14
|
+
exports.Cookie = _mod_c1ukg1.Cookie;;
|
|
15
|
+
const _mod_06t0jk = require('./core/hooks.cjs');
|
|
16
|
+
exports.createDefaultHooks = _mod_06t0jk.createDefaultHooks;
|
|
17
|
+
exports.mergeHooks = _mod_06t0jk.mergeHooks;;
|
|
18
|
+
const _mod_akttew = require('./proxy/manager.cjs');
|
|
19
|
+
exports.ProxyManager = _mod_akttew.ProxyManager;;
|
|
20
|
+
const _mod_9zy2my = require('./queue/index.cjs');
|
|
21
|
+
exports.RezoQueue = _mod_9zy2my.RezoQueue;
|
|
22
|
+
exports.HttpQueue = _mod_9zy2my.HttpQueue;
|
|
23
|
+
exports.Priority = _mod_9zy2my.Priority;
|
|
24
|
+
exports.HttpMethodPriority = _mod_9zy2my.HttpMethodPriority;;
|
|
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
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
|
@@ -1563,6 +1563,8 @@ export interface RezoConfig {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
/** @description Enable cookie jar for session management */
|
|
1565
1565
|
enableCookieJar?: boolean;
|
|
1566
|
+
/** @description Send cookies with cross-origin requests (matches Axios withCredentials). Default: false */
|
|
1567
|
+
withCredentials?: boolean;
|
|
1566
1568
|
/** @description Feature flags for adapter capabilities */
|
|
1567
1569
|
features?: {
|
|
1568
1570
|
/** @description HTTP/2 support */
|
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_aurudk = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_aurudk.Crawler;;
|
|
3
|
+
const _mod_v8pmzf = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_v8pmzf.CrawlerOptions;;
|
|
5
|
+
const _mod_41vmvs = require('../cache/file-cacher.cjs');
|
|
6
|
+
exports.FileCacher = _mod_41vmvs.FileCacher;;
|
|
7
|
+
const _mod_oowfwr = require('../cache/url-store.cjs');
|
|
8
|
+
exports.UrlStore = _mod_oowfwr.UrlStore;;
|
|
9
|
+
const _mod_mczhjw = require('./addon/oxylabs/index.cjs');
|
|
10
|
+
exports.Oxylabs = _mod_mczhjw.Oxylabs;;
|
|
11
|
+
const _mod_2p4yuc = require('./addon/oxylabs/options.cjs');
|
|
12
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_2p4yuc.OXYLABS_BROWSER_TYPES;
|
|
13
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_2p4yuc.OXYLABS_COMMON_LOCALES;
|
|
14
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_2p4yuc.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
15
|
+
exports.OXYLABS_US_STATES = _mod_2p4yuc.OXYLABS_US_STATES;
|
|
16
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_2p4yuc.OXYLABS_EUROPEAN_COUNTRIES;
|
|
17
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_2p4yuc.OXYLABS_ASIAN_COUNTRIES;
|
|
18
|
+
exports.getRandomOxylabsBrowserType = _mod_2p4yuc.getRandomBrowserType;
|
|
19
|
+
exports.getRandomOxylabsLocale = _mod_2p4yuc.getRandomLocale;
|
|
20
|
+
exports.getRandomOxylabsGeoLocation = _mod_2p4yuc.getRandomGeoLocation;;
|
|
21
|
+
const _mod_qut8vm = require('./addon/decodo/index.cjs');
|
|
22
|
+
exports.Decodo = _mod_qut8vm.Decodo;;
|
|
23
|
+
const _mod_q5fzo0 = require('./addon/decodo/options.cjs');
|
|
24
|
+
exports.DECODO_DEVICE_TYPES = _mod_q5fzo0.DECODO_DEVICE_TYPES;
|
|
25
|
+
exports.DECODO_HEADLESS_MODES = _mod_q5fzo0.DECODO_HEADLESS_MODES;
|
|
26
|
+
exports.DECODO_COMMON_LOCALES = _mod_q5fzo0.DECODO_COMMON_LOCALES;
|
|
27
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_q5fzo0.DECODO_COMMON_COUNTRIES;
|
|
28
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_q5fzo0.DECODO_EUROPEAN_COUNTRIES;
|
|
29
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_q5fzo0.DECODO_ASIAN_COUNTRIES;
|
|
30
|
+
exports.DECODO_US_STATES = _mod_q5fzo0.DECODO_US_STATES;
|
|
31
|
+
exports.DECODO_COMMON_CITIES = _mod_q5fzo0.DECODO_COMMON_CITIES;
|
|
32
|
+
exports.getRandomDecodoDeviceType = _mod_q5fzo0.getRandomDeviceType;
|
|
33
|
+
exports.getRandomDecodoLocale = _mod_q5fzo0.getRandomLocale;
|
|
34
|
+
exports.getRandomDecodoCountry = _mod_q5fzo0.getRandomCountry;
|
|
35
|
+
exports.getRandomDecodoCity = _mod_q5fzo0.getRandomCity;
|
|
36
|
+
exports.generateDecodoSessionId = _mod_q5fzo0.generateSessionId;;
|
package/dist/proxy/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@ const { SocksProxyAgent: RezoSocksProxy } = require("socks-proxy-agent");
|
|
|
2
2
|
const { HttpsProxyAgent: RezoHttpsSocks } = require("https-proxy-agent");
|
|
3
3
|
const { HttpProxyAgent: RezoHttpSocks } = require("http-proxy-agent");
|
|
4
4
|
const { parseProxyString } = require('./parse.cjs');
|
|
5
|
-
const
|
|
6
|
-
exports.ProxyManager =
|
|
7
|
-
const
|
|
8
|
-
exports.parseProxyString =
|
|
5
|
+
const _mod_yfcw4i = require('./manager.cjs');
|
|
6
|
+
exports.ProxyManager = _mod_yfcw4i.ProxyManager;;
|
|
7
|
+
const _mod_3o6to5 = require('./parse.cjs');
|
|
8
|
+
exports.parseProxyString = _mod_3o6to5.parseProxyString;;
|
|
9
9
|
function createOptions(uri, opts) {
|
|
10
10
|
if (uri instanceof URL || typeof uri === "string") {
|
|
11
11
|
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_kpj84p = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_kpj84p.RezoQueue;;
|
|
3
|
+
const _mod_qacfqg = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_qacfqg.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_qacfqg.extractDomain;;
|
|
6
|
+
const _mod_lbq7hp = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_lbq7hp.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_lbq7hp.HttpMethodPriority;;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.UniversalEventEmitter =
|
|
3
|
-
const
|
|
4
|
-
exports.UniversalStreamResponse =
|
|
5
|
-
exports.StreamResponse =
|
|
6
|
-
const
|
|
7
|
-
exports.UniversalDownloadResponse =
|
|
8
|
-
exports.DownloadResponse =
|
|
9
|
-
const
|
|
10
|
-
exports.UniversalUploadResponse =
|
|
11
|
-
exports.UploadResponse =
|
|
1
|
+
const _mod_0rm12v = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_0rm12v.UniversalEventEmitter;;
|
|
3
|
+
const _mod_17tpqu = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_17tpqu.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_17tpqu.StreamResponse;;
|
|
6
|
+
const _mod_l0vc60 = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_l0vc60.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_l0vc60.DownloadResponse;;
|
|
9
|
+
const _mod_yp4ki9 = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_yp4ki9.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_yp4ki9.UploadResponse;;
|
|
@@ -585,6 +585,7 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
|
|
|
585
585
|
retryAttempts: 0,
|
|
586
586
|
timeout: typeof requestOptions.timeout === "number" ? requestOptions.timeout : null,
|
|
587
587
|
enableCookieJar: typeof defaultOptions.enableCookieJar === "boolean" ? defaultOptions.enableCookieJar : true,
|
|
588
|
+
withCredentials: typeof withCredentials === "boolean" ? withCredentials : typeof defaultOptions.withCredentials === "boolean" ? defaultOptions.withCredentials : false,
|
|
588
589
|
useCookies: typeof requestOptions.useCookies === "boolean" ? requestOptions.useCookies : true,
|
|
589
590
|
cookieJar: requestOptions.jar || jar,
|
|
590
591
|
retry: {
|
|
@@ -585,6 +585,7 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
|
|
|
585
585
|
retryAttempts: 0,
|
|
586
586
|
timeout: typeof requestOptions.timeout === "number" ? requestOptions.timeout : null,
|
|
587
587
|
enableCookieJar: typeof defaultOptions.enableCookieJar === "boolean" ? defaultOptions.enableCookieJar : true,
|
|
588
|
+
withCredentials: typeof withCredentials === "boolean" ? withCredentials : typeof defaultOptions.withCredentials === "boolean" ? defaultOptions.withCredentials : false,
|
|
588
589
|
useCookies: typeof requestOptions.useCookies === "boolean" ? requestOptions.useCookies : true,
|
|
589
590
|
cookieJar: requestOptions.jar || jar,
|
|
590
591
|
retry: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
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",
|