wingbot 3.68.0 → 3.68.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.68.0",
3
+ "version": "3.68.2",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
@@ -110,12 +110,12 @@ function conversationsApi (
110
110
  subscribtions
111
111
  });
112
112
  } else if (options.mapper) {
113
- mapState = (d) => mapObject({
114
- ...d,
113
+ mapState = (d) => ({
114
+ ...mapObject(d, defaultMapperFactory(options.mapper)),
115
115
  lastInteraction: d.lastInteraction || (new Date(0)),
116
116
  history,
117
117
  subscribtions
118
- }, defaultMapperFactory(options.mapper));
118
+ });
119
119
  } else {
120
120
  mapState = (d) => ({
121
121
  ...d,
@@ -58,7 +58,7 @@ class ButtonTemplate extends BaseTemplate {
58
58
  }
59
59
 
60
60
  _makeExtensionUrl (url, hasExtension) {
61
- if (hasExtension) {
61
+ if (hasExtension && !`${url}`.match(/#.+/)) {
62
62
  const hash = [
63
63
  `token=${encodeURIComponent(this.context.token)}`,
64
64
  `senderId=${encodeURIComponent(this.context.senderId)}`