Comparing version 0.2.2 to 0.2.3
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; | ||
}; |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23183
22
436
8