Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

then-busboy

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

then-busboy - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

.lintstagedrc

7

lib/then-busboy.js

@@ -85,9 +85,8 @@ "use strict";

void (0, _mapListeners.default)(listeners, (fn, name) => busboy.on(name, fn));
(0, _mapListeners.default)(listeners, (fn, name) => busboy.on(name, fn));
function onFinish() {
// Cleanup listeners
void (0, _mapListeners.default)(listeners, (fn, name) => busboy.removeListener(name, fn));
try {
// Cleanup listeners
(0, _mapListeners.default)(listeners, (fn, name) => busboy.removeListener(name, fn));
return resolve((0, _objectFromEntries.default)(entries));

@@ -94,0 +93,0 @@ } catch (err) {

@@ -1,2 +0,23 @@

module.exports = require("./lib/then-busboy").default;
module.exports.isFile = require("./lib/isFile").default;
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _thenBusboy.default;
}
});
Object.defineProperty(exports, "isFile", {
enumerable: true,
get: function () {
return _isFile.default;
}
});
var _thenBusboy = _interopRequireDefault(require("./lib/then-busboy"));
var _isFile = _interopRequireDefault(require("./lib/isFile"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
{
"name": "then-busboy",
"description": "Promise-based wrapper around Busboy. Process multipart/form-data content and returns it as a single object.",
"version": "2.1.4",
"version": "2.1.5",
"author": "Nick K. <nick.kruchinin@gmail.com>",

@@ -23,3 +23,4 @@ "license": "MIT",

"scripts": {
"lint": "node_modules/.bin/eslint src",
"eslint": "node_modules/.bin/eslint src",
"staged": "node_modules/.bin/lint-staged",
"make": "node_modules/.bin/babel src -d .",

@@ -37,3 +38,3 @@ "watch": "node_modules/.bin/babel src -w -d .",

"ci": "yarn make:ci && yarn coverage && yarn report:ci && yarn codecov",
"precommit": "yarn lint",
"precommit": "yarn staged",
"prepush": "yarn make:ci && yarn coverage && yarn cleanup && yarn make"

@@ -57,24 +58,26 @@ },

"busboy": "0.2.14",
"lodash.merge": "4.6.0",
"nanoid": "1.0.1"
"lodash.merge": "4.6.1",
"nanoid": "1.0.2"
},
"devDependencies": {
"@babel/cli": ">=7.0.0-beta.34 <=7.0.0",
"@babel/core": ">=7.0.0-beta.34 <=7.0.0",
"@babel/plugin-proposal-class-properties": ">=7.0.0-beta.34 <=7.0.0",
"@babel/plugin-proposal-object-rest-spread": ">=7.0.0-beta.34 <=7.0.0",
"@babel/plugin-transform-modules-commonjs": ">=7.0.0-beta.34 <=7.0.0",
"@babel/cli": "7.0.0-beta.42",
"@babel/core": "7.0.0-beta.42",
"@babel/plugin-proposal-class-properties": "7.0.0-beta.42",
"@babel/plugin-proposal-export-default-from": "7.0.0-beta.42",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.42",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.42",
"@octetstream/eslint-config": "2.1.0",
"ava": "0.24.0",
"ava": "0.25.0",
"codecov": "3.0.0",
"eslint": "4.13.1",
"eslint-plugin-ava": "4.4.0",
"eslint": "4.18.2",
"eslint-plugin-ava": "4.5.1",
"husky": "0.14.3",
"nyc": "11.3.0",
"lint-staged": "7.0.0",
"nyc": "11.4.1",
"promise-fs": "1.3.0",
"proxyquire": "1.8.0",
"proxyquire": "2.0.0",
"rimraf": "2.6.2",
"sinon": "4.1.3",
"sinon": "4.4.2",
"supertest": "3.0.0"
}
}

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

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
(0, _ava.default)("Should create a File with given stream and metadata", t => {

@@ -135,3 +139,3 @@ t.plan(8);

const stream = new _stream.Writable(Object.assign({}, options, {
const stream = new _stream.Writable(_objectSpread({}, options, {
write

@@ -167,3 +171,3 @@ }));

const stream = new _stream.Writable(Object.assign({}, options, {
const stream = new _stream.Writable(_objectSpread({}, options, {
write

@@ -170,0 +174,0 @@ }));

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