bundle
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
prototype, push, r, t, text
|
prototype, push, r, t, text
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = (function () {
|
var ___dougJSONParse = (function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// This is a function that can parse a JSON text, producing a JavaScript
|
// This is a function that can parse a JSON text, producing a JavaScript
|
||||||
@@ -354,3 +354,7 @@ module.exports = (function () {
|
|||||||
: result;
|
: result;
|
||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
if(typeof module === 'object' && module.exports) {
|
||||||
|
module.exports = ___dougJSONParse;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* Jison generated parser */
|
/* Jison generated parser */
|
||||||
|
|
||||||
var jsonlint = (function(){
|
var jsonlint = (function(){
|
||||||
var dougJSONParse = require('./doug-json-parse');
|
var dougJSONParse = typeof ___dougJSONParse === 'undefined' ? require('./doug-json-parse') : ___dougJSONParse;
|
||||||
var parser = {trace: function trace() { },
|
var parser = {trace: function trace() { },
|
||||||
yy: {},
|
yy: {},
|
||||||
symbols_: {"error":2,"JSONString":3,"STRING":4,"JSONNumber":5,"NUMBER":6,"JSONNullLiteral":7,"NULL":8,"JSONBooleanLiteral":9,"TRUE":10,"FALSE":11,"JSONText":12,"JSONValue":13,"EOF":14,"JSONObject":15,"JSONArray":16,"{":17,"}":18,"JSONMemberList":19,"JSONMember":20,":":21,",":22,"[":23,"]":24,"JSONElementList":25,"$accept":0,"$end":1},
|
symbols_: {"error":2,"JSONString":3,"STRING":4,"JSONNumber":5,"NUMBER":6,"JSONNullLiteral":7,"NULL":8,"JSONBooleanLiteral":9,"TRUE":10,"FALSE":11,"JSONText":12,"JSONValue":13,"EOF":14,"JSONObject":15,"JSONArray":16,"{":17,"}":18,"JSONMemberList":19,"JSONMember":20,":":21,",":22,"[":23,"]":24,"JSONElementList":25,"$accept":0,"$end":1},
|
||||||
@@ -256,7 +256,6 @@ parseError:function parseError(str, hash) {
|
|||||||
if (this.yy.parseError) {
|
if (this.yy.parseError) {
|
||||||
this.yy.parseError(str, hash);
|
this.yy.parseError(str, hash);
|
||||||
} else {
|
} else {
|
||||||
console.log(hash)
|
|
||||||
throw new Error(str);
|
throw new Error(str);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "http://github.com/zaach/jsonlint/issues"
|
"url": "http://github.com/zaach/jsonlint/issues"
|
||||||
},
|
},
|
||||||
"main": "lib/jsonlint.js",
|
"main": "web/jsonlint.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"jsonlint": "lib/cli.js"
|
"jsonlint": "lib/cli.js"
|
||||||
},
|
},
|
||||||
@@ -34,7 +34,8 @@
|
|||||||
"uglify-js": "*"
|
"uglify-js": "*"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node test/all-tests.js"
|
"test": "node test/all-tests.js",
|
||||||
|
"bundle": "node scripts/bundle > web/jsonlint.js"
|
||||||
},
|
},
|
||||||
"homepage": "http://zaach.github.com/jsonlint/",
|
"homepage": "http://zaach.github.com/jsonlint/",
|
||||||
"optionalDependencies": {}
|
"optionalDependencies": {}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var source = "var jsonlint = (function(){var require=true,module=false;var exports={};" +
|
var source = "var jsonlint = (function(){var require=true,module=false;var exports={};" +
|
||||||
|
fs.readFileSync(__dirname+'/../lib/doug-json-parse.js', 'utf8') +
|
||||||
fs.readFileSync(__dirname+'/../lib/jsonlint.js', 'utf8') +
|
fs.readFileSync(__dirname+'/../lib/jsonlint.js', 'utf8') +
|
||||||
"return exports;})()";
|
"return exports;})();if(typeof module === 'object' && module.exports) module.exports = jsonlint;";
|
||||||
|
|
||||||
console.log(source);
|
console.log(source);
|
||||||
|
|
||||||
|
|||||||
805
web/jsonlint.js
805
web/jsonlint.js
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user