@cloudbase/manager-node 4.2.5 → 4.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/env/index.js +5 -6
- package/package.json +1 -1
package/lib/env/index.js
CHANGED
|
@@ -259,13 +259,12 @@ class EnvService {
|
|
|
259
259
|
SecretId: secretId,
|
|
260
260
|
SecretKey: secretKey,
|
|
261
261
|
SecurityToken: token,
|
|
262
|
-
Domain: constant_1.USE_INTERNAL_ENDPOINT ? "{Bucket}.cos-internal.{Region}.tencentcos.cn" /* INTERNAL */ : "{Bucket}.cos.{Region}.tencentcos.cn" /* PUBLIC
|
|
262
|
+
Domain: constant_1.USE_INTERNAL_ENDPOINT ? "{Bucket}.cos-internal.{Region}.tencentcos.cn" /* INTERNAL */ : "{Bucket}.cos.{Region}.tencentcos.cn" /* PUBLIC */,
|
|
263
|
+
Protocol: constant_1.USE_INTERNAL_ENDPOINT
|
|
264
|
+
? 'http:'
|
|
265
|
+
: (constant_1.COS_SDK_PROTOCOL === null || constant_1.COS_SDK_PROTOCOL === void 0 ? void 0 : constant_1.COS_SDK_PROTOCOL.endsWith(':')) ? constant_1.COS_SDK_PROTOCOL.toLowerCase()
|
|
266
|
+
: constant_1.COS_SDK_PROTOCOL.toLowerCase() + ':'
|
|
263
267
|
};
|
|
264
|
-
if (constant_1.COS_SDK_PROTOCOL) {
|
|
265
|
-
cosConfig.Protocol = constant_1.COS_SDK_PROTOCOL.endsWith(':')
|
|
266
|
-
? constant_1.COS_SDK_PROTOCOL.toLowerCase()
|
|
267
|
-
: constant_1.COS_SDK_PROTOCOL.toLowerCase() + ':';
|
|
268
|
-
}
|
|
269
268
|
return new cos_nodejs_sdk_v5_1.default(cosConfig);
|
|
270
269
|
}
|
|
271
270
|
getStorageConfig() {
|