Socket
Socket
Sign inDemoInstall

minimize

Package Overview
Dependencies
45
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

2

lib/helpers.js

@@ -282,3 +282,3 @@ 'use strict';

if (cfg.ssi && ~element.data.indexOf('#include')) return io();
if (cfg.ssi && ~element.data.indexOf('#')) return io();
if (cfg.conditionals && (~element.data.indexOf('[if')

@@ -285,0 +285,0 @@ || ~element.data.indexOf('<![endif'))) return io();

@@ -10,3 +10,3 @@ 'use strict';

, html = require('htmlparser2')
, uuid = require('node-uuid')
, uuid = require('uuid')
, emits = require('emits')

@@ -13,0 +13,0 @@ , async = require('async')

{
"name": "minimize",
"version": "2.0.0",
"version": "2.1.0",
"description": "Minimize HTML",

@@ -16,17 +16,17 @@ "main": "./lib/minimize",

"dependencies": {
"argh": "~0.1.4",
"async": "~2.0.0-rc.6",
"cli-color": "~1.1.0",
"diagnostics": "~1.0.1",
"emits": "~3.0.0",
"htmlparser2": "~3.9.1",
"node-uuid": "~1.4.7"
"argh": "^0.1.4",
"async": "^2.1.5",
"cli-color": "^1.2.0",
"diagnostics": "^1.1.0",
"emits": "^3.0.0",
"htmlparser2": "^3.9.2",
"uuid": "^3.0.0"
},
"devDependencies": {
"chai": "~3.5.0",
"istanbul": "~0.4.3",
"mocha": "~2.5.3",
"pre-commit": "~1.1.3",
"sinon": "~1.17.4",
"sinon-chai": "~2.8.0"
"chai": "^3.5.0",
"istanbul": "^0.4.5",
"mocha": "^3.2.0",
"pre-commit": "^1.2.2",
"sinon": "^1.17.7",
"sinon-chai": "^2.8.0"
},

@@ -33,0 +33,0 @@ "repository": "git@github.com:Moveo/minimize.git",

@@ -6,2 +6,3 @@ {

"ssimulti": "<!--#include virtual=\"/head.html\" --><!--#include virtual=\"/header.html\" -->\n <div class=\"slide nodejs\">\n <h3>100% Node.js</h3>\n <p>\n We are Node.js experts and the first hosting platform to build\n our full stack in node. We understand your node application\n better than anyone.\n </p>\n </div>\n\n ",
"ssicommands": "<!--#echo var=\"name\" default=\"no\" -->\n <div class=\"slide nodejs\">\n <h3>100% Node.js</h3>\n <p>\n We are Node.js experts and the first hosting platform to build\n our full stack in node. We understand your node application\n better than anyone.\n </p>\n </div>\n\n ",
"ie": "<!--[if IE 6]>Special instructions for IE 6 here<![endif]-->\n <div class=\"slide nodejs\">\n <h3>100% Node.js</h3>\n </div>",

@@ -8,0 +9,0 @@ "iemulti": "<!--[if IE 10]>Special instructions for IE 10 here<![endif]--><!--[if IE 6]>Special instructions for IE 6 here<![endif]-->\n <div class=\"slide nodejs\">\n <h3>100% Node.js</h3>\n </div>",

@@ -141,2 +141,10 @@ 'use strict';

it('should be configurable to retain server side commands', function (done) {
var commentable = new Minimize({ ssi: true });
commentable.parse(html.ssicommands, function (error, result) {
expect(result).to.equal('<!--#echo var=\"name\" default=\"no\"--><div class=\"slide nodejs\"><h3>100% Node.js</h3><p>We are Node.js experts and the first hosting platform to build our full stack in node. We understand your node application better than anyone.</p></div>');
done();
});
});
it('should be configurable to retain conditional IE comments', function (done) {

@@ -143,0 +151,0 @@ var commentable = new Minimize({ conditionals: true });

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