@muze-nl/jsfs-solid 0.3.4 → 0.3.5
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 +8 -8
- package/dist/browser.js.map +3 -3
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +2 -2
- package/package.json +1 -1
- package/src/SolidClient.js +2 -2
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
|
|
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(),
|
|
9144
|
+
super(base.clientOptions, throwermw(), getdatamw());
|
|
9145
9145
|
} else {
|
|
9146
|
-
super(base, throwermw(),
|
|
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:
|
|
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
|
|
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
|
|
10731
|
+
oidcmw,
|
|
10732
10732
|
discover: oidcDiscovery,
|
|
10733
10733
|
register,
|
|
10734
10734
|
isRedirected: isRedirected2,
|
|
@@ -15481,14 +15481,14 @@
|
|
|
15481
15481
|
options.prefixes[prefix2] = defaults.prefixes[prefix2];
|
|
15482
15482
|
}
|
|
15483
15483
|
}
|
|
15484
|
-
const profile = await metro.client().with(oldmmw(options),
|
|
15484
|
+
const profile = await metro.client().with(oldmmw(options), metro.mw.getdata()).get(webid)?.primary;
|
|
15485
15485
|
if (!profile || !profile.solid$oidcIssuer) {
|
|
15486
15486
|
throw new Error("solidClient: " + webid + " did not return valid solid profile");
|
|
15487
15487
|
}
|
|
15488
15488
|
options.issuer = profile.solid$oidcIssuer;
|
|
15489
15489
|
const storage = oldm.many(profile.space$storage).map((s) => new jsfs.fs(new SolidAdapter(s, "/", options)));
|
|
15490
15490
|
return metro.api(
|
|
15491
|
-
metro.client(oidcmw(options), oldmmw(options)),
|
|
15491
|
+
metro.client(metro.oidc.oidcmw(options), oldmmw(options)),
|
|
15492
15492
|
{
|
|
15493
15493
|
profile,
|
|
15494
15494
|
issuer: profile.solid$oidcIssuer,
|