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.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/maker.js +1 -1
  3. 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 = (xauthor = "", ancestor = "", first="", second="", format = 'MM DD YYYY HH:mm:SSS [GMT]Z') => {
248
- const nodelink_buffer = maker.nodelink(xauthor, ancestor, first, second, format);
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(author, ancestor, first, second, format = 'MM DD YYYY HH:mm:SSS [GMT]Z') {
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pathchain",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "dependencies": {
5
5
  "date-and-time": "^3.0.2",
6
6
  "empty-dir": "^3.0.0",