diff --git a/file/package.json b/file/package.json index ab31018..e662129 100644 --- a/file/package.json +++ b/file/package.json @@ -1,6 +1,6 @@ { "name": "@cool-midway/file", - "version": "7.0.0", + "version": "7.0.2", "description": "", "main": "dist/index.js", "typings": "index.d.ts", diff --git a/file/src/file.ts b/file/src/file.ts index 1ddc486..b855011 100644 --- a/file/src/file.ts +++ b/file/src/file.ts @@ -333,7 +333,7 @@ export class CoolFile { if (!conditions) { conditions = [{ acl: 'public-read' }, { bucket }]; } - if (!fields) { + if (_.isEmpty(fields)) { fields = { acl: 'public-read', }; diff --git a/file/src/package.json b/file/src/package.json index a85aef7..38e1794 100644 --- a/file/src/package.json +++ b/file/src/package.json @@ -1,6 +1,6 @@ { "name": "@cool-midway/file", - "version": "7.0.0", + "version": "7.0.2", "description": "", "main": "index.js", "typings": "index.d.ts",