write-yaml-file
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -22,12 +22,12 @@ 'use strict' | ||
return fn(fp, yaml, {mode: opts.mode}) | ||
return fn(fp, yaml, { mode: opts.mode }) | ||
} | ||
module.exports = (fp, data, opts) => | ||
pify(mkdirp)(path.dirname(fp), {fs}) | ||
pify(mkdirp)(path.dirname(fp), { fs }) | ||
.then(() => main(pify(writeFileAtomic), fp, data, opts)) | ||
module.exports.sync = (fp, data, opts) => { | ||
mkdirp.sync(path.dirname(fp), {fs}) | ||
mkdirp.sync(path.dirname(fp), { fs }) | ||
main(writeFileAtomic.sync, fp, data, opts) | ||
} |
{ | ||
"name": "write-yaml-file", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Stringify and write YAML to a file atomically", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=6" | ||
}, | ||
@@ -18,6 +18,3 @@ "files": [ | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/zkochan/write-yaml-file.git" | ||
}, | ||
"repository": "https://github.com/zkochan/packages/tree/master/write-yaml-file", | ||
"keywords": [ | ||
@@ -39,6 +36,3 @@ "write", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/zkochan/write-yaml-file/issues" | ||
}, | ||
"homepage": "https://github.com/zkochan/write-yaml-file#readme", | ||
"homepage": "https://github.com/zkochan/packages/tree/master/write-yaml-file#readme", | ||
"dependencies": { | ||
@@ -48,8 +42,8 @@ "graceful-fs": "^4.1.11", | ||
"mkdirp": "^0.5.1", | ||
"pify": "^3.0.0", | ||
"pify": "^4.0.0", | ||
"write-file-atomic": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"standard": "^11.0.1" | ||
"standard": "12.0.1" | ||
} | ||
} |
# write-yaml-file | ||
[![Build Status](https://travis-ci.org/zkochan/write-yaml-file.svg?branch=master)](https://travis-ci.org/zkochan/write-yaml-file) | ||
> Stringify and write YAML to a file atomically | ||
@@ -39,3 +37,3 @@ | ||
Type: `number` | ||
Type: `number` | ||
Default `438` *(0666 in octal)* | ||
@@ -42,0 +40,0 @@ |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
3964
1
49
1
+ Addedpify@4.0.1(transitive)
- Removedpify@3.0.0(transitive)
Updatedpify@^4.0.0