Skip to content

Commit e15e1cb

Browse files
nodejs-github-bottargos
authored andcommitted
tools: update lint-md-dependencies to @rollup/[email protected]
PR-URL: #41369 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 0f9afa5 commit e15e1cb

File tree

3 files changed

+47
-47
lines changed

3 files changed

+47
-47
lines changed

tools/lint-md/lint-md.mjs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import fs from 'fs';
22
import path$1 from 'path';
33
import { fileURLToPath, pathToFileURL, URL as URL$1 } from 'url';
4-
import process$1 from 'process';
5-
import process$2 from 'node:process';
4+
import proc from 'process';
5+
import process$1 from 'node:process';
66
import os from 'node:os';
77
import tty from 'node:tty';
88

@@ -266,13 +266,15 @@ class VFileMessage extends Error {
266266
this.message = typeof reason === 'object' ? reason.message : reason;
267267
this.stack = typeof reason === 'object' ? reason.stack : '';
268268
this.reason = this.message;
269+
this.fatal;
269270
this.line = position.start.line;
270271
this.column = position.start.column;
271272
this.source = parts[0];
272273
this.ruleId = parts[1];
273274
this.position = position;
275+
this.actual;
276+
this.expected;
274277
this.file;
275-
this.fatal;
276278
this.url;
277279
this.note;
278280
}
@@ -289,8 +291,6 @@ VFileMessage.prototype.source = null;
289291
VFileMessage.prototype.ruleId = null;
290292
VFileMessage.prototype.position = null;
291293

292-
const proc = process$1;
293-
294294
function isUrl(fileURLOrPath) {
295295
return (
296296
fileURLOrPath !== null &&
@@ -20815,13 +20815,13 @@ function compare(a, b, property) {
2081520815
return String(a[property] || '').localeCompare(b[property] || '')
2081620816
}
2081720817

20818-
function hasFlag(flag, argv = process$2.argv) {
20818+
function hasFlag(flag, argv = process$1.argv) {
2081920819
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
2082020820
const position = argv.indexOf(prefix + flag);
2082120821
const terminatorPosition = argv.indexOf('--');
2082220822
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
2082320823
}
20824-
const {env} = process$2;
20824+
const {env} = process$1;
2082520825
let flagForceColor;
2082620826
if (
2082720827
hasFlag('no-color')
@@ -20886,7 +20886,7 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
2088620886
if (env.TERM === 'dumb') {
2088720887
return min;
2088820888
}
20889-
if (process$2.platform === 'win32') {
20889+
if (process$1.platform === 'win32') {
2089020890
const osRelease = os.release().split('.');
2089120891
if (
2089220892
Number(osRelease[0]) >= 10

tools/lint-md/package-lock.json

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

tools/lint-md/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@rollup/plugin-commonjs": "^21.0.1",
18-
"@rollup/plugin-node-resolve": "^13.1.1",
18+
"@rollup/plugin-node-resolve": "^13.1.2",
1919
"rollup": "^2.62.0",
2020
"rollup-plugin-cleanup": "^3.2.1"
2121
}

0 commit comments

Comments
 (0)