@nuskin/ns-product-lib 2.6.1-cx24-337701.9 → 2.6.1-cx24-337701.11
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/src/productData.js +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## [2.6.1-cx24-337701.11](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.10...v2.6.1-cx24-337701.11) (2023-03-20)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* The variant drop down label ([de58922](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/de589221aee054cbfb765117a44cd2fca4575468))
|
7
|
+
|
8
|
+
## [2.6.1-cx24-337701.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.9...v2.6.1-cx24-337701.10) (2023-03-20)
|
9
|
+
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* The variant drop down label ([a93900f](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a93900f43e880b52383ea22df8d496f97be21535))
|
14
|
+
* The variant drop down label ([20bc315](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/20bc315ba14213d5e18101c9016d3d07da14843a))
|
15
|
+
* The variant drop down label ([8bb8f1c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/8bb8f1c11626645d2cd4ca1a4db29f75b99dff7b))
|
16
|
+
|
1
17
|
## [2.6.1-cx24-337701.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.8...v2.6.1-cx24-337701.9) (2023-03-20)
|
2
18
|
|
3
19
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -356,6 +356,7 @@ const ProductData = {
|
|
356
356
|
|
357
357
|
for (const productData of productDataResponse) {
|
358
358
|
let variants = {};
|
359
|
+
|
359
360
|
let product = (productData.type && productData.type === "kit") ? productData : productData.sku[count];
|
360
361
|
let imageURL = product.properties.imageURL;
|
361
362
|
const regex = /\d+\.\d+/
|
@@ -367,13 +368,12 @@ const ProductData = {
|
|
367
368
|
thumbnailImage = imageURL.replace(regex, '40.40')
|
368
369
|
}
|
369
370
|
|
370
|
-
if (
|
371
|
+
if (productData.sku && productData.sku.length > 1) {
|
371
372
|
// exclude base product from variants
|
372
|
-
|
373
|
+
productData.sku.filter(v => v.identifier.substring(2, 4) !== "55").map(variant => {
|
373
374
|
variants[variant.identifier] = this.eqProductVariantMapper(variant);
|
374
375
|
return variant;
|
375
376
|
});
|
376
|
-
|
377
377
|
}
|
378
378
|
|
379
379
|
|