@muze-nl/jsfs-solid 0.3.5 → 0.3.7
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/browser.js +18 -16
- package/dist/browser.js.map +3 -3
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +3 -3
- package/package.json +1 -1
- package/package.json~ +1 -1
- package/src/SolidClient.js +18 -16
package/dist/browser.js
CHANGED
|
@@ -15481,27 +15481,29 @@
|
|
|
15481
15481
|
options.prefixes[prefix2] = defaults.prefixes[prefix2];
|
|
15482
15482
|
}
|
|
15483
15483
|
}
|
|
15484
|
-
const
|
|
15484
|
+
const response2 = await metro.client(oldmmw(options), metro.mw.getdata()).get(webid);
|
|
15485
|
+
const profile = response2?.primary;
|
|
15485
15486
|
if (!profile || !profile.solid$oidcIssuer) {
|
|
15486
15487
|
throw new Error("solidClient: " + webid + " did not return valid solid profile");
|
|
15487
15488
|
}
|
|
15488
15489
|
options.issuer = profile.solid$oidcIssuer;
|
|
15489
15490
|
const storage = oldm.many(profile.space$storage).map((s) => new jsfs.fs(new SolidAdapter(s, "/", options)));
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
);
|
|
15491
|
+
const client2 = metro.client(metro.oidc.oidcmw(options), oldmmw(options));
|
|
15492
|
+
Object.assign(client2, {
|
|
15493
|
+
profile,
|
|
15494
|
+
issuer: profile.solid$oidcIssuer,
|
|
15495
|
+
inbox: profile.ldp$inbox,
|
|
15496
|
+
id: function() {
|
|
15497
|
+
return metro.oidc.idToken(this.issuer);
|
|
15498
|
+
},
|
|
15499
|
+
logout: async function() {
|
|
15500
|
+
throw new Error("not yet implemented");
|
|
15501
|
+
},
|
|
15502
|
+
...storage
|
|
15503
|
+
});
|
|
15504
|
+
client2.id.bind(client2);
|
|
15505
|
+
client2.logout.bind(client2);
|
|
15506
|
+
return client2;
|
|
15505
15507
|
}
|
|
15506
15508
|
|
|
15507
15509
|
// src/browser.js
|