read-installed
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "read-installed", | ||
"description": "Read all the installed packages in a folder, and return a tree structure with all the data.", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -53,2 +53,3 @@ | ||
deps that don't meet a requirement are marked with invalid:true | ||
deps that don't meet a peer requirement are marked with peerInvalid:true | ||
@@ -297,2 +298,14 @@ to READ(packagefolder, parentobj, name, reqver) | ||
}) | ||
var peerDeps = obj.peerDependencies = obj.peerDependencies || {} | ||
Object.keys(peerDeps).forEach(function (d) { | ||
var dependency = obj.parent && obj.parent.dependencies && | ||
obj.parent.dependencies[d] | ||
dependency.extraneous = false | ||
if (!semver.satisfies(dependency.version, peerDeps[d])) { | ||
dependency.peerInvalid = true | ||
} | ||
}) | ||
log.verbose("readInstalled", "returning", obj._id) | ||
@@ -299,0 +312,0 @@ return obj |
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
12392
315