🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@pirxpilot/html-browserify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pirxpilot/html-browserify - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+6
-0
History.md
1.0.1 / 2018-12-21
==================
* use standard Transform stream instead of through2
* only test LTS and stable version for Travis CI
1.0.0 / 2018-12-02

@@ -3,0 +9,0 @@ ==================

+4
-4

@@ -1,2 +0,2 @@

const through = require('through2');
const { Transform, PassThrough } = require('stream');
const htmlclean = require('htmlclean');

@@ -12,5 +12,5 @@

return /\.(tpl|html)/.test(file) ? through(onwrite, onend) : through();
return /\.(tpl|html)/.test(file) ? new Transform({ transform, flush }) : new PassThrough();
function onwrite(chunk, enc, next) {
function transform(chunk, enc, next) {
chunks.push(chunk);

@@ -20,3 +20,3 @@ next();

function onend(next) {
function flush(next) {
let jst = chunks.map(c => c.toString()).join('');

@@ -23,0 +23,0 @@

{
"name": "@pirxpilot/html-browserify",
"version": "1.0.0",
"version": "1.0.1",
"description": "Makes HTML files usuable as modules in Browserify",

@@ -25,4 +25,3 @@ "scripts": {

"dependencies": {
"htmlclean": "~3",
"through2": "~3"
"htmlclean": "~3"
},

@@ -29,0 +28,0 @@ "devDependencies": {