Socket
Socket
Sign inDemoInstall

read-package-json

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-package-json - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "read-package-json",
"version": "0.0.6",
"version": "0.0.7",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",

@@ -5,0 +5,0 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation",

@@ -259,2 +259,5 @@ // vim: set softtabstop=16 shiftwidth=16:

function bins (file, data, cb) {
if (Array.isArray(data.bin)) {
return bins_(file, data, data.bin, cb)
}
var m = data.directories && data.directories.bin

@@ -270,5 +273,8 @@ if (data.bin || !m) return cb(null, data);

var m = data.directories && data.directories.bin
data.bin = bins.map(function (mf) {
return path.resolve(m, mf)
})
data.bin = bins.reduce(function (acc, mf) {
if (mf && mf.charAt(0) !== '.') {
acc[mf] = path.join(m, mf)
}
return acc
}, {})
return cb(null, data)

@@ -275,0 +281,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc