Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cfdbb79

Browse filesBrowse files
targosdanielleadams
authored andcommitted
tools: update doc tool dependencies
PR-URL: #36844 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3ca7a78 commit cfdbb79
Copy full SHA for cfdbb79

File tree

Expand file treeCollapse file tree

3 files changed

+149
-203
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+149
-203
lines changed
Open diff view settings
Collapse file

‎tools/doc/common.js‎

Copy file name to clipboardExpand all lines: tools/doc/common.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

3-
const yaml =
4-
require(`${__dirname}/../node_modules/eslint/node_modules/js-yaml`);
3+
const yaml = require('js-yaml');
54

65
function isYAMLBlock(text) {
76
return /^<!-- YAML/.test(text);
@@ -20,8 +19,8 @@ function extractAndParseYAML(text) {
2019
.replace(/^<!-- YAML/, '')
2120
.replace(/-->$/, '');
2221

23-
// js-yaml.safeLoad() throws on error.
24-
const meta = yaml.safeLoad(text);
22+
// js-yaml.load() throws on error.
23+
const meta = yaml.load(text);
2524

2625
if (meta.added) {
2726
// Since semver-minors can trickle down to previous major versions,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.