We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd9332 commit 4a939b2Copy full SHA for 4a939b2
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "cos-nodejs-sdk-v5",
3
- "version": "2.11.17",
+ "version": "2.11.18",
4
"description": "cos nodejs sdk v5",
5
"main": "index.js",
6
"types": "index.d.ts",
sdk/cos.js
@@ -86,7 +86,7 @@ var COS = function (options) {
86
console.warn('warning: Please change options secretId/secretKey to SecretId/SecretKey.');
87
}
88
// 支持外部传入Cred动态秘钥
89
- if (this.options.Credentials) {
+ if (this.options.Credentials.secretId && this.options.Credentials.secretKey) {
90
this.options.SecretId = this.options.Credentials.secretId || '';
91
this.options.SecretKey = this.options.Credentials.secretKey || '';
92
0 commit comments