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.
- package/extend/bajo/hook.js +1 -1
- package/index.js +2 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +2 -0
package/extend/bajo/hook.js
CHANGED
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
package/wiki/CHANGES.md
CHANGED