@rvoh/psychic 1.1.0 → 1.1.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/CHANGELOG.md CHANGED
@@ -35,3 +35,7 @@ r.get('helloworld', (req, res, next) => {
35
35
  res.json({ hello: 'world' })
36
36
  })
37
37
  ```
38
+
39
+ ## 1.1.1
40
+
41
+ Fix route printing regression causing route printouts to show the path instead of the action
@@ -31,7 +31,7 @@ function buildExpressions(routes) {
31
31
  const beginningOfExpression = `${route.httpMethod.toUpperCase()}${' '.repeat(numMethodSpaces)}${formattedPath}`;
32
32
  const controllerRouteConf = route;
33
33
  const endOfExpression = controllerRouteConf.controller
34
- ? controllerRouteConf.controller.controllerActionPath(formattedPath)
34
+ ? controllerRouteConf.controller.controllerActionPath(controllerRouteConf.action)
35
35
  : 'middleware';
36
36
  return [beginningOfExpression, endOfExpression];
37
37
  });
@@ -25,7 +25,7 @@ function buildExpressions(routes) {
25
25
  const beginningOfExpression = `${route.httpMethod.toUpperCase()}${' '.repeat(numMethodSpaces)}${formattedPath}`;
26
26
  const controllerRouteConf = route;
27
27
  const endOfExpression = controllerRouteConf.controller
28
- ? controllerRouteConf.controller.controllerActionPath(formattedPath)
28
+ ? controllerRouteConf.controller.controllerActionPath(controllerRouteConf.action)
29
29
  : 'middleware';
30
30
  return [beginningOfExpression, endOfExpression];
31
31
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic",
4
4
  "description": "Typescript web framework",
5
- "version": "1.1.0",
5
+ "version": "1.1.1",
6
6
  "author": "RVOHealth",
7
7
  "repository": {
8
8
  "type": "git",