@cloudbase/manager-node 4.6.3-beta.0 → 4.6.3

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.
@@ -354,7 +354,7 @@ const SUBMIT_DIFF_MAP = {
354
354
  CustomLogs: 'LogPath'
355
355
  };
356
356
  /**
357
- * 将 object 参数转为 [{key:"Port", IntValue:80}] 的格式,并且剔除空字符串和空数组
357
+ * 将 object 参数转为 [{key:"Port", IntValue:80}] 的格式,并且剔除空字符串
358
358
  */
359
359
  function parseObjectToDiffConfigItem(data) {
360
360
  const kvs = Object.entries(data);
@@ -389,7 +389,7 @@ function parseObjectToDiffConfigItem(data) {
389
389
  Items.push({ Key, FloatValue: v });
390
390
  }
391
391
  else if (['OpenAccessTypes', 'EntryPoint', 'Cmd'].includes(k)) {
392
- v.length && Items.push({ Key, ArrayValue: v });
392
+ Items.push({ Key, ArrayValue: v });
393
393
  }
394
394
  else if (['PolicyDetails'].includes(k)) {
395
395
  Items.push({ Key, PolicyDetails: v });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/manager-node",
3
- "version": "4.6.3-beta.0",
3
+ "version": "4.6.3",
4
4
  "description": "The node manage service api for cloudbase.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -113,6 +113,6 @@ export declare function codeToZip(cwd: string, options?: {
113
113
  installDependency?: boolean;
114
114
  }): Promise<Buffer>;
115
115
  /**
116
- * 将 object 参数转为 [{key:"Port", IntValue:80}] 的格式,并且剔除空字符串和空数组
116
+ * 将 object 参数转为 [{key:"Port", IntValue:80}] 的格式,并且剔除空字符串
117
117
  */
118
118
  export declare function parseObjectToDiffConfigItem(data: Partial<ICloudrunServerBaseInfo>): IDiffConfigItem[];