waibu-mpa 2.9.2 → 2.10.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/lib/build-routes.js +2 -2
- package/lib/class/component.js +2 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +8 -0
package/lib/build-routes.js
CHANGED
|
@@ -72,8 +72,8 @@ async function addRoutes ({ appPrefix, prefix, mods, appCtx, cfg }) {
|
|
|
72
72
|
this.log.warn('rerouted%s%s', `${prefix}${fullPath}`, `${prefix}${rpath}`)
|
|
73
73
|
mod.url = rpath
|
|
74
74
|
mod.pathReroutedTo = rpath
|
|
75
|
-
|
|
76
|
-
} else
|
|
75
|
+
this.webAppCtx.route(mod)
|
|
76
|
+
} else appCtx.route(mod)
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
package/lib/class/component.js
CHANGED
|
@@ -223,7 +223,8 @@ async function componentFactory () {
|
|
|
223
223
|
if (getMethod(input, false)) {
|
|
224
224
|
input = await callHandler(input)
|
|
225
225
|
} else {
|
|
226
|
-
|
|
226
|
+
const separator = isString(params.attr.optionsSeparator) ? params.attr.optionsSeparator : ';'
|
|
227
|
+
input = attrToArray(input, separator).map(item => {
|
|
227
228
|
const [value, text] = item.split(':')
|
|
228
229
|
return { value, text }
|
|
229
230
|
})
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-03-22
|
|
4
|
+
|
|
5
|
+
- [2.10.1] Bug fix in applying routes to ```webCtx```
|
|
6
|
+
|
|
7
|
+
## 2026-03-19
|
|
8
|
+
|
|
9
|
+
- [2.10.0] Add ```options-separator``` to use different separator than the default one (```;```)
|
|
10
|
+
|
|
3
11
|
## 2026-03-15
|
|
4
12
|
|
|
5
13
|
- [2.9.2] Bug fix in ```favicon``` handler
|