rezo 1.0.27 → 1.0.28

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.
@@ -1158,9 +1158,11 @@ class CurlCommandBuilder {
1158
1158
  case "oauth1":
1159
1159
  case "aws4":
1160
1160
  case "custom":
1161
- if (auth.custom) {
1161
+ if (auth?.custom && typeof auth.custom === "object") {
1162
1162
  for (const [key, value] of Object.entries(auth.custom)) {
1163
- this.addArg("-H", `${key}: ${value}`);
1163
+ if (key && value !== undefined) {
1164
+ this.addArg("-H", `${key}: ${value}`);
1165
+ }
1164
1166
  }
1165
1167
  }
1166
1168
  break;
@@ -1158,9 +1158,11 @@ class CurlCommandBuilder {
1158
1158
  case "oauth1":
1159
1159
  case "aws4":
1160
1160
  case "custom":
1161
- if (auth.custom) {
1161
+ if (auth?.custom && typeof auth.custom === "object") {
1162
1162
  for (const [key, value] of Object.entries(auth.custom)) {
1163
- this.addArg("-H", `${key}: ${value}`);
1163
+ if (key && value !== undefined) {
1164
+ this.addArg("-H", `${key}: ${value}`);
1165
+ }
1164
1166
  }
1165
1167
  }
1166
1168
  break;
@@ -28,6 +28,85 @@ const Environment = {
28
28
  return typeof AbortController !== "undefined";
29
29
  }
30
30
  };
31
+ const debugLog = {
32
+ requestStart: (config, url, method) => {
33
+ if (config.debug) {
34
+ console.log(`
35
+ [Rezo Debug] ─────────────────────────────────────`);
36
+ console.log(`[Rezo Debug] ${method} ${url}`);
37
+ console.log(`[Rezo Debug] Request ID: ${config.requestId}`);
38
+ console.log(`[Rezo Debug] Adapter: fetch`);
39
+ if (config.originalRequest?.headers) {
40
+ const headers = config.originalRequest.headers instanceof RezoHeaders ? config.originalRequest.headers.toObject() : config.originalRequest.headers;
41
+ console.log(`[Rezo Debug] Request Headers:`, JSON.stringify(headers, null, 2));
42
+ }
43
+ }
44
+ if (config.trackUrl) {
45
+ console.log(`[Rezo Track] → ${method} ${url}`);
46
+ }
47
+ },
48
+ retry: (config, attempt, maxRetries, statusCode, delay) => {
49
+ if (config.debug) {
50
+ console.log(`[Rezo Debug] Retry ${attempt}/${maxRetries} after status ${statusCode}${delay > 0 ? ` (waiting ${delay}ms)` : ""}`);
51
+ }
52
+ if (config.trackUrl) {
53
+ console.log(`[Rezo Track] ⟳ Retry ${attempt}/${maxRetries} (status ${statusCode})`);
54
+ }
55
+ },
56
+ maxRetries: (config, maxRetries) => {
57
+ if (config.debug) {
58
+ console.log(`[Rezo Debug] Max retries (${maxRetries}) reached, throwing error`);
59
+ }
60
+ if (config.trackUrl) {
61
+ console.log(`[Rezo Track] ✗ Max retries reached`);
62
+ }
63
+ },
64
+ response: (config, status, statusText, duration) => {
65
+ if (config.debug) {
66
+ console.log(`[Rezo Debug] Response: ${status} ${statusText} (${duration.toFixed(2)}ms)`);
67
+ }
68
+ if (config.trackUrl) {
69
+ console.log(`[Rezo Track] ✓ ${status} ${statusText}`);
70
+ }
71
+ },
72
+ responseHeaders: (config, headers) => {
73
+ if (config.debug) {
74
+ console.log(`[Rezo Debug] Response Headers:`, JSON.stringify(headers, null, 2));
75
+ }
76
+ },
77
+ cookies: (config, cookieCount) => {
78
+ if (config.debug && cookieCount > 0) {
79
+ console.log(`[Rezo Debug] Cookies received: ${cookieCount}`);
80
+ }
81
+ },
82
+ timing: (config, timing) => {
83
+ if (config.debug) {
84
+ const parts = [];
85
+ if (timing.ttfb)
86
+ parts.push(`TTFB: ${timing.ttfb.toFixed(2)}ms`);
87
+ if (timing.total)
88
+ parts.push(`Total: ${timing.total.toFixed(2)}ms`);
89
+ if (parts.length > 0) {
90
+ console.log(`[Rezo Debug] Timing: ${parts.join(" | ")}`);
91
+ }
92
+ }
93
+ },
94
+ complete: (config, url) => {
95
+ if (config.debug) {
96
+ console.log(`[Rezo Debug] Request complete: ${url}`);
97
+ console.log(`[Rezo Debug] ─────────────────────────────────────
98
+ `);
99
+ }
100
+ },
101
+ error: (config, error) => {
102
+ if (config.debug) {
103
+ console.log(`[Rezo Debug] Error: ${error instanceof Error ? error.message : error}`);
104
+ }
105
+ if (config.trackUrl) {
106
+ console.log(`[Rezo Track] ✗ Error: ${error instanceof Error ? error.message : error}`);
107
+ }
108
+ }
109
+ };
31
110
  function updateTiming(config, timing, bodySize) {
32
111
  const now = performance.now();
33
112
  config.timing.domainLookupStart = config.timing.startTime;
@@ -554,6 +633,7 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
554
633
  } else if (config.transfer.requestSize === undefined) {
555
634
  config.transfer.requestSize = 0;
556
635
  }
636
+ debugLog.requestStart(config, url.href, fetchOptions.method?.toUpperCase() || "GET");
557
637
  }
558
638
  const reqHeaders = fetchOptions.headers instanceof RezoHeaders ? fetchOptions.headers.toObject() : fetchOptions.headers || {};
559
639
  const headers = toFetchHeaders(reqHeaders);
@@ -722,6 +802,14 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
722
802
  config.statusText = statusText;
723
803
  _stats.statusOnNext = status >= 400 ? "error" : "success";
724
804
  const mergedCookies = mergeRequestAndResponseCookies(config, cookies, url.href);
805
+ const duration = performance.now() - timing.startTime;
806
+ debugLog.response(config, status, statusText, duration);
807
+ debugLog.responseHeaders(config, responseHeaders.toObject());
808
+ debugLog.cookies(config, mergedCookies.array.length);
809
+ debugLog.timing(config, {
810
+ ttfb: timing.firstByteTime ? timing.firstByteTime - timing.startTime : undefined,
811
+ total: duration
812
+ });
725
813
  const finalResponse = {
726
814
  data: responseData,
727
815
  status,
@@ -805,6 +893,7 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
805
893
  uploadResult.emit("done", uploadFinishEvent);
806
894
  uploadResult._markFinished();
807
895
  }
896
+ debugLog.complete(config, url.href);
808
897
  return finalResponse;
809
898
  } catch (error) {
810
899
  _stats.statusOnNext = "error";
@@ -28,6 +28,85 @@ const Environment = {
28
28
  return typeof AbortController !== "undefined";
29
29
  }
30
30
  };
31
+ const debugLog = {
32
+ requestStart: (config, url, method) => {
33
+ if (config.debug) {
34
+ console.log(`
35
+ [Rezo Debug] ─────────────────────────────────────`);
36
+ console.log(`[Rezo Debug] ${method} ${url}`);
37
+ console.log(`[Rezo Debug] Request ID: ${config.requestId}`);
38
+ console.log(`[Rezo Debug] Adapter: fetch`);
39
+ if (config.originalRequest?.headers) {
40
+ const headers = config.originalRequest.headers instanceof RezoHeaders ? config.originalRequest.headers.toObject() : config.originalRequest.headers;
41
+ console.log(`[Rezo Debug] Request Headers:`, JSON.stringify(headers, null, 2));
42
+ }
43
+ }
44
+ if (config.trackUrl) {
45
+ console.log(`[Rezo Track] → ${method} ${url}`);
46
+ }
47
+ },
48
+ retry: (config, attempt, maxRetries, statusCode, delay) => {
49
+ if (config.debug) {
50
+ console.log(`[Rezo Debug] Retry ${attempt}/${maxRetries} after status ${statusCode}${delay > 0 ? ` (waiting ${delay}ms)` : ""}`);
51
+ }
52
+ if (config.trackUrl) {
53
+ console.log(`[Rezo Track] ⟳ Retry ${attempt}/${maxRetries} (status ${statusCode})`);
54
+ }
55
+ },
56
+ maxRetries: (config, maxRetries) => {
57
+ if (config.debug) {
58
+ console.log(`[Rezo Debug] Max retries (${maxRetries}) reached, throwing error`);
59
+ }
60
+ if (config.trackUrl) {
61
+ console.log(`[Rezo Track] ✗ Max retries reached`);
62
+ }
63
+ },
64
+ response: (config, status, statusText, duration) => {
65
+ if (config.debug) {
66
+ console.log(`[Rezo Debug] Response: ${status} ${statusText} (${duration.toFixed(2)}ms)`);
67
+ }
68
+ if (config.trackUrl) {
69
+ console.log(`[Rezo Track] ✓ ${status} ${statusText}`);
70
+ }
71
+ },
72
+ responseHeaders: (config, headers) => {
73
+ if (config.debug) {
74
+ console.log(`[Rezo Debug] Response Headers:`, JSON.stringify(headers, null, 2));
75
+ }
76
+ },
77
+ cookies: (config, cookieCount) => {
78
+ if (config.debug && cookieCount > 0) {
79
+ console.log(`[Rezo Debug] Cookies received: ${cookieCount}`);
80
+ }
81
+ },
82
+ timing: (config, timing) => {
83
+ if (config.debug) {
84
+ const parts = [];
85
+ if (timing.ttfb)
86
+ parts.push(`TTFB: ${timing.ttfb.toFixed(2)}ms`);
87
+ if (timing.total)
88
+ parts.push(`Total: ${timing.total.toFixed(2)}ms`);
89
+ if (parts.length > 0) {
90
+ console.log(`[Rezo Debug] Timing: ${parts.join(" | ")}`);
91
+ }
92
+ }
93
+ },
94
+ complete: (config, url) => {
95
+ if (config.debug) {
96
+ console.log(`[Rezo Debug] Request complete: ${url}`);
97
+ console.log(`[Rezo Debug] ─────────────────────────────────────
98
+ `);
99
+ }
100
+ },
101
+ error: (config, error) => {
102
+ if (config.debug) {
103
+ console.log(`[Rezo Debug] Error: ${error instanceof Error ? error.message : error}`);
104
+ }
105
+ if (config.trackUrl) {
106
+ console.log(`[Rezo Track] ✗ Error: ${error instanceof Error ? error.message : error}`);
107
+ }
108
+ }
109
+ };
31
110
  function updateTiming(config, timing, bodySize) {
32
111
  const now = performance.now();
33
112
  config.timing.domainLookupStart = config.timing.startTime;
@@ -554,6 +633,7 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
554
633
  } else if (config.transfer.requestSize === undefined) {
555
634
  config.transfer.requestSize = 0;
556
635
  }
636
+ debugLog.requestStart(config, url.href, fetchOptions.method?.toUpperCase() || "GET");
557
637
  }
