bajo 2.20.0 → 2.20.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/class/bajo.js CHANGED
@@ -845,7 +845,7 @@ class Bajo extends Plugin {
845
845
  ext = ext.toLowerCase()
846
846
  if (['.js', '.json'].includes(ext)) {
847
847
  const item = find(this.app.configHandlers, { ext })
848
- return await output(await item.readHandler.call(this.app[item.ns], file, parserOpts))
848
+ return await output(await item.readHandler.call(this.app[ns], file, parserOpts))
849
849
  }
850
850
  if (!['', '.*'].includes(ext)) {
851
851
  const item = find(this.app.configHandlers, { ext })
@@ -870,7 +870,8 @@ class Bajo extends Plugin {
870
870
  if (!ignoreError) throw this.error('cantParse%s', f, { code: 'BAJO_CONFIG_NO_PARSER' })
871
871
  continue
872
872
  }
873
- config = await item.readHandler.call(this.app[item.ns], f, parserOpts)
873
+ const _ns = ['.js', '.json'].includes(ext) ? ns : item.ns
874
+ config = await item.readHandler.call(this.app[_ns], f, parserOpts)
874
875
  if (!isEmpty(config)) break
875
876
  }
876
877
  return await output(config)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "2.20.0",
3
+ "version": "2.20.1",
4
4
  "description": "The ultimate framework for whipping up massive apps in no time",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-06-28
4
+
5
+ - [2.20.1] Bug fix in ```readConfig()```
6
+
3
7
  ## 2026-06-26
4
8
 
5
9
  - [2.20.0] Add source ```ns``` to the config handlers