waibu 2.19.0 → 2.19.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.
@@ -16,7 +16,7 @@ async function handleError () {
16
16
  const me = this
17
17
  this.instance.setErrorHandler(async function (err, req, reply) {
18
18
  if (err.message === '_notFound' || err.statusCode === 404) return await notFound.call(me, err, req, reply)
19
- if (err.message === '_redirect' && err.redirect) return redirect.call(me, err, req, reply)
19
+ if (err.message === '_redirect' && err.path) return redirect.call(me, err, req, reply)
20
20
  return await error.call(me, err, req, reply)
21
21
  })
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu",
3
- "version": "2.19.0",
3
+ "version": "2.19.1",
4
4
  "description": "Web Framework for Bajo",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -8,6 +8,7 @@
8
8
  - [2.19.0] Simplify ```config.home``` to only accept object
9
9
  - [2.19.0] Add ```options.redirectCode``` to ```reply.redirectTo()```
10
10
  - [2.19.0] Home route config now read from ```req.getSetting()```
11
+ - [2.19.1] Bug fix in ```handle-error.js```
11
12
 
12
13
  ## 2026-06-12
13
14