pathchain 1.1.2 → 1.1.4

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 +1 -1
  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 != "" && (typeof xauthor !== 'undefined')){
96
96
  xauthor = xauthor + '/';
97
97
  }
98
98
 
package/maker.js CHANGED
@@ -142,7 +142,7 @@ 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;
145
+ const ancestor_entity_hash = getter.getSecretObj(xsecret, "").author;
146
146
  console.log("MAKER :: ENTITY :: xsecret obj : ", getter.getSecretObj(xsecret));
147
147
 
148
148
  const entity_hash = sha256(`${register_moment_hash}_${ancestor_entity_hash}`);
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.2"
37
+ "version": "1.1.4"
38
38
  }