dbm-graph-api 1.1.36 → 1.1.37

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": "dbm-graph-api",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@aws-sdk/client-s3": "^3.741.0",
15
15
  "@aws-sdk/s3-request-presigner": "^3.741.0",
16
- "dbm": "^1.2.5",
16
+ "dbm": "^1.2.6",
17
17
  "mime": "^4.0.6",
18
18
  "sharp": "^0.33.5",
19
19
  "ws": "^8.18.0"
@@ -123,12 +123,21 @@ export default class WebSocketConnection extends Dbm.core.BaseObject {
123
123
 
124
124
  let dataFunctionItem = Dbm.getInstance().repository.getItemIfExists("graphApi/data/" + data['functionName']);
125
125
 
126
+
126
127
  let returnData = null;
127
- if(dataFunctionItem) {
128
- returnData = await dataFunctionItem.controller.getData(data['data'], encodeSession);
128
+ let logs = [];
129
+
130
+ try {
131
+ if(dataFunctionItem) {
132
+ returnData = await dataFunctionItem.controller.getData(data['data'], encodeSession);
133
+ }
134
+ }
135
+ catch(theError) {
136
+ logs.push(theError.message);
137
+ console.error(theError);
129
138
  }
130
139
 
131
- this._sendData({"type": "data/response", "data": returnData, "requestId": data["requestId"]});
140
+ this._sendData({"type": "data/response", "data": returnData, "requestId": data["requestId"], "logs": logs});
132
141
  }
133
142
  break;
134
143
  case "action":