Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: update lint-md-dependencies to @rollup/[email protected] #41369

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tools/lint-md/lint-md.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from 'fs';
import path$1 from 'path';
import { fileURLToPath, pathToFileURL, URL as URL$1 } from 'url';
import process$1 from 'process';
import process$2 from 'node:process';
import proc from 'process';
import process$1 from 'node:process';
import os from 'node:os';
import tty from 'node:tty';

Expand Down Expand Up @@ -266,13 +266,15 @@ class VFileMessage extends Error {
this.message = typeof reason === 'object' ? reason.message : reason;
this.stack = typeof reason === 'object' ? reason.stack : '';
this.reason = this.message;
this.fatal;
this.line = position.start.line;
this.column = position.start.column;
this.source = parts[0];
this.ruleId = parts[1];
this.position = position;
this.actual;
this.expected;
this.file;
this.fatal;
this.url;
this.note;
}
Expand All @@ -289,8 +291,6 @@ VFileMessage.prototype.source = null;
VFileMessage.prototype.ruleId = null;
VFileMessage.prototype.position = null;

const proc = process$1;

function isUrl(fileURLOrPath) {
return (
fileURLOrPath !== null &&
Expand Down Expand Up @@ -20815,13 +20815,13 @@ function compare(a, b, property) {
return String(a[property] || '').localeCompare(b[property] || '')
}

function hasFlag(flag, argv = process$2.argv) {
function hasFlag(flag, argv = process$1.argv) {
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
const position = argv.indexOf(prefix + flag);
const terminatorPosition = argv.indexOf('--');
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
}
const {env} = process$2;
const {env} = process$1;
let flagForceColor;
if (
hasFlag('no-color')
Expand Down Expand Up @@ -20886,7 +20886,7 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
if (env.TERM === 'dumb') {
return min;
}
if (process$2.platform === 'win32') {
if (process$1.platform === 'win32') {
const osRelease = os.release().split('.');
if (
Number(osRelease[0]) >= 10
Expand Down
76 changes: 38 additions & 38 deletions tools/lint-md/package-lock.json

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

2 changes: 1 addition & 1 deletion tools/lint-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.1.1",
"@rollup/plugin-node-resolve": "^13.1.2",
"rollup": "^2.62.0",
"rollup-plugin-cleanup": "^3.2.1"
}
Expand Down