@be-link/shield-for-tcb-node-sdk 1.0.18 → 1.0.19

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.
@@ -42,7 +42,7 @@ class ShieldCloudFunctionConfig {
42
42
  }
43
43
  __classPrivateFieldSet(this, _ShieldCloudFunctionConfig_serviceName, serviceName, "f");
44
44
  __classPrivateFieldSet(this, _ShieldCloudFunctionConfig_env, (options.env && options.env.trim()) || process.env.NODE_ENV, "f");
45
- __classPrivateFieldSet(this, _ShieldCloudFunctionConfig_fetchTimeoutMs, options.fetchTimeoutMs ?? DEFAULT_FETCH_TIMEOUT_MS, "f");
45
+ __classPrivateFieldSet(this, _ShieldCloudFunctionConfig_fetchTimeoutMs, options.fetchTimeoutMs != null ? options.fetchTimeoutMs : DEFAULT_FETCH_TIMEOUT_MS, "f");
46
46
  __classPrivateFieldSet(this, _ShieldCloudFunctionConfig_logger, options.logger || defaultLogger, "f");
47
47
  }
48
48
  /**
@@ -41,7 +41,7 @@ class ConfigServiceV2 extends BaseService_1.default {
41
41
  * @returns 解析后的配置数据,如果配置不存在返回 null
42
42
  */
43
43
  fetchCloudFunctionConfigKey(req, options) {
44
- return (0, cloudFunctionHttp_1.quietPost)(this.getApiUrlV2('/cloud-function/fetch-key'), req, { timeoutMs: options?.timeoutMs ?? 2000 });
44
+ return (0, cloudFunctionHttp_1.quietPost)(this.getApiUrlV2('/cloud-function/fetch-key'), req, { timeoutMs: options && options.timeoutMs != null ? options.timeoutMs : 2000 });
45
45
  }
46
46
  /**
47
47
  * 获取所有服务列表
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/shield-for-tcb-node-sdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "ShieldForTCB Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",