@digipair/skill-chatbot 0.35.0 → 0.36.0

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/index.cjs.js CHANGED
@@ -25,7 +25,7 @@ let ChatbotService = class ChatbotService {
25
25
  sources,
26
26
  logs,
27
27
  boost: boost ? _extends({}, boost, {
28
- inputs: await Promise.all(boost.inputs.map((settings)=>engine.preparePinsSettings(settings, context)))
28
+ inputs: await Promise.all((boost.inputs || []).map((settings)=>engine.preparePinsSettings(settings, context)))
29
29
  }) : boost,
30
30
  parent_conversation,
31
31
  parent_history,
package/index.esm.js CHANGED
@@ -21,7 +21,7 @@ let ChatbotService = class ChatbotService {
21
21
  sources,
22
22
  logs,
23
23
  boost: boost ? _extends({}, boost, {
24
- inputs: await Promise.all(boost.inputs.map((settings)=>preparePinsSettings(settings, context)))
24
+ inputs: await Promise.all((boost.inputs || []).map((settings)=>preparePinsSettings(settings, context)))
25
25
  }) : boost,
26
26
  parent_conversation,
27
27
  parent_history,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-chatbot",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",