cloudcc-cli 1.6.3 → 1.6.4

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/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ # ReleaseV1.6.4
2
+ #### 发布日期:2024-5-13
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 优化
6
+ * 检查安全标记有效性
7
+
1
8
  # ReleaseV1.6.3
2
9
  #### 发布日期:2024-5-13
3
10
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
package/utils/utils.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const { getParams, postNormal } = require("./http")
2
2
  const fs = require("fs");
3
3
  const path = require("path")
4
+ const chalk = require("chalk")
4
5
 
5
6
  /**
6
7
  * 获得配置信息
@@ -23,6 +24,11 @@ async function getBaseUrl(orgId) {
23
24
  */
24
25
  async function getBusToken(path) {
25
26
  let devConfig = getPackageJson(path);
27
+ if(!devConfig.username||!devConfig.safetyMark||!devConfig.clientId||!devConfig.openSecretKey||!devConfig.orgId){
28
+ console.log(chalk.red('安全标记配置有误,请查看文档进行配置:https://cloudccone.feishu.cn/wiki/IE0RwAOUFitPEMko1IxcaYMwnGx'));
29
+ console.log();
30
+ return false;
31
+ }
26
32
  let body = {
27
33
  username: devConfig.username,
28
34
  safetyMark: devConfig.safetyMark,