Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

read-installed

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-installed - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc