From 161432bb993e53dcfff2ec9a2f1b30afbbc4c495 Mon Sep 17 00:00:00 2001 From: cool Date: Fri, 17 Nov 2023 17:12:38 +0800 Subject: [PATCH] =?UTF-8?q?AWS=E5=A6=82=E6=9E=9C=E4=B8=8D=E8=AE=BE?= =?UTF-8?q?=E7=BD=AEfields=EF=BC=8C=E5=88=99=E8=AE=BE=E7=BD=AE=E4=B8=BApub?= =?UTF-8?q?lic-read?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- file/package.json | 2 +- file/src/file.ts | 2 +- file/src/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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",