@startinblox/components-ds4go 4.1.7 → 4.1.8
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/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/solid-fact-list.ts +6 -10
package/dist/index.js
CHANGED
|
@@ -9382,14 +9382,14 @@ let G = class extends k {
|
|
|
9382
9382
|
);
|
|
9383
9383
|
if (f) {
|
|
9384
9384
|
const g = f?.dataAddress?.baseUrl;
|
|
9385
|
-
g && n.push(
|
|
9385
|
+
g && n.push(
|
|
9386
|
+
this.dspConnector.instance.fetchProtectedResource(g)
|
|
9387
|
+
);
|
|
9386
9388
|
}
|
|
9387
9389
|
}
|
|
9388
|
-
const d =
|
|
9389
|
-
(m) => this._getProxyValue(m)
|
|
9390
|
-
), u = Array.from(
|
|
9390
|
+
const d = await Promise.all(n), u = Array.from(
|
|
9391
9391
|
new Set(
|
|
9392
|
-
(await Promise.all(d)).flatMap((m) => m?.
|
|
9392
|
+
(await Promise.all(d)).flatMap((m) => m?.["ldp:contains"] || []).map((m) => m["@id"])
|
|
9393
9393
|
)
|
|
9394
9394
|
);
|
|
9395
9395
|
this.objects = await Promise.all(
|
package/package.json
CHANGED
|
@@ -149,24 +149,20 @@ export class SolidFactList extends OrbitComponent {
|
|
|
149
149
|
if (asset) {
|
|
150
150
|
const bundleUrl = asset?.dataAddress?.baseUrl;
|
|
151
151
|
if (bundleUrl) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// );
|
|
156
|
-
// Temp workaround, using ldp store to bypass the issue
|
|
157
|
-
bundles.push(bundleUrl);
|
|
152
|
+
bundles.push(
|
|
153
|
+
this.dspConnector.instance.fetchProtectedResource(bundleUrl),
|
|
154
|
+
);
|
|
158
155
|
}
|
|
159
156
|
}
|
|
160
157
|
}
|
|
158
|
+
|
|
161
159
|
|
|
162
|
-
const fetchedBundles =
|
|
163
|
-
this._getProxyValue(bundle),
|
|
164
|
-
);
|
|
160
|
+
const fetchedBundles = await Promise.all(bundles);
|
|
165
161
|
|
|
166
162
|
const facts = Array.from(
|
|
167
163
|
new Set(
|
|
168
164
|
(await Promise.all(fetchedBundles))
|
|
169
|
-
.flatMap((bundle: any) => bundle?.
|
|
165
|
+
.flatMap((bundle: any) => bundle?.["ldp:contains"] || [])
|
|
170
166
|
.map((fact: Fact) => fact["@id"]),
|
|
171
167
|
),
|
|
172
168
|
);
|