@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.4-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40 to 0.7.4-alpha-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba
@@ -110,3 +110,3 @@ "use strict"; | ||
if (this._url != null) { | ||
this._parsedUrl = new URL_js_1.PonyfillURL(this._url); | ||
this._parsedUrl = new URL_js_1.PonyfillURL(this._url, 'http://localhost'); | ||
} | ||
@@ -113,0 +113,0 @@ else { |
@@ -22,6 +22,6 @@ "use strict"; | ||
const baseParsed = typeof base === 'string' ? new PonyfillURL(base) : base; | ||
this.protocol = this.protocol || baseParsed.protocol; | ||
this.host = this.host || baseParsed.host; | ||
this.pathname = this.pathname || baseParsed.pathname; | ||
this.port = this.port || baseParsed.port; | ||
this.protocol ||= baseParsed.protocol; | ||
this.host ||= baseParsed.host; | ||
this.pathname ||= baseParsed.pathname; | ||
this.port ||= baseParsed.port; | ||
} | ||
@@ -28,0 +28,0 @@ } |
@@ -107,3 +107,3 @@ import { Agent as HTTPAgent } from 'http'; | ||
if (this._url != null) { | ||
this._parsedUrl = new PonyfillURL(this._url); | ||
this._parsedUrl = new PonyfillURL(this._url, 'http://localhost'); | ||
} | ||
@@ -110,0 +110,0 @@ else { |
@@ -18,6 +18,6 @@ import { resolveObjectURL } from 'buffer'; | ||
const baseParsed = typeof base === 'string' ? new PonyfillURL(base) : base; | ||
this.protocol = this.protocol || baseParsed.protocol; | ||
this.host = this.host || baseParsed.host; | ||
this.pathname = this.pathname || baseParsed.pathname; | ||
this.port = this.port || baseParsed.port; | ||
this.protocol ||= baseParsed.protocol; | ||
this.host ||= baseParsed.host; | ||
this.pathname ||= baseParsed.pathname; | ||
this.port ||= baseParsed.port; | ||
} | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.7.4-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40", | ||
"version": "0.7.4-alpha-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba", | ||
"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
229874