New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-cssnano

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-cssnano - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 2.1.0
* Print a CssSyntaxError when the input CSS could not be parsed properly with
PostCSS (thanks to @stelund).
# 2.0.1

@@ -2,0 +7,0 @@

14

index.js

@@ -34,3 +34,15 @@ 'use strict';

cb();
}.bind(this));
}.bind(this),
function (error) {
var errorOptions = {fileName: file.path};
if (error.name === 'CssSyntaxError') {
error = error.message + error.showSourceCode();
errorOptions.showStack = false;
}
// Prevent stream’s unhandled exception from
// being suppressed by Promise
setImmediate(function () {
cb(new PluginError(PLUGIN_NAME, error));
});
});
}

@@ -37,0 +49,0 @@ };

8

package.json
{
"name": "gulp-cssnano",
"version": "2.0.1",
"version": "2.1.0",
"description": "Minify CSS with cssnano.",

@@ -33,3 +33,7 @@ "main": "index.js",

"vinyl-sourcemaps-apply": "^0.2.1"
}
},
"files": [
"LICENSE-MIT",
"index.js"
]
}
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