New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@whatwg-node/node-fetch

Package Overview
Dependencies
Maintainers
1
Versions
631
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.0.2-alpha-20230202184428-e0c4cca to 0.0.2-alpha-20230202184911-724f9bd

10

index.js

@@ -299,3 +299,7 @@ 'use strict';

const [key, value] = entry;
if (value instanceof PonyfillBlob) {
if (typeof value === 'string') {
controller.enqueue(Buffer.from(`Content-Disposition: form-data; name="${key}"\r\n\r\n`));
controller.enqueue(Buffer.from(value));
}
else {
let filenamePart = '';

@@ -309,6 +313,2 @@ if (value.name) {

}
else {
controller.enqueue(Buffer.from(`Content-Disposition: form-data; name="${key}"\r\n\r\n`));
controller.enqueue(Buffer.from(value));
}
if (entries.length === 0) {

@@ -315,0 +315,0 @@ controller.enqueue(Buffer.from(`\r\n--${boundary}--\r\n`));

{
"name": "@whatwg-node/node-fetch",
"version": "0.0.2-alpha-20230202184428-e0c4cca",
"version": "0.0.2-alpha-20230202184911-724f9bd",
"description": "Fetch API implementation for Node",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

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