@nuskin/ns-product-lib 1.5.0-cx24-1810.9 → 1.5.0-cx24-1810.10

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
+ # [1.5.0-cx24-1810.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.9...v1.5.0-cx24-1810.10) (2022-07-27)
2
+
3
+
4
+ ### New
5
+
6
+ * Get Product Data from Equinox (#CX24-1810) ([2c60ab4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2c60ab4155d776df57a5e21476a8c22ee3c8876b)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
7
+
1
8
  # [1.5.0-cx24-1810.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.8...v1.5.0-cx24-1810.9) (2022-07-27)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "1.5.0-cx24-1810.9",
3
+ "version": "1.5.0-cx24-1810.10",
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": {
@@ -9,10 +9,9 @@ const ProductData = {
9
9
  let filter = '{"filters":[{"field":"index_key_skuId","operation":"IN","value":"' +
10
10
  skus.toString() +
11
11
  '"}]}'
12
- filter = encodeURIComponent(filter)
13
12
  let productDataResponse = await axios.request({
14
13
  method: 'get',
15
- url: 'https://nuglobalbasev1-qa1.skavacommerce.com/orchestrationservices/storefront/catalogs/search/',
14
+ url: 'https://storefront.api.wts.nuskin.io/orchestrationservices/storefront/catalogs/search/',
16
15
  params: {
17
16
  storeId: '406',
18
17
  filter: filter
@@ -20,7 +19,7 @@ const ProductData = {
20
19
  });
21
20
  productResponse = this.eqProductMapper(productDataResponse.data.product)
22
21
 
23
-
22
+
24
23
  } else {
25
24
  let lambdaUrl = `${marketConfig.awsUrl}/productData/v1`;
26
25
  const payload = {
@@ -154,7 +153,7 @@ const ProductData = {
154
153
  };
155
154
  });
156
155
  let products = [];
157
-
156
+
158
157
  products.push(prodArr);
159
158
  let data = {
160
159
  products: products
@@ -176,4 +175,4 @@ const ProductData = {
176
175
  }
177
176
  }
178
177
 
179
- module.exports = ProductData;
178
+ module.exports = ProductData;