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

@wix/image-kit

Package Overview
Dependencies
Maintainers
21
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/image-kit - npm Package Compare versions

Comparing version 1.38.0 to 1.39.0

3

dist/cjs/helpers/imageTransformOptions.js

@@ -152,2 +152,3 @@ "use strict";

// and no force usm is desired
// and transform type is not fit
// ---------------------------------------------------------------------------------------

@@ -158,3 +159,3 @@ const transformPart = (0, _utils.last)(transformsObj.parts);

// return if usm is needed
return !upscale || transformPart.forceUSM;
return !upscale || transformPart.forceUSM || transformPart.transformType === _imageServiceConstants.transformTypes.FIT;
}

@@ -161,0 +162,0 @@

@@ -103,3 +103,4 @@ "use strict";

const transformedData = (0, _imageServiceUtils.getTransformData)(transformsObj.src.width, transformsObj.src.height, _imageServiceConstants.transformTypes.FIT, target, transformsObj.devicePixelRatio, transformsObj.upscaleMethod);
const transformType = _imageServiceConstants.transformTypes.FILL;
const isMissingSrcDimensions = !transformsObj.src.width || !transformsObj.src.height;
const transformType = isMissingSrcDimensions ? _imageServiceConstants.transformTypes.FIT : _imageServiceConstants.transformTypes.FILL;

@@ -106,0 +107,0 @@ // return fit transform data

import { last } from './utils';
import { getPreferredImageQuality, roundToFixed } from './imageServiceUtils';
import { defaultUSM, fileType, imageFilters } from './imageServiceConstants';
import { defaultUSM, fileType, imageFilters, transformTypes } from './imageServiceConstants';
/**

@@ -144,2 +144,3 @@ * returns image filters part of the image transform uri

// and no force usm is desired
// and transform type is not fit
// ---------------------------------------------------------------------------------------

@@ -149,3 +150,5 @@ const transformPart = last(transformsObj.parts);

// return if usm is needed
return !upscale || transformPart.forceUSM;
return (!upscale ||
transformPart.forceUSM ||
transformPart.transformType === transformTypes.FIT);
}

@@ -152,0 +155,0 @@ /**

@@ -95,3 +95,6 @@ import { fittingTypes, transformTypes, alignTypesMap, } from './imageServiceConstants';

const transformedData = getTransformData(transformsObj.src.width, transformsObj.src.height, transformTypes.FIT, target, transformsObj.devicePixelRatio, transformsObj.upscaleMethod);
const transformType = transformTypes.FILL;
const isMissingSrcDimensions = !transformsObj.src.width || !transformsObj.src.height;
const transformType = isMissingSrcDimensions
? transformTypes.FIT
: transformTypes.FILL;
// return fit transform data

@@ -98,0 +101,0 @@ return {

{
"name": "@wix/image-kit",
"description": "Standard library for generating canonical URL's for optimally consuming images at Wix",
"version": "1.38.0",
"version": "1.39.0",
"license": "MIT",

@@ -67,3 +67,3 @@ "author": {

},
"falconPackageHash": "7c89131fc79d92cb1c75e81d407f3f50a262c991dcaac695b9f19df9"
"falconPackageHash": "ae12344b8fcfaa9d665a0c28099359307d182d81c9d054852266d3f9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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