Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Commit

Permalink
check V1 updates only
Browse files Browse the repository at this point in the history
closes #852
  • Loading branch information
ScriptPilot committed Jan 10, 2019
1 parent c5245de commit c642fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) ||
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit c642fc9

Please sign in to comment.