@whatwg-node/node-fetch
Advanced tools
Comparing version 0.5.19 to 0.5.20-rc-20240730143614-76ddb4acc63b332024d20ffa18898cf86b707623
@@ -117,3 +117,4 @@ "use strict"; | ||
headers: headersInit, | ||
url: fetchRequest.url, | ||
url: curlHandle.getInfo(Curl.info.REDIRECT_URL)?.toString() || fetchRequest.url, | ||
redirected: Number(curlHandle.getInfo(Curl.info.REDIRECT_COUNT)) > 0, | ||
}); | ||
@@ -120,0 +121,0 @@ resolve(ponyfillResponse); |
@@ -78,3 +78,7 @@ "use strict"; | ||
} | ||
this._agent = requestInit?.agent; | ||
if (requestInit?.agent != null && | ||
requestInit?.agent !== http_1.globalAgent && | ||
requestInit?.agent !== https_1.globalAgent) { | ||
this._agent = requestInit?.agent; | ||
} | ||
} | ||
@@ -81,0 +85,0 @@ headersSerializer; |
@@ -114,3 +114,4 @@ import { PassThrough, Readable, promises as streamPromises } from 'stream'; | ||
headers: headersInit, | ||
url: fetchRequest.url, | ||
url: curlHandle.getInfo(Curl.info.REDIRECT_URL)?.toString() || fetchRequest.url, | ||
redirected: Number(curlHandle.getInfo(Curl.info.REDIRECT_COUNT)) > 0, | ||
}); | ||
@@ -117,0 +118,0 @@ resolve(ponyfillResponse); |
@@ -75,3 +75,7 @@ import { globalAgent as httpGlobalAgent } from 'http'; | ||
} | ||
this._agent = requestInit?.agent; | ||
if (requestInit?.agent != null && | ||
requestInit?.agent !== httpGlobalAgent && | ||
requestInit?.agent !== httpsGlobalAgent) { | ||
this._agent = requestInit?.agent; | ||
} | ||
} | ||
@@ -78,0 +82,0 @@ headersSerializer; |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.5.19", | ||
"version": "0.5.20-rc-20240730143614-76ddb4acc63b332024d20ffa18898cf86b707623", | ||
"description": "Fetch API implementation for Node", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198582
5131