sumba 2.34.0 → 2.34.2
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.
- package/extend/bajo/hook.js +1 -1
- package/index.js +3 -2
- package/package.json +1 -1
- package/wiki/CHANGES.md +3 -0
package/extend/bajo/hook.js
CHANGED
package/index.js
CHANGED
|
@@ -395,7 +395,7 @@ async function factory (pkgName) {
|
|
|
395
395
|
}
|
|
396
396
|
const redir = routePath(this.config.redirect.signin, { query, params })
|
|
397
397
|
req.session.ref = req.url
|
|
398
|
-
throw this.error('_redirect', {
|
|
398
|
+
throw this.error('_redirect', { path: redir })
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
verifyApiKey = async (req, reply, source, payload) => {
|
|
@@ -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
package/wiki/CHANGES.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
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```
|
|
10
|
+
- [2.34.2] Bug fix in ```verifySession()```
|
|
8
11
|
|
|
9
12
|
## 2026-06-18
|
|
10
13
|
|