@digipair/skill-web-chatbot 0.33.15 → 0.33.16

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.cjs2.js CHANGED
@@ -58705,9 +58705,13 @@ class ChatbotElement extends s$3 {
58705
58705
  async loadHistory() {
58706
58706
  const userId = this.userId;
58707
58707
  const reasoning = 'history';
58708
- const messages = await this.executeScene(reasoning, {
58708
+ const messages = (await this.executeScene(reasoning, {
58709
58709
  userId
58710
- });
58710
+ })).map((message)=>_extends({}, message, {
58711
+ boost: message.boost ? _extends({}, message.boost, {
58712
+ checkUrl: message.boost.url ? new RegExp(message.boost.url) : null
58713
+ }) : null
58714
+ }));
58711
58715
  if (messages.length > 0) {
58712
58716
  this.messages = messages;
58713
58717
  }
@@ -59127,9 +59131,13 @@ class DigipairFullElement extends s$3 {
59127
59131
  async loadHistory() {
59128
59132
  const userId = this.userId;
59129
59133
  const reasoning = 'history';
59130
- const messages = await this.executeScene(reasoning, {
59134
+ const messages = (await this.executeScene(reasoning, {
59131
59135
  userId
59132
- });
59136
+ })).map((message)=>_extends({}, message, {
59137
+ boost: message.boost ? _extends({}, message.boost, {
59138
+ checkUrl: message.boost.url ? new RegExp(message.boost.url) : null
59139
+ }) : null
59140
+ }));
59133
59141
  if (messages.length > 0) {
59134
59142
  this.messages = messages;
59135
59143
  }
package/index.esm2.js CHANGED
@@ -36802,14 +36802,14 @@ function indent(str, spaces) {
36802
36802
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
36803
36803
  // match is required
36804
36804
  if (!match) {
36805
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
36805
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
36806
36806
  v: nextMatch1
36807
36807
  };
36808
36808
  }
36809
36809
  var token = match.token, offset = match.offset;
36810
36810
  i1 += offset;
36811
36811
  if (token === " ") {
36812
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
36812
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
36813
36813
  }
36814
36814
  tokens1 = _to_consumable_array$c(tokens1).concat([
36815
36815
  token
@@ -36828,7 +36828,7 @@ function indent(str, spaces) {
36828
36828
  if (contextKeys.some(function(el) {
36829
36829
  return el.startsWith(name);
36830
36830
  })) {
36831
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
36831
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
36832
36832
  }
36833
36833
  if (dateTimeIdentifiers.some(function(el) {
36834
36834
  return el === name;
@@ -36847,9 +36847,9 @@ function indent(str, spaces) {
36847
36847
  if (dateTimeIdentifiers.some(function(el) {
36848
36848
  return el.startsWith(name);
36849
36849
  })) {
36850
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
36850
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
36851
36851
  }
36852
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
36852
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
36853
36853
  v: nextMatch1
36854
36854
  };
36855
36855
  };
@@ -58685,9 +58685,13 @@ class ChatbotElement extends s$3 {
58685
58685
  async loadHistory() {
58686
58686
  const userId = this.userId;
58687
58687
  const reasoning = 'history';
58688
- const messages = await this.executeScene(reasoning, {
58688
+ const messages = (await this.executeScene(reasoning, {
58689
58689
  userId
58690
- });
58690
+ })).map((message)=>_extends({}, message, {
58691
+ boost: message.boost ? _extends({}, message.boost, {
58692
+ checkUrl: message.boost.url ? new RegExp(message.boost.url) : null
58693
+ }) : null
58694
+ }));
58691
58695
  if (messages.length > 0) {
58692
58696
  this.messages = messages;
58693
58697
  }
@@ -59107,9 +59111,13 @@ class DigipairFullElement extends s$3 {
59107
59111
  async loadHistory() {
59108
59112
  const userId = this.userId;
59109
59113
  const reasoning = 'history';
59110
- const messages = await this.executeScene(reasoning, {
59114
+ const messages = (await this.executeScene(reasoning, {
59111
59115
  userId
59112
- });
59116
+ })).map((message)=>_extends({}, message, {
59117
+ boost: message.boost ? _extends({}, message.boost, {
59118
+ checkUrl: message.boost.url ? new RegExp(message.boost.url) : null
59119
+ }) : null
59120
+ }));
59113
59121
  if (messages.length > 0) {
59114
59122
  this.messages = messages;
59115
59123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.33.15",
3
+ "version": "0.33.16",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",