pathchain 1.1.3 → 1.1.5

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 -3
  3. package/package.json +1 -1
package/getter.js CHANGED
@@ -92,7 +92,7 @@ function getPioneerObj(xpioneer) {
92
92
  */
93
93
  function getSecretObj(xsecret, xauthor) {
94
94
 
95
- if(xauthor != ""){
95
+ if(xauthor != "" && (xauthor !== null)){
96
96
  xauthor = xauthor + '/';
97
97
  }
98
98
 
package/maker.js CHANGED
@@ -142,14 +142,14 @@ function entity(xsecret, format) {
142
142
 
143
143
  const register = dt.format(new Date(), dt.compile(format, true));
144
144
  const register_moment_hash = moment(register, 0, 0, 0, 0, 0, format);
145
- const ancestor_entity_hash = getter.getSecretObj(xsecret).author;
146
- console.log("MAKER :: ENTITY :: xsecret obj : ", getter.getSecretObj(xsecret, ""));
145
+ const ancestor_entity_hash = getter.getSecretObj(xsecret, "").author;
146
+ console.log("MAKER :: ENTITY :: xsecret obj : ", getter.getSecretObj(xsecret));
147
147
 
148
148
  const entity_hash = sha256(`${register_moment_hash}_${ancestor_entity_hash}`);
149
149
 
150
150
  const buffer = entity.entity.encode({
151
151
  register: `moments/${register_moment_hash}`,
152
- ancestor: `entities/${ancestor_entity_hash}`,
152
+ ancestor: `${ancestor_entity_hash}`,
153
153
  tag: `entities/${entity_hash}`,
154
154
  });
155
155
 
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.1.3"
37
+ "version": "1.1.5"
38
38
  }