@muze-nl/jsfs-solid 0.2.1 → 0.2.3

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.2.1",
3
+ "version": "0.2.3",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "dist/browser.js",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "homepage": "https://github.com/muze-nl/jsfs-solid#readme",
29
29
  "dependencies": {
30
- "@muze-nl/jaqt": "^0.10.3",
30
+ "@muze-nl/jaqt": "^0.10.6",
31
31
  "@muze-nl/jsfs": "^0.3.4",
32
- "@muze-nl/metro": "^0.6.17",
33
- "@muze-nl/metro-oidc": "^0.5.3",
34
- "@muze-nl/metro-oldm": "^0.2.1",
35
- "@muze-nl/oldm": "^0.3.6"
32
+ "@muze-nl/metro": "^0.6.20",
33
+ "@muze-nl/metro-oidc": "^0.5.6",
34
+ "@muze-nl/metro-oldm": "^0.3.2",
35
+ "@muze-nl/oldm": "^0.5.1"
36
36
  }
37
37
  }
package/package.json~ ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@muze-nl/jsfs-solid",
3
+ "version": "0.2.2",
4
+ "author": "auke@muze.nl",
5
+ "source": "src/SolidAdapter.js",
6
+ "main": "dist/browser.js",
7
+ "type": "module",
8
+ "devDependencies": {
9
+ "@eslint/js": "^9.39.2",
10
+ "esbuild": "^0.25.0",
11
+ "eslint": "^9.39.2",
12
+ "globals": "^16.5.0"
13
+ },
14
+ "description": "A filesystem adapter for JSFS that can read/write Solid Storage PODs",
15
+ "scripts": {
16
+ "test": "echo \"Error: no test specified\" && exit 1",
17
+ "build-dev": "esbuild --bundle src/SolidClient.js --outfile=dist/browser.js --sourcemap;",
18
+ "build": "esbuild --bundle src/SolidClient.js --outfile=dist/browser.min.js --minify --sourcemap;"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/muze-nl/jsfs-solid.git"
23
+ },
24
+ "license": "MIT",
25
+ "bugs": {
26
+ "url": "https://github.com/muze-nl/jsfs-solid/issues"
27
+ },
28
+ "homepage": "https://github.com/muze-nl/jsfs-solid#readme",
29
+ "dependencies": {
30
+ "@muze-nl/jaqt": "^0.10.6",
31
+ "@muze-nl/jsfs": "^0.3.4",
32
+ "@muze-nl/metro": "^0.6.20",
33
+ "@muze-nl/metro-oidc": "^0.5.6",
34
+ "@muze-nl/metro-oldm": "^0.3.2",
35
+ "@muze-nl/oldm": "^0.5.1"
36
+ }
37
+ }
@@ -17,7 +17,7 @@ export default class SolidAdapter extends HttpAdapter
17
17
  metroClient = client(metroClient)
18
18
  .with( oidc.oidcmw(solidConfiguration))
19
19
  .with( oldmmw(solidConfiguration))
20
- path = new Path(path);
20
+ path = Path.collapse(path);
21
21
  super(metroClient, path)
22
22
  this.#client = metroClient
23
23
  this.#path = path
@@ -30,7 +30,7 @@ export default class SolidAdapter extends HttpAdapter
30
30
 
31
31
  async read(path)
32
32
  {
33
- let response = await this.#client.get(path);
33
+ let response = await this.#client.get(Path.collapse(path, this.#path));
34
34
  let result = {
35
35
  type: this.getMimetype(response),
36
36
  name: Path.filename(path),
@@ -1,9 +1,9 @@
1
1
  import '@muze-nl/jsfs'
2
- import metro from '@muze-nl/metro'
3
- import oidc from '@muze-nl/metro-oidc'
2
+ import '@muze-nl/metro'
3
+ import '@muze-nl/metro-oidc'
4
4
  import '@muze-nl/oldm'
5
5
  import '@muze-nl/jaqt'
6
- import * as assert from '@muze-nl/assert'
6
+ import '@muze-nl/assert'
7
7
  import SolidAdapter from './SolidAdapter.js'
8
8
 
9
9
  export function solidClient(...options) {