Skip to content

Commit e720a39

Browse files
authored
Merge branch 'devel' into fix-object-errors
2 parents 883a198 + 1a6fb85 commit e720a39

File tree

5 files changed

+90
-24
lines changed

5 files changed

+90
-24
lines changed

lib/metadata/generate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function getModuleMetadata(moduleFile) {
187187
const raw = fs
188188
.readFileSync(__dirname + "/../../test/integration-spec.yaml")
189189
.toString(),
190-
spec = yaml.safeLoad(raw);
190+
spec = yaml.load(raw);
191191

192192
// find all metrics covered by integration tests (take a look into integration-spec.yaml)
193193
const coveredMetrics = getMetricsCoveredByTests(spec);

lib/metadata/make_docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ ${dumped}
103103
// get offender examples from integration-spec.yaml
104104
const offenders = (() => {
105105
const yaml = require("js-yaml"),
106-
spec = yaml.safeLoad(
106+
spec = yaml.load(
107107
fs
108108
.readFileSync(__dirname + "/../../test/integration-spec.yaml")
109109
.toString()

package-lock.json

Lines changed: 86 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"commander": "^6.1.0",
3636
"csv-string": "^4.0.1",
3737
"debug": "^4.1.1",
38-
"js-yaml": "^3.14.0",
38+
"js-yaml": "^4.0.0",
3939
"node-statsd": "0.1.1",
4040
"puppeteer": "^5.3.1"
4141
},

test/integration-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var suite = vows.describe("Integration tests").addBatch({
4545

4646
// register tests from spec file
4747
var raw = fs.readFileSync(__dirname + "/integration-spec.yaml").toString(),
48-
spec = yaml.safeLoad(raw);
48+
spec = yaml.load(raw);
4949

5050
spec.forEach(function (test) {
5151
var batch = {},

0 commit comments

Comments
 (0)