Socket
Socket
Sign inDemoInstall

read-installed

Package Overview
Dependencies
Maintainers
3
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 4.0.0 to 4.0.1

.travis.yml

4

package.json
{
"name": "read-installed",
"description": "Read all the installed packages in a folder, and return a tree structure with all the data.",
"version": "4.0.0",
"version": "4.0.1",
"repository": {

@@ -29,4 +29,4 @@ "type": "git",

"rimraf": "^2.2.8",
"tap": "~0.4.8"
"tap": "^1.2.0"
}
}

@@ -59,3 +59,3 @@

if parentobj is null, and no package.json
obj = {dependencies:{<installed>:"*"}}
obj = {dependencies:{<installed>:ANY}}
deps = Object.keys(obj.dependencies)

@@ -109,2 +109,6 @@ obj.path = packagefolder

// Sentinel catch-all version constraint used when a dependency is not
// listed in the package.json file.
var ANY = {}
module.exports = readInstalled

@@ -195,3 +199,3 @@

obj = {dependencies:{}, path:folder}
installed.forEach(function (i) { obj.dependencies[i] = "*" })
installed.forEach(function (i) { obj.dependencies[i] = ANY })
}

@@ -205,2 +209,10 @@ if (name && obj.name !== name) obj.invalid = true

if (reqver === ANY) {
// We were unable to determine the required version of this
// dependency from the package.json file, but we now know its actual
// version, so treat that version as the required version to avoid
// marking the dependency as invalid below. See #40.
reqver = obj.version;
}
// "foo":"http://blah" and "foo":"latest" are always presumed valid

@@ -207,0 +219,0 @@ if (reqver

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