waibu-mpa 2.23.0 → 2.24.0
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/package.json
CHANGED