waibu-mpa 2.11.0 → 2.12.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.
- package/lib/build-routes.js +1 -0
- package/lib/load-resource.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
package/lib/build-routes.js
CHANGED
|
@@ -45,6 +45,7 @@ export async function build ({ files, pathPrefix, dir, ns, cfg, parent, urlPrefi
|
|
|
45
45
|
m.config.prefix = getPluginPrefix(ns)
|
|
46
46
|
m.config.pathSrc = m.url
|
|
47
47
|
m.config.webApp = parent ?? ns
|
|
48
|
+
m.config.interSite = m.interSite
|
|
48
49
|
m.config.ns = ns
|
|
49
50
|
m.config.subNs = ''
|
|
50
51
|
m.config.title = m.title ?? camelCase(last(m.url.split('/')))
|
package/lib/load-resource.js
CHANGED
|
@@ -19,7 +19,7 @@ async function loadResource (mod = [], item) {
|
|
|
19
19
|
} else items.push(mod[item][i])
|
|
20
20
|
}
|
|
21
21
|
for (const c of extItems) {
|
|
22
|
-
let emod = await readConfig(`${c.ns}:${c.path}`, { ns: c.ns })
|
|
22
|
+
let emod = await readConfig(`${c.ns}:${c.path}`, { ns: c.ns, ignoreError: false })
|
|
23
23
|
if (!isArray(emod)) emod = [emod]
|
|
24
24
|
for (const m of emod) {
|
|
25
25
|
items.push(m)
|
package/package.json
CHANGED