pathchain 1.0.37 → 1.0.38
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/index.js +2 -2
- package/maker.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -244,8 +244,8 @@ exports.getLabelObj = (xlabel, xauthor="") => {
|
|
|
244
244
|
*
|
|
245
245
|
* @return {string} nodelink_buffer
|
|
246
246
|
*/
|
|
247
|
-
exports.makeNodelink = (
|
|
248
|
-
const nodelink_buffer = maker.nodelink(
|
|
247
|
+
exports.makeNodelink = (first="", second="", xauthor = "", ancestor = "", format = 'MM DD YYYY HH:mm:SSS [GMT]Z') => {
|
|
248
|
+
const nodelink_buffer = maker.nodelink(first, second, xauthor, ancestor, format);
|
|
249
249
|
return nodelink_buffer;
|
|
250
250
|
}
|
|
251
251
|
|
package/maker.js
CHANGED
|
@@ -354,7 +354,7 @@ function label(text, author, ancestor, format = 'MM DD YYYY HH:mm:SSS [GMT]Z') {
|
|
|
354
354
|
*
|
|
355
355
|
* @return {string} nodelink_hash
|
|
356
356
|
*/
|
|
357
|
-
function nodelink(
|
|
357
|
+
function nodelink(first, second, author, ancestor, format = 'MM DD YYYY HH:mm:SSS [GMT]Z') {
|
|
358
358
|
var nodelink_pb = pb(fs.readFileSync('node_modules/pathchain/proto/nodelink.proto'))
|
|
359
359
|
|
|
360
360
|
if(first == "" || second == "") return "Two nodes are required to create a nodelink";
|