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

impro

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

impro - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

2

package.json
{
"name": "impro",
"version": "0.7.0",
"version": "0.7.1",
"description": "Image processing engine",

@@ -5,0 +5,0 @@ "author": "Andreas Lind <andreaslindpetersen@gmail.com>",

@@ -11,2 +11,3 @@ const requireOr = require('require-or');

'floyd',
'ncolors',
'nofs',

@@ -27,2 +28,4 @@ 'ordered',

);
case 'ncolors':
return args.length === 1 && args[0] >= 2 && args[0] <= 256;
case 'speed':

@@ -42,5 +45,13 @@ return args.length === 1 && args[0] >= 1 && args[0] <= 11;

var commandLineArgs = [];
var nColors;
operations.forEach(operation => {
if (operation.name === 'ncolors') {
nColors = operation.args[0];
return;
}
commandLineArgs.push('--' + operation.name, ...operation.args);
});
if (nColors) {
commandLineArgs.push(nColors);
}
commandLineArgs.push('-');

@@ -47,0 +58,0 @@

@@ -123,3 +123,3 @@ function parseImproQueryString(queryString, improInstance, allowOperation) {

} else if (engineName === 'pngquant') {
result.push(`speed=${bit}`);
result.push(`ncolors=${bit}`);
} else if (lastSeenOptionIndex > -1) {

@@ -126,0 +126,0 @@ result[lastSeenOptionIndex] += `=${bit}`;

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