@midwayjs/upload 4.0.0-beta.2 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/parse.js +3 -1
- package/package.json +8 -8
package/dist/parse.js
CHANGED
|
@@ -191,7 +191,9 @@ const parseHead = (headBuf) => {
|
|
|
191
191
|
if (name === 'content-disposition') {
|
|
192
192
|
const headCol = {};
|
|
193
193
|
value.split(/;\s+/).forEach((kv) => {
|
|
194
|
-
const
|
|
194
|
+
const eqIndex = kv.indexOf('=');
|
|
195
|
+
const k = eqIndex !== -1 ? kv.substring(0, eqIndex) : kv;
|
|
196
|
+
const v = eqIndex !== -1 ? kv.substring(eqIndex + 1) : undefined;
|
|
195
197
|
headCol[k] = v ? v.replace(/^"/, '').replace(/"$/, '') : v ?? true;
|
|
196
198
|
});
|
|
197
199
|
head[name] = headCol;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/upload",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.4",
|
|
4
4
|
"description": "Midway Component for upload",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"raw-body": "2.5.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@midwayjs/core": "^4.0.0-beta.
|
|
30
|
-
"@midwayjs/express": "^4.0.0-beta.
|
|
31
|
-
"@midwayjs/faas": "^4.0.0-beta.
|
|
32
|
-
"@midwayjs/koa": "^4.0.0-beta.
|
|
33
|
-
"@midwayjs/mock": "^4.0.0-beta.
|
|
34
|
-
"@midwayjs/web": "^4.0.0-beta.
|
|
29
|
+
"@midwayjs/core": "^4.0.0-beta.4",
|
|
30
|
+
"@midwayjs/express": "^4.0.0-beta.4",
|
|
31
|
+
"@midwayjs/faas": "^4.0.0-beta.4",
|
|
32
|
+
"@midwayjs/koa": "^4.0.0-beta.4",
|
|
33
|
+
"@midwayjs/mock": "^4.0.0-beta.4",
|
|
34
|
+
"@midwayjs/web": "^4.0.0-beta.4"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "64b0cc5d7f67134b1bc75959233e9048e796f8b2"
|
|
37
37
|
}
|