write-yaml-file
Advanced tools
Comparing version 4.1.3 to 4.2.0
# write-yaml-file | ||
## 4.2.0 | ||
### Minor Changes | ||
- bba9985: graceful-fs and mz removed from dependencies. | ||
## 4.1.3 | ||
@@ -4,0 +10,0 @@ |
'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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
4284
32
2
- Removedgraceful-fs@^4.2.4
- Removedgraceful-fs@4.2.11(transitive)