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

imagetools-core

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagetools-core - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

7

dist/index.js

@@ -279,3 +279,5 @@ import sharp from 'sharp';

finalAspect = originalAspect;
context.logger.info('allowUpscale not enabled. Image width, height and aspect ratio reverted to original values');
if (context.manualSearchParams.has('width') || context.manualSearchParams.has('height')) {
context.logger.info('allowUpscale not enabled. Image width, height and aspect ratio reverted to original values');
}
}

@@ -493,3 +495,3 @@ setMetadata(image, 'height', finalHeight);

function generateTransforms(config, factories, logger) {
function generateTransforms(config, factories, manualSearchParams, logger) {
if (logger === undefined) {

@@ -502,2 +504,3 @@ logger = consoleLogger;

useParam: (k) => parametersUsed.add(k),
manualSearchParams,
logger

@@ -504,0 +507,0 @@ };

import { ImageTransformation, ImageConfig, TransformFactory, Logger } from '../types';
export declare function generateTransforms(config: ImageConfig, factories: TransformFactory[], logger?: Logger): {
export declare function generateTransforms(config: ImageConfig, factories: TransformFactory[], manualSearchParams: URLSearchParams, logger?: Logger): {
transforms: ImageTransformation[];
parametersUsed: Set<string>;
};

@@ -10,2 +10,3 @@ import { Sharp } from 'sharp';

useParam: (parameter: string) => void;
manualSearchParams: URLSearchParams;
logger: Logger;

@@ -12,0 +13,0 @@ }

{
"name": "imagetools-core",
"version": "4.0.0",
"version": "4.0.1",
"type": "module",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

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