@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
package/package.json
CHANGED
|
@@ -55,15 +55,15 @@ class DirWebRequestV2 {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
let json = null;
|
|
58
|
-
if (action.
|
|
59
|
-
if (this.log) {console.log("action.body is:", action.
|
|
60
|
-
let
|
|
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(
|
|
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:",
|
|
66
|
+
console.error("Error parsing webRequest jsonBody:", jsonBody);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|