@muze-nl/jsfs-solid 0.3.4 → 0.3.6

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
@@ -9127,7 +9127,7 @@
9127
9127
  }
9128
9128
 
9129
9129
  // node_modules/@muze-nl/metro/src/mw/getdata.mjs
9130
- function getdatamw2() {
9130
+ function getdatamw() {
9131
9131
  return async function getdata(req, next) {
9132
9132
  let res = await next(req);
9133
9133
  if (res.ok && res.data) {
@@ -9141,9 +9141,9 @@
9141
9141
  var API = class extends Client {
9142
9142
  constructor(base, methods, bind = null) {
9143
9143
  if (base instanceof Client) {
9144
- super(base.clientOptions, throwermw(), getdatamw2());
9144
+ super(base.clientOptions, throwermw(), getdatamw());
9145
9145
  } else {
9146
- super(base, throwermw(), getdatamw2());
9146
+ super(base, throwermw(), getdatamw());
9147
9147
  }
9148
9148
  if (!bind) {
9149
9149
  bind = this;
@@ -9180,7 +9180,7 @@
9180
9180
  mw: {
9181
9181
  json: jsonmw,
9182
9182
  thrower: throwermw,
9183
- getdata: getdatamw2
9183
+ getdata: getdatamw
9184
9184
  },
9185
9185
  api,
9186
9186
  jsonApi
@@ -10594,7 +10594,7 @@
10594
10594
  }
10595
10595
 
10596
10596
  // node_modules/@muze-nl/metro-oidc/src/oidcmw.mjs
10597
- function oidcmw2(options = {}) {
10597
+ function oidcmw(options = {}) {
10598
10598
  const defaultOptions = {
10599
10599
  client: client(),
10600
10600
  force_authorization: false,
@@ -10728,7 +10728,7 @@
10728
10728
 
10729
10729
  // node_modules/@muze-nl/metro-oidc/src/browser.mjs
10730
10730
  var oidc = {
10731
- oidcmw: oidcmw2,
10731
+ oidcmw,
10732
10732
  discover: oidcDiscovery,
10733
10733
  register,
10734
10734
  isRedirected: isRedirected2,
@@ -15481,14 +15481,15 @@
15481
15481
  options.prefixes[prefix2] = defaults.prefixes[prefix2];
15482
15482
  }
15483
15483
  }
15484
- const profile = await metro.client().with(oldmmw(options), getdatamw()).get(webid)?.primary;
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
  return metro.api(
15491
- metro.client(oidcmw(options), oldmmw(options)),
15492
+ metro.client(metro.oidc.oidcmw(options), oldmmw(options)),
15492
15493
  {
15493
15494
  profile,
15494
15495
  issuer: profile.solid$oidcIssuer,