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
509
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.5.19 to 0.5.20-rc-20240730143614-76ddb4acc63b332024d20ffa18898cf86b707623

3

cjs/fetchCurl.js

@@ -117,3 +117,4 @@ "use strict";

headers: headersInit,
url: fetchRequest.url,
url: curlHandle.getInfo(Curl.info.REDIRECT_URL)?.toString() || fetchRequest.url,
redirected: Number(curlHandle.getInfo(Curl.info.REDIRECT_COUNT)) > 0,
});

@@ -120,0 +121,0 @@ resolve(ponyfillResponse);

@@ -78,3 +78,7 @@ "use strict";

}
this._agent = requestInit?.agent;
if (requestInit?.agent != null &&
requestInit?.agent !== http_1.globalAgent &&
requestInit?.agent !== https_1.globalAgent) {
this._agent = requestInit?.agent;
}
}

@@ -81,0 +85,0 @@ headersSerializer;

@@ -114,3 +114,4 @@ import { PassThrough, Readable, promises as streamPromises } from 'stream';

headers: headersInit,
url: fetchRequest.url,
url: curlHandle.getInfo(Curl.info.REDIRECT_URL)?.toString() || fetchRequest.url,
redirected: Number(curlHandle.getInfo(Curl.info.REDIRECT_COUNT)) > 0,
});

@@ -117,0 +118,0 @@ resolve(ponyfillResponse);

@@ -75,3 +75,7 @@ import { globalAgent as httpGlobalAgent } from 'http';

}
this._agent = requestInit?.agent;
if (requestInit?.agent != null &&
requestInit?.agent !== httpGlobalAgent &&
requestInit?.agent !== httpsGlobalAgent) {
this._agent = requestInit?.agent;
}
}

@@ -78,0 +82,0 @@ headersSerializer;

{
"name": "@whatwg-node/node-fetch",
"version": "0.5.19",
"version": "0.5.20-rc-20240730143614-76ddb4acc63b332024d20ffa18898cf86b707623",
"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