@vida-global/apps-tools 1.0.3 → 1.0.5

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.
@@ -22,8 +22,8 @@ class VaderApiClient extends HttpClient {
22
22
  functionArgs,
23
23
  };
24
24
 
25
- const response = await this.post(endpoint, userContext, body);
26
- return response.data;
25
+ const { data } = await this.post(endpoint, userContext, body);
26
+ return data.data;
27
27
  }
28
28
 
29
29
 
@@ -56,8 +56,8 @@ class VaderApiClient extends HttpClient {
56
56
  };
57
57
 
58
58
  try {
59
- const response = await this.post(endpoint, userContext, body);
60
- return response.data;
59
+ const { data } = await this.post(endpoint, userContext, body);
60
+ return data.data;
61
61
  } catch(err) {
62
62
  const appResponse = new responseCls();
63
63
  appResponse.status = "error"
@@ -73,7 +73,7 @@ class AppController extends VidaServerController {
73
73
  ***********************************************************************************************/
74
74
  async getOpenApi() {
75
75
  const specs = await this.appManager.generateOpenApiSpec();
76
- await this.render(specs);
76
+ await this.render(specs, {standardize: false});
77
77
  }
78
78
 
79
79
 
@@ -3,7 +3,7 @@ const swaggerUi = require("swagger-ui-express");
3
3
  const { VidaServer, logger } = require('@vida-global/core');
4
4
 
5
5
 
6
- class AppServer extends VidaServer{
6
+ class AppServer extends VidaServer {
7
7
  #appManager;
8
8
  #apps;
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vida-global/apps-tools",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Classes for creating vida apps",
5
5
  "author": "",
6
6
  "license": "ISC",