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

write-yaml-file

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

write-yaml-file - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

6

index.js

@@ -5,3 +5,3 @@ 'use strict'

const writeFileAtomic = require('write-file-atomic')
const mkdirp = require('mkdirp')
const makeDir = require('make-dir')
const pify = require('pify')

@@ -27,8 +27,8 @@ const YAML = require('js-yaml')

module.exports = (fp, data, opts) =>
pify(mkdirp)(path.dirname(fp), { fs })
makeDir(path.dirname(fp), { fs })
.then(() => main(pify(writeFileAtomic), fp, data, opts))
module.exports.sync = (fp, data, opts) => {
mkdirp.sync(path.dirname(fp), { fs })
makeDir.sync(path.dirname(fp), { fs })
main(writeFileAtomic.sync, fp, data, opts)
}
{
"name": "write-yaml-file",
"version": "2.0.0",
"version": "2.1.0",
"description": "Stringify and write YAML to a file atomically",

@@ -38,5 +38,5 @@ "main": "index.js",

"js-yaml": "^3.8.1",
"mkdirp": "^0.5.1",
"make-dir": "^3.0.0",
"pify": "^4.0.0",
"write-file-atomic": "^2.0.0"
"write-file-atomic": "^3.0.0"
},

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

@@ -10,3 +10,3 @@ # write-yaml-file

```
npm i -S write-yaml-file
<npm|yarn|pnpm> add write-yaml-file
```

@@ -13,0 +13,0 @@

Sorry, the diff of this file is not supported yet

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