@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 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(__dirname, '../resources', path), 'utf8');
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;
@@ -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, '../../blz-core/sources-dual/index.js');
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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazedpath/commons",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "commos library for blazedpath applications",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",