[Pkg-javascript-commits] [ltx] 237/469: sax parsers: use expat, ltx, saxjs by default
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 761bebce5847f4a2ff35b848577a68823151ba59
Author: Astro <astro at spaceboyz.net>
Date: Fri Mar 23 22:03:00 2012 +0100
sax parsers: use expat, ltx, saxjs by default
---
lib/index-browserify.js | 4 ++--
lib/parse.js | 2 +-
package.json | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/index-browserify.js b/lib/index-browserify.js
index 928667c..5c44ae7 100644
--- a/lib/index-browserify.js
+++ b/lib/index-browserify.js
@@ -1,6 +1,6 @@
/* Cause browserify to bundle SAX parsers: */
-require('./sax_easysax');
-require('./sax_saxjs');
+//require('./sax_easysax');
+//require('./sax_saxjs');
require('./sax_ltx');
/* SHIM */
diff --git a/lib/parse.js b/lib/parse.js
index e63990d..75539b9 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -3,7 +3,7 @@ var util = require('util');
exports.availableSaxParsers = [];
exports.bestSaxParser = null;
-['./sax_ltx.js', './sax_expat.js', /*'./sax_easysax.js',*/ /*'./sax_node-xml.js',*/ './sax_saxjs.js'].forEach(function(modName) {
+['./sax_expat.js', './sax_ltx.js', /*'./sax_easysax.js', './sax_node-xml.js',*/ './sax_saxjs.js'].forEach(function(modName) {
var mod;
try {
mod = require(modName);
diff --git a/package.json b/package.json
index a837f17..81580a4 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
,"description": "<xml for=\"node.js\">"
,"author": "Stephan Maka"
,"dependencies": {"node-expat": ">=1.2.0"
+ ,"sax": ">=0.3.5"
}
,"repositories": [{"type": "git"
,"path": "http://github.com/astro/ltx.git"
@@ -21,7 +22,6 @@
,"devDependencies": {"vows": ">=0.5.12"
,"easysax": ">=0.1.7"
,"node-xml": ">=1.0.1"
- ,"sax": ">=0.3.5"
,"Strophe.js": "https://github.com/metajack/strophejs/tarball/master"
,"request-animation-frame": ">=0.1.0"
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list