@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.13.0-cx24-5107.15",
3
+ "version": "2.13.0-cx24-5107.16",
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": {
@@ -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
  /**