Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 1.0.0 to 1.1.0

19

index.js

@@ -66,2 +66,4 @@ var through = require('through');

r.on('queue', function (buf) { tr.queue(buf) });
selectors.push(r);

@@ -74,2 +76,3 @@ return r;

if (cb) r.on('element', cb);
r.on('queue', function (buf) { tr.queue(buf) });

@@ -144,3 +147,13 @@ r._matcher.on('open', function (node) {

var remainingSets = [];
self._matcher.on('open', function () {
remainingSets = Object.keys(self._setAttr);
});
self._matcher.on('tag-end', function (m) {
for (var i = 0; i < remainingSets.length; i++) {
var key = remainingSets[i];
self.emit('queue', Buffer(' ' + self._setAttr[key]));
}
if (self._readStreams.length) {

@@ -168,3 +181,7 @@ self._reading = true;

var v = self._setAttr[node.name];
if (v !== undefined) self._substitute = v;
if (v !== undefined) {
self._substitute = v;
var ix = remainingSets.indexOf(node.name);
if (ix >= 0) remainingSets.splice(ix, 1);
}
});

@@ -171,0 +188,0 @@ }

2

package.json
{
"name" : "trumpet",
"version" : "1.0.0",
"version" : "1.1.0",
"description" : "parse and transform streaming html using css selectors",

@@ -5,0 +5,0 @@ "main" : "index.js",

@@ -24,4 +24,2 @@ var trumpet = require('../');

t.plan(1);
t.ok(true, 'skip');
return;

@@ -28,0 +26,0 @@ var tr = trumpet();

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