GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: update doc tool dependencies · nodejs/node@aef7697

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/doc
    • common.js
    • package-lock.json
    • package.json
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.