Comparing version
@@ -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; |
{ | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
-100%0
-100%50
Infinity%0
-100%5533
-27.78%6
-62.5%149
-32.58%1
Infinity%