@increase21/simplenodejs 2.0.1 → 2.0.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.
Files changed (2) hide show
  1. package/dist/router.js +1 -1
  2. package/package.json +1 -1
package/dist/router.js CHANGED
@@ -52,7 +52,7 @@ async function route(req, res) {
52
52
  return (0, helpers_1.throwHttpError)(404, "Resource not found");
53
53
  //also add the context to the controller instance so that it can be accessed in the methods without passing it as a parameter
54
54
  controller.ctx = ctx;
55
- const descriptors = await controller[methodName](ctx, ...id);
55
+ const descriptors = await controller[methodName](...id);
56
56
  // If the controller method has already sent a response, do not proceed
57
57
  if (res.writableEnded)
58
58
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@increase21/simplenodejs",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Lightweight Node.js HTTP framework with middlewares and plugins",
5
5
  "dev": "dist/index.js",
6
6
  "bugs": "https://github.com/increase21/simplenodejs/issues",