| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | 1 | import fs from 'fs'; | |
| 2 | 2 | import path$1 from 'path'; | |
| 3 | 3 | 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'; | ||
| 6 | 6 | import os from 'node:os'; | |
| 7 | 7 | import tty from 'node:tty'; | |
| 8 | 8 | ||
@@ -266,13 +266,15 @@ class VFileMessage extends Error { | |||
| 266 | 266 | this.message = typeof reason === 'object' ? reason.message : reason; | |
| 267 | 267 | this.stack = typeof reason === 'object' ? reason.stack : ''; | |
| 268 | 268 | this.reason = this.message; | |
| 269 | + this.fatal; | ||
| 269 | 270 | this.line = position.start.line; | |
| 270 | 271 | this.column = position.start.column; | |
| 271 | 272 | this.source = parts[0]; | |
| 272 | 273 | this.ruleId = parts[1]; | |
| 273 | 274 | this.position = position; | |
| 275 | + this.actual; | ||
| 276 | + this.expected; | ||
| 274 | 277 | this.file; | |
| 275 | - this.fatal; | ||
| 276 | 278 | this.url; | |
| 277 | 279 | this.note; | |
| 278 | 280 | } | |
@@ -289,8 +291,6 @@ VFileMessage.prototype.source = null; | |||
| 289 | 291 | VFileMessage.prototype.ruleId = null; | |
| 290 | 292 | VFileMessage.prototype.position = null; | |
| 291 | 293 | ||
| 292 | - const proc = process$1; | ||
| 293 | - | ||
| 294 | 294 | function isUrl(fileURLOrPath) { | |
| 295 | 295 | return ( | |
| 296 | 296 | fileURLOrPath !== null && | |
@@ -20815,13 +20815,13 @@ function compare(a, b, property) { | |||
| 20815 | 20815 | return String(a[property] || '').localeCompare(b[property] || '') | |
| 20816 | 20816 | } | |
| 20817 | 20817 | ||
| 20818 | - function hasFlag(flag, argv = process$2.argv) { | ||
| 20818 | + function hasFlag(flag, argv = process$1.argv) { | ||
| 20819 | 20819 | const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); | |
| 20820 | 20820 | const position = argv.indexOf(prefix + flag); | |
| 20821 | 20821 | const terminatorPosition = argv.indexOf('--'); | |
| 20822 | 20822 | return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); | |
| 20823 | 20823 | } | |
| 20824 | - const {env} = process$2; | ||
| 20824 | + const {env} = process$1; | ||
| 20825 | 20825 | let flagForceColor; | |
| 20826 | 20826 | if ( | |
| 20827 | 20827 | hasFlag('no-color') | |
@@ -20886,7 +20886,7 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) { | |||
| 20886 | 20886 | if (env.TERM === 'dumb') { | |
| 20887 | 20887 | return min; | |
| 20888 | 20888 | } | |
| 20889 | - if (process$2.platform === 'win32') { | ||
| 20889 | + if (process$1.platform === 'win32') { | ||
| 20890 | 20890 | const osRelease = os.release().split('.'); | |
| 20891 | 20891 | if ( | |
| 20892 | 20892 | Number(osRelease[0]) >= 10 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | }, | |
| 16 | 16 | "devDependencies": { | |
| 17 | 17 | "@rollup/plugin-commonjs": "^21.0.1", | |
| 18 | - "@rollup/plugin-node-resolve": "^13.1.1", | ||
| 18 | + "@rollup/plugin-node-resolve": "^13.1.2", | ||
| 19 | 19 | "rollup": "^2.62.0", | |
| 20 | 20 | "rollup-plugin-cleanup": "^3.2.1" | |
| 21 | 21 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments