@muze-nl/jsfs-solid 0.1.8 → 0.1.10

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.1.8",
3
+ "version": "0.1.10",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "dist/browser.js",
@@ -28,7 +28,7 @@
28
28
  "homepage": "https://github.com/muze-nl/jsfs-solid#readme",
29
29
  "dependencies": {
30
30
  "@muze-nl/jaqt": "^0.10.3",
31
- "@muze-nl/jsfs": "^0.3.2",
31
+ "@muze-nl/jsfs": "^0.3.3",
32
32
  "@muze-nl/metro": "^0.6.17",
33
33
  "@muze-nl/metro-oidc": "^0.5.3",
34
34
  "@muze-nl/metro-oldm": "^0.2.1",
package/package.json~ CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muze-nl/jsfs-solid",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "dist/browser.js",
@@ -28,7 +28,7 @@
28
28
  "homepage": "https://github.com/muze-nl/jsfs-solid#readme",
29
29
  "dependencies": {
30
30
  "@muze-nl/jaqt": "^0.10.3",
31
- "@muze-nl/jsfs": "^0.3.1",
31
+ "@muze-nl/jsfs": "^0.3.3",
32
32
  "@muze-nl/metro": "^0.6.17",
33
33
  "@muze-nl/metro-oidc": "^0.5.3",
34
34
  "@muze-nl/metro-oldm": "^0.2.1",
@@ -14,11 +14,13 @@ export default class SolidAdapter extends HttpAdapter
14
14
 
15
15
  constructor(metroClient, path='/', solidConfiguration={})
16
16
  {
17
- this.#client = client(metroClient)
17
+ metroClient = client(metroClient)
18
18
  .with( oidc.oidcmw(solidConfiguration))
19
19
  .with( oldmmw(solidConfiguration))
20
- this.#path = new Path(path);
21
- super(this.#client, this.#path)
20
+ path = new Path(path);
21
+ super(metroClient, path)
22
+ this.#client = metroClient
23
+ this.#path = path
22
24
  }
23
25
 
24
26
  get name()
@@ -55,7 +57,10 @@ export default class SolidAdapter extends HttpAdapter
55
57
  {
56
58
  let result = await this.read(path)
57
59
  if (result.data) {
58
- from(result.data)
60
+ if (!result.data.primary?.ldp$contains) {
61
+ throw new Error(path+' could not find ldp container', {cause: result})
62
+ }
63
+ from(result.data.primary.ldp$contains)
59
64
  .where({
60
65
  a: 'ldp$Resource'
61
66
  })