fork-ts-checker-webpack-plugin
Advanced tools
Comparing version 7.2.10 to 7.2.11
@@ -19,3 +19,3 @@ "use strict"; | ||
if (issue.location) { | ||
location += ` ${chalk_1.default.green.bold((0, issue_1.formatIssueLocation)(issue.location))}`; | ||
location += `:${chalk_1.default.green.bold((0, issue_1.formatIssueLocation)(issue.location))}`; | ||
} | ||
@@ -22,0 +22,0 @@ return [`${color(severity)} in ${location}`, formatter(issue), ''].join(os_1.default.EOL); |
@@ -7,3 +7,3 @@ import type { IssuePosition } from './issue-position'; | ||
declare function compareIssueLocations(locationA?: IssueLocation, locationB?: IssueLocation): number; | ||
declare function formatIssueLocation({ start, end }: IssueLocation): string; | ||
declare function formatIssueLocation(location: IssueLocation): string; | ||
export { IssueLocation, compareIssueLocations, formatIssueLocation }; |
@@ -19,19 +19,5 @@ "use strict"; | ||
exports.compareIssueLocations = compareIssueLocations; | ||
function formatIssueLocation({ start, end }) { | ||
if (!end.line || start.line === end.line) { | ||
// the same line | ||
if (!end.column || start.column === end.column) { | ||
// the same column | ||
return `${start.line}:${start.column}`; | ||
} | ||
else { | ||
// different column | ||
return `${start.line}:${start.column}-${end.column}`; | ||
} | ||
} | ||
else { | ||
// different lines | ||
return `${start.line}:${start.column}-${end.line}:${end.column}`; | ||
} | ||
function formatIssueLocation(location) { | ||
return `${location.start.line}:${location.start.column}`; | ||
} | ||
exports.formatIssueLocation = formatIssueLocation; |
@@ -22,3 +22,3 @@ "use strict"; | ||
if (issue.location) { | ||
this.file += ` ${chalk_1.default.green.bold((0, issue_location_1.formatIssueLocation)(issue.location))}`; | ||
this.file += `:${chalk_1.default.green.bold((0, issue_location_1.formatIssueLocation)(issue.location))}`; | ||
} | ||
@@ -25,0 +25,0 @@ } |
@@ -73,3 +73,3 @@ "use strict"; | ||
*/ | ||
ForkTsCheckerWebpackPlugin.version = '7.2.10'; // will be replaced by the @semantic-release/exec | ||
ForkTsCheckerWebpackPlugin.version = '7.2.11'; // will be replaced by the @semantic-release/exec | ||
/** | ||
@@ -76,0 +76,0 @@ * Default pools for the plugin concurrency limit |
{ | ||
"name": "fork-ts-checker-webpack-plugin", | ||
"version": "7.2.10", | ||
"version": "7.2.11", | ||
"description": "Runs typescript type checker and linter on separate process.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
227991
4308