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-20241125125556-f6d4dd923d74499ecd7ef790e4704bf3bffd1892 to 0.7.4-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40

2

cjs/fetchNodeHttp.js

@@ -87,3 +87,3 @@ "use strict";

if (fetchRequest.redirect === 'follow') {
const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.url);
const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url);
const redirectResponse$ = fetchNodeHttp(new Request_js_1.PonyfillRequest(redirectedUrl, fetchRequest));

@@ -90,0 +90,0 @@ resolve(redirectResponse$.then(redirectResponse => {

@@ -25,2 +25,3 @@ "use strict";

this.pathname = this.pathname || baseParsed.pathname;
this.port = this.port || baseParsed.port;
}

@@ -27,0 +28,0 @@ }

@@ -84,3 +84,3 @@ import { request as httpRequest } from 'http';

if (fetchRequest.redirect === 'follow') {
const redirectedUrl = new PonyfillURL(nodeResponse.headers.location, fetchRequest.url);
const redirectedUrl = new PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url);
const redirectResponse$ = fetchNodeHttp(new PonyfillRequest(redirectedUrl, fetchRequest));

@@ -87,0 +87,0 @@ resolve(redirectResponse$.then(redirectResponse => {

@@ -21,2 +21,3 @@ import { resolveObjectURL } from 'buffer';

this.pathname = this.pathname || baseParsed.pathname;
this.port = this.port || baseParsed.port;
}

@@ -23,0 +24,0 @@ }

{
"name": "@whatwg-node/node-fetch",
"version": "0.7.4-alpha-20241125125556-f6d4dd923d74499ecd7ef790e4704bf3bffd1892",
"version": "0.7.4-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40",
"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