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 0.2.2 to 0.2.3

test/script.html

11

index.js

@@ -24,3 +24,6 @@ var sax = require('sax');

var update = function (type, tag) {
if (type === 'text') {
if (type === 'script') {
var len = tag.length;
}
else if (type === 'text') {
var len = parser.startTagPosition - pos - 1;

@@ -74,3 +77,9 @@ }

parser.onscript = function (src) {
stream.pre('script', src);
update('script', src);
stream.post('script', src);
};
return stream;
};

2

package.json
{
"name" : "trumpet",
"version" : "0.2.2",
"version" : "0.2.3",
"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