wingbot 3.65.0 → 3.65.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.65.0",
3
+ "version": "3.65.1",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -50,7 +50,8 @@ function chatgptPlugin (params, configuration = {}) {
50
50
  const continueConfig = params.continueConfig || [];
51
51
  const lang = `${res.newState.lang || req.state.lang || 'default'}`.trim().toLocaleLowerCase();
52
52
  const continueReply = continueConfig.find((c) => `${c.lang}`.trim().toLowerCase() === lang)
53
- || continueConfig.find((c) => `${c.lang}`.trim().toLowerCase() === 'default');
53
+ || continueConfig.find((c) => ['default', '']
54
+ .includes(`${c.lang || ''}`.trim().toLowerCase()));
54
55
 
55
56
  let body;
56
57
 
@@ -585,10 +585,6 @@
585
585
  "label": "Continue quick reply",
586
586
  "keyPropertyName": "lang",
587
587
  "columns": [
588
- {
589
- "name": "lang",
590
- "label": "Language"
591
- },
592
588
  {
593
589
  "name": "title",
594
590
  "label": "Quick Reply"
@@ -598,7 +594,7 @@
598
594
  {
599
595
  "type": "text",
600
596
  "name": "lang",
601
- "label": "Language (or 'default')"
597
+ "label": "Language (optional)"
602
598
  },
603
599
  {
604
600
  "type": "text",
package/src/Tester.js CHANGED
@@ -4,6 +4,7 @@
4
4
  'use strict';
5
5
 
6
6
  const assert = require('assert');
7
+ const { inspect } = require('util');
7
8
  const deepExtend = require('deep-extend');
8
9
  const Processor = require('./Processor');
9
10
  const Request = require('./Request');
@@ -597,7 +598,12 @@ class Tester {
597
598
  '\n===== actions =====\n',
598
599
  this._actionsDebug(true),
599
600
  '\n---- responses ----\n',
600
- this.responses.map(({ messaging_type: m, recipient, ...o }) => o),
601
+ inspect(
602
+ this.responses.map(({ messaging_type: m, recipient, ...o }) => o),
603
+ false,
604
+ null,
605
+ true
606
+ ),
601
607
  '\n------ state ------\n',
602
608
  Object.fromEntries(
603
609
  Object.entries(this.getState().state)