@nuskin/ns-product-lib 2.13.0-cx24-5107.15 → 2.13.0-cx24-5107.16
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/graph-ql/product.js +2 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.13.0-cx24-5107.16](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.15...v2.13.0-cx24-5107.16) (2023-10-19)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* async graphql ([1da1d02](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1da1d02eac113c6d57546680c5d936d2139afa7e))
|
7
|
+
|
1
8
|
# [2.13.0-cx24-5107.15](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.14...v2.13.0-cx24-5107.15) (2023-10-19)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/graph-ql/product.js
CHANGED
@@ -14,15 +14,14 @@ const defaultPayload = {
|
|
14
14
|
* @param {obj} payload
|
15
15
|
* @returns {Promise}
|
16
16
|
*/
|
17
|
-
function graphQlHttpRequest(payload, config) {
|
17
|
+
async function graphQlHttpRequest(payload, config) {
|
18
18
|
const url = config.graphqlUrl
|
19
|
-
return axios.request({
|
19
|
+
return await axios.request({
|
20
20
|
method: 'post',
|
21
21
|
url: url,
|
22
22
|
data: payload,
|
23
23
|
responseType: 'json'
|
24
24
|
});
|
25
|
-
|
26
25
|
}
|
27
26
|
|
28
27
|
/**
|