waibu-mpa 2.23.0 → 2.24.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.
|
@@ -12,7 +12,6 @@ async function resolveFile (req) {
|
|
|
12
12
|
throw this.error('_notFound')
|
|
13
13
|
}
|
|
14
14
|
// 1. main
|
|
15
|
-
console.log(`${this.app.main.dir.pkg}/asset/logo${type}.*`)
|
|
16
15
|
files = await fastGlob(`${this.app.main.dir.pkg}/asset/logo${type}.*`)
|
|
17
16
|
// 2. site attachment
|
|
18
17
|
if (files.length > 0) return files[0]
|
|
@@ -6,7 +6,7 @@ const wmpa = {
|
|
|
6
6
|
const { get, trim, cloneDeep } = this.app.lib._
|
|
7
7
|
const { getPluginPrefix } = this.app.waibu
|
|
8
8
|
const { importModule } = this.app.bajo
|
|
9
|
-
const { types: formatTypes, formats } = await importModule('bajo:/lib/
|
|
9
|
+
const { types: formatTypes, formats } = await importModule('bajo:/lib/helper.js', { asDefaultImport: false })
|
|
10
10
|
const prefix = {
|
|
11
11
|
virtual: `/${getPluginPrefix('waibuStatic')}/${this.app.waibu.config.prefixVirtual}`,
|
|
12
12
|
asset: `/${getPluginPrefix('waibuStatic')}`,
|
package/index.js
CHANGED
|
@@ -1010,6 +1010,10 @@ async function factory (pkgName) {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
if (urlPrefix) m.url = `/${urlPrefix}/${m.url}`
|
|
1012
1012
|
m.url = trimEnd(m.url, '/')
|
|
1013
|
+
if (isArray(m.methods)) {
|
|
1014
|
+
m.method = [...m.methods]
|
|
1015
|
+
delete m.methods
|
|
1016
|
+
}
|
|
1013
1017
|
m.method = m.method ?? 'GET'
|
|
1014
1018
|
await mergeRouteHooks.call(me, m)
|
|
1015
1019
|
m.config = m.config ?? {}
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-07-12
|
|
4
|
+
|
|
5
|
+
- [2.24.1] Bug fix in `_buildRoute()`
|
|
6
|
+
|
|
7
|
+
## 2026-07-08
|
|
8
|
+
|
|
9
|
+
- [2.24.0] Update webapp boot process
|
|
10
|
+
- [2.24.0] Update on documentations
|
|
11
|
+
- [2.24.0] Bug fix in `wmpa.js`
|
|
12
|
+
|
|
3
13
|
## 2026-07-04
|
|
4
14
|
|
|
5
15
|
- [2.23.0] Reorganize projects to reduce boot time
|