@cloudbase/node-sdk
Advanced tools
Comparing version 3.3.4 to 3.3.5
@@ -267,2 +267,5 @@ "use strict"; | ||
this.config = Object.assign(Object.assign({}, this.config), { secretId: credentials.secretId, secretKey: credentials.secretKey, sessionToken: credentials.sessionToken }); | ||
if (!this.config.secretId || !this.config.secretKey) { | ||
throw E(Object.assign(Object.assign({}, code_1.ERROR.INVALID_PARAM), { message: 'missing secretId or secretKey of tencent cloud, please set secretId and secretKey in config' })); | ||
} | ||
} | ||
@@ -269,0 +272,0 @@ } |
{ | ||
"name": "@cloudbase/node-sdk", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"description": "tencent cloud base server sdk for node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -310,2 +310,8 @@ import http from 'http' | ||
} | ||
if (!this.config.secretId || !this.config.secretKey) { | ||
throw E({ | ||
...ERROR.INVALID_PARAM, | ||
message: 'missing secretId or secretKey of tencent cloud, please set secretId and secretKey in config' | ||
}) | ||
} | ||
} | ||
@@ -312,0 +318,0 @@ } |
230935
6473