cloudcc-cli 1.1.0 → 1.1.1

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.1.1
2
+ #### 发布日期:2022-6-17
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 修复
6
+ * 检查更新添加try、catch功能
7
+
1
8
  # ReleaseV1.1.0
2
9
  #### 发布日期:2022-6-9
3
10
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -33,4 +33,4 @@
33
33
  "vue-custom-element": "^3.3.0",
34
34
  "vue-template-compiler": "^2.6.14"
35
35
  }
36
- }
36
+ }
@@ -57,7 +57,12 @@ function update(onlineVersion) {
57
57
  * 检查更新
58
58
  */
59
59
  async function checkUpdate() {
60
- let onlineVersion = checkNpmVersion();
60
+ let onlineVersion;
61
+ try {
62
+ onlineVersion = checkNpmVersion();
63
+ } catch (error) {
64
+ onlineVersion = false;
65
+ }
61
66
  if (onlineVersion) {
62
67
  let res = await askUpdate()
63
68
  if ("Yes" == res.update) {