@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/dist/browser.js +9 -4
- package/dist/browser.js.map +2 -2
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +2 -2
- package/package.json +2 -2
- package/package.json~ +2 -2
- package/src/SolidAdapter.js +9 -4
package/dist/browser.js
CHANGED
|
@@ -14691,9 +14691,11 @@
|
|
|
14691
14691
|
#client;
|
|
14692
14692
|
#path;
|
|
14693
14693
|
constructor(metroClient, path = "/", solidConfiguration = {}) {
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
super(
|
|
14694
|
+
metroClient = client(metroClient).with(browser_default.oidcmw(solidConfiguration)).with(src_default3(solidConfiguration));
|
|
14695
|
+
path = new Path(path);
|
|
14696
|
+
super(metroClient, path);
|
|
14697
|
+
this.#client = metroClient;
|
|
14698
|
+
this.#path = path;
|
|
14697
14699
|
}
|
|
14698
14700
|
get name() {
|
|
14699
14701
|
return "SolidAdapter";
|
|
@@ -14724,7 +14726,10 @@
|
|
|
14724
14726
|
async list(path) {
|
|
14725
14727
|
let result2 = await this.read(path);
|
|
14726
14728
|
if (result2.data) {
|
|
14727
|
-
|
|
14729
|
+
if (!result2.data.primary?.ldp$contains) {
|
|
14730
|
+
throw new Error(path + " could not find ldp container", { cause: result2 });
|
|
14731
|
+
}
|
|
14732
|
+
from(result2.data.primary.ldp$contains).where({
|
|
14728
14733
|
a: "ldp$Resource"
|
|
14729
14734
|
}).select({
|
|
14730
14735
|
filename: (o) => jsfs.path.filename(metro.url(o.id).pathname),
|