@blazedpath/commons 0.0.7 → 0.0.8
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/blz-base/index.js +1 -1
- package/blz-rds-oracle/index.js +1 -1
- package/package.json +1 -1
package/blz-base/index.js
CHANGED
|
@@ -1025,7 +1025,7 @@ module.exports = {
|
|
|
1025
1025
|
},
|
|
1026
1026
|
loadResource: async function (path) {
|
|
1027
1027
|
try {
|
|
1028
|
-
let resourceContent = await Fs.readFile(Path.join(
|
|
1028
|
+
let resourceContent = await Fs.readFile(Path.join(_metadata.appPath, '../resources', path), 'utf8');
|
|
1029
1029
|
if (path.endsWith('.json') ) return JSON.parse(resourceContent)
|
|
1030
1030
|
else if (path.endsWith('.yaml') || path.endsWith('.yml'))return jsyaml.load(resourceContent)
|
|
1031
1031
|
else return resourceContent;
|
package/blz-rds-oracle/index.js
CHANGED
|
@@ -4,7 +4,7 @@ const { h3lp } = require('h3lp');
|
|
|
4
4
|
// check blzBase location
|
|
5
5
|
const Path = require('path');
|
|
6
6
|
const Fs = require('fs-extra');
|
|
7
|
-
const blzBaseSuite = Path.resolve(__dirname, '
|
|
7
|
+
const blzBaseSuite = Path.resolve(__dirname, '../blz-core/sources-dual/index.js');
|
|
8
8
|
let BlzBase = null;
|
|
9
9
|
if (Fs.existsSync(blzBaseSuite)) {
|
|
10
10
|
BlzBase = require('../../blz-core/sources-dual/index.js');
|