impaktapps-ui-builder 0.0.285 → 0.0.286

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.285",
3
+ "version": "0.0.286",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -64,24 +64,12 @@ async function executeApiEventHandler(params:handlersProps) {
64
64
  "Access-Control-Allow-Origin": "*"
65
65
  };
66
66
  const { body, headers } = await buildApiPayload(params.config, initialBody, initialHeaders, params.store, params.dynamicData, params.userValue, params.service)
67
- let response: any;
68
- const dataJSON = await fetch(params.config.path, {
69
- method: "POST",
70
- headers: {
71
- 'Content-Type': 'application/json',
72
- },
73
- body: JSON.stringify(body)
74
- })
75
- response = await dataJSON.json();
76
- // if(params.config.returnResponse){
77
- // return {response}
78
- // }
79
- // return response;
80
- // response = await params.service[params.config.method](
81
- // params.config.path,
82
- // body,
83
- // headers && { headers: headers }
84
- // );
67
+
68
+ const response = await params.service[params.config.method](
69
+ params.config.path,
70
+ body,
71
+ headers && { headers: headers }
72
+ );
85
73
  return response;
86
74
  }
87
75