Socket
Socket
Sign inDemoInstall

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 4.1.3 to 4.2.0

6

CHANGELOG.md
# write-yaml-file
## 4.2.0
### Minor Changes
- bba9985: graceful-fs and mz removed from dependencies.
## 4.1.3

@@ -4,0 +10,0 @@

7

index.js
'use strict'
const path = require('path')
const fs = require('graceful-fs')
const fs = require('fs')
const writeFileAtomic = require('write-file-atomic')
const YAML = require('js-yaml')
const { promisify } = require('util')
const mkdir = promisify(fs.mkdir)
const main = (fn, fp, data, opts) => {

@@ -27,3 +24,3 @@ if (!fp) {

module.exports = async (fp, data, opts) => {
await mkdir(path.dirname(fp), { recursive: true })
await fs.promises.mkdir(path.dirname(fp), { recursive: true })
return main(writeFileAtomic, fp, data, opts)

@@ -30,0 +27,0 @@ }

{
"name": "write-yaml-file",
"version": "4.1.3",
"version": "4.2.0",
"description": "Stringify and write YAML to a file atomically",

@@ -36,3 +36,2 @@ "main": "index.js",

"dependencies": {
"graceful-fs": "^4.2.4",
"js-yaml": "^4.0.0",

@@ -42,4 +41,4 @@ "write-file-atomic": "^3.0.3"

"devDependencies": {
"standard": "^16.0.1"
"standard": "^16.0.3"
}
}
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