@tiledesk/tiledesk-tybot-connector 0.2.9 → 0.2.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/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ ### 0.2.10 - online pre
9
+ - WebRequest: "body" renamed in "jsonBody"
10
+
8
11
  ### 0.2.9 - online
9
12
  - restored logs
10
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -55,15 +55,15 @@ class DirWebRequestV2 {
55
55
  }
56
56
  }
57
57
  let json = null;
58
- if (action.body && action.bodyType == "json") {
59
- if (this.log) {console.log("action.body is:", action.body);}
60
- let body = filler.fill(action.body, requestVariables);
58
+ if (action.jsonBody && action.bodyType == "json") {
59
+ if (this.log) {console.log("action.body is:", action.jsonBody);}
60
+ let jsonBody = filler.fill(action.jsonBody, requestVariables);
61
61
  try {
62
- json = JSON.parse(body);
62
+ json = JSON.parse(jsonBody);
63
63
  if (this.log) {console.log("json is:", json);}
64
64
  }
65
65
  catch(err) {
66
- console.error("Error parsing webRequest jsonBody:", body);
66
+ console.error("Error parsing webRequest jsonBody:", jsonBody);
67
67
  }
68
68
  }
69
69