🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

sax-stream

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sax-stream - npm Package Compare versions

Comparing version

to
1.0.0

Readme.md

7

lib/elem.js

@@ -55,2 +55,6 @@ function child(el, path) {

function concatText(node, text) {
node.value = (node.value || '') + text;
return node;
}

@@ -61,2 +65,3 @@ exports.child = child;

exports.addChild = addChild;
exports.addText = addText;
exports.addText = addText;
exports.concatText = concatText;

@@ -66,2 +66,8 @@ var Transform = require('stream').Transform;

parser.oncdata = function (value) {
if (record) {
elem.concatText(record, value);
}
};
parser.onerror = function(err) {

@@ -68,0 +74,0 @@ self.error = err;

4

package.json
{
"name": "sax-stream",
"version": "0.0.1",
"version": "1.0.0",
"description": "Transform stream implemented using SAX parser",

@@ -34,2 +34,2 @@ "main": "index.js",

}
}
}

Sorry, the diff of this file is not supported yet