@corva/create-app 0.119.0 → 0.120.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.
@@ -75,7 +75,20 @@ export async function warnIfOutdated() {
75
75
  logger.write('Checking for updates...\n');
76
76
 
77
77
  const currentVersion = await getCurrentVersion();
78
- const latestVersion = await getLatestVersion();
78
+
79
+ let latestVersion;
80
+
81
+ try {
82
+ latestVersion = await getLatestVersion();
83
+ } catch (caughtError) {
84
+ if (!(caughtError instanceof StepError)) {
85
+ throw caughtError;
86
+ }
87
+
88
+ logger.write(' ⚠️ Skipping version check (could not reach npm registry).\n');
89
+
90
+ return;
91
+ }
79
92
 
80
93
  // Skip version check if current version is a prerelease (dev or next)
81
94
  if (!isRegularVersion(currentVersion)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.119.0",
3
+ "version": "0.120.1",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [
@@ -56,7 +56,7 @@
56
56
  "got": "^12.5.1",
57
57
  "inquirer": "^8.2.3",
58
58
  "is-glob": "^4.0.3",
59
- "lodash": "^4.17.21",
59
+ "lodash": "^4.18.1",
60
60
  "npm-api": "^1.0.0",
61
61
  "semver": "^7.3.2",
62
62
  "terminal-link": "^3.0.0"