@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 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(g);
9385
+ g && n.push(
9386
+ this.dspConnector.instance.fetchProtectedResource(g)
9387
+ );
9386
9388
  }
9387
9389
  }
9388
- const d = (await Promise.all(n)).map(
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?.facts || []).map((m) => m["@id"])
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/components-ds4go",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
4
4
  "description": "Startin'blox DS4GO",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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
- // FIXME: Getting 403 when calling a provider with agreement id from consumer
153
- // bundles.push(
154
- // this.dspConnector.instance.fetchProtectedResource(bundleUrl),
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 = (await Promise.all(bundles)).map((bundle) =>
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?.facts || [])
165
+ .flatMap((bundle: any) => bundle?.["ldp:contains"] || [])
170
166
  .map((fact: Fact) => fact["@id"]),
171
167
  ),
172
168
  );