wingbot 3.31.4 → 3.31.5-alpha.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.31.4",
3
+ "version": "3.31.5-alpha.1",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Router.js CHANGED
@@ -260,7 +260,7 @@ class Router extends ReducerWrapper {
260
260
  }
261
261
 
262
262
  // used as protected method
263
- async processReducers (reducers, req, res, postBack, path, action, doNotTrack = false) {
263
+ async processReducers (reducers, req, res, postBack, action, doNotTrack = false) {
264
264
  const routeToReduce = {
265
265
  reducers,
266
266
  path: res.routePath
package/src/RouterWrap.js CHANGED
@@ -48,8 +48,6 @@ class RouterWrap extends EventEmitter {
48
48
 
49
49
  const { items, router, params } = this;
50
50
 
51
- const { path, routePath } = res;
52
-
53
51
  // attach params
54
52
  req.params = params;
55
53
 
@@ -62,15 +60,9 @@ class RouterWrap extends EventEmitter {
62
60
  return true;
63
61
  }
64
62
 
65
- const { path: runPath, routePath: runRoutePath } = res;
66
-
67
- res.setPath(path, routePath);
68
-
69
63
  const reducers = items.get(codeBlockName);
70
64
  const result = await router
71
- .processReducers(reducers, req, res, postBack, path, useAction, true);
72
-
73
- res.setPath(runPath, runRoutePath);
65
+ .processReducers(reducers, req, res, postBack, useAction, true);
74
66
 
75
67
  return result;
76
68
  }
@@ -41,7 +41,7 @@ function wrapPluginFunction (
41
41
  return true;
42
42
  }
43
43
  const reducers = preprocessedItems.get(codeBlockName);
44
- return router.processReducers(reducers, req, res, postBack, path, action, true);
44
+ return router.processReducers(reducers, req, res, postBack, action, true);
45
45
  }
46
46
  });
47
47