@parcel/utils
Advanced tools
Comparing version 2.0.0-nightly.268 to 2.0.0-nightly.272
@@ -20,3 +20,3 @@ "use strict"; | ||
async function prettyDiagnostic(diagnostic, options) { | ||
async function prettyDiagnostic(diagnostic, options, terminalWidth) { | ||
let { | ||
@@ -55,3 +55,4 @@ origin, | ||
language: // $FlowFixMe sketchy null checks do not matter here... | ||
language || (filePath ? _path.default.extname(filePath).substr(1) : undefined) | ||
language || (filePath ? _path.default.extname(filePath).substr(1) : undefined), | ||
terminalWidth | ||
}); | ||
@@ -58,0 +59,0 @@ result.codeframe += typeof filePath !== 'string' ? '' : _chalk.default.underline(`${filePath}:${highlights[0].start.line}:${highlights[0].start.column}\n`); |
{ | ||
"name": "@parcel/utils", | ||
"version": "2.0.0-nightly.268+f65aa4c5", | ||
"version": "2.0.0-nightly.272+9f71164b", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -20,6 +20,6 @@ "license": "MIT", | ||
"@iarna/toml": "^2.2.0", | ||
"@parcel/codeframe": "2.0.0-nightly.268+f65aa4c5", | ||
"@parcel/diagnostic": "2.0.0-nightly.268+f65aa4c5", | ||
"@parcel/logger": "2.0.0-nightly.268+f65aa4c5", | ||
"@parcel/markdown-ansi": "2.0.0-nightly.268+f65aa4c5", | ||
"@parcel/codeframe": "2.0.0-nightly.272+9f71164b", | ||
"@parcel/diagnostic": "2.0.0-nightly.272+9f71164b", | ||
"@parcel/logger": "2.0.0-nightly.272+9f71164b", | ||
"@parcel/markdown-ansi": "2.0.0-nightly.272+9f71164b", | ||
"@parcel/source-map": "2.0.0-alpha.4.9", | ||
@@ -46,3 +46,3 @@ "ansi-html": "^0.0.7", | ||
}, | ||
"gitHead": "f65aa4c53ab130debfc88f4628eb001f52fb5f63" | ||
"gitHead": "9f71164b910bb7fef050d57d8ef9036f3aa17af6" | ||
} |
@@ -21,2 +21,3 @@ // @flow strict-local | ||
options?: PluginOptions, | ||
terminalWidth?: number, | ||
): Promise<AnsiDiagnosticResult> { | ||
@@ -64,2 +65,3 @@ let { | ||
language || (filePath ? path.extname(filePath).substr(1) : undefined), | ||
terminalWidth, | ||
}); | ||
@@ -66,0 +68,0 @@ |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
144474
4603