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.4.0 to 0.4.1

test/comments.html

8

index.js

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

else if (type === 'text') {
len = parser.startTagPosition - pos - 1;
len = parser.textNode.length;
}

@@ -96,2 +96,8 @@ else if (type === 'open' && tag && tag.name === 'SCRIPT'

parser.oncomment = function(comment) {
src = buffered.slice(0, comment.length + 7)
buffered = buffered.slice(comment.length + 7)
stream.raw(src)
};
parser.onclosetag = function (name) {

@@ -98,0 +104,0 @@ stream.pre('close', name);

2

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