@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.4-alpha-20241125131513-7ac7e92d53ef0d5a6ddab6fcb0b311d88708df6d to 0.7.4-alpha-20241125134618-c16c2cc24251a5902f85c9dcc0ecdd373f7568ff
@@ -41,3 +41,2 @@ "use strict"; | ||
: undefined, | ||
host: fetchRequest.parsedUrl.host, | ||
hostname: fetchRequest.parsedUrl.hostname, | ||
@@ -92,2 +91,3 @@ method: fetchRequest.method, | ||
const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url); | ||
console.log('Redirecting to', nodeResponse.headers.location, redirectedUrl.toString()); | ||
const redirectResponse$ = fetchNodeHttp(new Request_js_1.PonyfillRequest(redirectedUrl, fetchRequest)); | ||
@@ -94,0 +94,0 @@ resolve(redirectResponse$.then(redirectResponse => { |
@@ -38,3 +38,2 @@ import { request as httpRequest } from 'http'; | ||
: undefined, | ||
host: fetchRequest.parsedUrl.host, | ||
hostname: fetchRequest.parsedUrl.hostname, | ||
@@ -89,2 +88,3 @@ method: fetchRequest.method, | ||
const redirectedUrl = new PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url); | ||
console.log('Redirecting to', nodeResponse.headers.location, redirectedUrl.toString()); | ||
const redirectResponse$ = fetchNodeHttp(new PonyfillRequest(redirectedUrl, fetchRequest)); | ||
@@ -91,0 +91,0 @@ resolve(redirectResponse$.then(redirectResponse => { |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.7.4-alpha-20241125131513-7ac7e92d53ef0d5a6ddab6fcb0b311d88708df6d", | ||
"version": "0.7.4-alpha-20241125134618-c16c2cc24251a5902f85c9dcc0ecdd373f7568ff", | ||
"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
230444