Socket
Socket
Sign inDemoInstall

formdata-node

Package Overview
Dependencies
4
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 2.2.2

15

lib/FormData.js

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

__setField(name, value, filename, options, append, argsLength) {
const fieldName = String(name);
const methodName = append ? "append" : "set";

@@ -357,7 +358,7 @@

const field = this.__content.get(name); // Set a new field if given name is not exists
const field = this.__content.get(fieldName); // Set a new field if given name is not exists
if (!field) {
return void this.__content.set(name, {
return void this.__content.set(fieldName, {
append,

@@ -373,3 +374,3 @@ values: [{

if (!append) {
return void this.__content.set(name, {
return void this.__content.set(fieldName, {
append,

@@ -394,3 +395,3 @@ values: [{

this.__content.set(name, field);
this.__content.set(fieldName, field);
}

@@ -514,3 +515,3 @@ /**

get(name) {
const field = this.__content.get(name);
const field = this.__content.get(String(name));

@@ -534,3 +535,3 @@ if (!field) {

getAll(name) {
const field = this.__content.get(name);
const field = this.__content.get(String(name));

@@ -551,3 +552,3 @@ return field ? Array.from(field.values, ({

delete(name) {
this.__content.delete(name);
this.__content.delete(String(name));
}

@@ -554,0 +555,0 @@ /**

{
"name": "formdata-node",
"version": "2.2.1",
"version": "2.2.2",
"description": "FormData implementation for Node.js. Built over Readable stream and async generators.",

@@ -59,3 +59,3 @@ "repository": "octet-stream/form-data",

"babel-plugin-add-module-exports": "1.0.2",
"codecov": "3.7.0",
"codecov": "3.7.1",
"eslint": "7.2.0",

@@ -62,0 +62,0 @@ "eslint-plugin-ava": "10.3.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc