Skip to content

Commit a8e2ede

Browse files
dependabot[bot]Akash Satheesan
and
Akash Satheesan
authored
chore(deps): bump js-yaml from 3.14.0 to 4.0.0 (#2920)
* chore(deps): bump js-yaml from 3.14.0 to 4.0.0 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.0 to 4.0.0. - [Release notes](https://github.com/nodeca/js-yaml/releases) - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.0...4.0.0) Signed-off-by: dependabot[bot] <[email protected]> * fix(src/node): replace yaml.safeLoad with load Also update @types/yaml to ^4.0.0. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Akash Satheesan <[email protected]>
1 parent 4c6cf84 commit a8e2ede

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@types/cookie-parser": "^1.4.2",
4040
"@types/express": "^4.17.8",
4141
"@types/http-proxy": "^1.17.4",
42-
"@types/js-yaml": "^3.12.3",
42+
"@types/js-yaml": "^4.0.0",
4343
"@types/node": "^12.12.7",
4444
"@types/parcel-bundler": "^1.12.1",
4545
"@types/pem": "^1.9.5",
@@ -84,7 +84,7 @@
8484
"express": "^5.0.0-alpha.8",
8585
"http-proxy": "^1.18.0",
8686
"httpolyglot": "^0.1.2",
87-
"js-yaml": "^3.13.1",
87+
"js-yaml": "^4.0.0",
8888
"limiter": "^1.1.5",
8989
"node-fetch": "^2.6.1",
9090
"pem": "^1.14.2",

src/node/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export function parseConfigFile(configFile: string, configPath: string): ConfigA
536536
return { _: [], config: configPath }
537537
}
538538

539-
const config = yaml.safeLoad(configFile, {
539+
const config = yaml.load(configFile, {
540540
filename: configPath,
541541
})
542542
if (!config || typeof config === "string") {

yarn.lock

+16-4
Original file line numberDiff line numberDiff line change
@@ -1135,10 +1135,10 @@
11351135
dependencies:
11361136
"@types/node" "*"
11371137

1138-
"@types/js-yaml@^3.12.3":
1139-
version "3.12.5"
1140-
resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-3.12.5.tgz#136d5e6a57a931e1cce6f9d8126aa98a9c92a6bb"
1141-
integrity sha512-JCcp6J0GV66Y4ZMDAQCXot4xprYB+Zfd3meK9+INSJeVZwJmHAW30BBEEkPzXswMXuiyReUGOP3GxrADc9wPww==
1138+
"@types/js-yaml@^4.0.0":
1139+
version "4.0.0"
1140+
resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.0.tgz#d1a11688112091f2c711674df3a65ea2f47b5dfb"
1141+
integrity sha512-4vlpCM5KPCL5CfGmTbpjwVKbISRYhduEJvvUWsH5EB7QInhEj94XPZ3ts/9FPiLZFqYO0xoW4ZL8z2AabTGgJA==
11421142

11431143
"@types/json-schema@^7.0.3":
11441144
version "7.0.6"
@@ -1491,6 +1491,11 @@ argparse@^1.0.7:
14911491
dependencies:
14921492
sprintf-js "~1.0.2"
14931493

1494+
argparse@^2.0.1:
1495+
version "2.0.1"
1496+
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
1497+
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
1498+
14941499
arr-diff@^4.0.0:
14951500
version "4.0.0"
14961501
resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520"
@@ -4479,6 +4484,13 @@ js-yaml@^3.10.0, js-yaml@^3.13.1:
44794484
argparse "^1.0.7"
44804485
esprima "^4.0.0"
44814486

4487+
js-yaml@^4.0.0:
4488+
version "4.0.0"
4489+
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.0.0.tgz#f426bc0ff4b4051926cd588c71113183409a121f"
4490+
integrity sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==
4491+
dependencies:
4492+
argparse "^2.0.1"
4493+
44824494
jsbn@~0.1.0:
44834495
version "0.1.1"
44844496
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"

0 commit comments

Comments
 (0)