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

imagemin-mozjpeg

Package Overview
Dependencies
Maintainers
7
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-mozjpeg - npm Package Compare versions

Comparing version 8.0.0 to 9.0.0

16

index.js

@@ -6,8 +6,9 @@ 'use strict';

module.exports = options => buffer => {
options = Object.assign({
module.exports = options => async buffer => {
options = {
trellis: true,
trellisDC: true,
overshoot: true
}, options);
overshoot: true,
...options
};

@@ -26,8 +27,11 @@ if (!Buffer.isBuffer(buffer)) {

}
if (options.maxmemory) {
return Promise.reject(new Error('Option `maxmemory` was renamed to `maxMemory`'));
}
if (options.notrellis) {
return Promise.reject(new Error('Option `notrellis` was renamed to `trellis` and inverted'));
}
if (options.noovershoot) {

@@ -107,3 +111,3 @@ return Promise.reject(new Error('Option `noovershoot` was renamed to `overshoot` and inverted'));

return execa.stdout(mozjpeg, args, {
const {stdout} = await execa(mozjpeg, args, {
encoding: null,

@@ -113,2 +117,4 @@ input: buffer,

});
return stdout;
};
{
"name": "imagemin-mozjpeg",
"version": "8.0.0",
"version": "9.0.0",
"description": "Imagemin plugin for mozjpeg",

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

"engines": {
"node": ">=6"
"node": ">=10"
},

@@ -45,12 +45,11 @@ "scripts": {

"dependencies": {
"execa": "^1.0.0",
"execa": "^4.0.0",
"is-jpg": "^2.0.0",
"mozjpeg": "^6.0.0"
"mozjpeg": "^7.0.0"
},
"devDependencies": {
"ava": "*",
"ava": "^3.8.0",
"is-progressive": "^3.0.0",
"pify": "^4.0.0",
"xo": "*"
"xo": "^0.30.0"
}
}

@@ -1,2 +0,2 @@

# imagemin-mozjpeg [![Build Status](https://travis-ci.org/imagemin/imagemin-mozjpeg.svg?branch=master)](https://travis-ci.org/imagemin/imagemin-mozjpeg) [![Build status](https://ci.appveyor.com/api/projects/status/uuh7yi48erf4ykyo?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/imagemin-mozjpeg)
# imagemin-mozjpeg [![Build Status](https://travis-ci.org/imagemin/imagemin-mozjpeg.svg?branch=master)](https://travis-ci.org/imagemin/imagemin-mozjpeg)

@@ -3,0 +3,0 @@ > [Imagemin](https://github.com/imagemin/imagemin) plugin for [mozjpeg](https://github.com/mozilla/mozjpeg)

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