From 40fe814f7ee5a21f9bd7975a18e506c9fc8d3a22 Mon Sep 17 00:00:00 2001 From: pocotan001 Date: Fri, 21 Apr 2017 20:46:42 +0900 Subject: [PATCH] Ignore invalid pkg --- lib/licensify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/licensify.js b/lib/licensify.js index ec4d430..86b7375 100644 --- a/lib/licensify.js +++ b/lib/licensify.js @@ -194,7 +194,7 @@ module.exports = function licensify (b, opts) { } b.on('package', function (pkg) { - if (alreadyScanned(pkg)) { + if (!pkg.name || alreadyScanned(pkg)) { return; }