@chat21/chat21-web-widget 5.0.54 → 5.0.55

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
@@ -1,5 +1,8 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.55 in PROD
4
+ - added: preflight property to /message API body
5
+
3
6
  ### 5.0.54 in PROD
4
7
 
5
8
  ### 5.0.53-rc.8
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-web-widget",
3
3
  "author": "Tiledesk SRL",
4
- "version": "5.0.54",
4
+ "version": "5.0.55",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -60,7 +60,9 @@ export class TiledeskRequestsService {
60
60
  Authorization: token
61
61
  })
62
62
  };
63
- const body = message;
63
+ let body = message;
64
+ body['preflight'] = true
65
+
64
66
  return this.http.post(url, body, httpOptions).toPromise().then(res => {
65
67
  this.logger.log('[TILEDESK-SERVICE] - SEND MESSAGE TO A REQUEST res ', res);
66
68
  return res