+16
-1
@@ -24,3 +24,18 @@ /*! | ||
| } | ||
| utils.async.map(repos, utils.pkg, cb); | ||
| var i = 0; | ||
| utils.async.map(repos, utils.pkg, function(err, res) { | ||
| var name = repos[i]; | ||
| i++; | ||
| if (err) { | ||
| if (err.message !== 'document not found') { | ||
| cb(err); | ||
| return; | ||
| } | ||
| console.error('npm package "%s" does not exist', name); | ||
| res = res.filter(Boolean); | ||
| } | ||
| cb(null, res); | ||
| }); | ||
| }; |
+4
-4
| { | ||
| "name": "get-pkgs", | ||
| "description": "Get the package.json for an array of repos from the npm registry, optionally filtering properties using glob patterns.", | ||
| "version": "0.3.0", | ||
| "version": "0.4.0", | ||
| "homepage": "https://github.com/jonschlinkert/get-pkgs", | ||
@@ -24,5 +24,5 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
| "dependencies": { | ||
| "async": "^1.5.0", | ||
| "get-pkg": "^0.1.0", | ||
| "lazy-cache": "^0.2.4" | ||
| "async": "^1.5.2", | ||
| "get-pkg": "^0.2.0", | ||
| "lazy-cache": "^1.0.3" | ||
| }, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
5468
5.74%64
25.49%+ Added
+ Added
- Removed
- Removed
Updated
Updated
Updated