Comparing version 1.2.1 to 1.3.0
19
index.js
@@ -174,6 +174,3 @@ "use strict"; | ||
github.repos.getForUser({ | ||
user: org, | ||
per_page: 100 | ||
}, (err, response) => { | ||
const handleRepos = (err, response) => { | ||
if (err) { | ||
@@ -192,4 +189,12 @@ console.log(err); | ||
}); | ||
if (github.hasNextPage(response)) { | ||
github.getNextPage(response, handleRepos); | ||
} | ||
}; | ||
github.repos.getForUser({ | ||
user: org, | ||
per_page: 100 | ||
}, handleRepos); | ||
}; | ||
@@ -258,3 +263,3 @@ | ||
console.log(Chalk.bgMagenta("Using global hasdep config file in homedir")); | ||
console.log(Chalk.bgMagenta(Chalk.white("Using global hasdep config file in homedir"))); | ||
Config = JSON.parse(Fs.readFileSync(configFilePath)); | ||
@@ -268,3 +273,3 @@ | ||
console.log(Chalk.bgMagenta("Using local project hasdep config file")); | ||
console.log(Chalk.bgMagenta(Chalk.white("Using local project hasdep config file"))); | ||
Config = JSON.parse(Fs.readFileSync(configFilePath)); | ||
@@ -271,0 +276,0 @@ |
{ | ||
"name": "hasdep", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Check for a dependency (and version) across a Github Org or specific repo", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10415
226