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
576
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.5 to 0.7.6-alpha-20241227033311-ca7fdf626b94113675ac448e53a702dbea85ab45

7

cjs/URL.js

@@ -26,2 +26,7 @@ "use strict";

}
if (url.includes(`${this.hostname}:`) && !this.port && this.pathname.startsWith('/:')) {
this.port = this.pathname.slice(2);
this.pathname = '/';
this.host = `${this.hostname}:${this.port}`;
}
if (base) {

@@ -36,3 +41,3 @@ const baseParsed = typeof base === 'string' ? new PonyfillURL(base) : base;

get origin() {
return `${this.protocol}//${this.host}${this.port ? `:${this.port}` : ''}`;
return `${this.protocol}//${this.hostname}${this.port ? `:${this.port}` : ''}`;
}

@@ -39,0 +44,0 @@ _searchParams;

@@ -22,2 +22,7 @@ import { resolveObjectURL } from 'buffer';

}
if (url.includes(`${this.hostname}:`) && !this.port && this.pathname.startsWith('/:')) {
this.port = this.pathname.slice(2);
this.pathname = '/';
this.host = `${this.hostname}:${this.port}`;
}
if (base) {

@@ -32,3 +37,3 @@ const baseParsed = typeof base === 'string' ? new PonyfillURL(base) : base;

get origin() {
return `${this.protocol}//${this.host}${this.port ? `:${this.port}` : ''}`;
return `${this.protocol}//${this.hostname}${this.port ? `:${this.port}` : ''}`;
}

@@ -35,0 +40,0 @@ _searchParams;

2

package.json
{
"name": "@whatwg-node/node-fetch",
"version": "0.7.5",
"version": "0.7.6-alpha-20241227033311-ca7fdf626b94113675ac448e53a702dbea85ab45",
"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