read-yaml-file
Advanced tools
Comparing version 2.0.1 to 2.1.0
# read-yaml-file | ||
## 2.1.0 | ||
### Minor Changes | ||
- bba9985: graceful-fs and mz removed from dependencies. | ||
## 2.0.1 | ||
### Patch Changes | ||
@@ -5,0 +12,0 @@ |
'use strict' | ||
const fs = require('graceful-fs') | ||
const fs = require('fs') | ||
const stripBom = require('strip-bom') | ||
const yaml = require('js-yaml') | ||
const { promisify } = require('util') | ||
const readFile = promisify(fs.readFile) | ||
const parse = data => yaml.load(stripBom(data)) | ||
const readYamlFile = fp => readFile(fp, 'utf8').then(data => parse(data)) | ||
const readYamlFile = fp => fs.promises.readFile(fp, 'utf8').then(data => parse(data)) | ||
@@ -14,0 +11,0 @@ module.exports = readYamlFile |
{ | ||
"name": "read-yaml-file", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"license": "MIT", | ||
@@ -27,3 +27,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"graceful-fs": "^4.2.4", | ||
"js-yaml": "^4.0.0", | ||
@@ -34,5 +33,5 @@ "strip-bom": "^4.0.0" | ||
"package-preview": "3.0.0", | ||
"standard": "^16.0.1", | ||
"tape": "^5.0.1" | ||
"standard": "^16.0.3", | ||
"tape": "^5.1.1" | ||
} | ||
} |
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
3342
11
2
- Removedgraceful-fs@^4.2.4
- Removedgraceful-fs@4.2.11(transitive)