pathchain 1.1.30 → 1.1.32

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 (2) hide show
  1. package/getter.js +3 -3
  2. package/package.json +1 -1
package/getter.js CHANGED
@@ -284,12 +284,12 @@ function getPathchainObj(xpath, xauthor = '') {
284
284
  let 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
- while (current_link.prev != current_link.tag) {
287
+ while (current_link.prev !== current_link.tag) {
288
+ console.log("Trying to retrieve object from: ", current_link.target);
288
289
  obj_list.push(this.getObj(current_link.target));
289
290
  current_link = current_link.prev;
290
291
  }
291
- // Push the last element
292
- obj_list.push(this.getObj(current_link.target));
292
+ // obj_list.push(this.getObj(current_link.target));
293
293
 
294
294
  return obj_list;
295
295
  } catch (err) {
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.30"
37
+ "version": "1.1.32"
38
38
  }