Socket
Socket
Sign inDemoInstall

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.3 to 0.0.4

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.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

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