558
638
  const reqHeaders = fetchOptions.headers instanceof RezoHeaders ? fetchOptions.headers.toObject() : fetchOptions.headers || {};
559
639
  const headers = toFetchHeaders(reqHeaders);
@@ -722,6 +802,14 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
722
802
  config.statusText = statusText;
723
803
  _stats.statusOnNext = status >= 400 ? "error" : "success";
724
804
  const mergedCookies = mergeRequestAndResponseCookies(config, cookies, url.href);
805
+ const duration = performance.now() - timing.startTime;
806
+ debugLog.response(config, status, statusText, duration);
807
+ debugLog.responseHeaders(config, responseHeaders.toObject());
808
+ debugLog.cookies(config, mergedCookies.array.length);
809
+ debugLog.timing(config, {
810
+ ttfb: timing.firstByteTime ? timing.firstByteTime - timing.startTime : undefined,
811
+ total: duration
812
+ });
725
813
  const finalResponse = {
726
814
  data: responseData,
727
815
  status,
@@ -805,6 +893,7 @@ async function executeSingleFetchRequest(config, fetchOptions, requestCount, tim
805
893
  uploadResult.emit("done", uploadFinishEvent);
806
894
  uploadResult._markFinished();
807
895
  }
896
+ debugLog.complete(config, url.href);
808
897
  return finalResponse;
809
898
  } catch (error) {
810
899
  _stats.statusOnNext = "error";
@@ -1,6 +1,6 @@
1
- const _mod_c82agb = require('./picker.cjs');
2
- exports.detectRuntime = _mod_c82agb.detectRuntime;
3
- exports.getAdapterCapabilities = _mod_c82agb.getAdapterCapabilities;
4
- exports.buildAdapterContext = _mod_c82agb.buildAdapterContext;
5
- exports.getAvailableAdapters = _mod_c82agb.getAvailableAdapters;
6
- exports.selectAdapter = _mod_c82agb.selectAdapter;;
1
+ const _mod_zvdk6z = require('./picker.cjs');
2
+ exports.detectRuntime = _mod_zvdk6z.detectRuntime;
3
+ exports.getAdapterCapabilities = _mod_zvdk6z.getAdapterCapabilities;
4
+ exports.buildAdapterContext = _mod_zvdk6z.buildAdapterContext;
5
+ exports.getAvailableAdapters = _mod_zvdk6z.getAvailableAdapters;
6
+ exports.selectAdapter = _mod_zvdk6z.selectAdapter;;
@@ -1,5 +1,6 @@
1
1
  const { RezoError } = require('../errors/rezo-error.cjs');
2
2
  const { buildSmartError, builErrorFromResponse } = require('../responses/buildError.cjs');
3
+ const { RezoCookieJar } = require('../utils/cookies.cjs');
3
4
  const RezoFormData = require('../utils/form-data.cjs');
4
5
  const { getDefaultConfig, prepareHTTPOptions } = require('../utils/http-config.cjs');
5
6
  const { RezoHeaders } = require('../utils/headers.cjs');
@@ -17,6 +18,85 @@ const Environment = {
17
18
  hasFormData: typeof FormData !== "undefined",
18
19
  hasAbortController: typeof AbortController !== "undefined"
19
20
  };
21
+ const debugLog = {
22
+ requestStart: (config, url, method) => {
23
+ if (config.debug) {
24
+ console.log(`
25
+ [Rezo Debug] ─────────────────────────────────────`);
26
+ console.log(`[Rezo Debug] ${method} ${url}`);
27
+ console.log(`[Rezo Debug] Request ID: ${config.requestId}`);
28
+ console.log(`[Rezo Debug] Adapter: react-native`);
29
+ if (config.originalRequest?.headers) {
30
+ const headers = config.originalRequest.headers instanceof RezoHeaders ? config.originalRequest.headers.toObject() : config.originalRequest.headers;
31
+ console.log(`[Rezo Debug] Request Headers:`, JSON.stringify(headers, null, 2));
32
+ }
33
+ }
34
+ if (config.trackUrl) {
35
+ console.log(`[Rezo Track] → ${method} ${url}`);
36
+ }
37
+ },
38
+ retry: (config, attempt, maxRetries, statusCode, delay) => {
39
+ if (config.debug) {
40
+ console.log(`[Rezo Debug] Retry ${attempt}/${maxRetries} after status ${statusCode}${delay > 0 ? ` (waiting ${delay}ms)` : ""}`);
41
+ }
42
+ if (config.trackUrl) {
43
+ console.log(`[Rezo Track] ⟳ Retry ${attempt}/${maxRetries} (status ${statusCode})`);
44
+ }
45
+ },
46
+ maxRetries: (config, maxRetries) => {
47
+ if (config.debug) {
48
+ console.log(`[Rezo Debug] Max retries (${maxRetries}) reached, throwing error`);
49
+ }
50
+ if (config.trackUrl) {
51
+ console.log(`[Rezo Track] ✗ Max retries reached`);
52
+ }
53
+ },
54
+ response: (config, status, statusText, duration) => {
55
+ if (config.debug) {
56
+ console.log(`[Rezo Debug] Response: ${status} ${statusText} (${duration.toFixed(2)}ms)`);
57
+ }
58
+ if (config.trackUrl) {
59
+ console.log(`[Rezo Track] ✓ ${status} ${statusText}`);
60
+ }
61
+ },
62
+ responseHeaders: (config, headers) => {
63
+ if (config.debug) {
64
+ console.log(`[Rezo Debug] Response Headers:`, JSON.stringify(headers, null, 2));
65
+ }
66
+ },
67
+ cookies: (config, cookieCount) => {
68
+ if (config.debug && cookieCount > 0) {
69
+ console.log(`[Rezo Debug] Cookies received: ${cookieCount}`);
70
+ }
71
+ },
72
+ timing: (config, timing) => {
73
+ if (config.debug) {
74
+ const parts = [];
75
+ if (timing.ttfb)
76
+ parts.push(`TTFB: ${timing.ttfb.toFixed(2)}ms`);
77
+ if (timing.total)
78
+ parts.push(`Total: ${timing.total.toFixed(2)}ms`);
79
+ if (parts.length > 0) {
80
+ console.log(`[Rezo Debug] Timing: ${parts.join(" | ")}`);
81
+ }
82
+ }
83
+ },
84
+ complete: (config, url) => {
85
+ if (config.debug) {
86
+ console.log(`[Rezo Debug] Request complete: ${url}`);
87
+ console.log(`[Rezo Debug] ─────────────────────────────────────
88
+ `);
89
+ }
90
+ },
91
+ error: (config, error) => {
92
+ if (config.debug) {
93
+ console.log(`[Rezo Debug] Error: ${error instanceof Error ? error.message : error}`);
94
+ }
95
+ if (config.trackUrl) {
96
+ console.log(`[Rezo Track] ✗ Error: ${error instanceof Error ? error.message : error}`);
97
+ }
98
+ }
99
+ };
20
100
  function updateTiming(config, timing, bodySize) {
21
101
  const now = performance.now();
22
102
  config.timing.domainLookupStart = config.timing.startTime;
@@ -291,11 +371,25 @@ async function executeFetchRequest(fetchOptions, config, options, perform, strea
291
371
  throw response;
292
372
  }
293
373
  if (maxRetries <= retries) {
374
+ debugLog.maxRetries(config, maxRetries);
294
375
  throw response;
295
376
  }
296
377
  retries++;
297
- if (retryDelay > 0) {
298
- await new Promise((resolve) => setTimeout(resolve, incrementDelay ? retryDelay * retries : retryDelay));
378
+ const currentDelay = incrementDelay ? retryDelay * retries : retryDelay;
379
+ debugLog.retry(config, retries, maxRetries, response.status || 0, currentDelay);
380
+ if (config.hooks?.beforeRetry && config.hooks.beforeRetry.length > 0) {
381
+ for (const hook of config.hooks.beforeRetry) {
382
+ try {
383
+ await hook(config, response, retries);
384
+ } catch (hookErr) {
385
+ if (config.debug) {
386
+ console.log("[Rezo Debug] beforeRetry hook error:", hookErr);
387
+ }
388
+ }
389
+ }
390
+ }
391
+ if (currentDelay > 0) {
392
+ await new Promise((resolve) => setTimeout(resolve, currentDelay));
299
393
  }
300
394
  }
301
395
  config.retryAttempts++;
@@ -319,6 +413,7 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
319
413
  config.isSecure = isSecure;
320
414
  config.finalUrl = url;
321
415
  config.network.protocol = isSecure ? "https" : "http";
416
+ debugLog.requestStart(config, url, fetchOptions.method?.toUpperCase() || "GET");
322
417
  const reqHeaders = fetchOptions.headers instanceof RezoHeaders ? fetchOptions.headers.toObject() : fetchOptions.headers || {};
323
418
  const headers = toFetchHeaders(reqHeaders);
324
419
  const eventEmitter = streamResult || downloadResult || uploadResult;
@@ -380,13 +475,68 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
380
475
  const responseHeaders = fromFetchHeaders(response.headers);
381
476
  const contentType = response.headers.get("content-type") || "";
382
477
  const contentLength = response.headers.get("content-length");
383
- const cookies = {
478
+ let cookies = {
384
479
  array: [],
385
480
  serialized: [],
386
481
  netscape: "",
387
482
  string: "",
388
483
  setCookiesString: []
389
484
  };
485
+ const setCookieHeader = response.headers.get("set-cookie");
486
+ if (setCookieHeader && config.useCookies) {
487
+ const cookieStrings = setCookieHeader.split(/,(?=[^;]+=[^;]+)/).map((s) => s.trim());
488
+ const tempJar = new RezoCookieJar;
489
+ tempJar.setCookiesSync(cookieStrings, url);
490
+ const parsedCookies = tempJar.cookies();
491
+ const acceptedCookies = [];
492
+ let hookError = null;
493
+ if (config.hooks?.beforeCookie && config.hooks.beforeCookie.length > 0) {
494
+ for (const cookie of parsedCookies.array) {
495
+ let shouldAccept = true;
496
+ for (const hook of config.hooks.beforeCookie) {
497
+ try {
498
+ const result = await hook({
499
+ cookie,
500
+ source: "response",
501
+ url,
502
+ isValid: true
503
+ }, config);
504
+ if (result === false) {
505
+ shouldAccept = false;
506
+ break;
507
+ }
508
+ } catch (err) {
509
+ hookError = err;
510
+ if (config.debug) {
511
+ console.log("[Rezo Debug] beforeCookie hook error:", err);
512
+ }
513
+ }
514
+ }
515
+ if (shouldAccept) {
516
+ acceptedCookies.push(cookie);
517
+ }
518
+ }
519
+ } else {
520
+ acceptedCookies.push(...parsedCookies.array);
521
+ }
522
+ const acceptedCookieStrings = acceptedCookies.map((c) => c.toSetCookieString());
523
+ if (config.enableCookieJar && config.cookieJar) {
524
+ config.cookieJar.setCookiesSync(acceptedCookieStrings, url);
525
+ }
526
+ const cookieJar = new RezoCookieJar(acceptedCookies, url);
527
+ cookies = cookieJar.cookies();
528
+ if (!hookError && config.hooks?.afterCookie && config.hooks.afterCookie.length > 0) {
529
+ for (const hook of config.hooks.afterCookie) {
530
+ try {
531
+ await hook(acceptedCookies, config);
532
+ } catch (err) {
533
+ if (config.debug) {
534
+ console.log("[Rezo Debug] afterCookie hook error:", err);
535
+ }
536
+ }
537
+ }
538
+ }
539
+ }
390
540
  config.responseCookies = cookies;
391
541
  if (eventEmitter) {
392
542
  const headersEvent = {
@@ -464,6 +614,14 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
464
614
  eventEmitter.emit("error", error);
465
615
  return error;
466
616
  }
617
+ const duration = performance.now() - timing.startTime;
618
+ debugLog.response(config, status, statusText, duration);
619
+ debugLog.responseHeaders(config, responseHeaders.toObject());
620
+ debugLog.cookies(config, cookies.array.length);
621
+ debugLog.timing(config, {
622
+ ttfb: timing.firstByteTime ? timing.firstByteTime - timing.startTime : undefined,
623
+ total: duration
624
+ });
467
625
  const finalResponse = {
468
626
  data: responseData,
469
627
  status,
@@ -476,6 +634,7 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
476
634
  finalUrl: url,
477
635
  urls: buildUrlTree(config, url)
478
636
  };
637
+ debugLog.complete(config, url);
479
638
  if (streamResult) {
480
639
  const streamFinishEvent = {
481
640
  status,
@@ -1,5 +1,6 @@
1
1
  import { RezoError } from '../errors/rezo-error.js';
2
2
  import { buildSmartError, builErrorFromResponse } from '../responses/buildError.js';
3
+ import { RezoCookieJar } from '../utils/cookies.js';
3
4
  import RezoFormData from '../utils/form-data.js';
4
5
  import { getDefaultConfig, prepareHTTPOptions } from '../utils/http-config.js';
5
6
  import { RezoHeaders } from '../utils/headers.js';
@@ -17,6 +18,85 @@ const Environment = {
17
18
  hasFormData: typeof FormData !== "undefined",
18
19
  hasAbortController: typeof AbortController !== "undefined"
19
20
  };
21
+ const debugLog = {
22
+ requestStart: (config, url, method) => {
23
+ if (config.debug) {
24
+ console.log(`
25
+ [Rezo Debug] ─────────────────────────────────────`);
26
+ console.log(`[Rezo Debug] ${method} ${url}`);
27
+ console.log(`[Rezo Debug] Request ID: ${config.requestId}`);
28
+ console.log(`[Rezo Debug] Adapter: react-native`);
29
+ if (config.originalRequest?.headers) {
30
+ const headers = config.originalRequest.headers instanceof RezoHeaders ? config.originalRequest.headers.toObject() : config.originalRequest.headers;
31
+ console.log(`[Rezo Debug] Request Headers:`, JSON.stringify(headers, null, 2));
32
+ }
33
+ }
34
+ if (config.trackUrl) {
35
+ console.log(`[Rezo Track] → ${method} ${url}`);
36
+ }
37
+ },
38
+ retry: (config, attempt, maxRetries, statusCode, delay) => {
39
+ if (config.debug) {
40
+ console.log(`[Rezo Debug] Retry ${attempt}/${maxRetries} after status ${statusCode}${delay > 0 ? ` (waiting ${delay}ms)` : ""}`);
41
+ }
42
+ if (config.trackUrl) {
43
+ console.log(`[Rezo Track] ⟳ Retry ${attempt}/${maxRetries} (status ${statusCode})`);
44
+ }
45
+ },
46
+ maxRetries: (config, maxRetries) => {
47
+ if (config.debug) {
48
+ console.log(`[Rezo Debug] Max retries (${maxRetries}) reached, throwing error`);
49
+ }
50
+ if (config.trackUrl) {
51
+ console.log(`[Rezo Track] ✗ Max retries reached`);
52
+ }
53
+ },
54
+ response: (config, status, statusText, duration) => {
55
+ if (config.debug) {
56
+ console.log(`[Rezo Debug] Response: ${status} ${statusText} (${duration.toFixed(2)}ms)`);
57
+ }
58
+ if (config.trackUrl) {
59
+ console.log(`[Rezo Track] ✓ ${status} ${statusText}`);
60
+ }
61
+ },
62
+ responseHeaders: (config, headers) => {
63
+ if (config.debug) {
64
+ console.log(`[Rezo Debug] Response Headers:`, JSON.stringify(headers, null, 2));
65
+ }
66
+ },
67
+ cookies: (config, cookieCount) => {
68
+ if (config.debug && cookieCount > 0) {
69
+ console.log(`[Rezo Debug] Cookies received: ${cookieCount}`);
70
+ }
71
+ },
72
+ timing: (config, timing) => {
73
+ if (config.debug) {
74
+ const parts = [];
75
+ if (timing.ttfb)
76
+ parts.push(`TTFB: ${timing.ttfb.toFixed(2)}ms`);
77
+ if (timing.total)
78
+ parts.push(`Total: ${timing.total.toFixed(2)}ms`);
79
+ if (parts.length > 0) {
80
+ console.log(`[Rezo Debug] Timing: ${parts.join(" | ")}`);
81
+ }
82
+ }
83
+ },
84
+ complete: (config, url) => {
85
+ if (config.debug) {
86
+ console.log(`[Rezo Debug] Request complete: ${url}`);
87
+ console.log(`[Rezo Debug] ─────────────────────────────────────
88
+ `);
89
+ }
90
+ },
91
+ error: (config, error) => {
92
+ if (config.debug) {
93
+ console.log(`[Rezo Debug] Error: ${error instanceof Error ? error.message : error}`);
94
+ }
95
+ if (config.trackUrl) {
96
+ console.log(`[Rezo Track] ✗ Error: ${error instanceof Error ? error.message : error}`);
97
+ }
98
+ }
99
+ };
20
100
  function updateTiming(config, timing, bodySize) {
21
101
  const now = performance.now();
22
102
  config.timing.domainLookupStart = config.timing.startTime;
@@ -291,11 +371,25 @@ async function executeFetchRequest(fetchOptions, config, options, perform, strea
291
371
  throw response;
292
372
  }
293
373
  if (maxRetries <= retries) {
374
+ debugLog.maxRetries(config, maxRetries);
294
375
  throw response;
295
376
  }
296
377
  retries++;
297
- if (retryDelay > 0) {
298
- await new Promise((resolve) => setTimeout(resolve, incrementDelay ? retryDelay * retries : retryDelay));
378
+ const currentDelay = incrementDelay ? retryDelay * retries : retryDelay;
379
+ debugLog.retry(config, retries, maxRetries, response.status || 0, currentDelay);
380
+ if (config.hooks?.beforeRetry && config.hooks.beforeRetry.length > 0) {
381
+ for (const hook of config.hooks.beforeRetry) {
382
+ try {
383
+ await hook(config, response, retries);
384
+ } catch (hookErr) {
385
+ if (config.debug) {
386
+ console.log("[Rezo Debug] beforeRetry hook error:", hookErr);
387
+ }
388
+ }
389
+ }
390
+ }
391
+ if (currentDelay > 0) {
392
+ await new Promise((resolve) => setTimeout(resolve, currentDelay));
299
393
  }
300
394
  }
301
395
  config.retryAttempts++;
@@ -319,6 +413,7 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
319
413
  config.isSecure = isSecure;
320
414
  config.finalUrl = url;
321
415
  config.network.protocol = isSecure ? "https" : "http";
416
+ debugLog.requestStart(config, url, fetchOptions.method?.toUpperCase() || "GET");
322
417
  const reqHeaders = fetchOptions.headers instanceof RezoHeaders ? fetchOptions.headers.toObject() : fetchOptions.headers || {};
323
418
  const headers = toFetchHeaders(reqHeaders);
324
419
  const eventEmitter = streamResult || downloadResult || uploadResult;
@@ -380,13 +475,68 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
380
475
  const responseHeaders = fromFetchHeaders(response.headers);
381
476
  const contentType = response.headers.get("content-type") || "";
382
477
  const contentLength = response.headers.get("content-length");
383
- const cookies = {
478
+ let cookies = {
384
479
  array: [],
385
480
  serialized: [],
386
481
  netscape: "",
387
482
  string: "",
388
483
  setCookiesString: []
389
484
  };
485
+ const setCookieHeader = response.headers.get("set-cookie");
486
+ if (setCookieHeader && config.useCookies) {
487
+ const cookieStrings = setCookieHeader.split(/,(?=[^;]+=[^;]+)/).map((s) => s.trim());
488
+ const tempJar = new RezoCookieJar;
489
+ tempJar.setCookiesSync(cookieStrings, url);
490
+ const parsedCookies = tempJar.cookies();
491
+ const acceptedCookies = [];
492
+ let hookError = null;
493
+ if (config.hooks?.beforeCookie && config.hooks.beforeCookie.length > 0) {
494
+ for (const cookie of parsedCookies.array) {
495
+ let shouldAccept = true;
496
+ for (const hook of config.hooks.beforeCookie) {
497
+ try {
498
+ const result = await hook({
499
+ cookie,
500
+ source: "response",
501
+ url,
502
+ isValid: true
503
+ }, config);
504
+ if (result === false) {
505
+ shouldAccept = false;
506
+ break;
507
+ }
508
+ } catch (err) {
509
+ hookError = err;
510
+ if (config.debug) {
511
+ console.log("[Rezo Debug] beforeCookie hook error:", err);
512
+ }
513
+ }
514
+ }
515
+ if (shouldAccept) {
516
+ acceptedCookies.push(cookie);
517
+ }
518
+ }
519
+ } else {
520
+ acceptedCookies.push(...parsedCookies.array);
521
+ }
522
+ const acceptedCookieStrings = acceptedCookies.map((c) => c.toSetCookieString());
523
+ if (config.enableCookieJar && config.cookieJar) {
524
+ config.cookieJar.setCookiesSync(acceptedCookieStrings, url);
525
+ }
526
+ const cookieJar = new RezoCookieJar(acceptedCookies, url);
527
+ cookies = cookieJar.cookies();
528
+ if (!hookError && config.hooks?.afterCookie && config.hooks.afterCookie.length > 0) {
529
+ for (const hook of config.hooks.afterCookie) {
530
+ try {
531
+ await hook(acceptedCookies, config);
532
+ } catch (err) {
533
+ if (config.debug) {
534
+ console.log("[Rezo Debug] afterCookie hook error:", err);
535
+ }
536
+ }
537
+ }
538
+ }
539
+ }
390
540
  config.responseCookies = cookies;
391
541
  if (eventEmitter) {
392
542
  const headersEvent = {
@@ -464,6 +614,14 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
464
614
  eventEmitter.emit("error", error);
465
615
  return error;
466
616
  }
617
+ const duration = performance.now() - timing.startTime;
618
+ debugLog.response(config, status, statusText, duration);
619
+ debugLog.responseHeaders(config, responseHeaders.toObject());
620
+ debugLog.cookies(config, cookies.array.length);
621
+ debugLog.timing(config, {
622
+ ttfb: timing.firstByteTime ? timing.firstByteTime - timing.startTime : undefined,
623
+ total: duration
624
+ });
467
625
  const finalResponse = {
468
626
  data: responseData,
469
627
  status,
@@ -476,6 +634,7 @@ async function executeSingleRequest(config, fetchOptions, timing, streamResult,
476
634
  finalUrl: url,
477
635
  urls: buildUrlTree(config, url)
478
636
  };
637
+ debugLog.complete(config, url);
479
638
  if (streamResult) {
480
639
  const streamFinishEvent = {
481
640
  status,
@@ -1,13 +1,13 @@
1
- const _mod_wg0295 = require('./lru-cache.cjs');
2
- exports.LRUCache = _mod_wg0295.LRUCache;;
3
- const _mod_udgn2v = require('./dns-cache.cjs');
4
- exports.DNSCache = _mod_udgn2v.DNSCache;
5
- exports.getGlobalDNSCache = _mod_udgn2v.getGlobalDNSCache;
6
- exports.resetGlobalDNSCache = _mod_udgn2v.resetGlobalDNSCache;;
7
- const _mod_6kolan = require('./response-cache.cjs');
8
- exports.ResponseCache = _mod_6kolan.ResponseCache;
9
- exports.normalizeResponseCacheConfig = _mod_6kolan.normalizeResponseCacheConfig;;
10
- const _mod_pl3tv0 = require('./file-cacher.cjs');
11
- exports.FileCacher = _mod_pl3tv0.FileCacher;;
12
- const _mod_zya6gr = require('./url-store.cjs');
13
- exports.UrlStore = _mod_zya6gr.UrlStore;;
1
+ const _mod_2qk1gr = require('./lru-cache.cjs');
2
+ exports.LRUCache = _mod_2qk1gr.LRUCache;;
3
+ const _mod_4k7izn = require('./dns-cache.cjs');
4
+ exports.DNSCache = _mod_4k7izn.DNSCache;
5
+ exports.getGlobalDNSCache = _mod_4k7izn.getGlobalDNSCache;
6
+ exports.resetGlobalDNSCache = _mod_4k7izn.resetGlobalDNSCache;;
7
+ const _mod_21d2ne = require('./response-cache.cjs');
8
+ exports.ResponseCache = _mod_21d2ne.ResponseCache;
9
+ exports.normalizeResponseCacheConfig = _mod_21d2ne.normalizeResponseCacheConfig;;
10
+ const _mod_n5qqdj = require('./file-cacher.cjs');
11
+ exports.FileCacher = _mod_n5qqdj.FileCacher;;
12
+ const _mod_4ly8p8 = require('./url-store.cjs');
13
+ exports.UrlStore = _mod_4ly8p8.UrlStore;;
@@ -1,5 +1,5 @@
1
- const _mod_lymkfq = require('../plugin/crawler.cjs');
2
- exports.Crawler = _mod_lymkfq.Crawler;;
3
- const _mod_kvs0ei = require('../plugin/crawler-options.cjs');
4
- exports.CrawlerOptions = _mod_kvs0ei.CrawlerOptions;
5
- exports.Domain = _mod_kvs0ei.Domain;;
1
+ const _mod_x66gaq = require('../plugin/crawler.cjs');
2
+ exports.Crawler = _mod_x66gaq.Crawler;;
3
+ const _mod_cnlc8b = require('../plugin/crawler-options.cjs');
4
+ exports.CrawlerOptions = _mod_cnlc8b.CrawlerOptions;
5
+ exports.Domain = _mod_cnlc8b.Domain;;
package/dist/index.cjs CHANGED
@@ -1,27 +1,27 @@
1
- const _mod_lyypom = require('./core/rezo.cjs');
2
- exports.Rezo = _mod_lyypom.Rezo;
3
- exports.createRezoInstance = _mod_lyypom.createRezoInstance;
4
- exports.createDefaultInstance = _mod_lyypom.createDefaultInstance;;
5
- const _mod_z2q5wr = require('./errors/rezo-error.cjs');
6
- exports.RezoError = _mod_z2q5wr.RezoError;
7
- exports.RezoErrorCode = _mod_z2q5wr.RezoErrorCode;;
8
- const _mod_qyu99x = require('./utils/headers.cjs');
9
- exports.RezoHeaders = _mod_qyu99x.RezoHeaders;;
10
- const _mod_z17ic3 = require('./utils/form-data.cjs');
11
- exports.RezoFormData = _mod_z17ic3.RezoFormData;;
12
- const _mod_2sml8j = require('./utils/cookies.cjs');
13
- exports.RezoCookieJar = _mod_2sml8j.RezoCookieJar;
14
- exports.Cookie = _mod_2sml8j.Cookie;;
15
- const _mod_vuhwqj = require('./core/hooks.cjs');
16
- exports.createDefaultHooks = _mod_vuhwqj.createDefaultHooks;
17
- exports.mergeHooks = _mod_vuhwqj.mergeHooks;;
18
- const _mod_srexi8 = require('./proxy/manager.cjs');
19
- exports.ProxyManager = _mod_srexi8.ProxyManager;;
20
- const _mod_p29w3c = require('./queue/index.cjs');
21
- exports.RezoQueue = _mod_p29w3c.RezoQueue;
22
- exports.HttpQueue = _mod_p29w3c.HttpQueue;
23
- exports.Priority = _mod_p29w3c.Priority;
24
- exports.HttpMethodPriority = _mod_p29w3c.HttpMethodPriority;;
1
+ const _mod_04noq8 = require('./core/rezo.cjs');
2
+ exports.Rezo = _mod_04noq8.Rezo;
3
+ exports.createRezoInstance = _mod_04noq8.createRezoInstance;
4
+ exports.createDefaultInstance = _mod_04noq8.createDefaultInstance;;
5
+ const _mod_gt2ibf = require('./errors/rezo-error.cjs');
6
+ exports.RezoError = _mod_gt2ibf.RezoError;
7
+ exports.RezoErrorCode = _mod_gt2ibf.RezoErrorCode;;
8
+ const _mod_2hepie = require('./utils/headers.cjs');
9
+ exports.RezoHeaders = _mod_2hepie.RezoHeaders;;
10
+ const _mod_99p45u = require('./utils/form-data.cjs');
11
+ exports.RezoFormData = _mod_99p45u.RezoFormData;;
12
+ const _mod_7vtdxn = require('./utils/cookies.cjs');
13
+ exports.RezoCookieJar = _mod_7vtdxn.RezoCookieJar;
14
+ exports.Cookie = _mod_7vtdxn.Cookie;;
15
+ const _mod_q6z263 = require('./core/hooks.cjs');
16
+ exports.createDefaultHooks = _mod_q6z263.createDefaultHooks;
17
+ exports.mergeHooks = _mod_q6z263.mergeHooks;;
18
+ const _mod_5cwf7e = require('./proxy/manager.cjs');
19
+ exports.ProxyManager = _mod_5cwf7e.ProxyManager;;
20
+ const _mod_ewxgow = require('./queue/index.cjs');
21
+ exports.RezoQueue = _mod_ewxgow.RezoQueue;
22
+ exports.HttpQueue = _mod_ewxgow.HttpQueue;
23
+ exports.Priority = _mod_ewxgow.Priority;
24
+ exports.HttpMethodPriority = _mod_ewxgow.HttpMethodPriority;;
25
25
  const { RezoError } = require('./errors/rezo-error.cjs');
26
26
  const isRezoError = exports.isRezoError = RezoError.isRezoError;
27
27
  const Cancel = exports.Cancel = RezoError;
@@ -1,36 +1,36 @@
1
- const _mod_5rfty9 = require('./crawler.cjs');
2
- exports.Crawler = _mod_5rfty9.Crawler;;
3
- const _mod_q2p8s0 = require('./crawler-options.cjs');
4
- exports.CrawlerOptions = _mod_q2p8s0.CrawlerOptions;;
5
- const _mod_7r8b7r = require('../cache/file-cacher.cjs');
6
- exports.FileCacher = _mod_7r8b7r.FileCacher;;
7
- const _mod_sftl5f = require('../cache/url-store.cjs');
8
- exports.UrlStore = _mod_sftl5f.UrlStore;;
9
- const _mod_unhfzc = require('./addon/oxylabs/index.cjs');
10
- exports.Oxylabs = _mod_unhfzc.Oxylabs;;
11
- const _mod_rvlmj1 = require('./addon/oxylabs/options.cjs');
12
- exports.OXYLABS_BROWSER_TYPES = _mod_rvlmj1.OXYLABS_BROWSER_TYPES;
13
- exports.OXYLABS_COMMON_LOCALES = _mod_rvlmj1.OXYLABS_COMMON_LOCALES;
14
- exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_rvlmj1.OXYLABS_COMMON_GEO_LOCATIONS;
15
- exports.OXYLABS_US_STATES = _mod_rvlmj1.OXYLABS_US_STATES;
16
- exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_rvlmj1.OXYLABS_EUROPEAN_COUNTRIES;
17
- exports.OXYLABS_ASIAN_COUNTRIES = _mod_rvlmj1.OXYLABS_ASIAN_COUNTRIES;
18
- exports.getRandomOxylabsBrowserType = _mod_rvlmj1.getRandomBrowserType;
19
- exports.getRandomOxylabsLocale = _mod_rvlmj1.getRandomLocale;
20
- exports.getRandomOxylabsGeoLocation = _mod_rvlmj1.getRandomGeoLocation;;
21
- const _mod_ue1bzq = require('./addon/decodo/index.cjs');
22
- exports.Decodo = _mod_ue1bzq.Decodo;;
23
- const _mod_897fd1 = require('./addon/decodo/options.cjs');
24
- exports.DECODO_DEVICE_TYPES = _mod_897fd1.DECODO_DEVICE_TYPES;
25
- exports.DECODO_HEADLESS_MODES = _mod_897fd1.DECODO_HEADLESS_MODES;
26
- exports.DECODO_COMMON_LOCALES = _mod_897fd1.DECODO_COMMON_LOCALES;
27
- exports.DECODO_COMMON_COUNTRIES = _mod_897fd1.DECODO_COMMON_COUNTRIES;
28
- exports.DECODO_EUROPEAN_COUNTRIES = _mod_897fd1.DECODO_EUROPEAN_COUNTRIES;
29
- exports.DECODO_ASIAN_COUNTRIES = _mod_897fd1.DECODO_ASIAN_COUNTRIES;
30
- exports.DECODO_US_STATES = _mod_897fd1.DECODO_US_STATES;
31
- exports.DECODO_COMMON_CITIES = _mod_897fd1.DECODO_COMMON_CITIES;
32
- exports.getRandomDecodoDeviceType = _mod_897fd1.getRandomDeviceType;
33
- exports.getRandomDecodoLocale = _mod_897fd1.getRandomLocale;
34
- exports.getRandomDecodoCountry = _mod_897fd1.getRandomCountry;
35
- exports.getRandomDecodoCity = _mod_897fd1.getRandomCity;
36
- exports.generateDecodoSessionId = _mod_897fd1.generateSessionId;;
1
+ const _mod_qsph8l = require('./crawler.cjs');
2
+ exports.Crawler = _mod_qsph8l.Crawler;;
3
+ const _mod_zftewn = require('./crawler-options.cjs');
4
+ exports.CrawlerOptions = _mod_zftewn.CrawlerOptions;;
5
+ const _mod_qxq0aw = require('../cache/file-cacher.cjs');
6
+ exports.FileCacher = _mod_qxq0aw.FileCacher;;
7
+ const _mod_pi4wi6 = require('../cache/url-store.cjs');
8
+ exports.UrlStore = _mod_pi4wi6.UrlStore;;
9
+ const _mod_4og52u = require('./addon/oxylabs/index.cjs');
10
+ exports.Oxylabs = _mod_4og52u.Oxylabs;;
11
+ const _mod_0yjqp6 = require('./addon/oxylabs/options.cjs');
12
+ exports.OXYLABS_BROWSER_TYPES = _mod_0yjqp6.OXYLABS_BROWSER_TYPES;
13
+ exports.OXYLABS_COMMON_LOCALES = _mod_0yjqp6.OXYLABS_COMMON_LOCALES;
14
+ exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_0yjqp6.OXYLABS_COMMON_GEO_LOCATIONS;
15
+ exports.OXYLABS_US_STATES = _mod_0yjqp6.OXYLABS_US_STATES;
16
+ exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_0yjqp6.OXYLABS_EUROPEAN_COUNTRIES;
17
+ exports.OXYLABS_ASIAN_COUNTRIES = _mod_0yjqp6.OXYLABS_ASIAN_COUNTRIES;
18
+ exports.getRandomOxylabsBrowserType = _mod_0yjqp6.getRandomBrowserType;
19
+ exports.getRandomOxylabsLocale = _mod_0yjqp6.getRandomLocale;
20
+ exports.getRandomOxylabsGeoLocation = _mod_0yjqp6.getRandomGeoLocation;;
21
+ const _mod_5tfgrz = require('./addon/decodo/index.cjs');
22
+ exports.Decodo = _mod_5tfgrz.Decodo;;
23
+ const _mod_elxsmt = require('./addon/decodo/options.cjs');
24
+ exports.DECODO_DEVICE_TYPES = _mod_elxsmt.DECODO_DEVICE_TYPES;
25
+ exports.DECODO_HEADLESS_MODES = _mod_elxsmt.DECODO_HEADLESS_MODES;
26
+ exports.DECODO_COMMON_LOCALES = _mod_elxsmt.DECODO_COMMON_LOCALES;
27
+ exports.DECODO_COMMON_COUNTRIES = _mod_elxsmt.DECODO_COMMON_COUNTRIES;
28
+ exports.DECODO_EUROPEAN_COUNTRIES = _mod_elxsmt.DECODO_EUROPEAN_COUNTRIES;
29
+ exports.DECODO_ASIAN_COUNTRIES = _mod_elxsmt.DECODO_ASIAN_COUNTRIES;
30
+ exports.DECODO_US_STATES = _mod_elxsmt.DECODO_US_STATES;
31
+ exports.DECODO_COMMON_CITIES = _mod_elxsmt.DECODO_COMMON_CITIES;
32
+ exports.getRandomDecodoDeviceType = _mod_elxsmt.getRandomDeviceType;
33
+ exports.getRandomDecodoLocale = _mod_elxsmt.getRandomLocale;
34
+ exports.getRandomDecodoCountry = _mod_elxsmt.getRandomCountry;
35
+ exports.getRandomDecodoCity = _mod_elxsmt.getRandomCity;
36
+ exports.generateDecodoSessionId = _mod_elxsmt.generateSessionId;;
@@ -1,8 +1,8 @@
1
1
  const { SocksProxyAgent: RezoSocksProxy } = require("socks-proxy-agent");
2
2
  const { HttpsProxyAgent: RezoHttpsSocks } = require("https-proxy-agent");
3
3
  const { HttpProxyAgent: RezoHttpSocks } = require("http-proxy-agent");
4
- const _mod_xspbrb = require('./manager.cjs');
5
- exports.ProxyManager = _mod_xspbrb.ProxyManager;;
4
+ const _mod_1bggjr = require('./manager.cjs');
5
+ exports.ProxyManager = _mod_1bggjr.ProxyManager;;
6
6
  function createOptions(uri, opts) {
7
7
  if (uri instanceof URL || typeof uri === "string") {
8
8
  return {
@@ -1,8 +1,8 @@
1
- const _mod_gkacib = require('./queue.cjs');
2
- exports.RezoQueue = _mod_gkacib.RezoQueue;;
3
- const _mod_3w4xq6 = require('./http-queue.cjs');
4
- exports.HttpQueue = _mod_3w4xq6.HttpQueue;
5
- exports.extractDomain = _mod_3w4xq6.extractDomain;;
6
- const _mod_5dkbxw = require('./types.cjs');
7
- exports.Priority = _mod_5dkbxw.Priority;
8
- exports.HttpMethodPriority = _mod_5dkbxw.HttpMethodPriority;;
1
+ const _mod_efy9ln = require('./queue.cjs');
2
+ exports.RezoQueue = _mod_efy9ln.RezoQueue;;
3
+ const _mod_3tepao = require('./http-queue.cjs');
4
+ exports.HttpQueue = _mod_3tepao.HttpQueue;
5
+ exports.extractDomain = _mod_3tepao.extractDomain;;
6
+ const _mod_tgx0xy = require('./types.cjs');
7
+ exports.Priority = _mod_tgx0xy.Priority;
8
+ exports.HttpMethodPriority = _mod_tgx0xy.HttpMethodPriority;;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rezo",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
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",