npm-bundled
Advanced tools
Comparing version 1.0.5 to 1.0.6
14
index.js
@@ -46,2 +46,14 @@ 'use strict' | ||
addListener (ev, fn) { | ||
return this.on(ev, fn) | ||
} | ||
on (ev, fn) { | ||
const ret = super.on(ev, fn) | ||
if (ev === 'done' && this.didDone) { | ||
this.emit('done', this.result) | ||
} | ||
return ret | ||
} | ||
done () { | ||
@@ -61,3 +73,3 @@ if (!this.didDone) { | ||
start () { | ||
const pj = this.path + '/package.json' | ||
const pj = path.resolve(this.path, 'package.json') | ||
if (this.packageJsonCache.has(pj)) | ||
@@ -64,0 +76,0 @@ this.onPackage(this.packageJsonCache.get(pj)) |
{ | ||
"name": "npm-bundled", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "list things in node_modules that are bundledDependencies, or transitive dependencies thereof", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9327
211