@startinblox/core 0.19.8 → 0.19.9-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51719,7 +51719,7 @@ const cacheFieldsProps = (cacheKey, filter, fields, searchForm) => {
51719
51719
  }
51720
51720
  };
51721
51721
  const traversePath = async (resource, path, targetedType) => {
51722
- var _a, _b;
51722
+ var _a;
51723
51723
  let result = [];
51724
51724
  let currentRes;
51725
51725
  let remainingPath = path;
@@ -51730,7 +51730,7 @@ const traversePath = async (resource, path, targetedType) => {
51730
51730
  const lastPath1El = path.shift();
51731
51731
  if (lastPath1El)
51732
51732
  remainingPath = path;
51733
- if (currentRes && ((_a = currentRes.isContainer) == null ? void 0 : _a.call(currentRes)) && remainingPath.length > 1) {
51733
+ if (currentRes && remainingPath.length > 1) {
51734
51734
  result = await traversePath(currentRes, remainingPath, targetedType);
51735
51735
  } else if (currentRes && Array.isArray(currentRes)) {
51736
51736
  for (const res of currentRes) {
@@ -51740,7 +51740,7 @@ const traversePath = async (resource, path, targetedType) => {
51740
51740
  let targetsRes = await res[remainingPath[0]];
51741
51741
  if (!targetsRes)
51742
51742
  return [];
51743
- if ((_b = targetsRes.isContainer) == null ? void 0 : _b.call(targetsRes)) {
51743
+ if ((_a = targetsRes.isContainer) == null ? void 0 : _a.call(targetsRes)) {
51744
51744
  targetsRes = targetsRes["ldp:contains"];
51745
51745
  }
51746
51746
  if (!Array.isArray(targetsRes))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "0.19.8",
3
+ "version": "0.19.9-beta.1",
4
4
  "description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",