Socket
Socket
Sign inDemoInstall

jsonfile

Package Overview
Dependencies
Maintainers
2
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 3.0.0 to 3.0.1

5

CHANGELOG.md

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

3.0.1 / 2017-07-05
------------------
- Fixed bug in `writeFile` when there was a serialization error & no callback was passed. In previous versions, an empty file would be written; now no file is written.
3.0.0 / 2017-04-25

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

4

index.js

@@ -97,3 +97,5 @@ var _fs

} catch (err) {
if (callback) return callback(err, null)
// Need to return whether a callback was passed or not
if (callback) callback(err, null)
return
}

@@ -100,0 +102,0 @@

{
"name": "jsonfile",
"version": "3.0.0",
"version": "3.0.1",
"description": "Easily read/write JSON files.",

@@ -25,3 +25,2 @@ "repository": {

"mocha": "2.x",
"mock-fs": "^3.8.0",
"rimraf": "^2.4.0",

@@ -28,0 +27,0 @@ "standard": "^6.0.8"

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