@muze-nl/jsfs-solid 0.3.3 → 0.3.5
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/dist/browser.js +110 -36
- package/dist/browser.js.map +3 -3
- package/dist/browser.min.js +8 -8
- package/dist/browser.min.js.map +3 -3
- package/package.full.json +37 -0
- package/package.json +4 -10
- package/package.json~ +4 -10
- package/src/SolidClient.js +2 -2
|
@@ -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.
|
|
3
|
+
"version": "0.3.5",
|
|
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.
|
|
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.
|
|
35
|
-
"@muze-nl/oldm": "^0.5.
|
|
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.
|
|
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.
|
|
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.
|
|
35
|
-
"@muze-nl/oldm": "^0.5.
|
|
28
|
+
"@muze-nl/metro-oldm": "^0.3.4",
|
|
29
|
+
"@muze-nl/oldm": "^0.5.2"
|
|
36
30
|
}
|
|
37
31
|
}
|
package/src/SolidClient.js
CHANGED
|
@@ -30,7 +30,7 @@ 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),
|
|
33
|
+
const profile = await metro.client().with(oldmmw(options), metro.mw.getdata()).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
|
}
|
|
@@ -39,7 +39,7 @@ export default async function solidClient(webid, solidOptions) {
|
|
|
39
39
|
.map(s => new jsfs.fs(new SolidAdapter(s, '/', options)))
|
|
40
40
|
|
|
41
41
|
return metro.api(
|
|
42
|
-
metro.client(oidcmw(options), oldmmw(options)),
|
|
42
|
+
metro.client(metro.oidc.oidcmw(options), oldmmw(options)),
|
|
43
43
|
{
|
|
44
44
|
profile,
|
|
45
45
|
issuer: profile.solid$oidcIssuer,
|