@nuskin/product-components 3.3.1 → 3.3.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.3.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.3.1...v3.3.2) (2023-03-22)
2
+
3
+
4
+ ### Fix
5
+
6
+ * added config waits to a couple of more places #CX16-8408 ([63f42cb](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/63f42cb34dd7866530b9dd6c947427420e263c66)), closes [#CX16-8408](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX16-8408)
7
+
1
8
  ## [3.3.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.3.0...v3.3.1) (2023-03-21)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,6 +8,8 @@ import {
8
8
 
9
9
  import { isNullOrEmpty } from "@nuskin/ns-common-lib";
10
10
 
11
+ import { getConfiguration } from "@nuskin/configuration-sdk";
12
+
11
13
  import debounce from "lodash/debounce";
12
14
 
13
15
  const fallbackImagePath =
@@ -43,6 +45,14 @@ if (!NsProductAppService) {
43
45
  }
44
46
  },
45
47
  async mounted() {
48
+ await getConfiguration([
49
+ "Cart",
50
+ "Basic",
51
+ "Url",
52
+ "Shopping",
53
+ "ADP",
54
+ "Equinox_Markets"
55
+ ]);
46
56
  await this.setConfig();
47
57
 
48
58
  this.runConfigInterval = setInterval(async () => {
@@ -9,6 +9,7 @@ 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 { getConfiguration } from "@nuskin/configuration-sdk";
12
13
 
13
14
  class ProductDataBatch {
14
15
  constructor(id, skus) {
@@ -115,7 +116,15 @@ if (!NsProductDataService) {
115
116
  this.updateProductPricing();
116
117
  }
117
118
  },
118
- mounted() {
119
+ async mounted() {
120
+ await getConfiguration([
121
+ "Cart",
122
+ "Basic",
123
+ "Url",
124
+ "Shopping",
125
+ "ADP",
126
+ "Equinox_Markets"
127
+ ]);
119
128
  this.addListeners();
120
129
  this.setProductDataFromSession();
121
130
  },