@muze-nl/jsfs-solid 0.3.7 → 0.3.9

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.7",
3
+ "version": "0.3.9",
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.6",
3
+ "version": "0.3.8",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "src/SolidClient.js",
@@ -35,22 +35,22 @@ export default async function solidClient(webid, solidOptions) {
35
35
  if (!profile || !profile.solid$oidcIssuer) { //FIXME: don't assume $ as the separator
36
36
  throw new Error('solidClient: '+webid+' did not return valid solid profile')
37
37
  }
38
- options.issuer = profile.solid$oidcIssuer
38
+ options.issuer = profile.solid$oidcIssuer.id
39
39
  const storage = oldm.many(profile.space$storage)
40
- .map(s => new jsfs.fs(new SolidAdapter(s, '/', options)))
40
+ .map(s => new jsfs.fs(new SolidAdapter(s.id, '/', options)))
41
41
 
42
42
  const client = metro.client(metro.oidc.oidcmw(options), oldmmw(options))
43
43
  Object.assign(client, {
44
44
  profile,
45
- issuer: profile.solid$oidcIssuer,
46
- inbox: profile.ldp$inbox,
45
+ issuer: profile.solid$oidcIssuer.id,
46
+ inbox: profile.ldp$inbox.id,
47
47
  id: function() {
48
48
  return metro.oidc.idToken(this.issuer)
49
49
  },
50
50
  logout: async function() {
51
51
  throw new Error('not yet implemented')
52
52
  },
53
- ...storage
53
+ storage
54
54
  })
55
55
  client.id.bind(client)
56
56
  client.logout.bind(client)