Socket
Socket
Sign inDemoInstall

form-data

Package Overview
Dependencies
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

form-data - npm Package Compare versions

Comparing version 2.5.1 to 2.5.2

Readme.md

5

lib/form_data.js

@@ -11,2 +11,3 @@ var CombinedStream = require('combined-stream');

var populate = require('./populate.js');
var Buffer = require('safe-buffer').Buffer; // eslint-disable-line no-shadow

@@ -64,3 +65,3 @@ // Public API

// https://github.com/felixge/node-form-data/issues/38
if (util.isArray(value)) {
if (Array.isArray(value)) {
// Please convert your array into string

@@ -319,3 +320,3 @@ // the way web server expects it

FormData.prototype.getBuffer = function() {
var dataBuffer = new Buffer.alloc( 0 );
var dataBuffer = new Buffer.alloc(0);
var boundary = this.getBoundary();

@@ -322,0 +323,0 @@

@@ -5,3 +5,3 @@ {

"description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
"version": "2.5.1",
"version": "2.5.2",
"repository": {

@@ -15,9 +15,12 @@ "type": "git",

"scripts": {
"pretest": "rimraf coverage test/tmp",
"test": "istanbul cover test/run.js",
"posttest": "istanbul report lcov text",
"lint": "eslint lib/*.js test/*.js test/integration/*.js",
"pretest": "npm run lint",
"pretests-only": "rimraf coverage test/tmp",
"tests-only": "istanbul cover test/run.js",
"posttests-only": "istanbul report lcov text",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production",
"lint": "eslint --ext=js,mjs .",
"report": "istanbul report lcov text",
"ci-lint": "is-node-modern 8 && npm run lint || is-node-not-modern 8",
"ci-test": "npm run test && npm run browser && npm run report",
"ci-test": "npm run tests-only && npm run browser && npm run report",
"predebug": "rimraf coverage test/tmp",

@@ -45,3 +48,4 @@ "debug": "verbose=1 ./test/run.js",

"combined-stream": "^1.0.6",
"mime-types": "^2.1.12"
"mime-types": "^2.1.12",
"safe-buffer": "^5.2.1"
},

@@ -53,3 +57,3 @@ "devDependencies": {

"coveralls": "^3.0.4",
"cross-spawn": "^6.0.5",
"cross-spawn": "^4.0.2",
"eslint": "^6.0.1",

@@ -56,0 +60,0 @@ "fake": "^0.2.2",

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