read-installed
Advanced tools
Comparing version 0.0.4 to 0.1.0
{ | ||
"name": "read-installed", | ||
"description": "Read all the installed packages in a folder, and return a tree structure with all the data.", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -124,4 +124,2 @@ | ||
function readInstalled_ (folder, parent, name, reqver, depth, maxDepth, cb) { | ||
//console.error(folder, name) | ||
var installed | ||
@@ -255,2 +253,3 @@ , obj | ||
}) | ||
findUnmet(obj) | ||
} | ||
@@ -266,2 +265,3 @@ | ||
var deps = obj.dependencies = obj.dependencies || {} | ||
//console.error(deps) | ||
@@ -303,4 +303,17 @@ Object.keys(deps) | ||
Object.keys(peerDeps).forEach(function (d) { | ||
var dependency = obj.parent && obj.parent.dependencies && | ||
obj.parent.dependencies[d] | ||
var dependency | ||
if (!obj.parent) { | ||
dependency = obj.dependencies[d] | ||
// read it as a missing dep | ||
if (!dependency) { | ||
obj.dependencies[d] = peerDeps[d] | ||
} | ||
} else { | ||
dependency = obj.parent.dependencies && obj.parent.dependencies[d] | ||
} | ||
if (!dependency) return | ||
dependency.extraneous = false | ||
@@ -307,0 +320,0 @@ |
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
12596
324