rezo 1.0.34 → 1.0.35
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_o75m7k = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_o75m7k.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_o75m7k.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_o75m7k.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_o75m7k.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_o75m7k.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_p4awzw = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_p4awzw.LRUCache;;
|
|
3
|
+
const _mod_t72igl = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_t72igl.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_t72igl.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_t72igl.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_sna5jd = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_sna5jd.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_sna5jd.normalizeResponseCacheConfig;;
|
|
10
|
+
const _mod_s7dgtn = require('./file-cacher.cjs');
|
|
11
|
+
exports.FileCacher = _mod_s7dgtn.FileCacher;;
|
|
12
|
+
const _mod_cgv9f5 = require('./url-store.cjs');
|
|
13
|
+
exports.UrlStore = _mod_cgv9f5.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_ervg56 = require('../plugin/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_ervg56.Crawler;;
|
|
3
|
+
const _mod_lsqlvj = require('../plugin/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_lsqlvj.CrawlerOptions;
|
|
5
|
+
exports.Domain = _mod_lsqlvj.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_t8rr5i = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_t8rr5i.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_t8rr5i.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_t8rr5i.createDefaultInstance;;
|
|
5
|
+
const _mod_s3hurf = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_s3hurf.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_s3hurf.RezoErrorCode;;
|
|
8
|
+
const _mod_1apkpq = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_1apkpq.RezoHeaders;;
|
|
10
|
+
const _mod_f8erho = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_f8erho.RezoFormData;;
|
|
12
|
+
const _mod_k0ull9 = require('./utils/cookies.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_k0ull9.RezoCookieJar;
|
|
14
|
+
exports.Cookie = _mod_k0ull9.Cookie;;
|
|
15
|
+
const _mod_ffegae = require('./core/hooks.cjs');
|
|
16
|
+
exports.createDefaultHooks = _mod_ffegae.createDefaultHooks;
|
|
17
|
+
exports.mergeHooks = _mod_ffegae.mergeHooks;;
|
|
18
|
+
const _mod_bwq8ak = require('./proxy/manager.cjs');
|
|
19
|
+
exports.ProxyManager = _mod_bwq8ak.ProxyManager;;
|
|
20
|
+
const _mod_zzhhmv = require('./queue/index.cjs');
|
|
21
|
+
exports.RezoQueue = _mod_zzhhmv.RezoQueue;
|
|
22
|
+
exports.HttpQueue = _mod_zzhhmv.HttpQueue;
|
|
23
|
+
exports.Priority = _mod_zzhhmv.Priority;
|
|
24
|
+
exports.HttpMethodPriority = _mod_zzhhmv.HttpMethodPriority;;
|
|
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_0tcja9 = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_0tcja9.Crawler;;
|
|
3
|
+
const _mod_06951s = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_06951s.CrawlerOptions;;
|
|
5
|
+
const _mod_25luuj = require('../cache/file-cacher.cjs');
|
|
6
|
+
exports.FileCacher = _mod_25luuj.FileCacher;;
|
|
7
|
+
const _mod_mkhjp3 = require('../cache/url-store.cjs');
|
|
8
|
+
exports.UrlStore = _mod_mkhjp3.UrlStore;;
|
|
9
|
+
const _mod_lw5slr = require('./addon/oxylabs/index.cjs');
|
|
10
|
+
exports.Oxylabs = _mod_lw5slr.Oxylabs;;
|
|
11
|
+
const _mod_g73yro = require('./addon/oxylabs/options.cjs');
|
|
12
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_g73yro.OXYLABS_BROWSER_TYPES;
|
|
13
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_g73yro.OXYLABS_COMMON_LOCALES;
|
|
14
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_g73yro.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
15
|
+
exports.OXYLABS_US_STATES = _mod_g73yro.OXYLABS_US_STATES;
|
|
16
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_g73yro.OXYLABS_EUROPEAN_COUNTRIES;
|
|
17
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_g73yro.OXYLABS_ASIAN_COUNTRIES;
|
|
18
|
+
exports.getRandomOxylabsBrowserType = _mod_g73yro.getRandomBrowserType;
|
|
19
|
+
exports.getRandomOxylabsLocale = _mod_g73yro.getRandomLocale;
|
|
20
|
+
exports.getRandomOxylabsGeoLocation = _mod_g73yro.getRandomGeoLocation;;
|
|
21
|
+
const _mod_krq9x2 = require('./addon/decodo/index.cjs');
|
|
22
|
+
exports.Decodo = _mod_krq9x2.Decodo;;
|
|
23
|
+
const _mod_8mpj7i = require('./addon/decodo/options.cjs');
|
|
24
|
+
exports.DECODO_DEVICE_TYPES = _mod_8mpj7i.DECODO_DEVICE_TYPES;
|
|
25
|
+
exports.DECODO_HEADLESS_MODES = _mod_8mpj7i.DECODO_HEADLESS_MODES;
|
|
26
|
+
exports.DECODO_COMMON_LOCALES = _mod_8mpj7i.DECODO_COMMON_LOCALES;
|
|
27
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_8mpj7i.DECODO_COMMON_COUNTRIES;
|
|
28
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_8mpj7i.DECODO_EUROPEAN_COUNTRIES;
|
|
29
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_8mpj7i.DECODO_ASIAN_COUNTRIES;
|
|
30
|
+
exports.DECODO_US_STATES = _mod_8mpj7i.DECODO_US_STATES;
|
|
31
|
+
exports.DECODO_COMMON_CITIES = _mod_8mpj7i.DECODO_COMMON_CITIES;
|
|
32
|
+
exports.getRandomDecodoDeviceType = _mod_8mpj7i.getRandomDeviceType;
|
|
33
|
+
exports.getRandomDecodoLocale = _mod_8mpj7i.getRandomLocale;
|
|
34
|
+
exports.getRandomDecodoCountry = _mod_8mpj7i.getRandomCountry;
|
|
35
|
+
exports.getRandomDecodoCity = _mod_8mpj7i.getRandomCity;
|
|
36
|
+
exports.generateDecodoSessionId = _mod_8mpj7i.generateSessionId;;
|
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_loka58 = require('./manager.cjs');
|
|
6
|
+
exports.ProxyManager = _mod_loka58.ProxyManager;;
|
|
7
|
+
const _mod_yt6s7c = require('./parse.cjs');
|
|
8
|
+
exports.parseProxyString = _mod_yt6s7c.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_z5coz3 = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_z5coz3.RezoQueue;;
|
|
3
|
+
const _mod_cq6ew9 = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_cq6ew9.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_cq6ew9.extractDomain;;
|
|
6
|
+
const _mod_r8a8fv = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_r8a8fv.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_r8a8fv.HttpMethodPriority;;
|
|
@@ -1,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_ltkfjk = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_ltkfjk.UniversalEventEmitter;;
|
|
3
|
+
const _mod_qstsx5 = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_qstsx5.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_qstsx5.StreamResponse;;
|
|
6
|
+
const _mod_gw5ov2 = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_gw5ov2.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_gw5ov2.DownloadResponse;;
|
|
9
|
+
const _mod_or37qe = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_or37qe.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_or37qe.UploadResponse;;
|
|
@@ -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.35",
|
|
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",
|