Skip to content

Commit 53a1cd7

Browse files
Bump js-yaml from 3.14.1 to 4.0.0 (#304)
1 parent bc2c893 commit 53a1cd7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/airtap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ function fail (err, expected) {
154154

155155
function readYAML (fp) {
156156
try {
157-
return yaml.safeLoad(fs.readFileSync(fp, 'utf8'))
157+
return yaml.load(fs.readFileSync(fp, 'utf8'))
158158
} catch (err) {
159159
if (err.code !== 'ENOENT') fail(err)
160160
}
161161
}
162162

163163
function toYAML (value) {
164-
return yaml.safeDump(value, { noRefs: true }).trim()
164+
return yaml.dump(value, { noRefs: true }).trim()
165165
}
166166

167167
function indent (str) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"globs-to-files": "^1.0.0",
3939
"http-proxy": "^1.18.1",
4040
"humanize-duration": "^3.23.1",
41-
"js-yaml": "^3.14.0",
41+
"js-yaml": "^4.0.0",
4242
"load-script": "^1.0.0",
4343
"make-promises-safe": "^5.1.0",
4444
"maybe-combine-errors": "^1.0.0",

test/unit/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,5 @@ function writeConfig (cwd, config) {
143143
}
144144

145145
function toYAML (value) {
146-
return yaml.safeDump(value, { noRefs: true }).trim()
146+
return yaml.dump(value, { noRefs: true }).trim()
147147
}

0 commit comments

Comments
 (0)