csstree-validator
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -9,8 +9,10 @@ module.exports = function(data) { | ||
output.push.apply(output, errors.map(function(entry) { | ||
if (entry.name === 'CssSyntaxError') { | ||
return ' [ERROR] ' + entry; | ||
var error = entry.error || entry; | ||
if (error.name === 'SyntaxError') { | ||
return ' [ERROR] ' + error.message; | ||
} | ||
return ' * ' + | ||
String(entry.error.message || entry.error) | ||
String(error.message) | ||
.replace(/^[^\n]+/, entry.message) | ||
@@ -17,0 +19,0 @@ .replace(/\n/g, '\n '); |
@@ -17,2 +17,3 @@ // "FILENAME":LINE.COLUMN: error: MESSAGE | ||
var allowed = error.syntax ? '; allowed: ' + error.syntax : ''; | ||
if (error.loc) { | ||
@@ -24,2 +25,3 @@ position = error.loc.start.line + '.' + | ||
} | ||
return '"' + | ||
@@ -26,0 +28,0 @@ filename + '":' + |
{ | ||
"name": "csstree-validator", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "CSS validator build on csstree", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"clap": "^1.1.1", | ||
"css-tree": "1.0.0-alpha.29" | ||
"css-tree": "1.0.0-alpha.32" | ||
}, | ||
@@ -58,3 +58,7 @@ "devDependencies": { | ||
"node": ">=0.10.0" | ||
} | ||
}, | ||
"files": [ | ||
"bin", | ||
"lib" | ||
] | ||
} |
2
15797
13
273
+ Addedcss-tree@1.0.0-alpha.32(transitive)
+ Addedmdn-data@2.0.4(transitive)
- Removedcss-tree@1.0.0-alpha.29(transitive)
- Removedmdn-data@1.1.4(transitive)
Updatedcss-tree@1.0.0-alpha.32