@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.
- package/dist/middleware.js +1 -1
- package/package.json +9 -9
package/dist/middleware.js
CHANGED
|
@@ -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.
|
|
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.
|
|
29
|
-
"@midwayjs/express": "^3.
|
|
30
|
-
"@midwayjs/faas": "^3.
|
|
31
|
-
"@midwayjs/koa": "^3.
|
|
32
|
-
"@midwayjs/mock": "^3.
|
|
33
|
-
"@midwayjs/serverless-app": "^3.
|
|
34
|
-
"@midwayjs/web": "^3.
|
|
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": "
|
|
36
|
+
"gitHead": "99386083ee26b386fd508b9c892091c914e77535"
|
|
37
37
|
}
|