pathchain 1.1.33 → 1.1.34
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 +5 -2
- package/package.json +1 -1
package/getter.js
CHANGED
|
@@ -285,14 +285,17 @@ function getPathchainObj(xpath, xauthor = '') {
|
|
|
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
|
+
console.log("Current link: ", current_link);
|
|
288
289
|
console.log("Trying to retrieve object from: ", current_link.target);
|
|
289
290
|
const current_obj = this.getObj(current_link.target);
|
|
290
291
|
console.log("Pushing object: ", current_obj);
|
|
291
292
|
obj_list.push(current_obj);
|
|
292
293
|
current_link = current_link.prev;
|
|
293
294
|
}
|
|
294
|
-
|
|
295
|
-
|
|
295
|
+
console.log("Pushing last element (current link target): ", current_link);
|
|
296
|
+
var current_link_target_obj = this.getObj(current_link.target);
|
|
297
|
+
console.log(" Curent link target: ", current_link_target_obj);
|
|
298
|
+
obj_list.push(current_link_target_obj);
|
|
296
299
|
|
|
297
300
|
return obj_list;
|
|
298
301
|
} catch (err) {
|
package/package.json
CHANGED