wingbot 3.69.1 → 3.69.3

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.69.1",
3
+ "version": "3.69.3",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
@@ -10,7 +10,8 @@ const api = require('./api');
10
10
  const customFn = require('../utils/customFn');
11
11
  const customCondition = require('../utils/customCondition');
12
12
 
13
- const DEFAULT_LIMIT = 20;
13
+ const DEFAULT_LIMIT = 400;
14
+ const DEFAULT_SEND_LIMIT = 20;
14
15
  const DAY = 86400000;
15
16
  const WINDOW_24_HOURS = DAY; // 24 hours
16
17
  const REMOVED_CAMPAIGN = '<removed campaign>';
@@ -152,7 +153,7 @@ class Notifications extends EventEmitter {
152
153
  this.limit = DEFAULT_LIMIT;
153
154
 
154
155
  /** @type {number} */
155
- this.sendLimit = DEFAULT_LIMIT;
156
+ this.sendLimit = DEFAULT_SEND_LIMIT;
156
157
 
157
158
  this._default24Clearance = options.default24Clearance || DEFAULT_24_CLEARANCE;
158
159
  this._allAudienceTag = typeof options.allAudienceTag !== 'undefined'
@@ -162,6 +163,7 @@ class Notifications extends EventEmitter {
162
163
  // ensure unique timestamps for messages
163
164
  this._lts = new Map();
164
165
 
166
+ this._preprocessSubscribe = options.preprocessSubscribe;
165
167
  this._preprocessSubscribers = options.preprocessSubscribers;
166
168
  this._preprocessSubscriptions = options.preprocessSubscriptions;
167
169
  }
@@ -177,7 +179,8 @@ class Notifications extends EventEmitter {
177
179
  api (acl = null) {
178
180
  const options = {
179
181
  preprocessSubscribers: this._preprocessSubscribers,
180
- preprocessSubscriptions: this._preprocessSubscriptions
182
+ preprocessSubscriptions: this._preprocessSubscriptions,
183
+ preprocessSubscribe: this._preprocessSubscribe
181
184
  };
182
185
  return api(this._storage, this, acl, options);
183
186
  }