@nuskin/ns-product-lib 2.13.0-cx24-5107.2 → 2.13.0-cx24-5107.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.13.0-cx24-5107.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.2...v2.13.0-cx24-5107.3) (2023-09-28)
2
+
3
+
4
+ ### Fix
5
+
6
+ * http request ([29f5933](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/29f593301621d1daf21b124dc044cc3ca439458e))
7
+
1
8
  # [2.13.0-cx24-5107.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.1...v2.13.0-cx24-5107.2) (2023-09-28)
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.2",
3
+ "version": "2.13.0-cx24-5107.3",
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": {
@@ -15,9 +15,9 @@ const defaultPayload = {
15
15
  * @param {obj} payload
16
16
  * @returns {Promise}
17
17
  */
18
- const graphQlHttpRequest = (payload) => {
18
+ async function graphQlHttpRequest (payload) {
19
19
  const url = getGraphQlUrl();
20
- return axios.request({
20
+ return await axios.request({
21
21
  method: 'post',
22
22
  url: url,
23
23
  data: payload,