@nuskin/ns-product-lib 2.11.0-cx24-5092.32 → 2.11.0-cx24-5092.33

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.11.0-cx24-5092.33](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.32...v2.11.0-cx24-5092.33) (2023-09-19)
2
+
3
+
4
+ ### New
5
+
6
+ * Moving from AEM to CS for EQ markets ([48df449](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/48df44948eced5679da2d0d268d0c628b620b30a))
7
+
1
8
  # [2.11.0-cx24-5092.32](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.31...v2.11.0-cx24-5092.32) (2023-09-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.11.0-cx24-5092.32",
3
+ "version": "2.11.0-cx24-5092.33",
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,9 +1,10 @@
1
1
  "use strict";
2
2
  //const { getConfiguration, getCachedConfigurations } = require('@nuskin/configuration-sdk');
3
3
  const axios = require("axios");
4
- //const Product = require("./product");
4
+ const Product = require("./product");
5
5
  const getProductGql = require('./graphQl/query');
6
6
 
7
+
7
8
  const ProductStatus = require("./models/productStatus");
8
9
  const { getEnvironmentFromUrl } = require('@nuskin/ns-common-lib');
9
10
 
@@ -48,7 +49,7 @@ const ProductGraphQL = {
48
49
 
49
50
  let products = [];
50
51
  let mappedResponse = await this.mapResponseToProduct(response.data.data.productById, market, locale, config)
51
- products.push(mappedResponse)
52
+ products.push(new Product(mappedResponse))
52
53
 
53
54
 
54
55