From 146b82ae9c97de8bd3eca5c7e59203a79d826de3 Mon Sep 17 00:00:00 2001 From: chrisftian Date: Sat, 11 Sep 2021 16:51:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Aclone=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- sdk/util.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 707b7dc..f9628ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cos-nodejs-sdk-v5", - "version": "2.10.1", + "version": "2.10.2", "description": "cos nodejs sdk v5", "main": "index.js", "types": "index.d.ts", diff --git a/sdk/util.js b/sdk/util.js index b7231b5..ff1d7df 100644 --- a/sdk/util.js +++ b/sdk/util.js @@ -214,7 +214,6 @@ var getFileMd5 = function (readStream, callback) { }; function clone(obj) { - if (typeof obj !== 'object') return obj; return map(obj, function (v) { return typeof v === 'object' && v !== null ? clone(v) : v; });