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 +3 -2
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
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[
|
|
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
|
-
|
|
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