rezo 1.0.57 → 1.0.58
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/index.cjs +6 -6
- package/dist/cache/index.cjs +9 -9
- package/dist/crawler/crawler.cjs +5 -11
- package/dist/crawler/crawler.js +5 -11
- package/dist/crawler/index.cjs +40 -40
- package/dist/entries/crawler.cjs +4 -4
- package/dist/index.cjs +27 -27
- package/dist/internal/agents/index.cjs +10 -10
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +8 -8
- package/dist/responses/universal/index.cjs +11 -11
- package/package.json +1 -1
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_ronpz5 = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_ronpz5.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_ronpz5.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_ronpz5.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_ronpz5.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_ronpz5.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_ea4mgu = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_ea4mgu.LRUCache;;
|
|
3
|
+
const _mod_9o2noq = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_9o2noq.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_9o2noq.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_9o2noq.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_jow0hp = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_jow0hp.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_jow0hp.normalizeResponseCacheConfig;;
|
package/dist/crawler/crawler.cjs
CHANGED
|
@@ -563,10 +563,10 @@ class Crawler {
|
|
|
563
563
|
this.queue.add(() => handler(error));
|
|
564
564
|
}
|
|
565
565
|
async _onEmailDiscovered(handler, email) {
|
|
566
|
-
|
|
566
|
+
this.queue.add(() => handler(email));
|
|
567
567
|
}
|
|
568
568
|
async _onEmailLeads(handler, emails) {
|
|
569
|
-
|
|
569
|
+
this.queue.add(() => handler(emails));
|
|
570
570
|
}
|
|
571
571
|
_onRawResponse(handler, rawResponse) {
|
|
572
572
|
this.queue.add(() => handler(rawResponse));
|
|
@@ -770,7 +770,7 @@ class Crawler {
|
|
|
770
770
|
this.crawlStats.startTime = Date.now();
|
|
771
771
|
for (const handler of this.startHandlers) {
|
|
772
772
|
try {
|
|
773
|
-
|
|
773
|
+
this.queue.add(() => handler());
|
|
774
774
|
} catch (error) {
|
|
775
775
|
if (this.config.debug) {
|
|
776
776
|
console.error("[Crawler] onStart handler error:", error);
|
|
@@ -782,7 +782,7 @@ class Crawler {
|
|
|
782
782
|
this.crawlStats.endTime = Date.now();
|
|
783
783
|
for (const handler of this.finishHandlers) {
|
|
784
784
|
try {
|
|
785
|
-
|
|
785
|
+
this.queue.add(() => handler(this.crawlStats));
|
|
786
786
|
} catch (error) {
|
|
787
787
|
if (this.config.debug) {
|
|
788
788
|
console.error("[Crawler] onFinish handler error:", error);
|
|
@@ -793,7 +793,7 @@ class Crawler {
|
|
|
793
793
|
async triggerRedirectHandlers(event) {
|
|
794
794
|
for (const handler of this.redirectHandlers) {
|
|
795
795
|
try {
|
|
796
|
-
|
|
796
|
+
this.queue.add(() => handler(event));
|
|
797
797
|
} catch (error) {
|
|
798
798
|
if (this.config.debug) {
|
|
799
799
|
console.error("[Crawler] onRedirect handler error:", error);
|
|
@@ -883,15 +883,12 @@ class Crawler {
|
|
|
883
883
|
}
|
|
884
884
|
async execute(method, url, body, options = {}, isEmail, forceRevisit, oxylabsOptions, oxylabsInstanse, decodoInstanse, decodoOptions) {
|
|
885
885
|
await this.waitForStorage();
|
|
886
|
-
console.log("Waiting for storage...");
|
|
887
886
|
if (this.isCacheEnabled) {
|
|
888
887
|
await this.waitForCache();
|
|
889
888
|
}
|
|
890
|
-
console.log("Waiting for cache...");
|
|
891
889
|
if (this.config.enableNavigationHistory) {
|
|
892
890
|
await this.waitForNavigationHistory();
|
|
893
891
|
}
|
|
894
|
-
console.log("Waiting for navigation history...");
|
|
895
892
|
const task = this.queue.add(() => this.executeHttp(method, url, body, options, isEmail, forceRevisit, oxylabsOptions, oxylabsInstanse, decodoInstanse, decodoOptions));
|
|
896
893
|
task.finally(() => this.pendingExecutions.delete(task));
|
|
897
894
|
}
|
|
@@ -918,9 +915,7 @@ class Crawler {
|
|
|
918
915
|
}
|
|
919
916
|
async executeHttp(method, url, body, options = {}, isEmail, forceRevisit, oxylabsOptions, oxylabsInstanse, decodoInstanse, decodoOptions, retryCount = 0, parentUrl) {
|
|
920
917
|
try {
|
|
921
|
-
console.log("Triggering start handlers...");
|
|
922
918
|
await this.triggerStartHandlers();
|
|
923
|
-
console.log("Checking crawl limits...");
|
|
924
919
|
const limitCheck = await this.checkCrawlLimits(url, parentUrl);
|
|
925
920
|
if (!limitCheck.allowed) {
|
|
926
921
|
if (this.config.debug) {
|
|
@@ -944,7 +939,6 @@ class Crawler {
|
|
|
944
939
|
}
|
|
945
940
|
const requestStartTime = Date.now();
|
|
946
941
|
const response = cache && method === "GET" ? cache : oxylabsInstanse && oxylabsOptions ? await oxylabsInstanse.scrape(url) : decodoInstanse && decodoOptions ? await decodoInstanse.scrape(url) : await (method === "GET" ? this.http.get(url, options) : method === "PATCH" ? this.http.patch(url, body, options) : method === "POST" ? this.http.post(url, body, options) : this.http.put(url, body, options));
|
|
947
|
-
console.log("Response received...");
|
|
948
942
|
if (!cache) {
|
|
949
943
|
const responseTime = Date.now() - requestStartTime;
|
|
950
944
|
this.calculateAutoThrottleDelay(domain, responseTime);
|
package/dist/crawler/crawler.js
CHANGED
|
@@ -563,10 +563,10 @@ export class Crawler {
|
|
|
563
563
|
this.queue.add(() => handler(error));
|
|
564
564
|
}
|
|
565
565
|
async _onEmailDiscovered(handler, email) {
|
|
566
|
-
|
|
566
|
+
this.queue.add(() => handler(email));
|
|
567
567
|
}
|
|
568
568
|
async _onEmailLeads(handler, emails) {
|
|
569
|
-
|
|
569
|
+
this.queue.add(() => handler(emails));
|
|
570
570
|
}
|
|
571
571
|
_onRawResponse(handler, rawResponse) {
|
|
572
572
|
this.queue.add(() => handler(rawResponse));
|
|
@@ -770,7 +770,7 @@ export class Crawler {
|
|
|
770
770
|
this.crawlStats.startTime = Date.now();
|
|
771
771
|
for (const handler of this.startHandlers) {
|
|
772
772
|
try {
|
|
773
|
-
|
|
773
|
+
this.queue.add(() => handler());
|
|
774
774
|
} catch (error) {
|
|
775
775
|
if (this.config.debug) {
|
|
776
776
|
console.error("[Crawler] onStart handler error:", error);
|
|
@@ -782,7 +782,7 @@ export class Crawler {
|
|
|
782
782
|
this.crawlStats.endTime = Date.now();
|
|
783
783
|
for (const handler of this.finishHandlers) {
|
|
784
784
|
try {
|
|
785
|
-
|
|
785
|
+
this.queue.add(() => handler(this.crawlStats));
|
|
786
786
|
} catch (error) {
|
|
787
787
|
if (this.config.debug) {
|
|
788
788
|
console.error("[Crawler] onFinish handler error:", error);
|
|
@@ -793,7 +793,7 @@ export class Crawler {
|
|
|
793
793
|
async triggerRedirectHandlers(event) {
|
|
794
794
|
for (const handler of this.redirectHandlers) {
|
|
795
795
|
try {
|
|
796
|
-
|
|
796
|
+
this.queue.add(() => handler(event));
|
|
797
797
|
} catch (error) {
|
|
798
798
|
if (this.config.debug) {
|
|
799
799
|
console.error("[Crawler] onRedirect handler error:", error);
|
|
@@ -883,15 +883,12 @@ export class Crawler {
|
|
|
883
883
|
}
|
|
884
884
|
async execute(method, url, body, options = {}, isEmail, forceRevisit, oxylabsOptions, oxylabsInstanse, decodoInstanse, decodoOptions) {
|
|
885
885
|
await this.waitForStorage();
|
|
886
|
-
console.log("Waiting for storage...");
|
|
887
886
|
if (this.isCacheEnabled) {
|
|
888
887
|
await this.waitForCache();
|
|
889
888
|
}
|
|
890
|
-
console.log("Waiting for cache...");
|
|
891
889
|
if (this.config.enableNavigationHistory) {
|
|
892
890
|
await this.waitForNavigationHistory();
|
|
893
891
|
}
|
|
894
|
-
console.log("Waiting for navigation history...");
|
|
895
892
|
const task = this.queue.add(() => this.executeHttp(method, url, body, options, isEmail, forceRevisit, oxylabsOptions, oxylabsInstanse, decodoInstanse, decodoOptions));
|
|
896
893
|
task.finally(() => this.pendingExecutions.delete(task));
|
|
897
894
|
}
|
|
@@ -918,9 +915,7 @@ export class Crawler {
|
|
|
918
915
|
}
|
|
919
916
|
async executeHttp(method, url, body, options = {}, isEmail, forceRevisit, oxylabsOptions, oxylabsInstanse, decodoInstanse, decodoOptions, retryCount = 0, parentUrl) {
|
|
920
917
|
try {
|
|
921
|
-
console.log("Triggering start handlers...");
|
|
922
918
|
await this.triggerStartHandlers();
|
|
923
|
-
console.log("Checking crawl limits...");
|
|
924
919
|
const limitCheck = await this.checkCrawlLimits(url, parentUrl);
|
|
925
920
|
if (!limitCheck.allowed) {
|
|
926
921
|
if (this.config.debug) {
|
|
@@ -944,7 +939,6 @@ export class Crawler {
|
|
|
944
939
|
}
|
|
945
940
|
const requestStartTime = Date.now();
|
|
946
941
|
const response = cache && method === "GET" ? cache : oxylabsInstanse && oxylabsOptions ? await oxylabsInstanse.scrape(url) : decodoInstanse && decodoOptions ? await decodoInstanse.scrape(url) : await (method === "GET" ? this.http.get(url, options) : method === "PATCH" ? this.http.patch(url, body, options) : method === "POST" ? this.http.post(url, body, options) : this.http.put(url, body, options));
|
|
947
|
-
console.log("Response received...");
|
|
948
942
|
if (!cache) {
|
|
949
943
|
const responseTime = Date.now() - requestStartTime;
|
|
950
944
|
this.calculateAutoThrottleDelay(domain, responseTime);
|
package/dist/crawler/index.cjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
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.Decodo =
|
|
27
|
-
const
|
|
28
|
-
exports.DECODO_DEVICE_TYPES =
|
|
29
|
-
exports.DECODO_HEADLESS_MODES =
|
|
30
|
-
exports.DECODO_COMMON_LOCALES =
|
|
31
|
-
exports.DECODO_COMMON_COUNTRIES =
|
|
32
|
-
exports.DECODO_EUROPEAN_COUNTRIES =
|
|
33
|
-
exports.DECODO_ASIAN_COUNTRIES =
|
|
34
|
-
exports.DECODO_US_STATES =
|
|
35
|
-
exports.DECODO_COMMON_CITIES =
|
|
36
|
-
exports.getRandomDecodoDeviceType =
|
|
37
|
-
exports.getRandomDecodoLocale =
|
|
38
|
-
exports.getRandomDecodoCountry =
|
|
39
|
-
exports.getRandomDecodoCity =
|
|
40
|
-
exports.generateDecodoSessionId =
|
|
1
|
+
const _mod_6edby9 = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_6edby9.Crawler;;
|
|
3
|
+
const _mod_axv8z7 = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_axv8z7.CrawlerOptions;;
|
|
5
|
+
const _mod_6wttbe = require('./plugin/robots-txt.cjs');
|
|
6
|
+
exports.RobotsTxt = _mod_6wttbe.RobotsTxt;;
|
|
7
|
+
const _mod_2zjk4f = require('./plugin/file-cacher.cjs');
|
|
8
|
+
exports.FileCacher = _mod_2zjk4f.FileCacher;;
|
|
9
|
+
const _mod_xmrwxh = require('./plugin/url-store.cjs');
|
|
10
|
+
exports.UrlStore = _mod_xmrwxh.UrlStore;;
|
|
11
|
+
const _mod_pl47sn = require('./plugin/navigation-history.cjs');
|
|
12
|
+
exports.NavigationHistory = _mod_pl47sn.NavigationHistory;;
|
|
13
|
+
const _mod_dbnsr9 = require('./addon/oxylabs/index.cjs');
|
|
14
|
+
exports.Oxylabs = _mod_dbnsr9.Oxylabs;;
|
|
15
|
+
const _mod_h2o4d1 = require('./addon/oxylabs/options.cjs');
|
|
16
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_h2o4d1.OXYLABS_BROWSER_TYPES;
|
|
17
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_h2o4d1.OXYLABS_COMMON_LOCALES;
|
|
18
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_h2o4d1.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
19
|
+
exports.OXYLABS_US_STATES = _mod_h2o4d1.OXYLABS_US_STATES;
|
|
20
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_h2o4d1.OXYLABS_EUROPEAN_COUNTRIES;
|
|
21
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_h2o4d1.OXYLABS_ASIAN_COUNTRIES;
|
|
22
|
+
exports.getRandomOxylabsBrowserType = _mod_h2o4d1.getRandomBrowserType;
|
|
23
|
+
exports.getRandomOxylabsLocale = _mod_h2o4d1.getRandomLocale;
|
|
24
|
+
exports.getRandomOxylabsGeoLocation = _mod_h2o4d1.getRandomGeoLocation;;
|
|
25
|
+
const _mod_63jx8t = require('./addon/decodo/index.cjs');
|
|
26
|
+
exports.Decodo = _mod_63jx8t.Decodo;;
|
|
27
|
+
const _mod_5y9hg7 = require('./addon/decodo/options.cjs');
|
|
28
|
+
exports.DECODO_DEVICE_TYPES = _mod_5y9hg7.DECODO_DEVICE_TYPES;
|
|
29
|
+
exports.DECODO_HEADLESS_MODES = _mod_5y9hg7.DECODO_HEADLESS_MODES;
|
|
30
|
+
exports.DECODO_COMMON_LOCALES = _mod_5y9hg7.DECODO_COMMON_LOCALES;
|
|
31
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_5y9hg7.DECODO_COMMON_COUNTRIES;
|
|
32
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_5y9hg7.DECODO_EUROPEAN_COUNTRIES;
|
|
33
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_5y9hg7.DECODO_ASIAN_COUNTRIES;
|
|
34
|
+
exports.DECODO_US_STATES = _mod_5y9hg7.DECODO_US_STATES;
|
|
35
|
+
exports.DECODO_COMMON_CITIES = _mod_5y9hg7.DECODO_COMMON_CITIES;
|
|
36
|
+
exports.getRandomDecodoDeviceType = _mod_5y9hg7.getRandomDeviceType;
|
|
37
|
+
exports.getRandomDecodoLocale = _mod_5y9hg7.getRandomLocale;
|
|
38
|
+
exports.getRandomDecodoCountry = _mod_5y9hg7.getRandomCountry;
|
|
39
|
+
exports.getRandomDecodoCity = _mod_5y9hg7.getRandomCity;
|
|
40
|
+
exports.generateDecodoSessionId = _mod_5y9hg7.generateSessionId;;
|
package/dist/entries/crawler.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
1
|
+
const _mod_wyq9kz = require('../crawler/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_wyq9kz.Crawler;;
|
|
3
|
+
const _mod_w2piwy = require('../crawler/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_w2piwy.CrawlerOptions;;
|
package/dist/index.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Rezo =
|
|
3
|
-
exports.createRezoInstance =
|
|
4
|
-
exports.createDefaultInstance =
|
|
5
|
-
const
|
|
6
|
-
exports.RezoError =
|
|
7
|
-
exports.RezoErrorCode =
|
|
8
|
-
const
|
|
9
|
-
exports.RezoHeaders =
|
|
10
|
-
const
|
|
11
|
-
exports.RezoFormData =
|
|
12
|
-
const
|
|
13
|
-
exports.RezoCookieJar =
|
|
14
|
-
exports.Cookie =
|
|
15
|
-
const
|
|
16
|
-
exports.toCurl =
|
|
17
|
-
exports.fromCurl =
|
|
18
|
-
const
|
|
19
|
-
exports.createDefaultHooks =
|
|
20
|
-
exports.mergeHooks =
|
|
21
|
-
const
|
|
22
|
-
exports.ProxyManager =
|
|
23
|
-
const
|
|
24
|
-
exports.RezoQueue =
|
|
25
|
-
exports.HttpQueue =
|
|
26
|
-
exports.Priority =
|
|
27
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_i5u6sg = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_i5u6sg.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_i5u6sg.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_i5u6sg.createDefaultInstance;;
|
|
5
|
+
const _mod_41z8dt = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_41z8dt.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_41z8dt.RezoErrorCode;;
|
|
8
|
+
const _mod_n2o0jv = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_n2o0jv.RezoHeaders;;
|
|
10
|
+
const _mod_imk3ix = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_imk3ix.RezoFormData;;
|
|
12
|
+
const _mod_5jwled = require('./utils/cookies.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_5jwled.RezoCookieJar;
|
|
14
|
+
exports.Cookie = _mod_5jwled.Cookie;;
|
|
15
|
+
const _mod_uk995z = require('./utils/curl.cjs');
|
|
16
|
+
exports.toCurl = _mod_uk995z.toCurl;
|
|
17
|
+
exports.fromCurl = _mod_uk995z.fromCurl;;
|
|
18
|
+
const _mod_b3o4e4 = require('./core/hooks.cjs');
|
|
19
|
+
exports.createDefaultHooks = _mod_b3o4e4.createDefaultHooks;
|
|
20
|
+
exports.mergeHooks = _mod_b3o4e4.mergeHooks;;
|
|
21
|
+
const _mod_wmzjgb = require('./proxy/manager.cjs');
|
|
22
|
+
exports.ProxyManager = _mod_wmzjgb.ProxyManager;;
|
|
23
|
+
const _mod_mhxh9j = require('./queue/index.cjs');
|
|
24
|
+
exports.RezoQueue = _mod_mhxh9j.RezoQueue;
|
|
25
|
+
exports.HttpQueue = _mod_mhxh9j.HttpQueue;
|
|
26
|
+
exports.Priority = _mod_mhxh9j.Priority;
|
|
27
|
+
exports.HttpMethodPriority = _mod_mhxh9j.HttpMethodPriority;;
|
|
28
28
|
const { RezoError } = require('./errors/rezo-error.cjs');
|
|
29
29
|
const isRezoError = exports.isRezoError = RezoError.isRezoError;
|
|
30
30
|
const Cancel = exports.Cancel = RezoError;
|
|
@@ -1,10 +1,10 @@
|
|
|
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 =
|
|
1
|
+
const _mod_1twhkh = require('./base.cjs');
|
|
2
|
+
exports.Agent = _mod_1twhkh.Agent;;
|
|
3
|
+
const _mod_6s90bc = require('./http-proxy.cjs');
|
|
4
|
+
exports.HttpProxyAgent = _mod_6s90bc.HttpProxyAgent;;
|
|
5
|
+
const _mod_y3mef2 = require('./https-proxy.cjs');
|
|
6
|
+
exports.HttpsProxyAgent = _mod_y3mef2.HttpsProxyAgent;;
|
|
7
|
+
const _mod_o8zfcz = require('./socks-proxy.cjs');
|
|
8
|
+
exports.SocksProxyAgent = _mod_o8zfcz.SocksProxyAgent;;
|
|
9
|
+
const _mod_ysdaev = require('./socks-client.cjs');
|
|
10
|
+
exports.SocksClient = _mod_ysdaev.SocksClient;;
|
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_c9uthc = require('./manager.cjs');
|
|
4
|
+
exports.ProxyManager = _mod_c9uthc.ProxyManager;;
|
|
5
|
+
const _mod_nqntdj = require('./parse.cjs');
|
|
6
|
+
exports.parseProxyString = _mod_nqntdj.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,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.RezoQueue =
|
|
3
|
-
const
|
|
4
|
-
exports.HttpQueue =
|
|
5
|
-
exports.extractDomain =
|
|
6
|
-
const
|
|
7
|
-
exports.Priority =
|
|
8
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_uinp36 = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_uinp36.RezoQueue;;
|
|
3
|
+
const _mod_p0ep5c = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_p0ep5c.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_p0ep5c.extractDomain;;
|
|
6
|
+
const _mod_5o7x2e = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_5o7x2e.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_5o7x2e.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_nbsy03 = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_nbsy03.UniversalEventEmitter;;
|
|
3
|
+
const _mod_q18xhk = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_q18xhk.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_q18xhk.StreamResponse;;
|
|
6
|
+
const _mod_yoyvb4 = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_yoyvb4.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_yoyvb4.DownloadResponse;;
|
|
9
|
+
const _mod_evsbw4 = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_evsbw4.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_evsbw4.UploadResponse;;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.58",
|
|
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",
|