Comparing version 0.1.8 to 0.1.9
@@ -48,2 +48,3 @@ #!/usr/bin/env node | ||
operations.push(git.getCurrentBranch); | ||
operations.push(base.checkVersion); | ||
operations.push(base.login); | ||
@@ -50,0 +51,0 @@ |
@@ -16,3 +16,4 @@ /* | ||
prompt = require('cli-prompt'), | ||
logger = require('./logger'); | ||
logger = require('./logger'), | ||
updateNotifier = require('update-notifier'); | ||
@@ -74,2 +75,15 @@ exports.github = new github({ | ||
exports.checkVersion = function(opt_callback) { | ||
var notifier = updateNotifier({ | ||
packagePath: '../package', | ||
updateCheckInterval: 1000 * 60 * 60 * 24 // 1 day | ||
}); | ||
if (notifier.update) { | ||
notifier.notify(); | ||
} | ||
opt_callback && opt_callback(); | ||
}; | ||
exports.find = function(filepath, opt_pattern) { | ||
@@ -76,0 +90,0 @@ return fs.readdirSync(filepath).filter(function(file) { |
{ | ||
"name": "gh", | ||
"description": "Github command line tools helps you improve using git and github from the terminal.", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"author": { | ||
@@ -42,3 +42,4 @@ "name": "Eduardo Lundgren", | ||
"nopt": "2.1.1", | ||
"open": "0.0.3" | ||
"open": "0.0.3", | ||
"update-notifier": "0.1.3" | ||
}, | ||
@@ -45,0 +46,0 @@ "devDependencies": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
236147
25
4591
12
10
2
+ Addedupdate-notifier@0.1.3
+ Addedargparse@0.1.16(transitive)
+ Addedcolors@0.6.2(transitive)
+ Addedconfigstore@0.1.7(transitive)
+ Addedesprima@1.0.4(transitive)
+ Addedgraceful-fs@2.0.3(transitive)
+ Addedjs-yaml@2.1.3(transitive)
+ Addedlodash@2.4.2(transitive)
+ Addedmkdirp@0.3.5(transitive)
+ Addedosenv@0.0.3(transitive)
+ Addedrequest@2.12.0(transitive)
+ Addedsemver@1.1.4(transitive)
+ Addedunderscore@1.7.0(transitive)
+ Addedunderscore.string@2.4.0(transitive)
+ Addedupdate-notifier@0.1.3(transitive)