Socket
Socket
Sign inDemoInstall

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.10.0 to 0.11.0

CHANGELOG.md

2

package.json
{
"name": "impro",
"version": "0.10.0",
"version": "0.11.0",
"description": "Image processing engine",

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

@@ -161,2 +161,12 @@ const errors = require('../errors');

const cache = pipeline.options.sharpCache || options.cache;
const failOnError = (() => {
// TODO: Switch to using "Nullish coalescing operator (??)" once only Node.js 14 onwards are supported
if (typeof pipeline.options.sharpFailOnError !== 'undefined') {
return pipeline.options.sharpFailOnError;
} else if (typeof options.failOnError !== 'undefined') {
return options.failOnError;
} else {
return true;
}
})();
// Would make sense to move the _sharpCacheSet property to the type, but that breaks some test scenarios:

@@ -284,3 +294,3 @@ if (cache !== 'undefined' && !impro._sharpCacheSet) {

// ensure at least one option is present
options = { failOnError: true, ...options };
options = { failOnError, ...options };

@@ -287,0 +297,0 @@ if (pipeline.options.maxInputPixels) {

@@ -33,2 +33,3 @@ const Pipeline = require('./Pipeline');

'svgAssetPath',
'sharpFailOnError',
];

@@ -35,0 +36,0 @@

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