@nuskin/product-components 3.17.7 → 3.17.9
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/mixins/NsProductMixin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/product-components",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.9",
|
|
4
4
|
"description": "Nu Skin Product Components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@nuskin/ns-icon": "^2.12.0",
|
|
31
31
|
"@nuskin/ns-loyalty-web": "1.5.6",
|
|
32
32
|
"@nuskin/ns-product-lib": "2.17.5",
|
|
33
|
-
"@nuskin/ns-shop": "7.0.
|
|
33
|
+
"@nuskin/ns-shop": "7.0.8",
|
|
34
34
|
"@nuskin/product-recommendation": "2.0.1",
|
|
35
35
|
"axios": "1.6.7",
|
|
36
36
|
"lodash": "4.17.21",
|
|
@@ -9,7 +9,10 @@ import { isNullOrEmpty } from "@nuskin/ns-common-lib";
|
|
|
9
9
|
import { ProductDataService } from "@nuskin/ns-product";
|
|
10
10
|
import { Product, PriceType } from "@nuskin/ns-product-lib";
|
|
11
11
|
import { equinoxLocalStorage } from "@nuskin/ns-util";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
getConfiguration,
|
|
14
|
+
getCachedConfiguration
|
|
15
|
+
} from "@nuskin/configuration-sdk";
|
|
13
16
|
|
|
14
17
|
class ProductDataBatch {
|
|
15
18
|
constructor(id, skus) {
|
|
@@ -269,9 +272,7 @@ if (!NsProductDataService) {
|
|
|
269
272
|
return;
|
|
270
273
|
}
|
|
271
274
|
|
|
272
|
-
const equinoxMarketConfig = (
|
|
273
|
-
await getConfiguration(["Equinox_Markets"])
|
|
274
|
-
).Equinox_Markets;
|
|
275
|
+
const equinoxMarketConfig = getCachedConfiguration("Equinox_Markets");
|
|
275
276
|
|
|
276
277
|
// product data response has products
|
|
277
278
|
if (productData.count && productData.products.length) {
|
|
@@ -279,7 +280,7 @@ if (!NsProductDataService) {
|
|
|
279
280
|
for (const product of productData.products) {
|
|
280
281
|
// do a last quick check to make sure we don't add duplicate products
|
|
281
282
|
product.setPriceAndPvFromType(this.getPriceType(), null, {
|
|
282
|
-
isEqPromotion: equinoxMarketConfig.
|
|
283
|
+
isEqPromotion: equinoxMarketConfig.MySite_graphql_active
|
|
283
284
|
});
|
|
284
285
|
this.products.push(product);
|
|
285
286
|
this.$emit("product-changed", product);
|