@nuskin/ns-product-lib 2.5.0-cx24-3168.3 → 2.5.0-cx24-3168.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.5.0-cx24-3168.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3168.4...v2.5.0-cx24-3168.5) (2023-01-11)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Equinox API called for non equinox market (CX24-3168) ([61c568f](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/61c568f9696a18451e27de4918a2e8863b0233f4))
7
+
8
+ # [2.5.0-cx24-3168.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3168.3...v2.5.0-cx24-3168.4) (2023-01-11)
9
+
10
+
11
+ ### Fix
12
+
13
+ * Equinox API called for non equinox market (CX24-3168) ([96dfe5b](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/96dfe5bc36b6efd6fc538c2c966b4bae8f1dc8ca))
14
+
1
15
  # [2.5.0-cx24-3168.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3168.2...v2.5.0-cx24-3168.3) (2023-01-11)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.0-cx24-3168.3",
3
+ "version": "2.5.0-cx24-3168.5",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -4,7 +4,6 @@ const { getConfiguration } = require('@nuskin/configuration-sdk');
4
4
  const axios = require("axios");
5
5
  const contentstack = require('./contentstack/contentstack');
6
6
  const Product = require("./product");
7
- let config = {};
8
7
 
9
8
  /** @type {*} */
10
9
  const ProductData = {
@@ -18,14 +17,12 @@ const ProductData = {
18
17
  const localeMarket = `${locale}_${market}`;
19
18
 
20
19
  if (isEquinoxEnabled) {
21
- if (!config) {
22
- config = (await getConfiguration({
23
- configMapNames: ['Equinox_Markets'],
24
- country: locale.split('_')[1],
25
- environment: 'test',
26
- clientId: '735b1eb810304bba966af0891ab54053'
27
- })).Equinox_Markets;
28
- }
20
+ const config = (await getConfiguration({
21
+ configMapNames: ['Equinox_Markets'],
22
+ country: locale.split('_')[1],
23
+ environment: 'test',
24
+ clientId: '735b1eb810304bba966af0891ab54053'
25
+ })).Equinox_Markets;
29
26
 
30
27
  if (config.store_id !== null) {
31
28
  return await this.getProductFromEquinox(skus, localeMarket, config);