Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minimize

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimize - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

2

lib/helpers.js

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

, structural = /pre|textarea|code/
, interpunction = /[\.,!%;:\-\?]/
, interpunction = /[\.,!%;:\-\?\$]/
, start = new RegExp('^' + interpunction.source)

@@ -27,0 +27,0 @@ , end = new RegExp(interpunction.source + '$');

{
"name": "minimize",
"version": "0.4.2",
"version": "0.4.3",
"description": "Minimize HTML",

@@ -5,0 +5,0 @@ "main": "./lib/minimize",

@@ -7,2 +7,3 @@ {

, "newlines": "<li>We&#39;re <a href=\"http://nodejitsu.com\">Nodejitsu</a>, and we can give you scalable,\nfault-tolerant cloud hosting for your Node.js apps - and we&#39;re the best you&#39;ll\nfind.</li>"
, "spacing": "<strong>npm</strong>. You don't have to worry\n about installing npm since it comes bundled with Node.js.\n\n <pre class=\"copy\">$ <span>npm install jitsu -g</span><a href=\"#\"><s class=\"ss-layers\" role=\"presentation\"></s> copy</a></pre>\n"
, "doctype": {

@@ -9,0 +10,0 @@ "raw": "!doctype html"

@@ -102,2 +102,9 @@ 'use strict';

it('should prepend spaces inside structural elements if required', function (done) {
minimize.minimize(html.spacing, function (result) {
expect(result).to.equal("<strong>npm</strong>. You don't have to worry about installing npm since it comes bundled with Node.js.<pre class=\"copy\">$ <span>npm install jitsu -g</span> <a href=\"#\"><s class=\"ss-layers\" role=\"presentation\"></s> copy</a></pre>");
done();
});
});
it('should be configurable to retain CDATA');

@@ -104,0 +111,0 @@ });

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