@nuskin/ns-product-lib 2.5.0-cx24-2931.1.1 → 2.5.0-cx24-2931.1.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [2.5.0-cx24-2931.1.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.2...v2.5.0-cx24-2931.1.3) (2022-12-14)
2
+
3
+
4
+ ### Update
5
+
6
+ * use configuration-sdk to pull the configurations (CX24-2931) ([0f4bf7d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/0f4bf7dfb6e1c3c6d6b0c00fd08cca3c1920cbec))
7
+
8
+ # [2.5.0-cx24-2931.1.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.1...v2.5.0-cx24-2931.1.2) (2022-12-14)
9
+
10
+
11
+ ### Update
12
+
13
+ * use configuration-sdk to pull the configurations (CX24-2931) ([73acfe8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/73acfe8c8aac29e11367f329889956b857460d72))
14
+ * use configuration-sdk to pull the configurations (CX24-2931) ([65c81f5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/65c81f5486712690f9cda8faf4e2264238009e82))
15
+
1
16
  # [2.5.0-cx24-2931.1.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-CX24.3.1...v2.5.0-cx24-2931.1.1) (2022-12-13)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.0-cx24-2931.1.1",
3
+ "version": "2.5.0-cx24-2931.1.3",
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": {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const { getPartialConfig } = require('@nuskin/configuration-sdk');
2
+ const { getConfiguration } = require('@nuskin/configuration-sdk');
3
3
  // import { ConfigService } from '@nuskin/ns-util';
4
4
  const axios = require("axios");
5
5
  const contentstack = require('./contentstack/contentstack');
@@ -17,21 +17,16 @@ const ProductData = {
17
17
  const localeMarket = `${locale}_${market}`;
18
18
 
19
19
  if (isEquinoxEnabled) {
20
- const { Dev_Markets, Kong_Subdomain, store_id } = (
21
- await getPartialConfig({
22
- queryFields: {
23
- Equinox_Markets: ["Dev_Markets", "Kong_Subdomain", "store_id"]
24
- },
25
- country: market,
26
- environment: 'test',
27
- clientId: '735b1eb810304bba966af0891ab54053'
28
- // clientId: ConfigService.getMarketConfig().checkout.clientId
29
- })
30
- ).Equinox_Markets;
31
- console.log(Dev_Markets, Kong_Subdomain, store_id);
32
-
33
- if (store_id !== null) {
34
- return await this.getProductFromEquinox(skus, localeMarket, store_id);
20
+ const config = await getConfiguration({
21
+ configMapNames: ['Equinox_Markets'],
22
+ country: market,
23
+ environment: 'test',
24
+ clientId: '735b1eb810304bba966af0891ab54053'
25
+ });
26
+ console.log(config);
27
+
28
+ if (config !== null) {
29
+ // return await this.getProductFromEquinox(skus, localeMarket, store_id);
35
30
  }
36
31
  }
37
32