pathchain 1.1.32 → 1.1.33
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/getter.js +7 -4
- package/package.json +1 -1
package/getter.js
CHANGED
|
@@ -280,16 +280,19 @@ function getPathchainObj(xpath, xauthor = '') {
|
|
|
280
280
|
var head_obj = this.getObj(head_link.target);
|
|
281
281
|
console.log("Head target object", head_obj);
|
|
282
282
|
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
var obj_list = [];
|
|
284
|
+
var current_link = head_link;
|
|
285
285
|
|
|
286
286
|
// As the head is the last inserted element, we go backwards till there's no more linked elements
|
|
287
287
|
while (current_link.prev !== current_link.tag) {
|
|
288
288
|
console.log("Trying to retrieve object from: ", current_link.target);
|
|
289
|
-
|
|
289
|
+
const current_obj = this.getObj(current_link.target);
|
|
290
|
+
console.log("Pushing object: ", current_obj);
|
|
291
|
+
obj_list.push(current_obj);
|
|
290
292
|
current_link = current_link.prev;
|
|
291
293
|
}
|
|
292
|
-
|
|
294
|
+
|
|
295
|
+
obj_list.push(this.getObj(current_link.target));
|
|
293
296
|
|
|
294
297
|
return obj_list;
|
|
295
298
|
} catch (err) {
|
package/package.json
CHANGED