Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@whatwg-node/node-fetch

Package Overview
Dependencies
Maintainers
1
Versions
581
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whatwg-node/node-fetch - npm Package Compare versions

Comparing version 0.7.4-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40 to 0.7.4-alpha-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba

2

cjs/Request.js

@@ -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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc