@midwayjs/upload 4.0.0-beta.11 → 4.0.0-beta.13

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.
Files changed (2) hide show
  1. package/dist/parse.js +1 -1
  2. package/package.json +8 -8
package/dist/parse.js CHANGED
@@ -194,7 +194,7 @@ const parseHead = (headBuf) => {
194
194
  const eqIndex = kv.indexOf('=');
195
195
  const k = eqIndex !== -1 ? kv.substring(0, eqIndex) : kv;
196
196
  const v = eqIndex !== -1 ? kv.substring(eqIndex + 1) : undefined;
197
- headCol[k] = v ? v.replace(/^"/, '').replace(/"$/, '') : v ?? true;
197
+ headCol[k] = v ? v.replace(/^"/, '').replace(/"$/, '') : (v ?? true);
198
198
  });
199
199
  head[name] = headCol;
200
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/upload",
3
- "version": "4.0.0-beta.11",
3
+ "version": "4.0.0-beta.13",
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.11",
30
- "@midwayjs/express": "^4.0.0-beta.11",
31
- "@midwayjs/faas": "^4.0.0-beta.11",
32
- "@midwayjs/koa": "^4.0.0-beta.11",
33
- "@midwayjs/mock": "^4.0.0-beta.11",
34
- "@midwayjs/web": "^4.0.0-beta.11"
29
+ "@midwayjs/core": "^4.0.0-beta.13",
30
+ "@midwayjs/express": "^4.0.0-beta.13",
31
+ "@midwayjs/faas": "^4.0.0-beta.13",
32
+ "@midwayjs/koa": "^4.0.0-beta.13",
33
+ "@midwayjs/mock": "^4.0.0-beta.13",
34
+ "@midwayjs/web": "^4.0.0-beta.13"
35
35
  },
36
- "gitHead": "6ef05719ca6e900f1ec34aff7a5c5a9614358c50"
36
+ "gitHead": "9a38b66a84a6880370cac90d737f94f9c5f2f256"
37
37
  }