Socket
Socket
Sign inDemoInstall

write-json-file

Package Overview
Dependencies
11
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.1.0

3

index.js

@@ -11,3 +11,2 @@ 'use strict';

const readFile = promisify(fs.readFile);
const writeFileAtomicP = promisify(writeFileAtomic);

@@ -55,3 +54,3 @@ const init = (fn, filePath, data, options) => {

return writeFileAtomicP(filePath, `${json}\n`, {mode: options.mode});
return writeFileAtomic(filePath, `${json}\n`, {mode: options.mode});
};

@@ -58,0 +57,0 @@

{
"name": "write-json-file",
"version": "4.0.0",
"version": "4.1.0",
"description": "Stringify and write JSON to a file atomically",

@@ -41,3 +41,3 @@ "license": "MIT",

"sort-keys": "^3.0.0",
"write-file-atomic": "^2.4.2"
"write-file-atomic": "^3.0.0"
},

@@ -44,0 +44,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc