This repository was archived by the owner on Dec 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ module.exports = (options, callback) ->
3636 # if a remote version is higher than the installed one, the callback
3737 # will be called with the release object
3838 for release in releases
39- tag = release .tag_name .replace (/ \D / g , ' ' )
39+ tag = release .tag_name .replace (/ [ ^ 0-9 $ . ,] / g , ' ' )
4040 if semcmp (currentVersion, tag) is - 1
4141 found = true
4242 callback release
Original file line number Diff line number Diff line change 11{
22 "name" : " github-version-checker" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Version checker working with GitHub releases." ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const currentVersion = require('./package.json').version;
1212
1313// version check options
1414const options = {
15- repo : 'axelrindle/boilernode ' , // the GitHub repo (required)
15+ repo : 'axelrindle/github-version-checker ' , // the GitHub repo (required)
1616 currentVersion : currentVersion // your app's current version (required)
1717} ;
1818versionCheck ( options , function ( update ) {
@@ -28,5 +28,7 @@ versionCheck(options, function (update) {
2828 console . log ( '' ) ;
2929 console . log ( '------------------------------------------------------------' ) ;
3030 console . log ( '' ) ;
31+ } else {
32+ console . log ( 'No updates found.' ) ;
3133 }
3234} ) ;
You can’t perform that action at this time.
0 commit comments