jsonlint-mod
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"preferGlobal": true, | ||
@@ -39,3 +39,4 @@ "repository": { | ||
"test": "node test/all-tests.js", | ||
"bundle": "node scripts/bundle > web/jsonlint.js" | ||
"bundle": "node scripts/bundle > web/jsonlint.js", | ||
"prepublish": "npm run bundle" | ||
}, | ||
@@ -42,0 +43,0 @@ "homepage": "http://jsonlint.com", |
@@ -784,4 +784,4 @@ var jsonlint = (function(){var require=true,module=false;var exports={};/* | ||
} catch(e) { | ||
console.log(e.message); | ||
if(/Duplicate key|Bad string/.test(e.message)) { | ||
console.error(e); | ||
if(/Duplicate key|Bad string|Unexpected/.test(e.message)) { | ||
var lineNumber = input.substring(0, e.at).split('\n').length; | ||
@@ -788,0 +788,0 @@ throw SyntaxError(e.message + ' on line ' + lineNumber); |
93474