@react-native-community/cli-tools
Advanced tools
Comparing version 12.0.0-alpha.4 to 12.0.0-alpha.5
@@ -44,9 +44,2 @@ "use strict"; | ||
} | ||
const aWeek = 7 * 24 * 60 * 60 * 1000; | ||
const lastChecked = _releaseCacheManager.default.get(name, 'lastChecked'); | ||
const now = new Date(); | ||
if (lastChecked && Number(now) - Number(new Date(lastChecked)) < aWeek) { | ||
_logger.default.debug('Cached release is still recent, skipping remote check'); | ||
return; | ||
} | ||
_logger.default.debug('Checking for newer releases on GitHub'); | ||
@@ -53,0 +46,0 @@ const eTag = _releaseCacheManager.default.get(name, 'eTag'); |
@@ -84,3 +84,3 @@ "use strict"; | ||
} | ||
} catch (_) { | ||
} catch { | ||
throw new _errors.UnknownProjectError(projectRoot); | ||
@@ -87,0 +87,0 @@ } |
{ | ||
"name": "@react-native-community/cli-tools", | ||
"version": "12.0.0-alpha.4", | ||
"version": "12.0.0-alpha.5", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "12.0.0-alpha.4", | ||
"@react-native-community/cli-types": "12.0.0-alpha.5", | ||
"@types/lodash": "^4.14.149", | ||
@@ -34,3 +34,3 @@ "@types/mime": "^2.0.1", | ||
], | ||
"homepage": "https://github.com/react-native-community/cli/tree/master/packages/tools", | ||
"homepage": "https://github.com/react-native-community/cli/tree/main/packages/cli-tools", | ||
"repository": { | ||
@@ -41,3 +41,3 @@ "type": "git", | ||
}, | ||
"gitHead": "bd0963dbe23b079b50dd2b07f80f305b3bc92f3a" | ||
"gitHead": "3569633e1bbda4858195feb8537d7b9969b2040e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
157305
1732