pathchain 1.1.22 → 1.1.23
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 +4 -4
- package/package.json +1 -1
package/getter.js
CHANGED
|
@@ -244,17 +244,17 @@ function getPathchainObj(xpath, xauthor = '') {
|
|
|
244
244
|
console.log("Head link", current_link);
|
|
245
245
|
|
|
246
246
|
var current_obj = this.getObj(current_link.target);
|
|
247
|
-
console.log("
|
|
247
|
+
console.log("Head target object", current_obj);
|
|
248
248
|
|
|
249
|
-
let obj_list = [];
|
|
249
|
+
/*let obj_list = [];
|
|
250
250
|
// append targets to obj_list until the link's prev property points to itself
|
|
251
251
|
while (current_link.prev !== current_link.target) {
|
|
252
252
|
obj_list.push(current_obj);
|
|
253
253
|
current_link = this.getObj(current_link.prev);
|
|
254
254
|
current_obj = this.getObj(current_link.target);
|
|
255
|
-
}
|
|
255
|
+
}*/
|
|
256
256
|
// Get link -> get link.target
|
|
257
|
-
return
|
|
257
|
+
return current_obj;
|
|
258
258
|
} catch (err) {
|
|
259
259
|
return err.code === 'ENOENT' ? "Path not found" : err;
|
|
260
260
|
}
|
package/package.json
CHANGED