github-orgs-packages
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
### 1.2.0 (2018-03-19) | ||
##### Bug Fixes | ||
* export module, error handling ([ab985487](https://github.com/oleg-koval/github-orgs-packages/commit/ab98548764285079c93ee688d86c070268eec9f2)) | ||
#### 1.1.7 (2018-03-19) | ||
@@ -2,0 +8,0 @@ |
15
index.js
@@ -67,3 +67,3 @@ const { | ||
if (err.response.status === 404) { | ||
console.error(`getPackageJson: package.json not found for ${repo.name}`); | ||
console.warn(`warn: package.json not found for ${repo.name}`); | ||
return; | ||
@@ -118,3 +118,6 @@ } | ||
}) | ||
.catch(console.error); | ||
.catch((err) => { | ||
const { path, message, host } = err; | ||
console.warn(`warn: ${message}: ${path} @ ${host}`); | ||
}); | ||
}); | ||
@@ -147,7 +150,3 @@ }; | ||
const resolve = (deps) => Promise.method((resolve) => { | ||
return resolve(deps) | ||
}) | ||
return getReposList() | ||
module.exports = getReposList() | ||
.map(flattenObj) | ||
@@ -162,3 +161,3 @@ .map(getRepoProps) | ||
.then(remapGroupedDeps) | ||
.then(resolve) | ||
.then(Promise.resolve) | ||
.catch(Promise.reject); |
{ | ||
"name": "github-orgs-packages", | ||
"version": "1.1.7", | ||
"version": "1.2.0", | ||
"description": "Get information for all packages inside of your github organisation", | ||
@@ -34,3 +34,2 @@ "main": "index.js", | ||
"github-api": "^3.0.0", | ||
"github-orgs-packages": "^1.1.6", | ||
"package-info": "^3.0.1", | ||
@@ -37,0 +36,0 @@ "ramda": "^0.25.0" |
Sorry, the diff of this file is not supported yet
62247
0.73%4
-20%6
-14.29%141
-1.4%- Removed