@ladjs/web 16.0.3 → 16.0.4

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 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -428,6 +428,7 @@ class Web {
428
428
 
429
429
  try {
430
430
  await csrf(ctx, next);
431
+ ctx.state.csrf = ctx.csrf;
431
432
  } catch (err) {
432
433
  ctx.logger.error(err);
433
434
  let error = err;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/web",
3
3
  "description": "Web server for Lad",
4
- "version": "16.0.3",
4
+ "version": "16.0.4",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/web/issues",
@@ -20,7 +20,7 @@
20
20
  "@ladjs/koa-simple-ratelimit": "^3.0.0",
21
21
  "@ladjs/redis": "^1.0.7",
22
22
  "@ladjs/shared-config": "^7.0.3",
23
- "@ladjs/state-helper": "^2.0.1",
23
+ "@ladjs/state-helper": "^2.0.2",
24
24
  "@ladjs/store-ip-address": "^0.0.7",
25
25
  "boolean": "^3.2.0",
26
26
  "cabin": "^9.1.2",