Permalink
Browse files

check V1 updates only

closes #852
  • Loading branch information...
scriptPilot committed Jan 10, 2019
1 parent c5245de commit c642fc916603223912e2239595f3ee4abb0dc7c1
Showing with 2 additions and 2 deletions.
  1. +1 −1 client/app.js
  2. +1 −1 scripts/dev.js
@@ -388,7 +388,7 @@ mixins.checkNPMupdates = {
if (npm !== undefined && npm.latest !== undefined) {
if (npm.latest === 'unknown') {
window.f7.alert('Failed to get latest NPM version. Please open an incident on GitHub.', 'App Framework')
} else if (/^[0-9]+\.[0-9]+\.[0-9]+$/.test(npm.latest)) {
} else if (/^[0-9]+\.[0-9]+\.[0-9]+(-.+)?$/.test(npm.latest)) {
let currentVersion = this.frameworkVersion.split('.')
let npmVersion = npm.latest.split('.')
if (parseInt(currentVersion[0]) < parseInt(npmVersion[0]) ||
@@ -76,7 +76,7 @@ function checkFrameworkUpdates (callback) {
alert('Failed to create latest npm version file.', 'issue')
}
}
packageJson('app-framework').then(function (packageInfo) {
packageJson('app-framework', { version: '1' }).then(function (packageInfo) {
try {
fs.writeJsonSync(abs(env.cache, 'latest-npm-version.json'), {latest: packageInfo.version !== undefined ? packageInfo.version : 'unknown'})
alert('Latest App Framework version checked.')

0 comments on commit c642fc9

Please sign in to comment.