wingbot 3.57.0 → 3.57.1

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.57.0",
3
+ "version": "3.57.1",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,18 +19,15 @@ function slotsRegister ({
19
19
  doneAction,
20
20
  intents = ''
21
21
  }) {
22
-
23
22
  const useIntents = intents.split(',')
24
23
  .map((i) => i.trim());
25
24
 
26
25
  /** @type {Router<SlotBotState>} */
27
26
  const bot = new Router();
28
27
 
29
- const setEntities = [];
30
-
31
28
  /** @type {SlotsResolver} */
32
29
  const handler = async (req, res, postBack) => {
33
- // offer rooms or (does'nt matter)
30
+ const setEntities = [];
34
31
 
35
32
  /** @type {SlotState[]} */
36
33
  const slotState = steps.map((step) => {
@@ -80,7 +77,7 @@ function slotsRegister ({
80
77
 
81
78
  res.setState({
82
79
  _slotState: slotState,
83
- _slotSteps: steps,
80
+ _slotSteps: steps.slice(),
84
81
  _slotDone: doneAction,
85
82
  ...setStateEntities
86
83
  });