Socket
Socket
Sign inDemoInstall

trumpet

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trumpet - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

12

lib/select.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc