rezo 1.0.108 → 1.0.110
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 -1
- package/dist/adapters/entries/fetch.d.ts +2 -1
- package/dist/adapters/entries/http.d.ts +2 -1
- package/dist/adapters/entries/http2.d.ts +2 -1
- package/dist/adapters/entries/react-native.d.ts +2 -1
- package/dist/adapters/entries/xhr.d.ts +2 -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/crawler.d.ts +1 -0
- package/dist/entries/crawler.cjs +6 -6
- package/dist/index.cjs +44 -44
- package/dist/index.d.ts +2 -1
- package/dist/internal/agents/index.cjs +14 -14
- package/dist/platform/browser.d.ts +2 -1
- package/dist/platform/bun.d.ts +2 -1
- package/dist/platform/deno.d.ts +2 -1
- package/dist/platform/node.d.ts +2 -1
- package/dist/platform/react-native.d.ts +2 -1
- package/dist/platform/worker.d.ts +2 -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/headers.cjs +6 -2
- package/dist/utils/headers.js +6 -2
- package/dist/utils/http-config.cjs +29 -26
- package/dist/utils/http-config.js +29 -26
- package/dist/utils/staged-timeout.cjs +2 -1
- package/dist/utils/staged-timeout.js +2 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/wget/index.cjs +51 -51
- package/dist/wget/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
/**
|
|
5677
5678
|
* cURL Options Configuration
|
|
5678
5679
|
*
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
/**
|
|
5677
5678
|
* Type guard to check if an error is a RezoError instance.
|
|
5678
5679
|
*/
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
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_uqxii5 = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_uqxii5.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_uqxii5.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_uqxii5.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_uqxii5.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_uqxii5.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_0bhlcq = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_0bhlcq.LRUCache;;
|
|
3
|
+
const _mod_017u3v = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_017u3v.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_017u3v.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_017u3v.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_73lddo = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_73lddo.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_73lddo.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_6tbqy7 = require('./cookie.cjs');
|
|
4
|
+
exports.Cookie = _mod_6tbqy7.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_50rr1t = require("tough-cookie");
|
|
474
|
+
exports.Store = _mod_50rr1t.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_7il27f = require('./cookie.cjs');
|
|
2
|
+
exports.Cookie = _mod_7il27f.Cookie;
|
|
3
|
+
exports.RezoCookie = _mod_7il27f.RezoCookie;;
|
|
4
|
+
const _mod_4in96l = require('./cookie-store.cjs');
|
|
5
|
+
exports.RezoCookieStore = _mod_4in96l.RezoCookieStore;;
|
|
6
|
+
const _mod_8pnuvi = require('./cookie-jar.cjs');
|
|
7
|
+
exports.RezoCookieJar = _mod_8pnuvi.RezoCookieJar;
|
|
8
|
+
exports.CookieJar = _mod_8pnuvi.CookieJar;;
|
|
9
|
+
const _mod_evu9tl = require("tough-cookie");
|
|
10
|
+
exports.Store = _mod_evu9tl.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_se02lu = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_se02lu.Crawler;;
|
|
3
|
+
const _mod_9htn6p = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_9htn6p.CrawlerOptions;;
|
|
5
|
+
const _mod_dcea2y = require('./plugin/robots-txt.cjs');
|
|
6
|
+
exports.RobotsTxt = _mod_dcea2y.RobotsTxt;;
|
|
7
|
+
const _mod_xiepys = require('./plugin/file-cacher.cjs');
|
|
8
|
+
exports.FileCacher = _mod_xiepys.FileCacher;;
|
|
9
|
+
const _mod_y7lgar = require('./plugin/url-store.cjs');
|
|
10
|
+
exports.UrlStore = _mod_y7lgar.UrlStore;;
|
|
11
|
+
const _mod_mxu8ux = require('./plugin/navigation-history.cjs');
|
|
12
|
+
exports.NavigationHistory = _mod_mxu8ux.NavigationHistory;;
|
|
13
|
+
const _mod_idepsx = require('./addon/oxylabs/index.cjs');
|
|
14
|
+
exports.Oxylabs = _mod_idepsx.Oxylabs;;
|
|
15
|
+
const _mod_c7u6ay = require('./addon/oxylabs/options.cjs');
|
|
16
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_c7u6ay.OXYLABS_BROWSER_TYPES;
|
|
17
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_c7u6ay.OXYLABS_COMMON_LOCALES;
|
|
18
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_c7u6ay.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
19
|
+
exports.OXYLABS_US_STATES = _mod_c7u6ay.OXYLABS_US_STATES;
|
|
20
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_c7u6ay.OXYLABS_EUROPEAN_COUNTRIES;
|
|
21
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_c7u6ay.OXYLABS_ASIAN_COUNTRIES;
|
|
22
|
+
exports.getRandomOxylabsBrowserType = _mod_c7u6ay.getRandomBrowserType;
|
|
23
|
+
exports.getRandomOxylabsLocale = _mod_c7u6ay.getRandomLocale;
|
|
24
|
+
exports.getRandomOxylabsGeoLocation = _mod_c7u6ay.getRandomGeoLocation;;
|
|
25
|
+
const _mod_v58759 = require('./scraper.cjs');
|
|
26
|
+
exports.isRestrictedDomain = _mod_v58759.isRestrictedDomain;;
|
|
27
|
+
const _mod_dao3fn = require('./addon/decodo/index.cjs');
|
|
28
|
+
exports.Decodo = _mod_dao3fn.Decodo;;
|
|
29
|
+
const _mod_dy46pc = require('./addon/decodo/options.cjs');
|
|
30
|
+
exports.DECODO_DEVICE_TYPES = _mod_dy46pc.DECODO_DEVICE_TYPES;
|
|
31
|
+
exports.DECODO_HEADLESS_MODES = _mod_dy46pc.DECODO_HEADLESS_MODES;
|
|
32
|
+
exports.DECODO_COMMON_LOCALES = _mod_dy46pc.DECODO_COMMON_LOCALES;
|
|
33
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_dy46pc.DECODO_COMMON_COUNTRIES;
|
|
34
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_dy46pc.DECODO_EUROPEAN_COUNTRIES;
|
|
35
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_dy46pc.DECODO_ASIAN_COUNTRIES;
|
|
36
|
+
exports.DECODO_US_STATES = _mod_dy46pc.DECODO_US_STATES;
|
|
37
|
+
exports.DECODO_COMMON_CITIES = _mod_dy46pc.DECODO_COMMON_CITIES;
|
|
38
|
+
exports.getRandomDecodoDeviceType = _mod_dy46pc.getRandomDeviceType;
|
|
39
|
+
exports.getRandomDecodoLocale = _mod_dy46pc.getRandomLocale;
|
|
40
|
+
exports.getRandomDecodoCountry = _mod_dy46pc.getRandomCountry;
|
|
41
|
+
exports.getRandomDecodoCity = _mod_dy46pc.getRandomCity;
|
|
42
|
+
exports.generateDecodoSessionId = _mod_dy46pc.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
|
|
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 p=require("./capped-array.cjs");exports.CappedArray=p.CappedArray;
|
package/dist/crawler.d.ts
CHANGED
|
@@ -243,6 +243,7 @@ export type RezoHeadersInit = [
|
|
|
243
243
|
string
|
|
244
244
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
245
245
|
declare class RezoHeaders extends Headers {
|
|
246
|
+
[key: string]: any;
|
|
246
247
|
constructor(init?: RezoHeadersInit);
|
|
247
248
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
248
249
|
getSetCookie(): string[];
|
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_bre8h3 = require('../crawler/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_bre8h3.Crawler;;
|
|
3
|
+
const _mod_j9nq3c = require('../crawler/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_j9nq3c.CrawlerOptions;;
|
|
5
|
+
const _mod_cpbin1 = require('../crawler/scraper.cjs');
|
|
6
|
+
exports.isRestrictedDomain = _mod_cpbin1.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_ql61et = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_ql61et.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_ql61et.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_ql61et.createDefaultInstance;;
|
|
5
|
+
const _mod_jiqdwe = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_jiqdwe.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_jiqdwe.RezoErrorCode;;
|
|
8
|
+
const _mod_a39108 = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_a39108.RezoHeaders;;
|
|
10
|
+
const _mod_90wc9g = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_90wc9g.RezoFormData;;
|
|
12
|
+
const _mod_sjn0e0 = require('./cookies/cookie-jar.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_sjn0e0.RezoCookieJar;
|
|
14
|
+
exports.CookieJar = _mod_sjn0e0.CookieJar;
|
|
15
|
+
exports.Cookie = _mod_sjn0e0.Cookie;
|
|
16
|
+
exports.Store = _mod_sjn0e0.Store;;
|
|
17
|
+
const _mod_abr94n = require('./cookies/cookie-store.cjs');
|
|
18
|
+
exports.RezoCookieStore = _mod_abr94n.RezoCookieStore;;
|
|
19
|
+
const _mod_siulxm = require('./utils/curl.cjs');
|
|
20
|
+
exports.toCurl = _mod_siulxm.toCurl;
|
|
21
|
+
exports.fromCurl = _mod_siulxm.fromCurl;;
|
|
22
|
+
const _mod_z8fo1n = require('./core/hooks.cjs');
|
|
23
|
+
exports.createDefaultHooks = _mod_z8fo1n.createDefaultHooks;
|
|
24
|
+
exports.mergeHooks = _mod_z8fo1n.mergeHooks;;
|
|
25
|
+
const _mod_hacyxg = require('./core/interceptor-manager.cjs');
|
|
26
|
+
exports.RequestInterceptorManager = _mod_hacyxg.RequestInterceptorManager;
|
|
27
|
+
exports.ResponseInterceptorManager = _mod_hacyxg.ResponseInterceptorManager;;
|
|
28
|
+
const _mod_orq0e4 = require('./proxy/manager.cjs');
|
|
29
|
+
exports.ProxyManager = _mod_orq0e4.ProxyManager;;
|
|
30
|
+
const _mod_jo7kv7 = require('./stealth/stealth.cjs');
|
|
31
|
+
exports.RezoStealth = _mod_jo7kv7.RezoStealth;;
|
|
32
|
+
const _mod_1mmwmz = require('./stealth/profiles/index.cjs');
|
|
33
|
+
exports.listProfiles = _mod_1mmwmz.listProfiles;
|
|
34
|
+
exports.getProfile = _mod_1mmwmz.getProfile;
|
|
35
|
+
exports.getProfilesByFamily = _mod_1mmwmz.getProfilesByFamily;;
|
|
36
|
+
const _mod_7h4aaw = require('./queue/index.cjs');
|
|
37
|
+
exports.RezoQueue = _mod_7h4aaw.RezoQueue;
|
|
38
|
+
exports.HttpQueue = _mod_7h4aaw.HttpQueue;
|
|
39
|
+
exports.RezoHttpQueue = _mod_7h4aaw.RezoHttpQueue;
|
|
40
|
+
exports.Priority = _mod_7h4aaw.Priority;
|
|
41
|
+
exports.HttpMethodPriority = _mod_7h4aaw.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_1035r5 = require('./version.cjs');
|
|
52
|
+
exports.VERSION = _mod_1035r5.VERSION;
|
|
53
|
+
exports.PACKAGE_NAME = _mod_1035r5.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
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5908,7 +5909,7 @@ export declare function listProfiles(): string[];
|
|
|
5908
5909
|
*
|
|
5909
5910
|
* IMPORTANT: Update these values when bumping package version.
|
|
5910
5911
|
*/
|
|
5911
|
-
export declare const VERSION = "1.0.
|
|
5912
|
+
export declare const VERSION = "1.0.110";
|
|
5912
5913
|
export declare const PACKAGE_NAME = "rezo";
|
|
5913
5914
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5914
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_2yet4b = require('./base.cjs');
|
|
2
|
+
exports.Agent = _mod_2yet4b.Agent;;
|
|
3
|
+
const _mod_97dgu3 = require('./http-proxy.cjs');
|
|
4
|
+
exports.HttpProxyAgent = _mod_97dgu3.HttpProxyAgent;;
|
|
5
|
+
const _mod_aqzzwl = require('./https-proxy.cjs');
|
|
6
|
+
exports.HttpsProxyAgent = _mod_aqzzwl.HttpsProxyAgent;;
|
|
7
|
+
const _mod_a3t3ix = require('./socks-proxy.cjs');
|
|
8
|
+
exports.SocksProxyAgent = _mod_a3t3ix.SocksProxyAgent;;
|
|
9
|
+
const _mod_2yorca = require('./socks-client.cjs');
|
|
10
|
+
exports.SocksClient = _mod_2yorca.SocksClient;;
|
|
11
|
+
const _mod_znlf7e = require('./bun-socks-http.cjs');
|
|
12
|
+
exports.bunHttp = _mod_znlf7e.bunHttp;
|
|
13
|
+
exports.isBunRuntime = _mod_znlf7e.isBunRuntime;
|
|
14
|
+
exports.isBunSocksRequest = _mod_znlf7e.isBunSocksRequest;;
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
5679
|
export declare const CancelToken: {
|
|
@@ -107,6 +107,7 @@ export type RezoHeadersInit = [
|
|
|
107
107
|
string
|
|
108
108
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
109
109
|
export declare class RezoHeaders extends Headers {
|
|
110
|
+
[key: string]: any;
|
|
110
111
|
constructor(init?: RezoHeadersInit);
|
|
111
112
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
112
113
|
getSetCookie(): string[];
|
|
@@ -5672,7 +5673,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5672
5673
|
*
|
|
5673
5674
|
* IMPORTANT: Update these values when bumping package version.
|
|
5674
5675
|
*/
|
|
5675
|
-
export declare const VERSION = "1.0.
|
|
5676
|
+
export declare const VERSION = "1.0.110";
|
|
5676
5677
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5677
5678
|
export declare const Cancel: typeof RezoError;
|
|
5678
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_2sopvr = require('./manager.cjs');
|
|
4
|
+
exports.ProxyManager = _mod_2sopvr.ProxyManager;;
|
|
5
|
+
const _mod_jj0xxd = require('./parse.cjs');
|
|
6
|
+
exports.parseProxyString = _mod_jj0xxd.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_26u06z = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_26u06z.RezoQueue;;
|
|
3
|
+
const _mod_lirbu3 = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_lirbu3.HttpQueue;
|
|
5
|
+
exports.RezoHttpQueue = _mod_lirbu3.HttpQueue;
|
|
6
|
+
exports.extractDomain = _mod_lirbu3.extractDomain;;
|
|
7
|
+
const _mod_8h5p1n = require('./types.cjs');
|
|
8
|
+
exports.Priority = _mod_8h5p1n.Priority;
|
|
9
|
+
exports.HttpMethodPriority = _mod_8h5p1n.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_9w2drc = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_9w2drc.UniversalEventEmitter;;
|
|
3
|
+
const _mod_l67jbc = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_l67jbc.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_l67jbc.StreamResponse;;
|
|
6
|
+
const _mod_484csf = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_484csf.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_484csf.DownloadResponse;;
|
|
9
|
+
const _mod_x1n1or = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_x1n1or.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_x1n1or.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_dgn290 = require('./stealth.cjs');
|
|
2
|
+
exports.RezoStealth = _mod_dgn290.RezoStealth;;
|
|
3
|
+
const _mod_7hivn8 = require('./tls-fingerprint.cjs');
|
|
4
|
+
exports.createSecureContext = _mod_7hivn8.createSecureContext;
|
|
5
|
+
exports.buildTlsOptions = _mod_7hivn8.buildTlsOptions;;
|
|
6
|
+
const _mod_ijykjb = require('./resolver.cjs');
|
|
7
|
+
exports.resolveProfile = _mod_ijykjb.resolveProfile;
|
|
8
|
+
exports.detectProfileFromUserAgent = _mod_ijykjb.detectProfileFromUserAgent;;
|
|
9
|
+
const _mod_ww6u1e = require('./profiles/index.cjs');
|
|
10
|
+
exports.getProfile = _mod_ww6u1e.getProfile;
|
|
11
|
+
exports.getProfilesByFamily = _mod_ww6u1e.getProfilesByFamily;
|
|
12
|
+
exports.getProfilesByDevice = _mod_ww6u1e.getProfilesByDevice;
|
|
13
|
+
exports.getRandomProfile = _mod_ww6u1e.getRandomProfile;
|
|
14
|
+
exports.getRandomProfileByFamily = _mod_ww6u1e.getRandomProfileByFamily;
|
|
15
|
+
exports.listProfiles = _mod_ww6u1e.listProfiles;
|
|
16
|
+
exports.listProfilesByFamily = _mod_ww6u1e.listProfilesByFamily;
|
|
17
|
+
exports.PROFILE_REGISTRY = _mod_ww6u1e.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_pcpmtf = require('./constants.cjs');
|
|
47
|
+
exports.expandPseudoOrder = _mod_pcpmtf.expandPseudoOrder;;
|
|
48
|
+
const _mod_wtfygf = require('./chrome-profiles.cjs');
|
|
49
|
+
exports.CHROME_PROFILES = _mod_wtfygf.CHROME_PROFILES;;
|
|
50
|
+
const _mod_lwo57l = require('./firefox-profiles.cjs');
|
|
51
|
+
exports.FIREFOX_PROFILES = _mod_lwo57l.FIREFOX_PROFILES;;
|
|
52
|
+
const _mod_dmvrum = require('./safari-profiles.cjs');
|
|
53
|
+
exports.SAFARI_PROFILES = _mod_dmvrum.SAFARI_PROFILES;;
|
|
54
|
+
const _mod_tq9l0f = require('./edge-profiles.cjs');
|
|
55
|
+
exports.EDGE_PROFILES = _mod_tq9l0f.EDGE_PROFILES;;
|
|
56
56
|
|
|
57
57
|
exports.getProfile = getProfile;
|
|
58
58
|
exports.getProfilesByFamily = getProfilesByFamily;
|
package/dist/utils/headers.cjs
CHANGED
|
@@ -23,9 +23,13 @@ class RezoHeaders extends Headers {
|
|
|
23
23
|
super(init);
|
|
24
24
|
}
|
|
25
25
|
return new Proxy(this, {
|
|
26
|
-
get(target, prop,
|
|
26
|
+
get(target, prop, _receiver) {
|
|
27
27
|
if (typeof prop === "symbol" || prop in target) {
|
|
28
|
-
|
|
28
|
+
const value = Reflect.get(target, prop, target);
|
|
29
|
+
if (typeof value === "function") {
|
|
30
|
+
return value.bind(target);
|
|
31
|
+
}
|
|
32
|
+
return value;
|
|
29
33
|
}
|
|
30
34
|
return target.get(prop) || undefined;
|
|
31
35
|
},
|
package/dist/utils/headers.js
CHANGED
|
@@ -23,9 +23,13 @@ class RezoHeaders extends Headers {
|
|
|
23
23
|
super(init);
|
|
24
24
|
}
|
|
25
25
|
return new Proxy(this, {
|
|
26
|
-
get(target, prop,
|
|
26
|
+
get(target, prop, _receiver) {
|
|
27
27
|
if (typeof prop === "symbol" || prop in target) {
|
|
28
|
-
|
|
28
|
+
const value = Reflect.get(target, prop, target);
|
|
29
|
+
if (typeof value === "function") {
|
|
30
|
+
return value.bind(target);
|
|
31
|
+
}
|
|
32
|
+
return value;
|
|
29
33
|
}
|
|
30
34
|
return target.get(prop) || undefined;
|
|
31
35
|
},
|
|
@@ -173,7 +173,9 @@ function setSignal() {
|
|
|
173
173
|
clearTimeout(this.timeoutClearInstance);
|
|
174
174
|
if (this.timeout && typeof this.timeout === "number" && this.timeout > 100) {
|
|
175
175
|
const controller = new AbortController;
|
|
176
|
-
const timer = setTimeout(() => controller.abort(), this.timeout)
|
|
176
|
+
const timer = setTimeout(() => controller.abort(), this.timeout);
|
|
177
|
+
if (typeof timer === "object" && typeof timer.unref === "function")
|
|
178
|
+
timer.unref();
|
|
177
179
|
this.timeoutClearInstance = timer;
|
|
178
180
|
this.signal = controller.signal;
|
|
179
181
|
}
|
|
@@ -222,13 +224,14 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
222
224
|
options = settions.options;
|
|
223
225
|
}
|
|
224
226
|
options.headers = buildHeaders(options.headers);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
const optHeaders = options.headers;
|
|
228
|
+
let headers = optHeaders;
|
|
229
|
+
if (optHeaders.has("Cookie")) {
|
|
230
|
+
headers = new RezoHeaders(optHeaders.toObject());
|
|
228
231
|
if (!config.useCookies) {
|
|
229
232
|
config.useCookies = true;
|
|
230
233
|
}
|
|
231
|
-
|
|
234
|
+
optHeaders.delete("Cookie");
|
|
232
235
|
}
|
|
233
236
|
const mainUrl = !isNew && addedOptions.fullUrl ? addedOptions.fullUrl : undefined;
|
|
234
237
|
const forContentType = validMethods.includes(options.method.toLowerCase());
|
|
@@ -308,7 +311,7 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
308
311
|
if (options.xsrfCookieName && options.xsrfHeaderName && requestCookies.length > 0) {
|
|
309
312
|
const xsrfCookie = requestCookies.find((c) => c.key === options.xsrfCookieName);
|
|
310
313
|
if (xsrfCookie && xsrfCookie.value) {
|
|
311
|
-
|
|
314
|
+
headers.set(options.xsrfHeaderName, xsrfCookie.value);
|
|
312
315
|
}
|
|
313
316
|
}
|
|
314
317
|
if (requestCookies.length > 0 && config) {
|
|
@@ -322,7 +325,7 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
322
325
|
}
|
|
323
326
|
}
|
|
324
327
|
if (cookiesString) {
|
|
325
|
-
|
|
328
|
+
headers.set("Cookie", cookiesString);
|
|
326
329
|
}
|
|
327
330
|
if (options.body) {
|
|
328
331
|
fetchOptions.body = options.body;
|
|
@@ -373,21 +376,21 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
373
376
|
} else {
|
|
374
377
|
fetchOptions.body = options.form;
|
|
375
378
|
}
|
|
376
|
-
|
|
379
|
+
headers.set("Content-Type", contentType);
|
|
377
380
|
} else if (options.json) {
|
|
378
381
|
fetchOptions.body = options.body;
|
|
379
382
|
contentType = "application/json";
|
|
380
|
-
|
|
383
|
+
headers.set("Content-Type", contentType);
|
|
381
384
|
}
|
|
382
385
|
} else if (contentType) {
|
|
383
386
|
const type = contentType.toLowerCase();
|
|
384
387
|
if (type.includes("json")) {
|
|
385
|
-
|
|
388
|
+
headers.set("Content-Type", "application/json");
|
|
386
389
|
if (fetchOptions.body && typeof fetchOptions.body === "object") {
|
|
387
390
|
fetchOptions.body = JSON.stringify(fetchOptions.body);
|
|
388
391
|
}
|
|
389
392
|
} else if (type.includes("x-www-form-urlencoded")) {
|
|
390
|
-
|
|
393
|
+
headers.set("Content-Type", "application/x-www-form-urlencoded");
|
|
391
394
|
if (fetchOptions.body && typeof fetchOptions.body === "object") {
|
|
392
395
|
fetchOptions.body = new URLSearchParams(fetchOptions.body).toString();
|
|
393
396
|
}
|
|
@@ -423,14 +426,14 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
423
426
|
}
|
|
424
427
|
} else if (type.includes("text/") || type.includes("/javascript")) {
|
|
425
428
|
fetchOptions.body = fetchOptions.body ? typeof fetchOptions.body === "object" ? JSON.stringify(fetchOptions.body) : fetchOptions.body : "";
|
|
426
|
-
|
|
429
|
+
headers.set("Content-Type", contentType);
|
|
427
430
|
}
|
|
428
431
|
} else if (contentType && !options.withoutContentType) {
|
|
429
|
-
|
|
432
|
+
headers.set("Content-Type", contentType);
|
|
430
433
|
}
|
|
431
434
|
}
|
|
432
435
|
if (options.withoutContentType || isFormData) {
|
|
433
|
-
|
|
436
|
+
headers.delete("Content-Type");
|
|
434
437
|
}
|
|
435
438
|
if (options.withoutBodyOnRedirect && addedOptions.isRedirected) {
|
|
436
439
|
fetchOptions.body = undefined;
|
|
@@ -438,36 +441,36 @@ function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
438
441
|
options.rejectUnauthorized = config.rejectUnauthorized;
|
|
439
442
|
if ((typeof options.autoSetReferer !== "boolean" || options.autoSetReferer) && addedOptions.redirectedUrl) {
|
|
440
443
|
if (!addedOptions.customHeaders)
|
|
441
|
-
|
|
444
|
+
headers.set("Referer", addedOptions.redirectedUrl);
|
|
442
445
|
}
|
|
443
446
|
if (!config.useCookies) {
|
|
444
|
-
|
|
447
|
+
headers.delete("Cookie");
|
|
445
448
|
}
|
|
446
449
|
if (fetchOptions.body && (fetchOptions.body instanceof FormData || fetchOptions.body instanceof RezoFormData)) {
|
|
447
|
-
|
|
450
|
+
headers.delete("Content-Type");
|
|
448
451
|
}
|
|
449
452
|
if (options.proxy) {
|
|
450
453
|
fetchOptions.proxy = options.proxy;
|
|
451
454
|
}
|
|
452
|
-
if (fetchOptions.method.toLowerCase() === "get" &&
|
|
453
|
-
|
|
455
|
+
if (fetchOptions.method.toLowerCase() === "get" && headers.has("Content-Type")) {
|
|
456
|
+
headers.delete("Content-Type");
|
|
454
457
|
}
|
|
455
458
|
if (mainUrl || addedOptions.redirectedUrl) {
|
|
456
|
-
|
|
459
|
+
headers.set("host", new URL(fetchOptions.fullUrl).host);
|
|
457
460
|
if ([`POST`, `PUT`, `PATCH`, `DELETE`, `OPTIONS`].includes(fetchOptions.method.toUpperCase()))
|
|
458
|
-
|
|
461
|
+
headers.set("origin", new URL(mainUrl || fetchOptions.url).origin);
|
|
459
462
|
} else {
|
|
460
|
-
if (!
|
|
463
|
+
if (!headers.has("origin") && options.autoSetOrigin) {
|
|
461
464
|
const r = [`POST`, `PUT`, `PATCH`, `DELETE`, `OPTIONS`].includes(fetchOptions.method.toUpperCase());
|
|
462
465
|
if (r)
|
|
463
|
-
|
|
466
|
+
headers.set("origin", new URL(mainUrl || fetchOptions.url).origin);
|
|
464
467
|
}
|
|
465
|
-
if (mainUrl && !
|
|
466
|
-
|
|
468
|
+
if (mainUrl && !headers.has("referer") && options.autoSetReferer) {
|
|
469
|
+
headers.set("referer", mainUrl);
|
|
467
470
|
}
|
|
468
471
|
}
|
|
469
472
|
if (addedOptions.redirectCode && addedOptions.lastRedirectedUrl) {
|
|
470
|
-
|
|
473
|
+
headers.set("referer", addedOptions.lastRedirectedUrl);
|
|
471
474
|
}
|
|
472
475
|
if (options.responseType) {
|
|
473
476
|
fetchOptions.responseType = options.responseType;
|
|
@@ -173,7 +173,9 @@ function setSignal() {
|
|
|
173
173
|
clearTimeout(this.timeoutClearInstance);
|
|
174
174
|
if (this.timeout && typeof this.timeout === "number" && this.timeout > 100) {
|
|
175
175
|
const controller = new AbortController;
|
|
176
|
-
const timer = setTimeout(() => controller.abort(), this.timeout)
|
|
176
|
+
const timer = setTimeout(() => controller.abort(), this.timeout);
|
|
177
|
+
if (typeof timer === "object" && typeof timer.unref === "function")
|
|
178
|
+
timer.unref();
|
|
177
179
|
this.timeoutClearInstance = timer;
|
|
178
180
|
this.signal = controller.signal;
|
|
179
181
|
}
|
|
@@ -222,13 +224,14 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
222
224
|
options = settions.options;
|
|
223
225
|
}
|
|
224
226
|
options.headers = buildHeaders(options.headers);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
const optHeaders = options.headers;
|
|
228
|
+
let headers = optHeaders;
|
|
229
|
+
if (optHeaders.has("Cookie")) {
|
|
230
|
+
headers = new RezoHeaders(optHeaders.toObject());
|
|
228
231
|
if (!config.useCookies) {
|
|
229
232
|
config.useCookies = true;
|
|
230
233
|
}
|
|
231
|
-
|
|
234
|
+
optHeaders.delete("Cookie");
|
|
232
235
|
}
|
|
233
236
|
const mainUrl = !isNew && addedOptions.fullUrl ? addedOptions.fullUrl : undefined;
|
|
234
237
|
const forContentType = validMethods.includes(options.method.toLowerCase());
|
|
@@ -308,7 +311,7 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
308
311
|
if (options.xsrfCookieName && options.xsrfHeaderName && requestCookies.length > 0) {
|
|
309
312
|
const xsrfCookie = requestCookies.find((c) => c.key === options.xsrfCookieName);
|
|
310
313
|
if (xsrfCookie && xsrfCookie.value) {
|
|
311
|
-
|
|
314
|
+
headers.set(options.xsrfHeaderName, xsrfCookie.value);
|
|
312
315
|
}
|
|
313
316
|
}
|
|
314
317
|
if (requestCookies.length > 0 && config) {
|
|
@@ -322,7 +325,7 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
322
325
|
}
|
|
323
326
|
}
|
|
324
327
|
if (cookiesString) {
|
|
325
|
-
|
|
328
|
+
headers.set("Cookie", cookiesString);
|
|
326
329
|
}
|
|
327
330
|
if (options.body) {
|
|
328
331
|
fetchOptions.body = options.body;
|
|
@@ -373,21 +376,21 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
373
376
|
} else {
|
|
374
377
|
fetchOptions.body = options.form;
|
|
375
378
|
}
|
|
376
|
-
|
|
379
|
+
headers.set("Content-Type", contentType);
|
|
377
380
|
} else if (options.json) {
|
|
378
381
|
fetchOptions.body = options.body;
|
|
379
382
|
contentType = "application/json";
|
|
380
|
-
|
|
383
|
+
headers.set("Content-Type", contentType);
|
|
381
384
|
}
|
|
382
385
|
} else if (contentType) {
|
|
383
386
|
const type = contentType.toLowerCase();
|
|
384
387
|
if (type.includes("json")) {
|
|
385
|
-
|
|
388
|
+
headers.set("Content-Type", "application/json");
|
|
386
389
|
if (fetchOptions.body && typeof fetchOptions.body === "object") {
|
|
387
390
|
fetchOptions.body = JSON.stringify(fetchOptions.body);
|
|
388
391
|
}
|
|
389
392
|
} else if (type.includes("x-www-form-urlencoded")) {
|
|
390
|
-
|
|
393
|
+
headers.set("Content-Type", "application/x-www-form-urlencoded");
|
|
391
394
|
if (fetchOptions.body && typeof fetchOptions.body === "object") {
|
|
392
395
|
fetchOptions.body = new URLSearchParams(fetchOptions.body).toString();
|
|
393
396
|
}
|
|
@@ -423,14 +426,14 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
423
426
|
}
|
|
424
427
|
} else if (type.includes("text/") || type.includes("/javascript")) {
|
|
425
428
|
fetchOptions.body = fetchOptions.body ? typeof fetchOptions.body === "object" ? JSON.stringify(fetchOptions.body) : fetchOptions.body : "";
|
|
426
|
-
|
|
429
|
+
headers.set("Content-Type", contentType);
|
|
427
430
|
}
|
|
428
431
|
} else if (contentType && !options.withoutContentType) {
|
|
429
|
-
|
|
432
|
+
headers.set("Content-Type", contentType);
|
|
430
433
|
}
|
|
431
434
|
}
|
|
432
435
|
if (options.withoutContentType || isFormData) {
|
|
433
|
-
|
|
436
|
+
headers.delete("Content-Type");
|
|
434
437
|
}
|
|
435
438
|
if (options.withoutBodyOnRedirect && addedOptions.isRedirected) {
|
|
436
439
|
fetchOptions.body = undefined;
|
|
@@ -438,36 +441,36 @@ export function prepareHTTPOptions(options, jar, addedOptions, config) {
|
|
|
438
441
|
options.rejectUnauthorized = config.rejectUnauthorized;
|
|
439
442
|
if ((typeof options.autoSetReferer !== "boolean" || options.autoSetReferer) && addedOptions.redirectedUrl) {
|
|
440
443
|
if (!addedOptions.customHeaders)
|
|
441
|
-
|
|
444
|
+
headers.set("Referer", addedOptions.redirectedUrl);
|
|
442
445
|
}
|
|
443
446
|
if (!config.useCookies) {
|
|
444
|
-
|
|
447
|
+
headers.delete("Cookie");
|
|
445
448
|
}
|
|
446
449
|
if (fetchOptions.body && (fetchOptions.body instanceof FormData || fetchOptions.body instanceof RezoFormData)) {
|
|
447
|
-
|
|
450
|
+
headers.delete("Content-Type");
|
|
448
451
|
}
|
|
449
452
|
if (options.proxy) {
|
|
450
453
|
fetchOptions.proxy = options.proxy;
|
|
451
454
|
}
|
|
452
|
-
if (fetchOptions.method.toLowerCase() === "get" &&
|
|
453
|
-
|
|
455
|
+
if (fetchOptions.method.toLowerCase() === "get" && headers.has("Content-Type")) {
|
|
456
|
+
headers.delete("Content-Type");
|
|
454
457
|
}
|
|
455
458
|
if (mainUrl || addedOptions.redirectedUrl) {
|
|
456
|
-
|
|
459
|
+
headers.set("host", new URL(fetchOptions.fullUrl).host);
|
|
457
460
|
if ([`POST`, `PUT`, `PATCH`, `DELETE`, `OPTIONS`].includes(fetchOptions.method.toUpperCase()))
|
|
458
|
-
|
|
461
|
+
headers.set("origin", new URL(mainUrl || fetchOptions.url).origin);
|
|
459
462
|
} else {
|
|
460
|
-
if (!
|
|
463
|
+
if (!headers.has("origin") && options.autoSetOrigin) {
|
|
461
464
|
const r = [`POST`, `PUT`, `PATCH`, `DELETE`, `OPTIONS`].includes(fetchOptions.method.toUpperCase());
|
|
462
465
|
if (r)
|
|
463
|
-
|
|
466
|
+
headers.set("origin", new URL(mainUrl || fetchOptions.url).origin);
|
|
464
467
|
}
|
|
465
|
-
if (mainUrl && !
|
|
466
|
-
|
|
468
|
+
if (mainUrl && !headers.has("referer") && options.autoSetReferer) {
|
|
469
|
+
headers.set("referer", mainUrl);
|
|
467
470
|
}
|
|
468
471
|
}
|
|
469
472
|
if (addedOptions.redirectCode && addedOptions.lastRedirectedUrl) {
|
|
470
|
-
|
|
473
|
+
headers.set("referer", addedOptions.lastRedirectedUrl);
|
|
471
474
|
}
|
|
472
475
|
if (options.responseType) {
|
|
473
476
|
fetchOptions.responseType = options.responseType;
|
|
@@ -65,7 +65,8 @@ class StagedTimeoutManager {
|
|
|
65
65
|
phase.timer = setTimeout(() => {
|
|
66
66
|
this.handleTimeout(phaseName);
|
|
67
67
|
}, phase.timeout);
|
|
68
|
-
phase.timer.unref
|
|
68
|
+
if (typeof phase.timer === "object" && typeof phase.timer.unref === "function")
|
|
69
|
+
phase.timer.unref();
|
|
69
70
|
}
|
|
70
71
|
clearPhase(phaseName) {
|
|
71
72
|
const phase = this.phases.get(phaseName);
|
|
@@ -65,7 +65,8 @@ export class StagedTimeoutManager {
|
|
|
65
65
|
phase.timer = setTimeout(() => {
|
|
66
66
|
this.handleTimeout(phaseName);
|
|
67
67
|
}, phase.timeout);
|
|
68
|
-
phase.timer.unref
|
|
68
|
+
if (typeof phase.timer === "object" && typeof phase.timer.unref === "function")
|
|
69
|
+
phase.timer.unref();
|
|
69
70
|
}
|
|
70
71
|
clearPhase(phaseName) {
|
|
71
72
|
const phase = this.phases.get(phaseName);
|
package/dist/version.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const VERSION = exports.VERSION = "1.0.
|
|
1
|
+
const VERSION = exports.VERSION = "1.0.110";
|
|
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.110";
|
|
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_imq1s6 = require('./types.cjs');
|
|
2
|
+
exports.WgetError = _mod_imq1s6.WgetError;;
|
|
3
|
+
const _mod_rwjj3j = require('./asset-extractor.cjs');
|
|
4
|
+
exports.AssetExtractor = _mod_rwjj3j.AssetExtractor;;
|
|
5
|
+
const _mod_3isvy0 = require('./url-filter.cjs');
|
|
6
|
+
exports.UrlFilter = _mod_3isvy0.UrlFilter;;
|
|
7
|
+
const _mod_uczzgm = require('./file-writer.cjs');
|
|
8
|
+
exports.FileWriter = _mod_uczzgm.FileWriter;;
|
|
9
|
+
const _mod_pijlrf = require('./robots.cjs');
|
|
10
|
+
exports.RobotsHandler = _mod_pijlrf.RobotsHandler;;
|
|
11
|
+
const _mod_x71evb = require('./resume.cjs');
|
|
12
|
+
exports.ResumeHandler = _mod_x71evb.ResumeHandler;;
|
|
13
|
+
const _mod_mnwcjb = require('./progress.cjs');
|
|
14
|
+
exports.ProgressReporter = _mod_mnwcjb.ProgressReporter;
|
|
15
|
+
exports.ProgressTracker = _mod_mnwcjb.ProgressTracker;
|
|
16
|
+
exports.parseSize = _mod_mnwcjb.parseSize;;
|
|
17
|
+
const _mod_gqp55h = require('./link-converter.cjs');
|
|
18
|
+
exports.LinkConverter = _mod_gqp55h.LinkConverter;;
|
|
19
|
+
const _mod_9qvxak = require('./style-extractor.cjs');
|
|
20
|
+
exports.StyleExtractor = _mod_9qvxak.StyleExtractor;;
|
|
21
|
+
const _mod_wt1fug = require('./downloader.cjs');
|
|
22
|
+
exports.Downloader = _mod_wt1fug.Downloader;;
|
|
23
|
+
const _mod_lrky0r = require('./asset-organizer.cjs');
|
|
24
|
+
exports.AssetOrganizer = _mod_lrky0r.AssetOrganizer;
|
|
25
|
+
exports.DEFAULT_ASSET_FOLDERS = _mod_lrky0r.DEFAULT_ASSET_FOLDERS;;
|
|
26
|
+
const _mod_9ggedl = require('./download-cache.cjs');
|
|
27
|
+
exports.DownloadCache = _mod_9ggedl.DownloadCache;;
|
|
28
|
+
const _mod_yrk7q6 = require('./filter-lists.cjs');
|
|
29
|
+
exports.EXECUTABLE_EXTENSIONS = _mod_yrk7q6.EXECUTABLE_EXTENSIONS;
|
|
30
|
+
exports.ARCHIVE_EXTENSIONS = _mod_yrk7q6.ARCHIVE_EXTENSIONS;
|
|
31
|
+
exports.DOCUMENT_EXTENSIONS = _mod_yrk7q6.DOCUMENT_EXTENSIONS;
|
|
32
|
+
exports.IMAGE_EXTENSIONS = _mod_yrk7q6.IMAGE_EXTENSIONS;
|
|
33
|
+
exports.VIDEO_EXTENSIONS = _mod_yrk7q6.VIDEO_EXTENSIONS;
|
|
34
|
+
exports.AUDIO_EXTENSIONS = _mod_yrk7q6.AUDIO_EXTENSIONS;
|
|
35
|
+
exports.FONT_EXTENSIONS = _mod_yrk7q6.FONT_EXTENSIONS;
|
|
36
|
+
exports.WEB_ASSET_EXTENSIONS = _mod_yrk7q6.WEB_ASSET_EXTENSIONS;
|
|
37
|
+
exports.DATA_EXTENSIONS = _mod_yrk7q6.DATA_EXTENSIONS;
|
|
38
|
+
exports.EXECUTABLE_MIME_TYPES = _mod_yrk7q6.EXECUTABLE_MIME_TYPES;
|
|
39
|
+
exports.ARCHIVE_MIME_TYPES = _mod_yrk7q6.ARCHIVE_MIME_TYPES;
|
|
40
|
+
exports.DOCUMENT_MIME_TYPES = _mod_yrk7q6.DOCUMENT_MIME_TYPES;
|
|
41
|
+
exports.IMAGE_MIME_TYPES = _mod_yrk7q6.IMAGE_MIME_TYPES;
|
|
42
|
+
exports.VIDEO_MIME_TYPES = _mod_yrk7q6.VIDEO_MIME_TYPES;
|
|
43
|
+
exports.AUDIO_MIME_TYPES = _mod_yrk7q6.AUDIO_MIME_TYPES;
|
|
44
|
+
exports.FONT_MIME_TYPES = _mod_yrk7q6.FONT_MIME_TYPES;
|
|
45
|
+
exports.WEB_ASSET_MIME_TYPES = _mod_yrk7q6.WEB_ASSET_MIME_TYPES;
|
|
46
|
+
exports.DATA_MIME_TYPES = _mod_yrk7q6.DATA_MIME_TYPES;
|
|
47
|
+
exports.SAFE_WEB_PRESET = _mod_yrk7q6.SAFE_WEB_PRESET;
|
|
48
|
+
exports.DOCUMENTS_ONLY_PRESET = _mod_yrk7q6.DOCUMENTS_ONLY_PRESET;
|
|
49
|
+
exports.NO_MEDIA_PRESET = _mod_yrk7q6.NO_MEDIA_PRESET;
|
|
50
|
+
exports.MINIMAL_MIRROR_PRESET = _mod_yrk7q6.MINIMAL_MIRROR_PRESET;
|
|
51
|
+
exports.TEXT_ONLY_PRESET = _mod_yrk7q6.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/dist/wget/index.d.ts
CHANGED
|
@@ -3204,6 +3204,7 @@ export type RezoHeadersInit = [
|
|
|
3204
3204
|
string
|
|
3205
3205
|
][] | Record<string, string> | Headers | RezoHttpHeaders | RezoHeaders | OutgoingHttpHeaders;
|
|
3206
3206
|
declare class RezoHeaders extends Headers {
|
|
3207
|
+
[key: string]: any;
|
|
3207
3208
|
constructor(init?: RezoHeadersInit);
|
|
3208
3209
|
getAll(name: "set-cookie" | "Set-Cookie"): string[];
|
|
3209
3210
|
getSetCookie(): string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.110",
|
|
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",
|