imagetools-core
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
73870
770
0