rezo 1.0.57 → 1.0.59
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/queue/queue.cjs +1 -0
- package/dist/queue/queue.js +1 -0
- 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_u1e5ql = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_u1e5ql.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_u1e5ql.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_u1e5ql.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_u1e5ql.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_u1e5ql.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_fjdlws = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_fjdlws.LRUCache;;
|
|
3
|
+
const _mod_oob4e4 = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_oob4e4.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_oob4e4.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_oob4e4.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_zyli6l = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_zyli6l.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_zyli6l.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_dc78xf = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_dc78xf.Crawler;;
|
|
3
|
+
const _mod_imtiet = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_imtiet.CrawlerOptions;;
|
|
5
|
+
const _mod_3t38pb = require('./plugin/robots-txt.cjs');
|
|
6
|
+
exports.RobotsTxt = _mod_3t38pb.RobotsTxt;;
|
|
7
|
+
const _mod_781asb = require('./plugin/file-cacher.cjs');
|
|
8
|
+
exports.FileCacher = _mod_781asb.FileCacher;;
|
|
9
|
+
const _mod_f2dfet = require('./plugin/url-store.cjs');
|
|
10
|
+
exports.UrlStore = _mod_f2dfet.UrlStore;;
|
|
11
|
+
const _mod_d89338 = require('./plugin/navigation-history.cjs');
|
|
12
|
+
exports.NavigationHistory = _mod_d89338.NavigationHistory;;
|
|
13
|
+
const _mod_ha39m0 = require('./addon/oxylabs/index.cjs');
|
|
14
|
+
exports.Oxylabs = _mod_ha39m0.Oxylabs;;
|
|
15
|
+
const _mod_x8qas7 = require('./addon/oxylabs/options.cjs');
|
|
16
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_x8qas7.OXYLABS_BROWSER_TYPES;
|
|
17
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_x8qas7.OXYLABS_COMMON_LOCALES;
|
|
18
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_x8qas7.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
19
|
+
exports.OXYLABS_US_STATES = _mod_x8qas7.OXYLABS_US_STATES;
|
|
20
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_x8qas7.OXYLABS_EUROPEAN_COUNTRIES;
|
|
21
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_x8qas7.OXYLABS_ASIAN_COUNTRIES;
|
|
22
|
+
exports.getRandomOxylabsBrowserType = _mod_x8qas7.getRandomBrowserType;
|
|
23
|
+
exports.getRandomOxylabsLocale = _mod_x8qas7.getRandomLocale;
|
|
24
|
+
exports.getRandomOxylabsGeoLocation = _mod_x8qas7.getRandomGeoLocation;;
|
|
25
|
+
const _mod_ytfhuf = require('./addon/decodo/index.cjs');
|
|
26
|
+
exports.Decodo = _mod_ytfhuf.Decodo;;
|
|
27
|
+
const _mod_lgg0nr = require('./addon/decodo/options.cjs');
|
|
28
|
+
exports.DECODO_DEVICE_TYPES = _mod_lgg0nr.DECODO_DEVICE_TYPES;
|
|
29
|
+
exports.DECODO_HEADLESS_MODES = _mod_lgg0nr.DECODO_HEADLESS_MODES;
|
|
30
|
+
exports.DECODO_COMMON_LOCALES = _mod_lgg0nr.DECODO_COMMON_LOCALES;
|
|
31
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_lgg0nr.DECODO_COMMON_COUNTRIES;
|
|
32
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_lgg0nr.DECODO_EUROPEAN_COUNTRIES;
|
|
33
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_lgg0nr.DECODO_ASIAN_COUNTRIES;
|
|
34
|
+
exports.DECODO_US_STATES = _mod_lgg0nr.DECODO_US_STATES;
|
|
35
|
+
exports.DECODO_COMMON_CITIES = _mod_lgg0nr.DECODO_COMMON_CITIES;
|
|
36
|
+
exports.getRandomDecodoDeviceType = _mod_lgg0nr.getRandomDeviceType;
|
|
37
|
+
exports.getRandomDecodoLocale = _mod_lgg0nr.getRandomLocale;
|
|
38
|
+
exports.getRandomDecodoCountry = _mod_lgg0nr.getRandomCountry;
|
|
39
|
+
exports.getRandomDecodoCity = _mod_lgg0nr.getRandomCity;
|
|
40
|
+
exports.generateDecodoSessionId = _mod_lgg0nr.generateSessionId;;
|
package/dist/entries/crawler.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
1
|
+
const _mod_v7e9uq = require('../crawler/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_v7e9uq.Crawler;;
|
|
3
|
+
const _mod_4s1ziu = require('../crawler/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_4s1ziu.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_ctxufv = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_ctxufv.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_ctxufv.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_ctxufv.createDefaultInstance;;
|
|
5
|
+
const _mod_k9ypks = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_k9ypks.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_k9ypks.RezoErrorCode;;
|
|
8
|
+
const _mod_vuolvc = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_vuolvc.RezoHeaders;;
|
|
10
|
+
const _mod_nkv8ku = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_nkv8ku.RezoFormData;;
|
|
12
|
+
const _mod_df5jv4 = require('./utils/cookies.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_df5jv4.RezoCookieJar;
|
|
14
|
+
exports.Cookie = _mod_df5jv4.Cookie;;
|
|
15
|
+
const _mod_feu23v = require('./utils/curl.cjs');
|
|
16
|
+
exports.toCurl = _mod_feu23v.toCurl;
|
|
17
|
+
exports.fromCurl = _mod_feu23v.fromCurl;;
|
|
18
|
+
const _mod_lrfy77 = require('./core/hooks.cjs');
|
|
19
|
+
exports.createDefaultHooks = _mod_lrfy77.createDefaultHooks;
|
|
20
|
+
exports.mergeHooks = _mod_lrfy77.mergeHooks;;
|
|
21
|
+
const _mod_i1yv6t = require('./proxy/manager.cjs');
|
|
22
|
+
exports.ProxyManager = _mod_i1yv6t.ProxyManager;;
|
|
23
|
+
const _mod_sr2iby = require('./queue/index.cjs');
|
|
24
|
+
exports.RezoQueue = _mod_sr2iby.RezoQueue;
|
|
25
|
+
exports.HttpQueue = _mod_sr2iby.HttpQueue;
|
|
26
|
+
exports.Priority = _mod_sr2iby.Priority;
|
|
27
|
+
exports.HttpMethodPriority = _mod_sr2iby.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_wcqh71 = require('./base.cjs');
|
|
2
|
+
exports.Agent = _mod_wcqh71.Agent;;
|
|
3
|
+
const _mod_wmtr1f = require('./http-proxy.cjs');
|
|
4
|
+
exports.HttpProxyAgent = _mod_wmtr1f.HttpProxyAgent;;
|
|
5
|
+
const _mod_al0sp0 = require('./https-proxy.cjs');
|
|
6
|
+
exports.HttpsProxyAgent = _mod_al0sp0.HttpsProxyAgent;;
|
|
7
|
+
const _mod_m4ejbj = require('./socks-proxy.cjs');
|
|
8
|
+
exports.SocksProxyAgent = _mod_m4ejbj.SocksProxyAgent;;
|
|
9
|
+
const _mod_lihuil = require('./socks-client.cjs');
|
|
10
|
+
exports.SocksClient = _mod_lihuil.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_1ct44k = require('./manager.cjs');
|
|
4
|
+
exports.ProxyManager = _mod_1ct44k.ProxyManager;;
|
|
5
|
+
const _mod_ago4qr = require('./parse.cjs');
|
|
6
|
+
exports.parseProxyString = _mod_ago4qr.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_1c2jtg = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_1c2jtg.RezoQueue;;
|
|
3
|
+
const _mod_inigu3 = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_inigu3.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_inigu3.extractDomain;;
|
|
6
|
+
const _mod_7zduxr = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_7zduxr.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_7zduxr.HttpMethodPriority;;
|
package/dist/queue/queue.cjs
CHANGED
package/dist/queue/queue.js
CHANGED
|
@@ -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_sddco6 = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_sddco6.UniversalEventEmitter;;
|
|
3
|
+
const _mod_ifefgz = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_ifefgz.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_ifefgz.StreamResponse;;
|
|
6
|
+
const _mod_z0dcc3 = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_z0dcc3.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_z0dcc3.DownloadResponse;;
|
|
9
|
+
const _mod_mmtx2a = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_mmtx2a.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_mmtx2a.UploadResponse;;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
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",
|