pathchain 1.1.0 → 1.1.1
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/maker.js +3 -2
- package/package.json +1 -1
package/maker.js
CHANGED
|
@@ -135,7 +135,7 @@ function pioneer(xbigbang, format) {
|
|
|
135
135
|
function entity(xsecret, format) {
|
|
136
136
|
checker.checkDir("files/entities/");
|
|
137
137
|
if (checker.checkEmptyDir("files/entities/")) {
|
|
138
|
-
return "A pioneer's secret is needed to create the first entity.
|
|
138
|
+
return "A pioneer's secret is needed to create the first entity. The pioneer can be found at 'files/pioneer/'" + pioneer();
|
|
139
139
|
} else {
|
|
140
140
|
if (checker.isSecretUsed(xsecret) == false) {
|
|
141
141
|
const entity = pb(fs.readFileSync('node_modules/pathchain/proto/entity.proto'));
|
|
@@ -143,6 +143,7 @@ function entity(xsecret, format) {
|
|
|
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
145
|
const ancestor_entity_hash = getter.getSecretObj(xsecret).author;
|
|
146
|
+
console.log("MAKER :: ENTITY :: ancestor_entity_hash : ", ancestor_entity_hash);
|
|
146
147
|
|
|
147
148
|
const entity_hash = sha256(`${register_moment_hash}_${ancestor_entity_hash}`);
|
|
148
149
|
|
|
@@ -314,7 +315,7 @@ function link(target, prev, next, author, ancestor, format = 'MM DD YYYY HH:mm:S
|
|
|
314
315
|
|
|
315
316
|
// Validate target
|
|
316
317
|
if (target === "") {
|
|
317
|
-
return "The link must
|
|
318
|
+
return "The link must be linking something. The target cannot be null.";
|
|
318
319
|
}
|
|
319
320
|
|
|
320
321
|
// Handle author and author folder
|
package/package.json
CHANGED