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.8 to 0.5.9-alpha-20240321100335-2a21e23626e787685b44e4ef16b60924f682eaf0

4

cjs/Request.js

@@ -65,2 +65,6 @@ "use strict";

const contentLengthInHeaders = this.headers.get('content-length');
if (bodyInit == null && !contentLengthInHeaders) {
this.contentLength = 0;
this.headers.set('content-length', '0');
}
if (!contentLengthInHeaders) {

@@ -67,0 +71,0 @@ if (this.contentLength) {

@@ -62,2 +62,6 @@ var _a;

const contentLengthInHeaders = this.headers.get('content-length');
if (bodyInit == null && !contentLengthInHeaders) {
this.contentLength = 0;
this.headers.set('content-length', '0');
}
if (!contentLengthInHeaders) {

@@ -64,0 +68,0 @@ if (this.contentLength) {

2

package.json
{
"name": "@whatwg-node/node-fetch",
"version": "0.5.8",
"version": "0.5.9-alpha-20240321100335-2a21e23626e787685b44e4ef16b60924f682eaf0",
"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