then-busboy
Advanced tools
Comparing version 2.1.5 to 2.2.0
@@ -12,2 +12,4 @@ "use strict"; | ||
var _objectDeepFromEntries = _interopRequireDefault(require("object-deep-from-entries")); | ||
var _invariant = _interopRequireDefault(require("@octetstream/invariant")); | ||
@@ -27,4 +29,2 @@ | ||
var _objectFromEntries = _interopRequireDefault(require("./util/objectFromEntries")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -93,3 +93,3 @@ | ||
(0, _mapListeners.default)(listeners, (fn, name) => busboy.removeListener(name, fn)); | ||
return resolve((0, _objectFromEntries.default)(entries)); | ||
return resolve((0, _objectDeepFromEntries.default)(entries)); | ||
} catch (err) { | ||
@@ -96,0 +96,0 @@ return reject(err); |
{ | ||
"name": "then-busboy", | ||
"description": "Promise-based wrapper around Busboy. Process multipart/form-data content and returns it as a single object.", | ||
"version": "2.1.5", | ||
"version": "2.2.0", | ||
"author": "Nick K. <nick.kruchinin@gmail.com>", | ||
@@ -57,3 +57,4 @@ "license": "MIT", | ||
"lodash.merge": "4.6.1", | ||
"nanoid": "1.0.2" | ||
"nanoid": "1.0.2", | ||
"object-deep-from-entries": "0.3.0" | ||
}, | ||
@@ -70,13 +71,13 @@ "devDependencies": { | ||
"codecov": "3.0.0", | ||
"eslint": "4.18.2", | ||
"eslint": "4.19.1", | ||
"eslint-plugin-ava": "4.5.1", | ||
"husky": "0.14.3", | ||
"lint-staged": "7.0.0", | ||
"nyc": "11.4.1", | ||
"nyc": "11.6.0", | ||
"promise-fs": "1.3.0", | ||
"proxyquire": "2.0.0", | ||
"proxyquire": "2.0.1", | ||
"rimraf": "2.6.2", | ||
"sinon": "4.4.2", | ||
"sinon": "4.4.8", | ||
"supertest": "3.0.0" | ||
} | ||
} |
@@ -138,9 +138,2 @@ "use strict"; | ||
}); | ||
(0, _ava.default)("Should response with an error when assignin a property to primitive value", async t => { | ||
t.plan(1); | ||
const { | ||
error | ||
} = await (0, _supertest.default)((0, _mockServer.default)(_thenBusboy.default)()).post("/").field("root[0]", "whatever").field("root[0][nop]", "oops"); | ||
t.is(error.text, "TypeError: Cannot create property 'nop' on string 'whatever'"); | ||
}); | ||
(0, _ava.default)("Should response an error on incorrect field name format", async t => { | ||
@@ -147,0 +140,0 @@ t.plan(1); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49469
5
28
1093
+ Addedobject-deep-from-entries@0.3.0(transitive)