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.2.2 to 0.3.0

2

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

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

gypfile,
wscript,
serverjs,

@@ -148,5 +147,6 @@ authors,

var s = data.scripts || {}
if (s.install || s.preinstall) {
if (s.install === "node-gyp rebuild" && !s.preinstall)
data.gypfile = true
if (s.install || s.preinstall)
return cb(null, data);
}
glob("*.gyp", { cwd: dir }, function (er, files) {

@@ -167,21 +167,2 @@ if (er) return cb(er);

function wscript (file, data, cb) {
var dir = path.dirname(file)
var s = data.scripts || {}
if (s.install || s.preinstall) {
return cb(null, data);
}
glob("wscript", { cwd: dir }, function (er, files) {
if (er) return cb(er);
wscript_(file, data, files, cb)
})
}
function wscript_ (file, data, files, cb) {
if (!files.length || data.gypfile) return cb(null, data);
var s = data.scripts || {}
s.install = "node-waf clean ; node-waf configure build"
data.scripts = s
return cb(null, data);
}
function serverjs (file, data, cb) {

@@ -188,0 +169,0 @@ var dir = path.dirname(file)

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