flow_chat 0.5.1 → 0.5.2
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.
- checksums.yaml +4 -4
- data/lib/flow_chat/base_processor.rb +1 -1
- data/lib/flow_chat/simulator/views/simulator.html.erb +4 -2
- data/lib/flow_chat/version.rb +1 -1
- data/lib/flow_chat.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a04a5ad026a67e7ce71aa0a22a3b5522da80cf0da4552280853154e91bc1a27
|
4
|
+
data.tar.gz: 515908f7a643eb53dd7ce542aa7005f54eb1127b640b4d3b834f1891137a2d16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 515db13100618aa0150672a08c960ef08c6661171e926694580c91d3a9d5dc1decf2b6698ae6beca128ae24b3ee314779e82fec3f37a16b97aa5a3e96157b04a
|
7
|
+
data.tar.gz: a1846f20afce50943626bb5c0c617e4e7d5a6fa445d9cd0be4fdfaf5438ab29b3201b6e4c3e90cd9d73feef16bac2607017f0fa8cea5a6b472feb5213a25227a
|
@@ -4,7 +4,7 @@ module FlowChat
|
|
4
4
|
class BaseProcessor
|
5
5
|
attr_reader :middleware
|
6
6
|
|
7
|
-
def initialize(controller, enable_simulator:
|
7
|
+
def initialize(controller, enable_simulator: nil)
|
8
8
|
@context = FlowChat::Context.new
|
9
9
|
@context["controller"] = controller
|
10
10
|
@context["enable_simulator"] = enable_simulator.nil? ? (defined?(Rails) && Rails.env.local?) : enable_simulator
|
@@ -1331,7 +1331,8 @@
|
|
1331
1331
|
const response = await fetch(config.endpoint, {
|
1332
1332
|
method: 'POST',
|
1333
1333
|
headers: { 'Content-Type': 'application/json' },
|
1334
|
-
body: JSON.stringify(requestData)
|
1334
|
+
body: JSON.stringify(requestData),
|
1335
|
+
credentials: 'include'
|
1335
1336
|
})
|
1336
1337
|
|
1337
1338
|
const data = await response.json()
|
@@ -1426,7 +1427,8 @@
|
|
1426
1427
|
const response = await fetch(config.endpoint, {
|
1427
1428
|
method: 'POST',
|
1428
1429
|
headers: { 'Content-Type': 'application/json' },
|
1429
|
-
body: JSON.stringify(webhookData)
|
1430
|
+
body: JSON.stringify(webhookData),
|
1431
|
+
credentials: 'include'
|
1430
1432
|
})
|
1431
1433
|
|
1432
1434
|
// Read the response body once and store it
|
data/lib/flow_chat/version.rb
CHANGED
data/lib/flow_chat.rb
CHANGED