wingbot 3.65.9 → 3.65.10

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": "wingbot",
3
- "version": "3.65.9",
3
+ "version": "3.65.10",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -57,7 +57,7 @@
57
57
  "compress-json": "^2.1.2",
58
58
  "deep-extend": "^0.6.0",
59
59
  "form-data": "^4.0.0",
60
- "graphql": "^15.8.0",
60
+ "graphql": "^16.8.0",
61
61
  "jsonwebtoken": "^9.0.0",
62
62
  "node-fetch": "^2.6.7",
63
63
  "path-to-regexp": "^6.2.1",
@@ -139,8 +139,16 @@ class GraphApi {
139
139
  audit
140
140
  };
141
141
 
142
- // @ts-ignore
143
- return graphql(schema, body.query, this._root, ctx, body.variables, body.operationName);
142
+ const response = await graphql({
143
+ schema,
144
+ source: body.query,
145
+ rootValue: this._root,
146
+ contextValue: ctx,
147
+ variableValues: body.variables,
148
+ operationName: body.operationName
149
+ });
150
+
151
+ return response;
144
152
  }
145
153
 
146
154
  async _schema () {