@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.4-alpha-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba to 0.7.4-alpha-20241125131513-7ac7e92d53ef0d5a6ddab6fcb0b311d88708df6d
@@ -38,2 +38,5 @@ "use strict"; | ||
nodeRequest = requestFn({ | ||
auth: fetchRequest.parsedUrl.username | ||
? `${fetchRequest.parsedUrl.username}:${fetchRequest.parsedUrl.password}` | ||
: undefined, | ||
host: fetchRequest.parsedUrl.host, | ||
@@ -40,0 +43,0 @@ hostname: fetchRequest.parsedUrl.hostname, |
@@ -29,3 +29,3 @@ "use strict"; | ||
get origin() { | ||
return `${this.protocol}//${this.host}`; | ||
return `${this.protocol}//${this.host}${this.port ? `:${this.port}` : ''}`; | ||
} | ||
@@ -32,0 +32,0 @@ _searchParams; |
@@ -35,2 +35,5 @@ import { request as httpRequest } from 'http'; | ||
nodeRequest = requestFn({ | ||
auth: fetchRequest.parsedUrl.username | ||
? `${fetchRequest.parsedUrl.username}:${fetchRequest.parsedUrl.password}` | ||
: undefined, | ||
host: fetchRequest.parsedUrl.host, | ||
@@ -37,0 +40,0 @@ hostname: fetchRequest.parsedUrl.hostname, |
@@ -25,3 +25,3 @@ import { resolveObjectURL } from 'buffer'; | ||
get origin() { | ||
return `${this.protocol}//${this.host}`; | ||
return `${this.protocol}//${this.host}${this.port ? `:${this.port}` : ''}`; | ||
} | ||
@@ -28,0 +28,0 @@ _searchParams; |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.7.4-alpha-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba", | ||
"version": "0.7.4-alpha-20241125131513-7ac7e92d53ef0d5a6ddab6fcb0b311d88708df6d", | ||
"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
230330
5933