Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

trumpet

Package Overview
Dependencies
4
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.6 to 0.4.0

9

lib/select.js

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

pseudo: s.match(/:([\w-]+)/),
attribute: s.match(/\[([^\]]+)\]/),
attribute: s.match(/\[([^\]]+)=([^\]]+)\]/),
};

@@ -151,3 +151,3 @@

pseudo: m.pseudo && m.pseudo[1],
attribute: m.attribute && m.attribute[1],
attribute: m.attribute && m.attribute.slice(1),
};

@@ -181,2 +181,7 @@ }).filter(Boolean);

if (p.id && p.id !== t.attributes.id) return false;
if (p.attribute) {
if (t.attributes[p.attribute[0]] !== p.attribute[1]) {
return false;
}
}
return true;

@@ -183,0 +188,0 @@ }

{
"name" : "trumpet",
"version" : "0.3.6",
"version" : "0.4.0",
"description" : "parse and transform streaming html using css selectors",

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

@@ -6,3 +6,3 @@ var test = require('tap').test;

test('select', function (t) {
t.plan(6);
t.plan(7);

@@ -50,2 +50,8 @@ var tr = trumpet();

});
tr.select('div[class=g]', function (node) {
node.html(function (html) {
t.equal(html, 'sup');
});
});
});

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc