Skip to content

Commit

Permalink
chore(dependencies): update js-yaml
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
nfischer committed Jun 23, 2024
1 parent c787042 commit 03c2964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"eslint-import-resolver-node": "0.3.7",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.26.0",
"js-yaml": "^3.12.0",
"js-yaml": "^4.1.0",
"mocha": "^6.2.3",
"nyc": "^14.1.1",
"rimraf": "^2.5.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-node-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ try {

var githubActionsFileName = path.join(__dirname, '..', '.github', 'workflows',
'main.yml');
var githubActionsYaml = yaml.safeLoad(shell.cat(githubActionsFileName));
var githubActionsYaml = yaml.load(shell.cat(githubActionsFileName));
checkGithubActions(MIN_NODE_VERSION, MAX_NODE_VERSION, githubActionsYaml);

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

0 comments on commit 03c2964

Please sign in to comment.