@nuskin/cs-product-lib 1.4.5 → 1.4.6-mm-123.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/helpers.js +2 -2
package/package.json
CHANGED
package/src/helpers.js
CHANGED
|
@@ -131,7 +131,7 @@ function mapSubscriptions(subscriptions) {
|
|
|
131
131
|
/* istanbul ignore next */
|
|
132
132
|
function mapProductImages(parent) {
|
|
133
133
|
if ((parent?.product_images_bynder || []).length) {
|
|
134
|
-
return parent?.product_images_bynder.map((img) => mapImage(img, true,
|
|
134
|
+
return parent?.product_images_bynder.map((img) => mapImage(img, true, 930, 930, 95, null, parent?.useDAT))
|
|
135
135
|
}
|
|
136
136
|
if ((parent?.product_images || []).length) {
|
|
137
137
|
return parent?.product_images.map((img) => mapImage(img))
|
|
@@ -516,7 +516,7 @@ function handleDerivativesImage(image, useWebp, width, height, quality, transfor
|
|
|
516
516
|
}
|
|
517
517
|
if (derivatives.transformBaseUrl && useDAT) {
|
|
518
518
|
const imgURL = buildTransformUrl(derivatives.transformBaseUrl, useWebp, width, height, quality, transform)
|
|
519
|
-
const thumbnail = `${derivatives.transformBaseUrl}${useWebp ? '.webp' : ''}?quality=
|
|
519
|
+
const thumbnail = `${derivatives.transformBaseUrl}${useWebp ? '.webp' : ''}?quality=95&io=transform:fill,width:250,height:250`
|
|
520
520
|
return {
|
|
521
521
|
url: imgURL,
|
|
522
522
|
alt: getImageAlt(image),
|