@cloudbase/manager-node 4.2.6 → 4.2.7

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.
@@ -847,13 +847,12 @@ class StorageService {
847
847
  SecretKey: secretKey,
848
848
  Proxy: cosProxy || proxy,
849
849
  SecurityToken: token,
850
- Domain: constant_1.USE_INTERNAL_ENDPOINT ? "{Bucket}.cos-internal.{Region}.tencentcos.cn" /* INTERNAL */ : "{Bucket}.cos.{Region}.tencentcos.cn" /* PUBLIC */
850
+ Domain: constant_1.USE_INTERNAL_ENDPOINT ? "{Bucket}.cos-internal.{Region}.tencentcos.cn" /* INTERNAL */ : "{Bucket}.cos.{Region}.tencentcos.cn" /* PUBLIC */,
851
+ Protocol: constant_1.USE_INTERNAL_ENDPOINT
852
+ ? 'http:'
853
+ : (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()
854
+ : constant_1.COS_SDK_PROTOCOL.toLowerCase() + ':'
851
855
  };
852
- if (constant_1.COS_SDK_PROTOCOL) {
853
- cosConfig.Protocol = constant_1.COS_SDK_PROTOCOL.endsWith(':')
854
- ? constant_1.COS_SDK_PROTOCOL.toLowerCase()
855
- : constant_1.COS_SDK_PROTOCOL.toLowerCase() + ':';
856
- }
857
856
  // COSSDK 默认开启 KeepAlive,这里提供关闭的方式
858
857
  if (constant_1.COS_SDK_KEEPALIVE) {
859
858
  cosConfig.KeepAlive = { true: true, false: false }[constant_1.COS_SDK_KEEPALIVE];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/manager-node",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "description": "The node manage service api for cloudbase.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {