🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

cssnano

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssnano - npm Package Compare versions

Comparing version

to
1.3.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.3.1
* Fixes crash on undefined `decl.before` from prior AST.
# 1.3.0

@@ -2,0 +6,0 @@

4

lib/core.js

@@ -54,3 +54,5 @@ 'use strict';

// Remove extra semicolons and whitespace before the declaration
declaration.before = declaration.before.replace(/[;\s]/g, '');
if (declaration.before) {
declaration.before = declaration.before.replace(/[;\s]/g, '');
}
declaration.between = ':';

@@ -57,0 +59,0 @@ declaration.semicolon = false;

{
"name": "cssnano",
"version": "1.3.0",
"version": "1.3.1",
"description": "A modular minifier, built on top of the PostCSS ecosystem.",

@@ -5,0 +5,0 @@ "main": "index.js",