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.2 to 0.0.3

2

package.json
{
"name": "read-package-json",
"version": "0.0.2",
"version": "0.0.3",
"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",

@@ -70,2 +70,3 @@ // vim: set softtabstop=16 shiftwidth=16:

cb = (function (orig) { return function (er, data) {
if (er) readJson.log.error("readJson", file, er)
if (data) readJson.cache.set(file, data);

@@ -102,3 +103,3 @@ return orig(er, data)

fs.readFile(index, "utf8", function (er2, d) {
if (err2) return cb(er);
if (er2) return cb(er);
d = parseIndex(d)

@@ -121,3 +122,2 @@ if (!d) return cb(er);

function gypfile (file, data, cb) {

@@ -204,2 +204,3 @@ var dir = path.dirname(file)

if (er) return cb(er);
if (!files.length) return cb()
var rm = path.resolve(dir, files[0])

@@ -384,2 +385,3 @@ readme_(file, data, rm, cb)

b[data.name] = data.bin
data.bin = b
}

@@ -386,0 +388,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