@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muze-nl/jsfs-solid",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "src/SolidClient.js",
package/package.json~ CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muze-nl/jsfs-solid",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "src/SolidClient.js",
@@ -30,7 +30,8 @@ export default async function solidClient(webid, solidOptions) {
30
30
  options.prefixes[prefix] = defaults.prefixes[prefix]
31
31
  }
32
32
  }
33
- const profile = await metro.client().with(oldmmw(options), getdatamw()).get(webid)?.primary
33
+ const response = await metro.client(oldmmw(options), metro.mw.getdata()).get(webid)
34
+ const profile = response?.primary
34
35
  if (!profile || !profile.solid$oidcIssuer) { //FIXME: don't assume $ as the separator
35
36
  throw new Error('solidClient: '+webid+' did not return valid solid profile')
36
37
  }
@@ -39,7 +40,7 @@ export default async function solidClient(webid, solidOptions) {
39
40
  .map(s => new jsfs.fs(new SolidAdapter(s, '/', options)))
40
41
 
41
42
  return metro.api(
42
- metro.client(oidcmw(options), oldmmw(options)),
43
+ metro.client(metro.oidc.oidcmw(options), oldmmw(options)),
43
44
  {
44
45
  profile,
45
46
  issuer: profile.solid$oidcIssuer,