pathchain 1.0.29 → 1.0.30

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 +1 -1
  2. package/maker.js +3 -3
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -165,7 +165,7 @@ exports.getSecretObj = (xsecret, xauthor = "") => {
165
165
  * @return {string} node_buffer
166
166
  */
167
167
  exports.makeNode = (text ="", xauthor = "", format = 'MM DD YYYY HH:mm:SSS [GMT]Z') => {
168
- const node_buffer = maker.node(xauthor, text, format);
168
+ const node_buffer = maker.node(text, xauthor, format);
169
169
  return node_buffer;
170
170
  }
171
171
 
package/maker.js CHANGED
@@ -230,15 +230,15 @@ function node(text, author, format = 'MM DD YYYY HH:mm:SSS [GMT]Z') {
230
230
  var register = new Date()
231
231
  register = dt.format(register, dt.compile(format, true));
232
232
 
233
- var register_moment_hash = moment(register, format, 0, 0, 0, 0, 0)
233
+ var register_moment_hash = moment(register, 0, 0, 0, 0, 0, format)
234
234
 
235
235
  var node_hash = sha256(register_moment_hash + "_" + author);
236
236
 
237
237
  var buffer = node_pb.node.encode({
238
- register: "moments/"+register_moment_hash,
238
+ register: "moments/" + register_moment_hash,
239
239
  author: author,
240
240
  text: text,
241
- tag: "nodes/"+node_hash,
241
+ tag: "nodes/" + node_hash
242
242
  })
243
243
 
244
244
  checker.checkDir("files/" + author_folder + "nodes/") // checking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pathchain",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "dependencies": {
5
5
  "date-and-time": "^3.0.2",
6
6
  "empty-dir": "^3.0.0",