Skip to content

Commit

Permalink
tools: update lint-md-dependencies to rollup@4.14.2 vfile-reporter@8.1.1
Browse files Browse the repository at this point in the history
PR-URL: #52518
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
nodejs-github-bot authored and marco-ippolito committed May 3, 2024
1 parent a8bc40f commit 7c349d7
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 79 deletions.
30 changes: 22 additions & 8 deletions tools/lint-md/lint-md.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27763,9 +27763,9 @@ function createAncestorsLines(state, ancestors) {
typeof value.tagName === 'string'
? value.tagName
:
typeof value.name === 'string'
? value.name
: undefined;
typeof value.name === 'string'
? value.name
: undefined;
const position = stringifyPosition$2(node.position);
lines.push(
' at ' +
Expand Down Expand Up @@ -27813,12 +27813,26 @@ function createCauseLines(state, cause) {
('message' in cause ? String(cause.message) : undefined);
if (typeof stackValue === 'string') {
foundReasonableCause = true;
const stackLines = stackValue.split(eol);
stackLines[0] = ' ' + stackLines[0];
lines.push(...stackLines);
if ('cause' in cause && cause.cause) {
lines.push(...createCauseLines(state, cause.cause));
let causeLines;
if ('file' in cause && 'fatal' in cause) {
causeLines = createMessageLine(
state,
(cause)
);
}
else {
causeLines = stackValue.split(eol);
if ('cause' in cause && cause.cause) {
causeLines.push(...createCauseLines(state, cause.cause));
}
}
const head = causeLines[0];
if (typeof head === 'string') {
causeLines[0] = ' ' + head;
} else {
head[0] = ' ' + head[0];
}
lines.push(...causeLines);
}
}
if (!foundReasonableCause) {
Expand Down
138 changes: 69 additions & 69 deletions tools/lint-md/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tools/lint-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"remark-stringify": "^11.0.0",
"to-vfile": "^8.0.0",
"unified": "^11.0.4",
"vfile-reporter": "^8.1.0"
"vfile-reporter": "^8.1.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"rollup": "^4.14.0",
"rollup": "^4.14.2",
"rollup-plugin-cleanup": "^3.2.1"
}
}

0 comments on commit 7c349d7

Please sign in to comment.