Socket
Socket
Sign inDemoInstall

htmltidy

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

.c9revisions/.gitignore.c9save

34

htmltidy.js

@@ -14,3 +14,3 @@ var Stream = require('stream').Stream;

var DEFAULT_OPTS = {
showWarnings: true,
showWarnings: false,
tidyMark: false,

@@ -78,3 +78,3 @@ forceOutput: true,

return this._worker.stdin.write(data);
}
};

@@ -85,3 +85,3 @@ TidyWorker.prototype.end = function (data) {

this._worker.stdin.end(data);
}
};

@@ -93,3 +93,3 @@ TidyWorker.prototype.pause = function () {

this._worker.stdout.pause();
}
};

@@ -101,3 +101,3 @@ TidyWorker.prototype.resume = function () {

this._worker.stdout.resume();
}
};

@@ -109,4 +109,4 @@ TidyWorker.prototype.destroy = function () {

this._worker= null;
self.emit('close');
}
this.emit('close');
};

@@ -126,15 +126,15 @@ function createWorker(opts) {

var tidy = new TidyWorker(opts);
var worker = new TidyWorker(opts);
var result = '';
var error = '';
tidy.on('data', function (data) {
worker.on('data', function (data) {
result+= data;
});
tidy.on('error', function (data) {
worker.on('error', function (data) {
error+= data;
});
tidy.on('end', function (code) {
worker.on('end', function (code) {
cb(error, result);
});
tidy.end(text);
worker.end(text);
}

@@ -151,5 +151,5 @@

break;
case 'darwin':
tidyExe = path.join('darwin', 'tidy');
break;
case 'darwin':
tidyExe = path.join('darwin', 'tidy');
break;
default:

@@ -187,3 +187,3 @@ throw new Error('unsupported execution platform');

function toHyphens(str) {
return str.replace(/([A-Z])/g, function (m, w) { return '-' + w; });
return str.replace(/([A-Z])/g, function (m, w) { return '-' + w.toLowerCase(); });
}

@@ -202,3 +202,3 @@

for (var attrname in obj2) obj3[attrname] = obj2[attrname];
for (var attrname in obj1) obj3[attrname] = obj1[attrname];
for (var attrname2 in obj1) obj3[attrname2] = obj1[attrname2];
return obj3;

@@ -205,0 +205,0 @@ }

{
"name": "htmltidy",
"description": "tidy bad html",
"version": "0.0.5",
"version": "0.0.6",
"author": "lauris <lauris@ma-1.lv>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -63,2 +63,4 @@ HTML Tidy

---------
0.0.6 - Apr 18, 2013
- bug fix update
0.0.5 - Feb 25, 2013

@@ -65,0 +67,0 @@ - changes contributed by Keith Rosenberg

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