Skip to content

Commit

Permalink
Bump the internal-tooling group with 5 updates (#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Aug 23, 2024
1 parent 69ac916 commit 585ca55
Show file tree
Hide file tree
Showing 8 changed files with 443 additions and 610 deletions.
2 changes: 1 addition & 1 deletion e2e/node/acp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ describe("An ACP Solid server", () => {
await expect(getSolidDataset(sessionResource)).resolves.toEqual(
expect.objectContaining({ graphs: { default: {} } }),
);
} catch (e) {
} catch {
console.error(

Check warning on line 297 in e2e/node/acp.test.ts

View workflow job for this annotation

GitHub Actions / lint / lint

Unexpected console statement
`"Making a resource public with the universal API fails in environment ${env.environment}`,
);
Expand Down
1,033 changes: 433 additions & 600 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/access/wac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ async function saveUpdatedAcl<
try {
savedAcl = await saveAclFor(resource, acl, options);
return internal_setResourceAcl(resource, savedAcl);
} catch (e) {
} catch {
return null;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/acp/acp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ async function fetchAcr(
resource.internal_resourceInfo.aclUrl,
options,
);
} catch (e) {
} catch {
// Since both ACL and ACR will be discovered through the same header, we
// need to ignore errors here so that in the case of ACL not found, the
// code can resume and a new ACL can be initialized. The case for ACR is
Expand All @@ -311,7 +311,7 @@ async function fetchAcr(
let acr: SolidDataset & WithResourceInfo;
try {
acr = await getSolidDataset(acrUrl, options);
} catch (e: unknown) {
} catch {
return {
internal_acp: {
acr: null,
Expand Down
2 changes: 1 addition & 1 deletion src/acp/util/getResourceAcr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function getResourceAcr<T extends WithServerResourceInfo>(
let acr: SolidDataset & WithServerResourceInfo;
try {
acr = await getSolidDataset(acrUrl, options);
} catch (e: unknown) {
} catch {
return null;
}

Expand Down
6 changes: 3 additions & 3 deletions src/resource/solidDataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export async function saveSolidDatasetInContainer(
// Try to parse the location header as a URL (safe if it's an absolute URL)``
// This should help determine the container URL if normalisation happened on the server side.
resourceIri = new URL(internalResourceInfo.location).href;
} catch (e) {
} catch {
// If it's a relative URL then, rely on the response.url to construct the sourceIri
resourceIri = new URL(internalResourceInfo.location, response.url).href;
}
Expand Down Expand Up @@ -710,7 +710,7 @@ export async function createContainerInContainer(
sourceIri,
},
});
} catch (e) {
} catch {
// If it's a relative URL then, rely on the response.url to construct the sourceIri
}

Expand Down Expand Up @@ -1163,7 +1163,7 @@ export async function getWellKnownSolid(
).href;

return await getSolidDataset(wellKnownSolidUrl);
} catch (e) {
} catch {
// In case of error, do nothing and try to discover the .well-known
// at the pod's root.
}
Expand Down
2 changes: 1 addition & 1 deletion src/universal/setAgentAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function setAgentAccess(
try {
await saveAcrFor(await setAgentAccessAcp(acr, webId, access), options);
return await getAgentAccess(resourceUrl, webId, options);
} catch (e) {
} catch {
return null;
}
}
2 changes: 1 addition & 1 deletion src/universal/setPublicAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function setPublicAccess(
try {
await saveAcrFor(await setPublicAccessAcp(acr, access), options);
return await getPublicAccessAcp(resourceUrl, options);
} catch (e) {
} catch {
return null;
}
}

0 comments on commit 585ca55

Please sign in to comment.