bajo-template 2.5.1 → 2.5.2

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.
@@ -73,10 +73,9 @@ function resolveResource (type, item = '', opts = {}, fallbackHandler) {
73
73
  if (opts.lang) exts.unshift(`.${opts.lang}${ext}`)
74
74
  let theme
75
75
  if (opts.theme && this.app.waibuMpa && opts.req) theme = find(this.app.waibuMpa.themes, { name: opts.theme })
76
-
77
76
  let file = checking.call(this, { type, ns, subSubNs, dir, base, exts, theme, req: opts.req })
78
77
  if (!file) {
79
- if (fallbackHandler) file = fallbackHandler.call(this, { dir, base, exts, ns, subSubNs, type, theme: opts.theme, req: opts.req })
78
+ if (fallbackHandler) file = fallbackHandler.call(this, { dir, base, exts, ns, subSubNs, type, theme, req: opts.req })
80
79
  if (opts.default) {
81
80
  const fname = this.getResource(opts.default).fullPath
82
81
  if (fs.existsSync(fname)) file = fname
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-template",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Template Renderer for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-03-14
4
+
5
+ - [2.5.2] Bug fix on ```resolveResource()```
6
+
3
7
  ## 2026-02-21
4
8
 
5
9
  - [2.5.1] Bug fix on layout fallback