@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 +7 -0
- package/package.json +1 -1
- package/src/productGraphQL.js +3 -2
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
package/src/productGraphQL.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
//const { getConfiguration, getCachedConfigurations } = require('@nuskin/configuration-sdk');
|
3
3
|
const axios = require("axios");
|
4
|
-
|
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
|
|