Comparing version 0.4.2 to 0.4.3
@@ -53,3 +53,6 @@ var fs = require("fs"); | ||
} else { | ||
deps = deps.difference(modulesRequired.valueOf()); | ||
modulesRequired = modulesRequired.map(function (module) { | ||
return module.replace(/\/.*$/, ''); | ||
}); | ||
deps = deps.difference(modulesRequired); | ||
devDeps = devDeps.difference(modulesRequired); | ||
@@ -56,0 +59,0 @@ } |
{ | ||
"name": "depcheck", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Check dependencies in your node module", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -79,2 +79,11 @@ var assert = require("should"); | ||
it("should recognize nested requires", function testNested(done) { | ||
var absolutePath = path.resolve("test/fake_modules/nested"); | ||
depcheck(absolutePath, { }, function checked(unused) { | ||
assert.equal(unused.dependencies.length, 0); | ||
done(); | ||
}); | ||
}); | ||
}); |
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
12171
26
195