diff --git a/javascript/tests/test_decode.js b/javascript/tests/test_decode.js index 85c1ac9ea1..fdc7b3e9da 100644 --- a/javascript/tests/test_decode.js +++ b/javascript/tests/test_decode.js @@ -23,7 +23,7 @@ var yamlTestFiles = utils.getYamlTests(); describe('test packages based on YAML test files', function () { yamlTestFiles.forEach(function (filename) { describe(filename, function () { - var yamlConfig = yaml.safeLoad(fs.readFileSync(filename)); + var yamlConfig = yaml.load(fs.readFileSync(filename)); if ("tests" in yamlConfig) { yamlConfig.tests.map(function (testSpec, i) { describe('test spec '+i, function () { diff --git a/javascript/tests/test_dispatch_decoder.js b/javascript/tests/test_dispatch_decoder.js index 37821545d9..98dba9db06 100644 --- a/javascript/tests/test_dispatch_decoder.js +++ b/javascript/tests/test_dispatch_decoder.js @@ -32,7 +32,7 @@ function dispatchee(err, msg) { describe('test packages based on YAML descriptors, through the dispatcher', function () { yamlTestFiles.forEach(function (filename) { describe(filename, function () { - var yamlConfig = yaml.safeLoad(fs.readFileSync(filename)); + var yamlConfig = yaml.load(fs.readFileSync(filename)); if ("tests" in yamlConfig) { yamlConfig.tests.map(function (testSpec, i) { describe('test spec '+i, function () { diff --git a/package-lock.json b/package-lock.json index be4214522e..08b7448e3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "assert": "^2.1.0", "binary-parser": "^1.7.0", "cuint": "^0.2.2", - "js-yaml": "^3.13.1", + "js-yaml": "^4.1.1", "node-int64": "^0.4.0", "path": "^0.12.7", "stream": "^0.0.3" @@ -666,13 +666,10 @@ } }, "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" }, "node_modules/asn1": { "version": "0.2.6", @@ -1508,19 +1505,6 @@ "node": ">=8.0.0" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -2325,13 +2309,12 @@ } }, "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "license": "MIT", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" @@ -2566,26 +2549,6 @@ "node": ">= 14.0.0" } }, - "node_modules/mocha/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/mocha/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -3394,12 +3357,6 @@ "source-map": "^0.6.0" } }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "license": "BSD-3-Clause" - }, "node_modules/sshpk": { "version": "1.18.0", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", diff --git a/package.json b/package.json index b855d0cf4b..99a799ec9d 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "assert": "^2.1.0", "binary-parser": "^1.7.0", "cuint": "^0.2.2", - "js-yaml": "^3.13.1", + "js-yaml": "^4.1.1", "node-int64": "^0.4.0", "path": "^0.12.7", "stream": "^0.0.3"