Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

read-package-json

Package Overview
Dependencies
Maintainers
2
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 1.3.0 to 1.3.1

test/fixtures/emptybin.json

2

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

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

var keysLeft = keys.length
if (!keysLeft) return cb()

@@ -346,0 +347,0 @@ function handleExists(relName, result) {

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

console.error("Bin test")
tap.test("Bin test", function (t) {

@@ -36,1 +35,11 @@ var p = path.resolve(__dirname, "fixtures/bin.json")

})
tap.test("Empty bin test", function (t) {
var p = path.resolve(__dirname, "fixtures/emptybin.json")
var warn = createWarningCollector()
readJson(p, warn, function (er, data) {
t.equals(warn.warnings.length, 0)
t.same(data.bin, {}, "no mapping to bin because object was empty")
t.end()
})
})
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