rezo 1.0.111 → 1.0.112
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 +1 -1
- package/dist/adapters/entries/fetch.d.ts +1 -1
- package/dist/adapters/entries/http.d.ts +1 -1
- package/dist/adapters/entries/http2.d.ts +1 -1
- package/dist/adapters/entries/react-native.d.ts +1 -1
- package/dist/adapters/entries/xhr.d.ts +1 -1
- package/dist/adapters/index.cjs +6 -6
- package/dist/cache/index.cjs +9 -9
- package/dist/cookies/cookie-jar.cjs +4 -4
- package/dist/cookies/index.cjs +10 -10
- package/dist/crawler/index.cjs +42 -42
- package/dist/crawler/plugin/index.cjs +1 -1
- package/dist/entries/crawler.cjs +6 -6
- package/dist/index.cjs +44 -44
- package/dist/index.d.ts +1 -1
- package/dist/internal/agents/index.cjs +14 -14
- package/dist/platform/browser.d.ts +1 -1
- package/dist/platform/bun.d.ts +1 -1
- package/dist/platform/deno.d.ts +1 -1
- package/dist/platform/node.d.ts +1 -1
- package/dist/platform/react-native.d.ts +1 -1
- package/dist/platform/worker.d.ts +1 -1
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +9 -9
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/stealth/index.cjs +17 -17
- package/dist/stealth/profiles/index.cjs +10 -10
- package/dist/utils/http-config.cjs +49 -5
- package/dist/utils/http-config.js +49 -5
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/wget/index.cjs +51 -51
- package/package.json +1 -1
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
/**
|
|
5678
5678
|
* cURL Options Configuration
|
|
5679
5679
|
*
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
/**
|
|
5678
5678
|
* Type guard to check if an error is a RezoError instance.
|
|
5679
5679
|
*/
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
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_prb3pg = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_prb3pg.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_prb3pg.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_prb3pg.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_prb3pg.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_prb3pg.selectAdapter;;
|
package/dist/cache/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.LRUCache =
|
|
3
|
-
const
|
|
4
|
-
exports.DNSCache =
|
|
5
|
-
exports.getGlobalDNSCache =
|
|
6
|
-
exports.resetGlobalDNSCache =
|
|
7
|
-
const
|
|
8
|
-
exports.ResponseCache =
|
|
9
|
-
exports.normalizeResponseCacheConfig =
|
|
1
|
+
const _mod_9bk5eo = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_9bk5eo.LRUCache;;
|
|
3
|
+
const _mod_8dpoji = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_8dpoji.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_8dpoji.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_8dpoji.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_1c0qiu = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_1c0qiu.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_1c0qiu.normalizeResponseCacheConfig;;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { CookieJar: TouchCookieJar } = require("tough-cookie");
|
|
2
2
|
const { Cookie } = require('./cookie.cjs');
|
|
3
|
-
const
|
|
4
|
-
exports.Cookie =
|
|
3
|
+
const _mod_tqh4nt = require('./cookie.cjs');
|
|
4
|
+
exports.Cookie = _mod_tqh4nt.Cookie;;
|
|
5
5
|
|
|
6
6
|
class RezoCookieJar extends TouchCookieJar {
|
|
7
7
|
constructor(store, options) {
|
|
@@ -470,7 +470,7 @@ class RezoCookieJar extends TouchCookieJar {
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
const CookieJar = exports.CookieJar = RezoCookieJar;
|
|
473
|
-
const
|
|
474
|
-
exports.Store =
|
|
473
|
+
const _mod_k0apq2 = require("tough-cookie");
|
|
474
|
+
exports.Store = _mod_k0apq2.Store;;
|
|
475
475
|
|
|
476
476
|
exports.RezoCookieJar = RezoCookieJar;
|
package/dist/cookies/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Cookie =
|
|
3
|
-
exports.RezoCookie =
|
|
4
|
-
const
|
|
5
|
-
exports.RezoCookieStore =
|
|
6
|
-
const
|
|
7
|
-
exports.RezoCookieJar =
|
|
8
|
-
exports.CookieJar =
|
|
9
|
-
const
|
|
10
|
-
exports.Store =
|
|
1
|
+
const _mod_24c4ez = require('./cookie.cjs');
|
|
2
|
+
exports.Cookie = _mod_24c4ez.Cookie;
|
|
3
|
+
exports.RezoCookie = _mod_24c4ez.RezoCookie;;
|
|
4
|
+
const _mod_aq48zb = require('./cookie-store.cjs');
|
|
5
|
+
exports.RezoCookieStore = _mod_aq48zb.RezoCookieStore;;
|
|
6
|
+
const _mod_g8pkgx = require('./cookie-jar.cjs');
|
|
7
|
+
exports.RezoCookieJar = _mod_g8pkgx.RezoCookieJar;
|
|
8
|
+
exports.CookieJar = _mod_g8pkgx.CookieJar;;
|
|
9
|
+
const _mod_1tbeyt = require("tough-cookie");
|
|
10
|
+
exports.Store = _mod_1tbeyt.Store;;
|
package/dist/crawler/index.cjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
const
|
|
6
|
-
exports.RobotsTxt =
|
|
7
|
-
const
|
|
8
|
-
exports.FileCacher =
|
|
9
|
-
const
|
|
10
|
-
exports.UrlStore =
|
|
11
|
-
const
|
|
12
|
-
exports.NavigationHistory =
|
|
13
|
-
const
|
|
14
|
-
exports.Oxylabs =
|
|
15
|
-
const
|
|
16
|
-
exports.OXYLABS_BROWSER_TYPES =
|
|
17
|
-
exports.OXYLABS_COMMON_LOCALES =
|
|
18
|
-
exports.OXYLABS_COMMON_GEO_LOCATIONS =
|
|
19
|
-
exports.OXYLABS_US_STATES =
|
|
20
|
-
exports.OXYLABS_EUROPEAN_COUNTRIES =
|
|
21
|
-
exports.OXYLABS_ASIAN_COUNTRIES =
|
|
22
|
-
exports.getRandomOxylabsBrowserType =
|
|
23
|
-
exports.getRandomOxylabsLocale =
|
|
24
|
-
exports.getRandomOxylabsGeoLocation =
|
|
25
|
-
const
|
|
26
|
-
exports.isRestrictedDomain =
|
|
27
|
-
const
|
|
28
|
-
exports.Decodo =
|
|
29
|
-
const
|
|
30
|
-
exports.DECODO_DEVICE_TYPES =
|
|
31
|
-
exports.DECODO_HEADLESS_MODES =
|
|
32
|
-
exports.DECODO_COMMON_LOCALES =
|
|
33
|
-
exports.DECODO_COMMON_COUNTRIES =
|
|
34
|
-
exports.DECODO_EUROPEAN_COUNTRIES =
|
|
35
|
-
exports.DECODO_ASIAN_COUNTRIES =
|
|
36
|
-
exports.DECODO_US_STATES =
|
|
37
|
-
exports.DECODO_COMMON_CITIES =
|
|
38
|
-
exports.getRandomDecodoDeviceType =
|
|
39
|
-
exports.getRandomDecodoLocale =
|
|
40
|
-
exports.getRandomDecodoCountry =
|
|
41
|
-
exports.getRandomDecodoCity =
|
|
42
|
-
exports.generateDecodoSessionId =
|
|
1
|
+
const _mod_xltgnn = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_xltgnn.Crawler;;
|
|
3
|
+
const _mod_3lyccy = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_3lyccy.CrawlerOptions;;
|
|
5
|
+
const _mod_tiwtgr = require('./plugin/robots-txt.cjs');
|
|
6
|
+
exports.RobotsTxt = _mod_tiwtgr.RobotsTxt;;
|
|
7
|
+
const _mod_u78p1m = require('./plugin/file-cacher.cjs');
|
|
8
|
+
exports.FileCacher = _mod_u78p1m.FileCacher;;
|
|
9
|
+
const _mod_z3kel4 = require('./plugin/url-store.cjs');
|
|
10
|
+
exports.UrlStore = _mod_z3kel4.UrlStore;;
|
|
11
|
+
const _mod_3x3gea = require('./plugin/navigation-history.cjs');
|
|
12
|
+
exports.NavigationHistory = _mod_3x3gea.NavigationHistory;;
|
|
13
|
+
const _mod_6aiad9 = require('./addon/oxylabs/index.cjs');
|
|
14
|
+
exports.Oxylabs = _mod_6aiad9.Oxylabs;;
|
|
15
|
+
const _mod_thfq2o = require('./addon/oxylabs/options.cjs');
|
|
16
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_thfq2o.OXYLABS_BROWSER_TYPES;
|
|
17
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_thfq2o.OXYLABS_COMMON_LOCALES;
|
|
18
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_thfq2o.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
19
|
+
exports.OXYLABS_US_STATES = _mod_thfq2o.OXYLABS_US_STATES;
|
|
20
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_thfq2o.OXYLABS_EUROPEAN_COUNTRIES;
|
|
21
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_thfq2o.OXYLABS_ASIAN_COUNTRIES;
|
|
22
|
+
exports.getRandomOxylabsBrowserType = _mod_thfq2o.getRandomBrowserType;
|
|
23
|
+
exports.getRandomOxylabsLocale = _mod_thfq2o.getRandomLocale;
|
|
24
|
+
exports.getRandomOxylabsGeoLocation = _mod_thfq2o.getRandomGeoLocation;;
|
|
25
|
+
const _mod_rx7unc = require('./scraper.cjs');
|
|
26
|
+
exports.isRestrictedDomain = _mod_rx7unc.isRestrictedDomain;;
|
|
27
|
+
const _mod_qx935k = require('./addon/decodo/index.cjs');
|
|
28
|
+
exports.Decodo = _mod_qx935k.Decodo;;
|
|
29
|
+
const _mod_g3bu1h = require('./addon/decodo/options.cjs');
|
|
30
|
+
exports.DECODO_DEVICE_TYPES = _mod_g3bu1h.DECODO_DEVICE_TYPES;
|
|
31
|
+
exports.DECODO_HEADLESS_MODES = _mod_g3bu1h.DECODO_HEADLESS_MODES;
|
|
32
|
+
exports.DECODO_COMMON_LOCALES = _mod_g3bu1h.DECODO_COMMON_LOCALES;
|
|
33
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_g3bu1h.DECODO_COMMON_COUNTRIES;
|
|
34
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_g3bu1h.DECODO_EUROPEAN_COUNTRIES;
|
|
35
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_g3bu1h.DECODO_ASIAN_COUNTRIES;
|
|
36
|
+
exports.DECODO_US_STATES = _mod_g3bu1h.DECODO_US_STATES;
|
|
37
|
+
exports.DECODO_COMMON_CITIES = _mod_g3bu1h.DECODO_COMMON_CITIES;
|
|
38
|
+
exports.getRandomDecodoDeviceType = _mod_g3bu1h.getRandomDeviceType;
|
|
39
|
+
exports.getRandomDecodoLocale = _mod_g3bu1h.getRandomLocale;
|
|
40
|
+
exports.getRandomDecodoCountry = _mod_g3bu1h.getRandomCountry;
|
|
41
|
+
exports.getRandomDecodoCity = _mod_g3bu1h.getRandomCity;
|
|
42
|
+
exports.generateDecodoSessionId = _mod_g3bu1h.generateSessionId;;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=require("./file-cacher.cjs");exports.FileCacher=e.FileCacher;var r=require("./url-store.cjs");exports.UrlStore=r.UrlStore;var o=require("./result-stream.cjs");exports.ResultStream=o.ResultStream;var t=require("./memory-monitor.cjs");exports.MemoryMonitor=t.MemoryMonitor;var a=require("./health-metrics.cjs");exports.HealthMetrics=a.HealthMetrics;var i=require("./capped-map.cjs");exports.CappedMap=i.CappedMap;var
|
|
1
|
+
var e=require("./file-cacher.cjs");exports.FileCacher=e.FileCacher;var r=require("./url-store.cjs");exports.UrlStore=r.UrlStore;var o=require("./result-stream.cjs");exports.ResultStream=o.ResultStream;var t=require("./memory-monitor.cjs");exports.MemoryMonitor=t.MemoryMonitor;var a=require("./health-metrics.cjs");exports.HealthMetrics=a.HealthMetrics;var i=require("./capped-map.cjs");exports.CappedMap=i.CappedMap;var s=require("./capped-array.cjs");exports.CappedArray=s.CappedArray;
|
package/dist/entries/crawler.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
const
|
|
6
|
-
exports.isRestrictedDomain =
|
|
1
|
+
const _mod_cx7zuu = require('../crawler/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_cx7zuu.Crawler;;
|
|
3
|
+
const _mod_n3cz99 = require('../crawler/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_n3cz99.CrawlerOptions;;
|
|
5
|
+
const _mod_fbk8q1 = require('../crawler/scraper.cjs');
|
|
6
|
+
exports.isRestrictedDomain = _mod_fbk8q1.isRestrictedDomain;;
|
package/dist/index.cjs
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
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.CookieJar =
|
|
15
|
-
exports.Cookie =
|
|
16
|
-
exports.Store =
|
|
17
|
-
const
|
|
18
|
-
exports.RezoCookieStore =
|
|
19
|
-
const
|
|
20
|
-
exports.toCurl =
|
|
21
|
-
exports.fromCurl =
|
|
22
|
-
const
|
|
23
|
-
exports.createDefaultHooks =
|
|
24
|
-
exports.mergeHooks =
|
|
25
|
-
const
|
|
26
|
-
exports.RequestInterceptorManager =
|
|
27
|
-
exports.ResponseInterceptorManager =
|
|
28
|
-
const
|
|
29
|
-
exports.ProxyManager =
|
|
30
|
-
const
|
|
31
|
-
exports.RezoStealth =
|
|
32
|
-
const
|
|
33
|
-
exports.listProfiles =
|
|
34
|
-
exports.getProfile =
|
|
35
|
-
exports.getProfilesByFamily =
|
|
36
|
-
const
|
|
37
|
-
exports.RezoQueue =
|
|
38
|
-
exports.HttpQueue =
|
|
39
|
-
exports.RezoHttpQueue =
|
|
40
|
-
exports.Priority =
|
|
41
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_gmk36z = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_gmk36z.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_gmk36z.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_gmk36z.createDefaultInstance;;
|
|
5
|
+
const _mod_2zv1ih = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_2zv1ih.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_2zv1ih.RezoErrorCode;;
|
|
8
|
+
const _mod_6979ys = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_6979ys.RezoHeaders;;
|
|
10
|
+
const _mod_tor32q = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_tor32q.RezoFormData;;
|
|
12
|
+
const _mod_m9al4t = require('./cookies/cookie-jar.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_m9al4t.RezoCookieJar;
|
|
14
|
+
exports.CookieJar = _mod_m9al4t.CookieJar;
|
|
15
|
+
exports.Cookie = _mod_m9al4t.Cookie;
|
|
16
|
+
exports.Store = _mod_m9al4t.Store;;
|
|
17
|
+
const _mod_jeq6od = require('./cookies/cookie-store.cjs');
|
|
18
|
+
exports.RezoCookieStore = _mod_jeq6od.RezoCookieStore;;
|
|
19
|
+
const _mod_ngcvnf = require('./utils/curl.cjs');
|
|
20
|
+
exports.toCurl = _mod_ngcvnf.toCurl;
|
|
21
|
+
exports.fromCurl = _mod_ngcvnf.fromCurl;;
|
|
22
|
+
const _mod_ptirxb = require('./core/hooks.cjs');
|
|
23
|
+
exports.createDefaultHooks = _mod_ptirxb.createDefaultHooks;
|
|
24
|
+
exports.mergeHooks = _mod_ptirxb.mergeHooks;;
|
|
25
|
+
const _mod_c92yye = require('./core/interceptor-manager.cjs');
|
|
26
|
+
exports.RequestInterceptorManager = _mod_c92yye.RequestInterceptorManager;
|
|
27
|
+
exports.ResponseInterceptorManager = _mod_c92yye.ResponseInterceptorManager;;
|
|
28
|
+
const _mod_pvjes5 = require('./proxy/manager.cjs');
|
|
29
|
+
exports.ProxyManager = _mod_pvjes5.ProxyManager;;
|
|
30
|
+
const _mod_bnk8te = require('./stealth/stealth.cjs');
|
|
31
|
+
exports.RezoStealth = _mod_bnk8te.RezoStealth;;
|
|
32
|
+
const _mod_8396aa = require('./stealth/profiles/index.cjs');
|
|
33
|
+
exports.listProfiles = _mod_8396aa.listProfiles;
|
|
34
|
+
exports.getProfile = _mod_8396aa.getProfile;
|
|
35
|
+
exports.getProfilesByFamily = _mod_8396aa.getProfilesByFamily;;
|
|
36
|
+
const _mod_k2jzfn = require('./queue/index.cjs');
|
|
37
|
+
exports.RezoQueue = _mod_k2jzfn.RezoQueue;
|
|
38
|
+
exports.HttpQueue = _mod_k2jzfn.HttpQueue;
|
|
39
|
+
exports.RezoHttpQueue = _mod_k2jzfn.RezoHttpQueue;
|
|
40
|
+
exports.Priority = _mod_k2jzfn.Priority;
|
|
41
|
+
exports.HttpMethodPriority = _mod_k2jzfn.HttpMethodPriority;;
|
|
42
42
|
const { RezoError } = require('./errors/rezo-error.cjs');
|
|
43
43
|
const isRezoError = exports.isRezoError = RezoError.isRezoError;
|
|
44
44
|
const Cancel = exports.Cancel = RezoError;
|
|
@@ -48,9 +48,9 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
48
48
|
};
|
|
49
49
|
const all = exports.all = Promise.all.bind(Promise);
|
|
50
50
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
51
|
-
const
|
|
52
|
-
exports.VERSION =
|
|
53
|
-
exports.PACKAGE_NAME =
|
|
51
|
+
const _mod_ld9jo0 = require('./version.cjs');
|
|
52
|
+
exports.VERSION = _mod_ld9jo0.VERSION;
|
|
53
|
+
exports.PACKAGE_NAME = _mod_ld9jo0.PACKAGE_NAME;;
|
|
54
54
|
const { executeRequest } = require('./adapters/http.cjs');
|
|
55
55
|
const { setGlobalAdapter, createRezoInstance } = require('./core/rezo.cjs');
|
|
56
56
|
setGlobalAdapter(executeRequest);
|
package/dist/index.d.ts
CHANGED
|
@@ -5909,7 +5909,7 @@ export declare function listProfiles(): string[];
|
|
|
5909
5909
|
*
|
|
5910
5910
|
* IMPORTANT: Update these values when bumping package version.
|
|
5911
5911
|
*/
|
|
5912
|
-
export declare const VERSION = "1.0.
|
|
5912
|
+
export declare const VERSION = "1.0.112";
|
|
5913
5913
|
export declare const PACKAGE_NAME = "rezo";
|
|
5914
5914
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5915
5915
|
export declare const Cancel: typeof RezoError;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Agent =
|
|
3
|
-
const
|
|
4
|
-
exports.HttpProxyAgent =
|
|
5
|
-
const
|
|
6
|
-
exports.HttpsProxyAgent =
|
|
7
|
-
const
|
|
8
|
-
exports.SocksProxyAgent =
|
|
9
|
-
const
|
|
10
|
-
exports.SocksClient =
|
|
11
|
-
const
|
|
12
|
-
exports.bunHttp =
|
|
13
|
-
exports.isBunRuntime =
|
|
14
|
-
exports.isBunSocksRequest =
|
|
1
|
+
const _mod_nuak0s = require('./base.cjs');
|
|
2
|
+
exports.Agent = _mod_nuak0s.Agent;;
|
|
3
|
+
const _mod_kqcf2k = require('./http-proxy.cjs');
|
|
4
|
+
exports.HttpProxyAgent = _mod_kqcf2k.HttpProxyAgent;;
|
|
5
|
+
const _mod_iatzla = require('./https-proxy.cjs');
|
|
6
|
+
exports.HttpsProxyAgent = _mod_iatzla.HttpsProxyAgent;;
|
|
7
|
+
const _mod_c17j5x = require('./socks-proxy.cjs');
|
|
8
|
+
exports.SocksProxyAgent = _mod_c17j5x.SocksProxyAgent;;
|
|
9
|
+
const _mod_45ewpl = require('./socks-client.cjs');
|
|
10
|
+
exports.SocksClient = _mod_45ewpl.SocksClient;;
|
|
11
|
+
const _mod_dhbdcr = require('./bun-socks-http.cjs');
|
|
12
|
+
exports.bunHttp = _mod_dhbdcr.bunHttp;
|
|
13
|
+
exports.isBunRuntime = _mod_dhbdcr.isBunRuntime;
|
|
14
|
+
exports.isBunSocksRequest = _mod_dhbdcr.isBunSocksRequest;;
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
|
@@ -5673,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5673
5673
|
*
|
|
5674
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5675
5675
|
*/
|
|
5676
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.112";
|
|
5677
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5678
5678
|
export declare const Cancel: typeof RezoError;
|
|
5679
5679
|
export declare const CancelToken: {
|
package/dist/proxy/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const { Agent, HttpProxyAgent, HttpsProxyAgent, SocksProxyAgent } = require('../internal/agents/index.cjs');
|
|
2
2
|
const { parseProxyString } = require('./parse.cjs');
|
|
3
|
-
const
|
|
4
|
-
exports.ProxyManager =
|
|
5
|
-
const
|
|
6
|
-
exports.parseProxyString =
|
|
3
|
+
const _mod_2rwsv3 = require('./manager.cjs');
|
|
4
|
+
exports.ProxyManager = _mod_2rwsv3.ProxyManager;;
|
|
5
|
+
const _mod_3tdb6p = require('./parse.cjs');
|
|
6
|
+
exports.parseProxyString = _mod_3tdb6p.parseProxyString;;
|
|
7
7
|
function createOptions(uri, opts) {
|
|
8
8
|
if (uri instanceof URL || typeof uri === "string") {
|
|
9
9
|
return {
|
package/dist/queue/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.RezoQueue =
|
|
3
|
-
const
|
|
4
|
-
exports.HttpQueue =
|
|
5
|
-
exports.RezoHttpQueue =
|
|
6
|
-
exports.extractDomain =
|
|
7
|
-
const
|
|
8
|
-
exports.Priority =
|
|
9
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_33j3a6 = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_33j3a6.RezoQueue;;
|
|
3
|
+
const _mod_w728jz = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_w728jz.HttpQueue;
|
|
5
|
+
exports.RezoHttpQueue = _mod_w728jz.HttpQueue;
|
|
6
|
+
exports.extractDomain = _mod_w728jz.extractDomain;;
|
|
7
|
+
const _mod_krgkuy = require('./types.cjs');
|
|
8
|
+
exports.Priority = _mod_krgkuy.Priority;
|
|
9
|
+
exports.HttpMethodPriority = _mod_krgkuy.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_u6xonl = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_u6xonl.UniversalEventEmitter;;
|
|
3
|
+
const _mod_jn9op7 = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_jn9op7.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_jn9op7.StreamResponse;;
|
|
6
|
+
const _mod_80oy07 = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_80oy07.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_80oy07.DownloadResponse;;
|
|
9
|
+
const _mod_rv99fc = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_rv99fc.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_rv99fc.UploadResponse;;
|
package/dist/stealth/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.RezoStealth =
|
|
3
|
-
const
|
|
4
|
-
exports.createSecureContext =
|
|
5
|
-
exports.buildTlsOptions =
|
|
6
|
-
const
|
|
7
|
-
exports.resolveProfile =
|
|
8
|
-
exports.detectProfileFromUserAgent =
|
|
9
|
-
const
|
|
10
|
-
exports.getProfile =
|
|
11
|
-
exports.getProfilesByFamily =
|
|
12
|
-
exports.getProfilesByDevice =
|
|
13
|
-
exports.getRandomProfile =
|
|
14
|
-
exports.getRandomProfileByFamily =
|
|
15
|
-
exports.listProfiles =
|
|
16
|
-
exports.listProfilesByFamily =
|
|
17
|
-
exports.PROFILE_REGISTRY =
|
|
1
|
+
const _mod_al07rc = require('./stealth.cjs');
|
|
2
|
+
exports.RezoStealth = _mod_al07rc.RezoStealth;;
|
|
3
|
+
const _mod_suwxkl = require('./tls-fingerprint.cjs');
|
|
4
|
+
exports.createSecureContext = _mod_suwxkl.createSecureContext;
|
|
5
|
+
exports.buildTlsOptions = _mod_suwxkl.buildTlsOptions;;
|
|
6
|
+
const _mod_fq9fbg = require('./resolver.cjs');
|
|
7
|
+
exports.resolveProfile = _mod_fq9fbg.resolveProfile;
|
|
8
|
+
exports.detectProfileFromUserAgent = _mod_fq9fbg.detectProfileFromUserAgent;;
|
|
9
|
+
const _mod_y4ikj0 = require('./profiles/index.cjs');
|
|
10
|
+
exports.getProfile = _mod_y4ikj0.getProfile;
|
|
11
|
+
exports.getProfilesByFamily = _mod_y4ikj0.getProfilesByFamily;
|
|
12
|
+
exports.getProfilesByDevice = _mod_y4ikj0.getProfilesByDevice;
|
|
13
|
+
exports.getRandomProfile = _mod_y4ikj0.getRandomProfile;
|
|
14
|
+
exports.getRandomProfileByFamily = _mod_y4ikj0.getRandomProfileByFamily;
|
|
15
|
+
exports.listProfiles = _mod_y4ikj0.listProfiles;
|
|
16
|
+
exports.listProfilesByFamily = _mod_y4ikj0.listProfilesByFamily;
|
|
17
|
+
exports.PROFILE_REGISTRY = _mod_y4ikj0.PROFILE_REGISTRY;;
|
|
@@ -43,16 +43,16 @@ function getRandomProfileByFamily(family) {
|
|
|
43
43
|
throw new Error(`No profiles found for family: ${family}`);
|
|
44
44
|
return profiles[Math.floor(Math.random() * profiles.length)];
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
exports.expandPseudoOrder =
|
|
48
|
-
const
|
|
49
|
-
exports.CHROME_PROFILES =
|
|
50
|
-
const
|
|
51
|
-
exports.FIREFOX_PROFILES =
|
|
52
|
-
const
|
|
53
|
-
exports.SAFARI_PROFILES =
|
|
54
|
-
const
|
|
55
|
-
exports.EDGE_PROFILES =
|
|
46
|
+
const _mod_irqqan = require('./constants.cjs');
|
|
47
|
+
exports.expandPseudoOrder = _mod_irqqan.expandPseudoOrder;;
|
|
48
|
+
const _mod_ovfn1f = require('./chrome-profiles.cjs');
|
|
49
|
+
exports.CHROME_PROFILES = _mod_ovfn1f.CHROME_PROFILES;;
|
|
50
|
+
const _mod_l1dmq8 = require('./firefox-profiles.cjs');
|
|
51
|
+
exports.FIREFOX_PROFILES = _mod_l1dmq8.FIREFOX_PROFILES;;
|
|
52
|
+
const _mod_oov8i2 = require('./safari-profiles.cjs');
|
|
53
|
+
exports.SAFARI_PROFILES = _mod_oov8i2.SAFARI_PROFILES;;
|
|
54
|
+
const _mod_8i4sbo = require('./edge-profiles.cjs');
|
|
55
|
+
exports.EDGE_PROFILES = _mod_8i4sbo.EDGE_PROFILES;;
|
|
56
56
|
|
|
57
57
|
exports.getProfile = getProfile;
|
|
58
58
|
exports.getProfilesByFamily = getProfilesByFamily;
|
|
@@ -8,6 +8,21 @@ const hasBuffer = typeof Buffer !== "undefined";
|
|
|
8
8
|
function isBuffer(value) {
|
|
9
9
|
return hasBuffer && Buffer.isBuffer(value);
|
|
10
10
|
}
|
|
11
|
+
function isBinaryBody(value) {
|
|
12
|
+
if (value == null)
|
|
13
|
+
return false;
|
|
14
|
+
if (isBuffer(value))
|
|
15
|
+
return true;
|
|
16
|
+
if (value instanceof ArrayBuffer || ArrayBuffer.isView(value))
|
|
17
|
+
return true;
|
|
18
|
+
if (typeof Blob !== "undefined" && value instanceof Blob)
|
|
19
|
+
return true;
|
|
20
|
+
if (typeof ReadableStream !== "undefined" && value instanceof ReadableStream)
|
|
21
|
+
return true;
|
|
22
|
+
if (typeof value.pipe === "function")
|
|
23
|
+
return true;
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
11
26
|
const ERROR_INFO = exports.ERROR_INFO = {
|
|
12
27
|
ECONNREFUSED: {
|
|
13
28
|
code: -111,
|
|
@@ -264,7 +279,7 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
264
279
|
} else {
|
|
265
280
|
fetchOptions.url = options.url;
|
|
266
281
|
}
|
|
267
|
-
let contentType = options.contentType || headers.get("Content-Type") ||
|
|
282
|
+
let contentType = options.contentType || headers.get("Content-Type") || undefined;
|
|
268
283
|
if (addedOptions && addedOptions.customHeaders) {
|
|
269
284
|
headers = addedOptions.customHeaders instanceof RezoHeaders ? addedOptions.customHeaders : new RezoHeaders(addedOptions.customHeaders);
|
|
270
285
|
}
|
|
@@ -333,9 +348,11 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
333
348
|
const isFormData = fetchOptions.body && (fetchOptions.body instanceof FormData || fetchOptions.body instanceof RezoFormData);
|
|
334
349
|
const isURLEncoded = fetchOptions.body && (fetchOptions.body instanceof URLSearchParams || fetchOptions.body instanceof RezoURLSearchParams);
|
|
335
350
|
if (isURLEncoded) {
|
|
336
|
-
contentType = "application/x-www-form-urlencoded";
|
|
337
351
|
fetchOptions.body = fetchOptions.body.toString();
|
|
338
|
-
|
|
352
|
+
if (!contentType) {
|
|
353
|
+
contentType = "application/x-www-form-urlencoded";
|
|
354
|
+
headers.set("Content-Type", contentType);
|
|
355
|
+
}
|
|
339
356
|
}
|
|
340
357
|
if (!isFormData && !isURLEncoded) {
|
|
341
358
|
if (options.multipart || options.json || options.formData || options.form) {
|
|
@@ -433,9 +450,36 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
433
450
|
} else if (type.includes("text/") || type.includes("/javascript")) {
|
|
434
451
|
fetchOptions.body = fetchOptions.body ? typeof fetchOptions.body === "object" ? JSON.stringify(fetchOptions.body) : fetchOptions.body : "";
|
|
435
452
|
headers.set("Content-Type", contentType);
|
|
453
|
+
} else {
|
|
454
|
+
headers.set("Content-Type", contentType);
|
|
455
|
+
if (fetchOptions.body && typeof fetchOptions.body === "object" && !isBinaryBody(fetchOptions.body)) {
|
|
456
|
+
fetchOptions.body = JSON.stringify(fetchOptions.body);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
} else if (forContentType) {
|
|
460
|
+
const body = fetchOptions.body;
|
|
461
|
+
if (body != null && body !== "") {
|
|
462
|
+
if (typeof body === "string") {
|
|
463
|
+
const trimmed = body.trim();
|
|
464
|
+
if (trimmed.startsWith("{") && trimmed.endsWith("}") || trimmed.startsWith("[") && trimmed.endsWith("]")) {
|
|
465
|
+
try {
|
|
466
|
+
JSON.parse(trimmed);
|
|
467
|
+
contentType = "application/json";
|
|
468
|
+
} catch {
|
|
469
|
+
contentType = "text/plain";
|
|
470
|
+
}
|
|
471
|
+
} else if (/^[^=&\s]+=[^&]*(&[^=&\s]+=[^&]*)*$/.test(trimmed)) {
|
|
472
|
+
contentType = "application/x-www-form-urlencoded";
|
|
473
|
+
} else {
|
|
474
|
+
contentType = "text/plain";
|
|
475
|
+
}
|
|
476
|
+
headers.set("Content-Type", contentType);
|
|
477
|
+
} else if (isBinaryBody(body)) {} else if (typeof body === "object") {
|
|
478
|
+
contentType = "application/json";
|
|
479
|
+
headers.set("Content-Type", contentType);
|
|
480
|
+
fetchOptions.body = JSON.stringify(body);
|
|
481
|
+
}
|
|
436
482
|
}
|
|
437
|
-
} else if (contentType && !options.withoutContentType) {
|
|
438
|
-
headers.set("Content-Type", contentType);
|
|
439
483
|
}
|
|
440
484
|
}
|
|
441
485
|
if (options.withoutContentType || isFormData) {
|
|
@@ -8,6 +8,21 @@ const hasBuffer = typeof Buffer !== "undefined";
|
|
|
8
8
|
function isBuffer(value) {
|
|
9
9
|
return hasBuffer && Buffer.isBuffer(value);
|
|
10
10
|
}
|
|
11
|
+
function isBinaryBody(value) {
|
|
12
|
+
if (value == null)
|
|
13
|
+
return false;
|
|
14
|
+
if (isBuffer(value))
|
|
15
|
+
return true;
|
|
16
|
+
if (value instanceof ArrayBuffer || ArrayBuffer.isView(value))
|
|
17
|
+
return true;
|
|
18
|
+
if (typeof Blob !== "undefined" && value instanceof Blob)
|
|
19
|
+
return true;
|
|
20
|
+
if (typeof ReadableStream !== "undefined" && value instanceof ReadableStream)
|
|
21
|
+
return true;
|
|
22
|
+
if (typeof value.pipe === "function")
|
|
23
|
+
return true;
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
11
26
|
export const ERROR_INFO = {
|
|
12
27
|
ECONNREFUSED: {
|
|
13
28
|
code: -111,
|
|
@@ -264,7 +279,7 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
264
279
|
} else {
|
|
265
280
|
fetchOptions.url = options.url;
|
|
266
281
|
}
|
|
267
|
-
let contentType = options.contentType || headers.get("Content-Type") ||
|
|
282
|
+
let contentType = options.contentType || headers.get("Content-Type") || undefined;
|
|
268
283
|
if (addedOptions && addedOptions.customHeaders) {
|
|
269
284
|
headers = addedOptions.customHeaders instanceof RezoHeaders ? addedOptions.customHeaders : new RezoHeaders(addedOptions.customHeaders);
|
|
270
285
|
}
|
|
@@ -333,9 +348,11 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
333
348
|
const isFormData = fetchOptions.body && (fetchOptions.body instanceof FormData || fetchOptions.body instanceof RezoFormData);
|
|
334
349
|
const isURLEncoded = fetchOptions.body && (fetchOptions.body instanceof URLSearchParams || fetchOptions.body instanceof RezoURLSearchParams);
|
|
335
350
|
if (isURLEncoded) {
|
|
336
|
-
contentType = "application/x-www-form-urlencoded";
|
|
337
351
|
fetchOptions.body = fetchOptions.body.toString();
|
|
338
|
-
|
|
352
|
+
if (!contentType) {
|
|
353
|
+
contentType = "application/x-www-form-urlencoded";
|
|
354
|
+
headers.set("Content-Type", contentType);
|
|
355
|
+
}
|
|
339
356
|
}
|
|
340
357
|
if (!isFormData && !isURLEncoded) {
|
|
341
358
|
if (options.multipart || options.json || options.formData || options.form) {
|
|
@@ -433,9 +450,36 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
433
450
|
} else if (type.includes("text/") || type.includes("/javascript")) {
|
|
434
451
|
fetchOptions.body = fetchOptions.body ? typeof fetchOptions.body === "object" ? JSON.stringify(fetchOptions.body) : fetchOptions.body : "";
|
|
435
452
|
headers.set("Content-Type", contentType);
|
|
453
|
+
} else {
|
|
454
|
+
headers.set("Content-Type", contentType);
|
|
455
|
+
if (fetchOptions.body && typeof fetchOptions.body === "object" && !isBinaryBody(fetchOptions.body)) {
|
|
456
|
+
fetchOptions.body = JSON.stringify(fetchOptions.body);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
} else if (forContentType) {
|
|
460
|
+
const body = fetchOptions.body;
|
|
461
|
+
if (body != null && body !== "") {
|
|
462
|
+
if (typeof body === "string") {
|
|
463
|
+
const trimmed = body.trim();
|
|
464
|
+
if (trimmed.startsWith("{") && trimmed.endsWith("}") || trimmed.startsWith("[") && trimmed.endsWith("]")) {
|
|
465
|
+
try {
|
|
466
|
+
JSON.parse(trimmed);
|
|
467
|
+
contentType = "application/json";
|
|
468
|
+
} catch {
|
|
469
|
+
contentType = "text/plain";
|
|
470
|
+
}
|
|
471
|
+
} else if (/^[^=&\s]+=[^&]*(&[^=&\s]+=[^&]*)*$/.test(trimmed)) {
|
|
472
|
+
contentType = "application/x-www-form-urlencoded";
|
|
473
|
+
} else {
|
|
474
|
+
contentType = "text/plain";
|
|
475
|
+
}
|
|
476
|
+
headers.set("Content-Type", contentType);
|
|
477
|
+
} else if (isBinaryBody(body)) {} else if (typeof body === "object") {
|
|
478
|
+
contentType = "application/json";
|
|
479
|
+
headers.set("Content-Type", contentType);
|
|
480
|
+
fetchOptions.body = JSON.stringify(body);
|
|
481
|
+
}
|
|
436
482
|
}
|
|
437
|
-
} else if (contentType && !options.withoutContentType) {
|
|
438
|
-
headers.set("Content-Type", contentType);
|
|
439
483
|
}
|
|
440
484
|
}
|
|
441
485
|
if (options.withoutContentType || isFormData) {
|
package/dist/version.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const VERSION = exports.VERSION = "1.0.
|
|
1
|
+
const VERSION = exports.VERSION = "1.0.112";
|
|
2
2
|
const PACKAGE_NAME = exports.PACKAGE_NAME = "rezo";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.112";
|
|
2
2
|
export const PACKAGE_NAME = "rezo";
|
package/dist/wget/index.cjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.WgetError =
|
|
3
|
-
const
|
|
4
|
-
exports.AssetExtractor =
|
|
5
|
-
const
|
|
6
|
-
exports.UrlFilter =
|
|
7
|
-
const
|
|
8
|
-
exports.FileWriter =
|
|
9
|
-
const
|
|
10
|
-
exports.RobotsHandler =
|
|
11
|
-
const
|
|
12
|
-
exports.ResumeHandler =
|
|
13
|
-
const
|
|
14
|
-
exports.ProgressReporter =
|
|
15
|
-
exports.ProgressTracker =
|
|
16
|
-
exports.parseSize =
|
|
17
|
-
const
|
|
18
|
-
exports.LinkConverter =
|
|
19
|
-
const
|
|
20
|
-
exports.StyleExtractor =
|
|
21
|
-
const
|
|
22
|
-
exports.Downloader =
|
|
23
|
-
const
|
|
24
|
-
exports.AssetOrganizer =
|
|
25
|
-
exports.DEFAULT_ASSET_FOLDERS =
|
|
26
|
-
const
|
|
27
|
-
exports.DownloadCache =
|
|
28
|
-
const
|
|
29
|
-
exports.EXECUTABLE_EXTENSIONS =
|
|
30
|
-
exports.ARCHIVE_EXTENSIONS =
|
|
31
|
-
exports.DOCUMENT_EXTENSIONS =
|
|
32
|
-
exports.IMAGE_EXTENSIONS =
|
|
33
|
-
exports.VIDEO_EXTENSIONS =
|
|
34
|
-
exports.AUDIO_EXTENSIONS =
|
|
35
|
-
exports.FONT_EXTENSIONS =
|
|
36
|
-
exports.WEB_ASSET_EXTENSIONS =
|
|
37
|
-
exports.DATA_EXTENSIONS =
|
|
38
|
-
exports.EXECUTABLE_MIME_TYPES =
|
|
39
|
-
exports.ARCHIVE_MIME_TYPES =
|
|
40
|
-
exports.DOCUMENT_MIME_TYPES =
|
|
41
|
-
exports.IMAGE_MIME_TYPES =
|
|
42
|
-
exports.VIDEO_MIME_TYPES =
|
|
43
|
-
exports.AUDIO_MIME_TYPES =
|
|
44
|
-
exports.FONT_MIME_TYPES =
|
|
45
|
-
exports.WEB_ASSET_MIME_TYPES =
|
|
46
|
-
exports.DATA_MIME_TYPES =
|
|
47
|
-
exports.SAFE_WEB_PRESET =
|
|
48
|
-
exports.DOCUMENTS_ONLY_PRESET =
|
|
49
|
-
exports.NO_MEDIA_PRESET =
|
|
50
|
-
exports.MINIMAL_MIRROR_PRESET =
|
|
51
|
-
exports.TEXT_ONLY_PRESET =
|
|
1
|
+
const _mod_dje46y = require('./types.cjs');
|
|
2
|
+
exports.WgetError = _mod_dje46y.WgetError;;
|
|
3
|
+
const _mod_uyl55s = require('./asset-extractor.cjs');
|
|
4
|
+
exports.AssetExtractor = _mod_uyl55s.AssetExtractor;;
|
|
5
|
+
const _mod_o9khns = require('./url-filter.cjs');
|
|
6
|
+
exports.UrlFilter = _mod_o9khns.UrlFilter;;
|
|
7
|
+
const _mod_hroz0k = require('./file-writer.cjs');
|
|
8
|
+
exports.FileWriter = _mod_hroz0k.FileWriter;;
|
|
9
|
+
const _mod_3w2mwj = require('./robots.cjs');
|
|
10
|
+
exports.RobotsHandler = _mod_3w2mwj.RobotsHandler;;
|
|
11
|
+
const _mod_ws77sz = require('./resume.cjs');
|
|
12
|
+
exports.ResumeHandler = _mod_ws77sz.ResumeHandler;;
|
|
13
|
+
const _mod_l168js = require('./progress.cjs');
|
|
14
|
+
exports.ProgressReporter = _mod_l168js.ProgressReporter;
|
|
15
|
+
exports.ProgressTracker = _mod_l168js.ProgressTracker;
|
|
16
|
+
exports.parseSize = _mod_l168js.parseSize;;
|
|
17
|
+
const _mod_a2yqhb = require('./link-converter.cjs');
|
|
18
|
+
exports.LinkConverter = _mod_a2yqhb.LinkConverter;;
|
|
19
|
+
const _mod_wwvi8b = require('./style-extractor.cjs');
|
|
20
|
+
exports.StyleExtractor = _mod_wwvi8b.StyleExtractor;;
|
|
21
|
+
const _mod_93j9cb = require('./downloader.cjs');
|
|
22
|
+
exports.Downloader = _mod_93j9cb.Downloader;;
|
|
23
|
+
const _mod_izah2j = require('./asset-organizer.cjs');
|
|
24
|
+
exports.AssetOrganizer = _mod_izah2j.AssetOrganizer;
|
|
25
|
+
exports.DEFAULT_ASSET_FOLDERS = _mod_izah2j.DEFAULT_ASSET_FOLDERS;;
|
|
26
|
+
const _mod_5d669c = require('./download-cache.cjs');
|
|
27
|
+
exports.DownloadCache = _mod_5d669c.DownloadCache;;
|
|
28
|
+
const _mod_1i966x = require('./filter-lists.cjs');
|
|
29
|
+
exports.EXECUTABLE_EXTENSIONS = _mod_1i966x.EXECUTABLE_EXTENSIONS;
|
|
30
|
+
exports.ARCHIVE_EXTENSIONS = _mod_1i966x.ARCHIVE_EXTENSIONS;
|
|
31
|
+
exports.DOCUMENT_EXTENSIONS = _mod_1i966x.DOCUMENT_EXTENSIONS;
|
|
32
|
+
exports.IMAGE_EXTENSIONS = _mod_1i966x.IMAGE_EXTENSIONS;
|
|
33
|
+
exports.VIDEO_EXTENSIONS = _mod_1i966x.VIDEO_EXTENSIONS;
|
|
34
|
+
exports.AUDIO_EXTENSIONS = _mod_1i966x.AUDIO_EXTENSIONS;
|
|
35
|
+
exports.FONT_EXTENSIONS = _mod_1i966x.FONT_EXTENSIONS;
|
|
36
|
+
exports.WEB_ASSET_EXTENSIONS = _mod_1i966x.WEB_ASSET_EXTENSIONS;
|
|
37
|
+
exports.DATA_EXTENSIONS = _mod_1i966x.DATA_EXTENSIONS;
|
|
38
|
+
exports.EXECUTABLE_MIME_TYPES = _mod_1i966x.EXECUTABLE_MIME_TYPES;
|
|
39
|
+
exports.ARCHIVE_MIME_TYPES = _mod_1i966x.ARCHIVE_MIME_TYPES;
|
|
40
|
+
exports.DOCUMENT_MIME_TYPES = _mod_1i966x.DOCUMENT_MIME_TYPES;
|
|
41
|
+
exports.IMAGE_MIME_TYPES = _mod_1i966x.IMAGE_MIME_TYPES;
|
|
42
|
+
exports.VIDEO_MIME_TYPES = _mod_1i966x.VIDEO_MIME_TYPES;
|
|
43
|
+
exports.AUDIO_MIME_TYPES = _mod_1i966x.AUDIO_MIME_TYPES;
|
|
44
|
+
exports.FONT_MIME_TYPES = _mod_1i966x.FONT_MIME_TYPES;
|
|
45
|
+
exports.WEB_ASSET_MIME_TYPES = _mod_1i966x.WEB_ASSET_MIME_TYPES;
|
|
46
|
+
exports.DATA_MIME_TYPES = _mod_1i966x.DATA_MIME_TYPES;
|
|
47
|
+
exports.SAFE_WEB_PRESET = _mod_1i966x.SAFE_WEB_PRESET;
|
|
48
|
+
exports.DOCUMENTS_ONLY_PRESET = _mod_1i966x.DOCUMENTS_ONLY_PRESET;
|
|
49
|
+
exports.NO_MEDIA_PRESET = _mod_1i966x.NO_MEDIA_PRESET;
|
|
50
|
+
exports.MINIMAL_MIRROR_PRESET = _mod_1i966x.MINIMAL_MIRROR_PRESET;
|
|
51
|
+
exports.TEXT_ONLY_PRESET = _mod_1i966x.TEXT_ONLY_PRESET;;
|
|
52
52
|
const { Downloader } = require('./downloader.cjs');
|
|
53
53
|
const rezo = require('../index.cjs');
|
|
54
54
|
const { promises: fs } = require("node:fs");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.112",
|
|
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",
|