Browse Source

Ignore packages that are missing a "maintainers" field

Fixes #4
master
Feross Aboukhadijeh 7 years ago
parent
commit
94cb352395
  1. 7
      cmd.js

7
cmd.js

@ -239,6 +239,13 @@ function computeAuthorsPkgNames (pkgs, pkgDownloads, directPkgNames) {
const authorPkgNames = {}
pkgs.forEach(pkg => {
if (!pkg.maintainers) {
// Ignore packages that are missing a "maintainers" field (e.g.
// http://registry.npmjs.com/vargs/latest). This appears to happen on very old
// packages. My guess is that the "maintainers" field only started getting
// added to release metadata recently.
return
}
pkg.maintainers
.map(maintainer => maintainer.name)
.forEach(author => {

Loading…
Cancel
Save