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.
- package/getter.js +1 -1
- package/maker.js +3 -0
- 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