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

jsonfile

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonfile - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

2.2.2 / 2015-09-16
------------------
- split out tests into separate files
- fixed `throws` when set to `true` in `readFileSync()`. See: https://github.com/jprichardson/node-jsonfile/pull/33
2.2.1 / 2015-06-25

@@ -2,0 +7,0 @@ ------------------

2

index.js

@@ -29,3 +29,3 @@ var fs = require('fs')

var shouldThrow = 'throws' in options ? options.throw : true
var shouldThrow = 'throws' in options ? options.throws : true

@@ -32,0 +32,0 @@ if (shouldThrow) { // i.e. throw on invalid JSON

{
"name": "jsonfile",
"version": "2.2.1",
"version": "2.2.2",
"description": "Easily read/write JSON files.",

@@ -27,4 +27,4 @@ "repository": {

"scripts": {
"test": "standard && mocha test"
"test": "standard && mocha"
}
}
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