@midwayjs/upload 3.6.1 → 3.7.0

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.
@@ -172,7 +172,7 @@ let UploadMiddleware = class UploadMiddleware {
172
172
  while (lowerCaseFileNameList.length) {
173
173
  lowerCaseFileNameList.shift();
174
174
  const curExt = `.${lowerCaseFileNameList.join('.')}`;
175
- if (this.uploadWhiteListMap[curExt]) {
175
+ if (this.upload.whitelist === null || this.uploadWhiteListMap[curExt]) {
176
176
  return curExt;
177
177
  }
178
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/upload",
3
- "version": "3.6.1",
3
+ "version": "3.7.0",
4
4
  "description": "Midway Component for upload",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -25,13 +25,13 @@
25
25
  "raw-body": "2.5.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@midwayjs/core": "^3.6.0",
29
- "@midwayjs/express": "^3.6.0",
30
- "@midwayjs/faas": "^3.6.0",
31
- "@midwayjs/koa": "^3.6.0",
32
- "@midwayjs/mock": "^3.6.0",
33
- "@midwayjs/serverless-app": "^3.6.0",
34
- "@midwayjs/web": "^3.6.0"
28
+ "@midwayjs/core": "^3.7.0",
29
+ "@midwayjs/express": "^3.7.0",
30
+ "@midwayjs/faas": "^3.7.0",
31
+ "@midwayjs/koa": "^3.7.0",
32
+ "@midwayjs/mock": "^3.7.0",
33
+ "@midwayjs/serverless-app": "^3.7.0",
34
+ "@midwayjs/web": "^3.7.0"
35
35
  },
36
- "gitHead": "7aa8d1d712ff5ae7e3b27eb2e154d3f7ee40889a"
36
+ "gitHead": "99386083ee26b386fd508b9c892091c914e77535"
37
37
  }