@muze-nl/jsfs-solid 0.3.2 → 0.3.4

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.
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@muze-nl/jsfs-solid",
3
+ "version": "0.3.3",
4
+ "author": "auke@muze.nl",
5
+ "source": "src/SolidAdapter.js",
6
+ "main": "src/SolidClient.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/browser.js --outfile=dist/browser.js --sourcemap;",
18
+ "build": "esbuild --bundle src/browser.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.6.0",
34
+ "@muze-nl/metro-oldm": "^0.3.2",
35
+ "@muze-nl/oldm": "^0.5.1"
36
+ }
37
+ }
package/package.json CHANGED
@@ -1,16 +1,10 @@
1
1
  {
2
2
  "name": "@muze-nl/jsfs-solid",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "src/SolidClient.js",
7
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
8
  "description": "A filesystem adapter for JSFS that can read/write Solid Storage PODs",
15
9
  "scripts": {
16
10
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -28,10 +22,10 @@
28
22
  "homepage": "https://github.com/muze-nl/jsfs-solid#readme",
29
23
  "dependencies": {
30
24
  "@muze-nl/jaqt": "^0.10.6",
31
- "@muze-nl/jsfs": "^0.3.4",
25
+ "@muze-nl/jsfs": "^0.3.5",
32
26
  "@muze-nl/metro": "^0.6.20",
33
27
  "@muze-nl/metro-oidc": "^0.6.0",
34
- "@muze-nl/metro-oldm": "^0.3.2",
35
- "@muze-nl/oldm": "^0.5.1"
28
+ "@muze-nl/metro-oldm": "^0.3.4",
29
+ "@muze-nl/oldm": "^0.5.2"
36
30
  }
37
31
  }
package/package.json~ CHANGED
@@ -1,16 +1,10 @@
1
1
  {
2
2
  "name": "@muze-nl/jsfs-solid",
3
- "version": "0.3.1",
3
+ "version": "0.3.4",
4
4
  "author": "auke@muze.nl",
5
5
  "source": "src/SolidAdapter.js",
6
6
  "main": "src/SolidClient.js",
7
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
8
  "description": "A filesystem adapter for JSFS that can read/write Solid Storage PODs",
15
9
  "scripts": {
16
10
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -28,10 +22,10 @@
28
22
  "homepage": "https://github.com/muze-nl/jsfs-solid#readme",
29
23
  "dependencies": {
30
24
  "@muze-nl/jaqt": "^0.10.6",
31
- "@muze-nl/jsfs": "^0.3.4",
25
+ "@muze-nl/jsfs": "^0.3.5",
32
26
  "@muze-nl/metro": "^0.6.20",
33
27
  "@muze-nl/metro-oidc": "^0.6.0",
34
- "@muze-nl/metro-oldm": "^0.3.2",
35
- "@muze-nl/oldm": "^0.5.1"
28
+ "@muze-nl/metro-oldm": "^0.3.4",
29
+ "@muze-nl/oldm": "^0.5.2"
36
30
  }
37
31
  }
@@ -26,20 +26,20 @@ export default async function solidClient(webid, solidOptions) {
26
26
  }
27
27
  const options = Object.assign({}, defaults, solidOptions)
28
28
  for (const prefix in defaults.prefixes) {
29
- if (!info.prefixes[prefix]) {
30
- info.prefixes[prefix] = defaults.prefixes[prefix]
29
+ if (!options.prefixes[prefix]) {
30
+ options.prefixes[prefix] = defaults.prefixes[prefix]
31
31
  }
32
32
  }
33
- const profile = await metro.client().with(oldmmw(info), getdatamw()).get(webid)?.primary
33
+ const profile = await metro.client().with(oldmmw(options), getdatamw()).get(webid)?.primary
34
34
  if (!profile || !profile.solid$oidcIssuer) { //FIXME: don't assume $ as the separator
35
35
  throw new Error('solidClient: '+webid+' did not return valid solid profile')
36
36
  }
37
- info.issuer = profile.solid$oidcIssuer
37
+ options.issuer = profile.solid$oidcIssuer
38
38
  const storage = oldm.many(profile.space$storage)
39
- .map(s => new jsfs.fs(new SolidAdapter(s, '/', info)))
39
+ .map(s => new jsfs.fs(new SolidAdapter(s, '/', options)))
40
40
 
41
41
  return metro.api(
42
- metro.client(oidcmw(info), oldmmw(info)),
42
+ metro.client(oidcmw(options), oldmmw(options)),
43
43
  {
44
44
  profile,
45
45
  issuer: profile.solid$oidcIssuer,