Comparing version 0.1.0 to 0.1.1
@@ -30,3 +30,3 @@ var Stream = require('stream').Stream; | ||
sel.pending = sel.pending.filter(function (p) { | ||
var done = p.level > parser.tags.length; | ||
var done = parser.tags.length < p.level; | ||
if (done) p.callback.call(stream, p.buffered); | ||
@@ -37,3 +37,5 @@ return !done; | ||
if (up && !sel.updating) { | ||
if (sel.removing) sel.removeOnPost = true; | ||
if (sel.removing) { | ||
sel.removeOnPost = true; | ||
} | ||
else updating = false; | ||
@@ -58,3 +60,7 @@ } | ||
selectors.forEach(function (sel) { | ||
if (sel.removeOnPost) updating = false; | ||
if (sel.removeOnPost) { | ||
updating = false; | ||
sel.removing = false; | ||
sel.removeOnPost = false; | ||
} | ||
}); | ||
@@ -61,0 +67,0 @@ } |
{ | ||
"name" : "trumpet", | ||
"version" : "0.1.0", | ||
"version" : "0.1.1", | ||
"description" : "parse and transform streaming html using css selectors", | ||
@@ -5,0 +5,0 @@ "main" : "index.js", |
@@ -27,2 +27,6 @@ var test = require('tap').test; | ||
tr.select('.e', function (node) { | ||
node.remove(); | ||
}); | ||
var data = ''; | ||
@@ -29,0 +33,0 @@ tr.on('data', function (buf) { data += buf }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14947
277