@blazedpath/commons 0.1.0 → 0.1.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/blz-base/index.js CHANGED
@@ -535,7 +535,7 @@ module.exports = {
535
535
  },
536
536
  transform: async function (callContext, transformationName, source, writer) {
537
537
  let transformation = _metadata[transformationName];
538
- let transformationExecutor = require('../sources/' + transformation.sourceFileName);
538
+ let transformationExecutor = require(Path.join(_metadata.appPath,'../sources/', transformation.sourceFileName));
539
539
  if (source) {
540
540
  if (source._blz_reader) { // reader
541
541
  let reader = source;
@@ -578,7 +578,7 @@ module.exports = {
578
578
  writer: function (callContext, functionName, extraArgs) {
579
579
  let fn
580
580
  try {
581
- fn = require('../sources/' + module.exports.ensureDashedFormat(functionName) + '.js')
581
+ fn = require(Path.join(_metadata.appPath,'../sources/', module.exports.ensureDashedFormat(functionName) + '.js'))
582
582
  }
583
583
  catch (err) {
584
584
  throw this.error('InvalidFunction', { functionName: functionName });
@@ -741,7 +741,7 @@ module.exports = {
741
741
  internalCall: async function (callContext, functionName, args) {
742
742
  let fn = null;
743
743
  try {
744
- fn = require('../sources/' + module.exports.ensureDashedFormat(functionName) + '.js')
744
+ fn = require(Path.join(_metadata.appPath,'../sources/', module.exports.ensureDashedFormat(functionName) + '.js'))
745
745
  }
746
746
  catch (err) {
747
747
  throw this.error('InvalidFunction', { functionName: functionName });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazedpath/commons",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "commos library for blazedpath applications",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",