Socket
Socket
Sign inDemoInstall

imagemin

Package Overview
Dependencies
309
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.2 to 2.2.0

14

cli.js

@@ -14,3 +14,2 @@ #!/usr/bin/env node

var cli = meow({
requireInput: process.stdin.isTTY,
help: [

@@ -109,2 +108,15 @@ ' Usage',

if (!cli.input.length) {
console.error([
'Provide at least one file to optimize',
'',
' Example',
' imagemin images/* build',
' imagemin foo.png > foo-optimized.png',
' cat foo.png | imagemin > foo-optimized.png'
].join('\n'));
process.exit(1);
}
if (!isFile(src[src.length - 1])) {

@@ -111,0 +123,0 @@ dest = src[src.length - 1];

4

index.js

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

Imagemin.prototype.use = function (plugin) {
this.streams.push(plugin);
this.streams.push(typeof plugin === 'function' ? plugin() : plugin);
return this;

@@ -128,4 +128,4 @@ };

module.exports[plugin] = optional('imagemin-' + plugin) || function () {
return through.obj();
return through.ctor({ objectMode: true });
};
});
{
"name": "imagemin",
"version": "2.1.2",
"version": "2.2.0",
"description": "Minify images",

@@ -38,3 +38,3 @@ "license": "MIT",

"get-stdin": "^3.0.0",
"meow": "^1.0.0",
"meow": "^2.0.0",
"optional": "^0.1.0",

@@ -50,8 +50,8 @@ "stream-combiner": "^0.2.1",

"optionalDependencies": {
"imagemin-gifsicle": "^3.0.0",
"imagemin-jpegtran": "^3.0.0",
"imagemin-optipng": "^3.0.0",
"imagemin-pngquant": "^3.0.0",
"imagemin-svgo": "^2.0.0"
"imagemin-gifsicle": "^4.0.0",
"imagemin-jpegtran": "^4.0.0",
"imagemin-optipng": "^4.0.0",
"imagemin-pngquant": "^4.0.0",
"imagemin-svgo": "^3.0.0"
}
}
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