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
548
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-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba to 0.7.4-alpha-20241125131513-7ac7e92d53ef0d5a6ddab6fcb0b311d88708df6d

3

cjs/fetchNodeHttp.js

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

2

cjs/URL.js

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

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