waibu 1.0.14 → 1.1.0

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.
@@ -28,6 +28,7 @@ async function buildLocals ({ tpl, params = {}, opts = {} } = {}) {
28
28
  merge(_meta, pick(req, ['url', 'params', 'query']))
29
29
  _meta.env = this.app.bajo.config.env
30
30
  _meta.url = _meta.url.split('?')[0].split('#')[0]
31
+ if (req.session) _meta.prevUrl = req.session.prevUrl
31
32
  _meta.route = get(req, 'routeOptions.url')
32
33
  _meta.template = tpl
33
34
  _meta.hostHeader = req.headers.host
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu",
3
- "version": "1.0.14",
3
+ "version": "1.1.0",
4
4
  "description": "Web Framework for Bajo",
5
5
  "main": "index.js",
6
6
  "scripts": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes