Comparing version 2.9.2 to 2.10.0
@@ -12,17 +12,17 @@ 'use strict' | ||
var that = this | ||
this.parser.onopentag = function (a) { | ||
this.parser.on('opentag', function (a) { | ||
that.emit('startElement', a.name, a.attributes) | ||
} | ||
this.parser.onclosetag = function (el) { | ||
}) | ||
this.parser.on('closetag', function (el) { | ||
that.emit('endElement', el.name) | ||
} | ||
this.parser.ontext = function (str) { | ||
}) | ||
this.parser.on('text', function (str) { | ||
that.emit('text', str) | ||
} | ||
this.parser.onend = function () { | ||
}) | ||
this.parser.on('end', function () { | ||
that.emit('end') | ||
} | ||
this.parser.onerror = function (e) { | ||
}) | ||
this.parser.on('error', function (e) { | ||
that.emit('error', e) | ||
} | ||
}) | ||
} | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "ltx", | ||
"version": "2.9.2", | ||
"version": "2.10.0", | ||
"description": "<xml for=\"JavaScript\">", | ||
"author": "Astro", | ||
"repository": "github:node-xmpp/ltx", | ||
"homepage": "http://github.com/node-xmpp/ltx", | ||
"bugs": "http://github.com/node-xmpp/ltx/issues", | ||
"repository": "github:xmppjs/ltx", | ||
"homepage": "http://github.com/xmppjs/ltx", | ||
"bugs": "http://github.com/xmppjs/ltx/issues", | ||
"contributors": [ | ||
@@ -32,3 +32,3 @@ "Stephan Maka", | ||
"benchmark": "^2.1.4", | ||
"browserify": "^16.5.0", | ||
"browserify": "^16.5.2", | ||
"libxmljs": "^0.19.7", | ||
@@ -39,6 +39,6 @@ "microtime": "^3.0.0", | ||
"sax": "^1.2.4", | ||
"saxes": "^3.1.11", | ||
"standard": "^14.3.1", | ||
"vows": "^0.8.2" | ||
"saxes": "^5.0.1", | ||
"standard": "^14.3.4", | ||
"vows": "^0.8.3" | ||
} | ||
} |
@@ -6,3 +6,3 @@ ltx | ||
[](https://travis-ci.org/node-xmpp/ltx/branches) | ||
[](https://travis-ci.org/xmppjs/ltx/branches) | ||
[](http://standardjs.com/) | ||
@@ -39,6 +39,6 @@ | ||
| [node-xml](https://github.com/dylang/node-xml) | 81,980 | ☑ | ☑ | | ||
| [node-expat](https://github.com/node-xmpp/node-expat) | 72,720 | ☐ | ☑ | | ||
| **[ltx/lib/parsers/ltx](https://github.com/node-xmpp/ltx/blob/master/lib/parsers/ltx.js)** | 490,593 | ☑ | ☑ | | ||
| [node-expat](https://github.com/astro/node-expat) | 72,720 | ☐ | ☑ | | ||
| **[ltx/lib/parsers/ltx](https://github.com/xmppjs/ltx/blob/master/lib/parsers/ltx.js)** | 490,593 | ☑ | ☑ | | ||
From [ltx/benchmarks/parsers.js](https://github.com/node-xmpp/ltx/blob/master/benchmarks/parsers.js), higher is better. | ||
From [ltx/benchmarks/parsers.js](https://github.com/xmppjs/ltx/blob/master/benchmarks/parsers.js), higher is better. | ||
Node.js v10.11.0 - i5-2520M | ||
@@ -45,0 +45,0 @@ |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
119991