@ladjs/web 16.0.0 → 16.0.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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -358,7 +358,7 @@ class Web {
358
358
 
359
359
  // add limited `ctx` object to the state for views
360
360
  ctx.state.ctx = {};
361
- ctx.state.ctx.get = ctx.get;
361
+ ctx.state.ctx.get = ctx.get.bind(ctx);
362
362
  ctx.state.ctx.locale = ctx.locale;
363
363
  ctx.state.ctx.params = ctx.params;
364
364
  ctx.state.ctx.path = ctx.path;
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.0",
4
+ "version": "16.0.1",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/web/issues",