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.2.0 to 1.2.1

test/loud_expected.html

11

index.js

@@ -15,2 +15,3 @@ var through = require('through');

var skipping = false;
var lastToken = null;

@@ -64,2 +65,9 @@ tokens.pipe(through(write, end));

r.on('_write-begin', function (stream) {
if (lastToken[0] === 'tag-end'
&& lastToken[1].length > 0
&& '>' === String.fromCharCode(lastToken[1][lastToken[1].length-1])
) {
tr.queue(lastToken[1]);
}
if (stream._skipping !== false) {

@@ -101,2 +109,4 @@ tokens.pause();

function write (lex) {
lastToken = lex;
var sub;

@@ -112,3 +122,2 @@ selectors.forEach(function (s) {

if (skipping) return;
if (sub !== undefined) tr.queue(sub)

@@ -115,0 +124,0 @@ else tr.queue(lex[1])

2

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

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

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