Socket
Socket
Sign inDemoInstall

formidable

Package Overview
Dependencies
5
Maintainers
5
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.0 to 3.5.1

6

package.json
{
"name": "formidable",
"version": "3.5.0",
"version": "3.5.1",
"license": "MIT",

@@ -60,5 +60,5 @@ "description": "A node.js module for parsing form data, especially file uploads.",

"pretest": "del-cli ./test/tmp && make-dir ./test/tmp",
"test-specific": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/standalone/issue-46.test.js --detectOpenHandles",
"test-specific": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/standalone/keep-alive-error.test.js",
"test": "npm run test-jest && npm run test-node",
"test-jest": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/ --coverage --detectOpenHandles",
"test-jest": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/ --coverage",
"test-node": "node --test test-node/",

@@ -65,0 +65,0 @@ "pretest:ci": "yarn run pretest",

@@ -0,0 +0,0 @@ <p align="center">

@@ -0,0 +0,0 @@ /* eslint-disable class-methods-use-this */

@@ -0,0 +0,0 @@ const missingPlugin = 1000;

@@ -0,0 +0,0 @@ import { multipartType } from '../plugins/multipart.js';

@@ -0,0 +0,0 @@ const readBooleans = (fields, listOfBooleans) => {

@@ -0,0 +0,0 @@ import PersistentFile from './PersistentFile.js';

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -0,0 +0,0 @@ import JSONParser from './JSON.js';

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -62,2 +62,10 @@ /* eslint-disable no-fallthrough */

_endUnexpected() {
return new FormidableError(
`MultipartParser.end(): stream ended unexpectedly: ${this.explain()}`,
errors.malformedMultipart,
400,
);
}
_flush(done) {

@@ -72,9 +80,5 @@ if (

} else if (this.state !== STATE.END) {
done(
new FormidableError(
`MultipartParser.end(): stream ended unexpectedly: ${this.explain()}`,
errors.malformedMultipart,
400,
),
);
done(this._endUnexpected());
} else {
done();
}

@@ -141,3 +145,4 @@ }

case STATE.PARSER_UNINITIALIZED:
return i;
done(this._endUnexpected());
return;
case STATE.START:

@@ -151,3 +156,4 @@ index = 0;

} else if (c !== CR) {
return i;
done(this._endUnexpected());
return;
}

@@ -166,3 +172,4 @@ index++;

} else {
return i;
done(this._endUnexpected());
return;
}

@@ -198,3 +205,4 @@ break;

// empty header field
return i;
done(this._endUnexpected());
return;
}

@@ -208,3 +216,4 @@ dataCallback('headerField', true);

if (cl < A || cl > Z) {
return i;
done(this._endUnexpected());
return;
}

@@ -228,3 +237,4 @@ break;

if (c !== LF) {
return i;
done(this._endUnexpected());
return;
}

@@ -235,3 +245,4 @@ state = STATE.HEADER_FIELD_START;

if (c !== LF) {
return i;
done(this._endUnexpected());
return;
}

@@ -323,3 +334,4 @@

default:
return i;
done(this._endUnexpected());
return;
}

@@ -326,0 +338,0 @@ }

@@ -0,0 +0,0 @@ import { PassThrough } from 'node:stream';

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -0,0 +0,0 @@ // not used

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -0,0 +0,0 @@ import octetstream from './octetstream.js';

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

@@ -0,0 +0,0 @@ /* eslint-disable no-underscore-dangle */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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