@muze-nl/jsfs-solid 0.3.6 → 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 CHANGED
@@ -15488,21 +15488,22 @@
15488
15488
  }
15489
15489
  options.issuer = profile.solid$oidcIssuer;
15490
15490
  const storage = oldm.many(profile.space$storage).map((s) => new jsfs.fs(new SolidAdapter(s, "/", options)));
15491
- return metro.api(
15492
- metro.client(metro.oidc.oidcmw(options), oldmmw(options)),
15493
- {
15494
- profile,
15495
- issuer: profile.solid$oidcIssuer,
15496
- inbox: profile.ldp$inbox,
15497
- id: function() {
15498
- return metro.oidc.idToken(this.issuer);
15499
- },
15500
- logout: async function() {
15501
- throw new Error("not yet implemented");
15502
- },
15503
- ...storage
15504
- }
15505
- );
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;
15506
15507
  }
15507
15508
 
15508
15509
  // src/browser.js