From cd50f8857fdbbf78e5f7702514cdbe0806e332be Mon Sep 17 00:00:00 2001 From: beajer <919060679@qq.com> Date: Wed, 20 Jan 2021 03:11:47 -0600 Subject: [PATCH] fix: not use `object spread operator` because of the low version of Node.js (#921) --- lib/object.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/object.js b/lib/object.js index dfbdb3e3d..0bbb8ee1e 100644 --- a/lib/object.js +++ b/lib/object.js @@ -238,10 +238,7 @@ proto.listV2 = async function listV2(query, options = {}) { ); } const params = this._objectRequestParams('GET', '', options); - params.query = { - 'list-type': 2, - ...query - }; + params.query = Object.assign({ 'list-type': 2 }, query); params.xmlResponse = true; params.successStatuses = [200];