Build successful for connected-solid

main
Jackson Morgan 6 months ago
parent a2d03e5431
commit eb7e36a22b
  1. 15
      packages/connected-solid/src/getStorageFromWebId.ts
  2. 4
      packages/connected-solid/src/resources/SolidLeaf.ts

@ -38,12 +38,17 @@ export async function getStorageFromWebId(
const webIdResource = dataset.getResource(webId) as SolidLeaf;
const readResult = await webIdResource.readIfUnfetched();
if (readResult.isError) return readResult;
const profile = this.usingType(ProfileWithStorageShapeType).fromSubject(
webId,
);
const profile = dataset
.usingType(ProfileWithStorageShapeType)
.fromSubject(webId);
if (profile.storage && profile.storage.size > 0) {
const containers = profile.storage.map((storageNode) =>
this.getResource(storageNode["@id"] as SolidContainerUri),
const containers = profile.storage
.map((storageNode) =>
dataset.getResource(storageNode["@id"] as SolidContainerUri),
)
.filter(
(container): container is SolidContainer =>
container.type === "SolidContainer",
);
return {
type: "getStorageContainerFromWebIdSuccess",

@ -61,11 +61,11 @@ export class SolidLeaf extends SolidResource {
* The status of the last request made for this leaf
*/
status:
| SharedStatuses<this>
| SharedStatuses<SolidLeaf>
| ReadLeafResult
| LeafCreateAndOverwriteResult
| LeafCreateIfAbsentResult
| UpdateResult<this>;
| UpdateResult<SolidLeaf>;
/**
* @internal

Loading…
Cancel
Save