Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "svglint", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Linter for SVGs", | ||
@@ -55,3 +55,3 @@ "type": "module", | ||
"execa": "^6.0.0", | ||
"expect": "^1.20.2", | ||
"expect": "^27.5.1", | ||
"mocha": "^9.1.3", | ||
@@ -58,0 +58,0 @@ "rollup": "^2.61.1" |
@@ -14,4 +14,7 @@ /** | ||
* @property {String} message The message as a single string, suitable for human consumption | ||
* @property {String} reason The message as a single string | ||
* @property {"error"|"warn"|"exception"} type The type of result | ||
* @property {String} [stacktrace] If Result is related to a node, a human-suitable string showing the related part of the file | ||
* @property {number} [line] If Result is related to a node, the related line in the file | ||
* @property {number} [column] If Result is related to a node, the related column in the file | ||
* @property {any[]} _message The original message, as given by the rule | ||
@@ -35,2 +38,3 @@ * @property {Node} [_node] If Result is related to a node, the related node | ||
message: message, | ||
reason: message, | ||
_message, | ||
@@ -43,2 +47,3 @@ _node: node, | ||
outp.message = message.stack || message.toString(); | ||
outp.reason = message.toString(); | ||
} | ||
@@ -48,2 +53,5 @@ if (node) { | ||
outp.message += `\n At node ${chalk.bold("<"+node.name+">")} (${node.lineNum}:${node.columnNum})`; | ||
outp.reason += " at node <"+node.name+">"; | ||
outp.line = node.lineNum; | ||
outp.column = node.columnNum; | ||
} | ||
@@ -50,0 +58,0 @@ // @ts-ignore |
Sorry, the diff of this file is not supported yet
151473
3116