@bunt/app
Advanced tools
Comparing version 0.29.22 to 0.29.26
@@ -20,5 +20,4 @@ "use strict"; | ||
const defer = new async_1.Defer(); | ||
const result = {}; | ||
const pending = []; | ||
const { parseFieldName, inject } = util_1.QueryString; | ||
const qs = new util_1.QueryString(); | ||
bb | ||
@@ -34,3 +33,3 @@ .on("file", (name, file, info) => { | ||
}; | ||
inject(parseFieldName(name), value, result); | ||
qs.push(name, value); | ||
const def = new async_1.Defer(); | ||
@@ -44,3 +43,3 @@ pending.push(def); | ||
try { | ||
inject(parseFieldName(name), JSON.parse(value), result); | ||
qs.push(name, JSON.parse(value)); | ||
} | ||
@@ -55,5 +54,5 @@ catch { | ||
await Promise.all(pending); | ||
return result; | ||
return qs.toObject(); | ||
}; | ||
exports.MultipartFormDataTransform = MultipartFormDataTransform; | ||
//# sourceMappingURL=MultipartFormDataTransform.js.map |
@@ -17,5 +17,4 @@ import { randomBytes } from "crypto"; | ||
const defer = new Defer(); | ||
const result = {}; | ||
const pending = []; | ||
const { parseFieldName, inject } = QueryString; | ||
const qs = new QueryString(); | ||
bb | ||
@@ -31,3 +30,3 @@ .on("file", (name, file, info) => { | ||
}; | ||
inject(parseFieldName(name), value, result); | ||
qs.push(name, value); | ||
const def = new Defer(); | ||
@@ -41,3 +40,3 @@ pending.push(def); | ||
try { | ||
inject(parseFieldName(name), JSON.parse(value), result); | ||
qs.push(name, JSON.parse(value)); | ||
} | ||
@@ -52,4 +51,4 @@ catch { | ||
await Promise.all(pending); | ||
return result; | ||
return qs.toObject(); | ||
}; | ||
//# sourceMappingURL=MultipartFormDataTransform.js.map |
{ | ||
"name": "@bunt/app", | ||
"version": "0.29.22", | ||
"version": "0.29.26", | ||
"keywords": [ | ||
@@ -40,4 +40,4 @@ "typescript" | ||
"@bunt/is": "^0.29.19", | ||
"@bunt/unit": "^0.29.19", | ||
"@bunt/util": "^0.29.19", | ||
"@bunt/unit": "^0.29.26", | ||
"@bunt/util": "^0.29.26", | ||
"@types/busboy": "^1.5.3", | ||
@@ -48,3 +48,3 @@ "busboy": "^1.6.0", | ||
"license": "MIT", | ||
"gitHead": "c42ad954c424486e46c51a34ee38e368634a0f9f" | ||
"gitHead": "f15def8255bafd5231a46aa842f535cb4ee0fbb9" | ||
} |
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
Sorry, the diff of this file is not supported yet
291528
1643
Updated@bunt/unit@^0.29.26
Updated@bunt/util@^0.29.26