rezo 1.0.20 → 1.0.22

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.
@@ -186,6 +186,7 @@ async function getDefaultConfig(config = {}, proxyManager) {
186
186
  httpAgent: config.httpAgent,
187
187
  httpsAgent: config.httpsAgent,
188
188
  debug: config.debug === true,
189
+ trackUrl: config.trackUrl === true,
189
190
  maxRedirects: config.maxRedirects,
190
191
  retry: config.retry,
191
192
  proxy: config.proxy,
@@ -595,6 +596,9 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
595
596
  if (requestOptions.beforeRedirect || defaultOptions.beforeRedirect) {
596
597
  config.beforeRedirect = requestOptions.beforeRedirect || defaultOptions.beforeRedirect;
597
598
  }
599
+ if (requestOptions.onRedirect || defaultOptions.onRedirect) {
600
+ config.onRedirect = requestOptions.onRedirect || defaultOptions.onRedirect;
601
+ }
598
602
  config.requestCookies = [];
599
603
  config.responseCookies = {
600
604
  array: [],
@@ -186,6 +186,7 @@ export async function getDefaultConfig(config = {}, proxyManager) {
186
186
  httpAgent: config.httpAgent,
187
187
  httpsAgent: config.httpsAgent,
188
188
  debug: config.debug === true,
189
+ trackUrl: config.trackUrl === true,
189
190
  maxRedirects: config.maxRedirects,
190
191
  retry: config.retry,
191
192
  proxy: config.proxy,
@@ -595,6 +596,9 @@ As a workaround, process.env.NODE_TLS_REJECT_UNAUTHORIZED is being set to '0'.
595
596
  if (requestOptions.beforeRedirect || defaultOptions.beforeRedirect) {
596
597
  config.beforeRedirect = requestOptions.beforeRedirect || defaultOptions.beforeRedirect;
597
598
  }
599
+ if (requestOptions.onRedirect || defaultOptions.onRedirect) {
600
+ config.onRedirect = requestOptions.onRedirect || defaultOptions.onRedirect;
601
+ }
598
602
  config.requestCookies = [];
599
603
  config.responseCookies = {
600
604
  array: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rezo",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
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",