sumba 2.34.0 → 2.34.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.
@@ -418,7 +418,7 @@ async function hook () {
418
418
  ctx.decorateRequest('user', null)
419
419
  }
420
420
  }, {
421
- level: 5,
421
+ level: 10,
422
422
  name: 'waibu:preParsing',
423
423
  handler: async function (req, reply) {
424
424
  const { getHostname } = this.app.waibu
package/index.js CHANGED
@@ -690,8 +690,9 @@ async function factory (pkgName) {
690
690
  }
691
691
 
692
692
  pathsToCheck = (req) => {
693
+ const { isSet } = this.app.lib.aneka
693
694
  const { uniq, without } = this.app.lib._
694
- const items = [req.routeOptions.url, req.url].map(url => url.split('?')[0].split('#')[0])
695
+ const items = [req.routeOptions.url, req.url].filter(url => isSet(url)).map(url => url.split('?')[0].split('#')[0])
695
696
  return uniq(without(items, undefined, null))
696
697
  }
697
698
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.34.0",
3
+ "version": "2.34.1",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -5,6 +5,8 @@
5
5
  - [2.33.5] Bug fix in ```team-user.json```
6
6
  - [2.34.0] Add ```checkRoute()```
7
7
  - [2.34.0] Add route checking to ```waibu:preParsing``` hook
8
+ - [2.34.1] Bug fix in ```pathsToCheck()```
9
+ - [2.34.1] Bug fix in ```hook.js```
8
10
 
9
11
  ## 2026-06-18
10
12