Skip to content

Commit 7c349d7

Browse files
nodejs-github-botmarco-ippolito
authored andcommittedMay 3, 2024
tools: update lint-md-dependencies to rollup@4.14.2 vfile-reporter@8.1.1
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>
1 parent a8bc40f commit 7c349d7

File tree

3 files changed

+93
-79
lines changed

3 files changed

+93
-79
lines changed
 

‎tools/lint-md/lint-md.mjs

+22-8
Original file line numberDiff line numberDiff line change
@@ -27763,9 +27763,9 @@ function createAncestorsLines(state, ancestors) {
2776327763
typeof value.tagName === 'string'
2776427764
? value.tagName
2776527765
:
27766-
typeof value.name === 'string'
27767-
? value.name
27768-
: undefined;
27766+
typeof value.name === 'string'
27767+
? value.name
27768+
: undefined;
2776927769
const position = stringifyPosition$2(node.position);
2777027770
lines.push(
2777127771
' at ' +
@@ -27813,12 +27813,26 @@ function createCauseLines(state, cause) {
2781327813
('message' in cause ? String(cause.message) : undefined);
2781427814
if (typeof stackValue === 'string') {
2781527815
foundReasonableCause = true;
27816-
const stackLines = stackValue.split(eol);
27817-
stackLines[0] = ' ' + stackLines[0];
27818-
lines.push(...stackLines);
27819-
if ('cause' in cause && cause.cause) {
27820-
lines.push(...createCauseLines(state, cause.cause));
27816+
let causeLines;
27817+
if ('file' in cause && 'fatal' in cause) {
27818+
causeLines = createMessageLine(
27819+
state,
27820+
(cause)
27821+
);
27822+
}
27823+
else {
27824+
causeLines = stackValue.split(eol);
27825+
if ('cause' in cause && cause.cause) {
27826+
causeLines.push(...createCauseLines(state, cause.cause));
27827+
}
27828+
}
27829+
const head = causeLines[0];
27830+
if (typeof head === 'string') {
27831+
causeLines[0] = ' ' + head;
27832+
} else {
27833+
head[0] = ' ' + head[0];
2782127834
}
27835+
lines.push(...causeLines);
2782227836
}
2782327837
}
2782427838
if (!foundReasonableCause) {

‎tools/lint-md/package-lock.json

+69-69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tools/lint-md/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"remark-stringify": "^11.0.0",
1212
"to-vfile": "^8.0.0",
1313
"unified": "^11.0.4",
14-
"vfile-reporter": "^8.1.0"
14+
"vfile-reporter": "^8.1.1"
1515
},
1616
"devDependencies": {
1717
"@rollup/plugin-commonjs": "^25.0.7",
1818
"@rollup/plugin-node-resolve": "^15.2.3",
19-
"rollup": "^4.14.0",
19+
"rollup": "^4.14.2",
2020
"rollup-plugin-cleanup": "^3.2.1"
2121
}
2222
}

0 commit comments

Comments
 (0)
Please sign in to comment.