wingbot 3.52.5 → 3.52.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Plugins.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.52.5",
3
+ "version": "3.52.6",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Plugins.js CHANGED
@@ -76,6 +76,7 @@ class Plugins {
76
76
  * @param {object} [context]
77
77
  * @param {boolean} [context.isLastIndex]
78
78
  * @param {Router} [context.router]
79
+ * @param {object} [context.configuration]
79
80
  * @example
80
81
  *
81
82
  * const { Router } = require('wingbot');
@@ -99,7 +100,7 @@ class Plugins {
99
100
  name,
100
101
  paramsData = {},
101
102
  items = new Map(),
102
- context = { isLastIndex: true }
103
+ context = { isLastIndex: true, configuration: {} }
103
104
  ) {
104
105
  let useItems = items;
105
106
 
@@ -119,7 +120,7 @@ class Plugins {
119
120
  .map(([k, e]) => ({ [k]: e }))
120
121
  .reduce(Object.assign, {});
121
122
 
122
- const customFn = this.getPluginFactory(name, cleanParams);
123
+ const customFn = this.getPluginFactory(name, cleanParams, context.configuration);
123
124
  if (typeof customFn === 'object') {
124
125
  // this is an attached router
125
126