pathchain 1.0.57 → 1.0.59

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.
Files changed (3) hide show
  1. package/getter.js +1 -1
  2. package/maker.js +3 -0
  3. package/package.json +1 -1
package/getter.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var fs = require("fs");
2
2
  var pb = require('protocol-buffers');
3
3
  var dt = require('date-and-time');
4
- const { getLinkObj } = require(".");
4
+ // const { getLinkObj } = require(".");
5
5
 
6
6
  /** getCurrentDate
7
7
  * [Function that returns current datetime string on "MMM DD YYYY HH:mm:ss [GMT]Z" format]
package/maker.js CHANGED
@@ -395,12 +395,15 @@ function link(target, prev, next, author, ancestor, format = 'MM DD YYYY HH:mm:S
395
395
 
396
396
  // Find the target to figure out its nature (node, path or label)
397
397
  if(checker.checkFile("files/" + author_folder + "nodes/" + target) == true){
398
+ target = 'nodes/' + target;
398
399
  console.log("Target is a node")
399
400
  }
400
401
  if(checker.checkFile("files/" + author_folder + "paths/" + target) == true){
402
+ target = 'paths/' + target;
401
403
  console.log("Target is a path")
402
404
  }
403
405
  if(checker.checkFile("files/" + author_folder + "labels/" + target) == true){
406
+ target = 'labels/' + target;
404
407
  console.log("Target is a label")
405
408
  }
406
409
 
package/package.json CHANGED
@@ -34,5 +34,5 @@
34
34
  "deprecated": false,
35
35
  "description": "![image](https://user-images.githubusercontent.com/104391124/282268780-cbbc1ee6-8d97-4d80-b896-66ae3eb723dd.png)",
36
36
  "name": "pathchain",
37
- "version": "1.0.57"
37
+ "version": "1.0.59"
38
38
  }