@nuskin/ns-product-lib 2.11.0-cx24-5092.31 → 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 +14 -0
- package/package.json +1 -1
- package/src/productGraphQL.js +5 -2
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
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
|
+
|
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)
|
9
|
+
|
10
|
+
|
11
|
+
### New
|
12
|
+
|
13
|
+
* Moving from AEM to CS for EQ markets ([23713af](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/23713afd29ced90c1e02962592c85127f551819f))
|
14
|
+
|
1
15
|
# [2.11.0-cx24-5092.31](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.30...v2.11.0-cx24-5092.31) (2023-09-18)
|
2
16
|
|
3
17
|
|
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
|
|
@@ -109,6 +110,8 @@ const ProductGraphQL = {
|
|
109
110
|
console.log(promotions)
|
110
111
|
} else if (typeof response.bundle === 'object' && response.bundle.id) {
|
111
112
|
res = await this.mapProductBundle(response, market.locale, config)
|
113
|
+
} else {
|
114
|
+
res = {}
|
112
115
|
}
|
113
116
|
|
114
117
|
|