@ladjs/web 17.0.6 → 17.0.9

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/index.js +1 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -226,7 +226,7 @@ class Web {
226
226
  });
227
227
 
228
228
  // override koa's undocumented error handler
229
- app.context.onerror = errorHandler();
229
+ app.context.onerror = errorHandler(this.config.cookiesKey);
230
230
 
231
231
  // adds request received hrtime and date symbols to request object
232
232
  // (which is used by Cabin internally to add `request.timestamp` to logs
@@ -357,7 +357,6 @@ class Web {
357
357
  ctx.state.ctx = {};
358
358
  ctx.state.ctx.get = ctx.get.bind(ctx);
359
359
  ctx.state.ctx.locale = ctx.locale;
360
- ctx.state.ctx.params = ctx.params;
361
360
  ctx.state.ctx.path = ctx.path;
362
361
  ctx.state.ctx.pathWithoutLocale = ctx.pathWithoutLocale;
363
362
  ctx.state.ctx.query = ctx.query;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/web",
3
3
  "description": "Web server for Lad",
4
- "version": "17.0.6",
4
+ "version": "17.0.9",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/web/issues",
@@ -31,7 +31,7 @@
31
31
  "koa": "^2.13.4",
32
32
  "koa-404-handler": "^0.1.0",
33
33
  "koa-basic-auth": "^4.0.0",
34
- "koa-better-error-handler": "^10.0.5",
34
+ "koa-better-error-handler": "^10.0.6",
35
35
  "koa-better-flash": "^0.0.4",
36
36
  "koa-better-timeout": "^0.0.6",
37
37
  "koa-bodyparser": "^4.3.0",
@@ -59,7 +59,7 @@
59
59
  "devDependencies": {
60
60
  "@commitlint/cli": "^17.0.3",
61
61
  "@commitlint/config-conventional": "^17.0.3",
62
- "@ladjs/passport": "^5.0.2",
62
+ "@ladjs/passport": "^5.0.3",
63
63
  "ava": "^4.3.0",
64
64
  "cross-env": "^7.0.3",
65
65
  "eslint": "^8.19.0",