Skip to content

Commit 03c2964

Browse files
committed
chore(dependencies): update js-yaml
This updates js-yaml to 4.1.0 and swaps out `yaml.safeLoad()` for `yaml.load()` because the `safe*` functions are deprecated starting in 4.0.0 (the "regular" functions are considered safe).
1 parent c787042 commit 03c2964

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"eslint-import-resolver-node": "0.3.7",
6060
"eslint-config-airbnb-base": "^14.2.1",
6161
"eslint-plugin-import": "^2.26.0",
62-
"js-yaml": "^3.12.0",
62+
"js-yaml": "^4.1.0",
6363
"mocha": "^6.2.3",
6464
"nyc": "^14.1.1",
6565
"rimraf": "^2.5.2",

scripts/check-node-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ try {
6565

6666
var githubActionsFileName = path.join(__dirname, '..', '.github', 'workflows',
6767
'main.yml');
68-
var githubActionsYaml = yaml.safeLoad(shell.cat(githubActionsFileName));
68+
var githubActionsYaml = yaml.load(shell.cat(githubActionsFileName));
6969
checkGithubActions(MIN_NODE_VERSION, MAX_NODE_VERSION, githubActionsYaml);
7070

7171
console.log('All files look good (this project supports v'

0 commit comments

Comments
 (0)