@midwayjs/upload 4.0.0-beta.9 → 4.0.1-beta.1

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 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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { UploadFileInfo, UploadOptions } from './dist/index';
2
2
  export * from './dist/index';
3
3
 
4
- declare module '@midwayjs/core/dist/interface' {
4
+ declare module '@midwayjs/core' {
5
5
  interface MidwayConfig {
6
6
  upload?: Partial<UploadOptions>;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/upload",
3
- "version": "4.0.0-beta.9",
3
+ "version": "4.0.1-beta.1",
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.9",
30
- "@midwayjs/express": "^4.0.0-beta.9",
31
- "@midwayjs/faas": "^4.0.0-beta.9",
32
- "@midwayjs/koa": "^4.0.0-beta.9",
33
- "@midwayjs/mock": "^4.0.0-beta.9",
34
- "@midwayjs/web": "^4.0.0-beta.9"
29
+ "@midwayjs/core": "^4.0.1-beta.1",
30
+ "@midwayjs/express": "^4.0.1-beta.1",
31
+ "@midwayjs/faas": "^4.0.1-beta.1",
32
+ "@midwayjs/koa": "^4.0.1-beta.1",
33
+ "@midwayjs/mock": "^4.0.1-beta.1",
34
+ "@midwayjs/web": "^4.0.1-beta.1"
35
35
  },
36
- "gitHead": "771e83974ef9f3d78c296e4ee0c8c68db44f6b31"
36
+ "gitHead": "539d5305896972d43fda36d0c9758e77d3b5adbe"
37
37
  }