wingbot 3.41.0 → 3.41.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.41.0",
3
+ "version": "3.41.2",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,3 @@
1
-
2
1
  const { compileWithState } = require('../../src/utils');
3
2
  const { StepState, getNextStep } = require('../../src/utils/slots');
4
3
 
@@ -37,11 +36,11 @@ function slotsContinue ({
37
36
 
38
37
  const skipEntities = compileWithState(req, res, skip)
39
38
  .split(',')
40
- .map((e) => e.trim());
39
+ .map((e) => e.trim().replace(/^@/, ''));
41
40
 
42
41
  slotState = slotState.map((s) => {
43
42
  if (skipEntities.includes(s.e)) {
44
- return { ...s, s: StepState.INITIALIZED }
43
+ return { ...s, s: StepState.INITIALIZED };
45
44
  }
46
45
 
47
46
  return s.e === step.entity
@@ -449,7 +449,7 @@
449
449
  "inputs": [
450
450
  {
451
451
  "name": "skip",
452
- "label": "Skip to entity (reset entities)",
452
+ "label": "Skip back to entity (reset entities)",
453
453
  "type": "text",
454
454
  "validations": [
455
455
  { "type": "regexp", "value": "^\\s*@[a-zA-Z0-9-]+\\s*(,\\s*@[a-zA-Z0-9-]+\\s*)*$", "message": "the entity for the slot filling should be valid" }
@@ -14,9 +14,6 @@ const VAR_TYPES = {
14
14
  EXPIRES_AFTER
15
15
  };
16
16
 
17
- /**
18
- * @type {object} Helpers for `res.setState()` method
19
- */
20
17
  const vars = {
21
18
 
22
19
  /**