Skip to content

Commit

Permalink
chore(deps-dev): bump @types/node from 20.6.2 to 20.9.0 (#865)
Browse files Browse the repository at this point in the history
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.6.2 to 20.9.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Nov 12, 2023
1 parent f1c3dac commit cf32676
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 58 deletions.
14 changes: 11 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/common/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ describe("getVerifiableCredential", () => {
);

await getVerifiableCredential("https://some.vc", {
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
});
expect(mockedFetch).toHaveBeenCalledWith("https://some.vc");
});
Expand All @@ -304,7 +304,7 @@ describe("getVerifiableCredential", () => {

await expect(
getVerifiableCredential("https://some.vc", {
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
}),
).rejects.toThrow(/https:\/\/some.vc.*401.*Unauthenticated/);
});
Expand All @@ -316,7 +316,7 @@ describe("getVerifiableCredential", () => {

await expect(
getVerifiableCredential("https://some.vc", {
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
}),
).rejects.toThrow(/https:\/\/some.vc.*JSON/);
});
Expand All @@ -330,7 +330,7 @@ describe("getVerifiableCredential", () => {

await expect(
getVerifiableCredential("https://some.vc", {
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
}),
).rejects.toThrow(/https:\/\/some.vc.*Verifiable Credential/);
});
Expand All @@ -343,7 +343,7 @@ describe("getVerifiableCredential", () => {
);

const vc = await getVerifiableCredential("https://some.vc", {
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
});
expect(vc).toStrictEqual(mockDefaultCredential());
});
Expand Down
28 changes: 14 additions & 14 deletions src/issue/issue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe("issueVerifiableCredential", () => {
{ "@context": ["https://some.context"] },
{ "@context": ["https://some.context"] },
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
// eslint-disable-next-line no-empty
Expand Down Expand Up @@ -84,7 +84,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some.context"] },
{ "@context": ["https://some.context"] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).rejects.toThrow(
/https:\/\/some\.endpoint.*could not successfully issue a VC.*400.*Bad request/,
Expand All @@ -104,7 +104,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some.context"] },
{ "@context": ["https://some.context"] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).rejects.toThrow("unexpected object: ");
});
Expand All @@ -120,7 +120,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some.context"] },
{ "@context": ["https://some.context"] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).resolves.toEqual(mockDefaultCredential());
});
Expand All @@ -132,7 +132,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some.context"] },
{ "@context": ["https://some.context"] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
// eslint-disable-next-line no-empty
} catch (_e) {}
Expand All @@ -149,7 +149,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some.context"] },
{ "@context": ["https://some.context"] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
// eslint-disable-next-line no-empty
} catch (_e) {}
Expand All @@ -171,7 +171,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some-subject.context"], aClaim: "a value" },
undefined,
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
// eslint-disable-next-line no-empty
} catch (_e) {}
Expand All @@ -198,7 +198,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some-subject.context"] },
{ "@context": ["https://some-credential.context"], aClaim: "a value" },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
// eslint-disable-next-line no-empty
} catch (_e) {}
Expand Down Expand Up @@ -228,7 +228,7 @@ describe("issueVerifiableCredential", () => {
"https://some.endpoint",
{ "@context": ["https://some-subject.context"] },
{ "@context": ["https://some-credential.context"], type: "some-type" },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
// eslint-disable-next-line no-empty
} catch (_e) {}
Expand Down Expand Up @@ -261,7 +261,7 @@ describe("issueVerifiableCredential", () => {
type: ["some-type", "some-other-type"],
},
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
// eslint-disable-next-line no-empty
Expand Down Expand Up @@ -298,7 +298,7 @@ describe("issueVerifiableCredential", () => {
},
{ "@context": ["https://some-credential.context"] },
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
// eslint-disable-next-line no-empty
Expand Down Expand Up @@ -332,7 +332,7 @@ describe("issueVerifiableCredential", () => {
{ "@context": ["https://some-subject.context"], aClaim: "a value" },
undefined,
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
// eslint-disable-next-line no-empty
Expand Down Expand Up @@ -362,7 +362,7 @@ describe("issueVerifiableCredential", () => {
"https://some.subject",
{ "@context": ["https://some-subject.context"], aClaim: "a value" },
undefined,
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
// eslint-disable-next-line no-empty
} catch (_e) {}
Expand Down Expand Up @@ -406,7 +406,7 @@ describe("issueVerifiableCredential", () => {
type: ["some-type", "some-other-type"],
},
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
expect(resultVc.proof.proofValue).toBe(
Expand Down
12 changes: 6 additions & 6 deletions src/lookup/derive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("getVerifiableCredentialAllFromShape", () => {
credentialSubject: { id: "https://some.subject/" },
},
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
// eslint-disable-next-line no-empty
Expand Down Expand Up @@ -93,7 +93,7 @@ describe("getVerifiableCredentialAllFromShape", () => {
},
{
includeExpiredVc: true,
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
expect(mockedFetch).toHaveBeenCalledWith(
Expand All @@ -116,7 +116,7 @@ describe("getVerifiableCredentialAllFromShape", () => {
"@context": ["https://some.context"],
credentialSubject: { id: "https://some.subject/" },
},
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
expect(spiedQuery).toHaveBeenCalledWith(
"https://some.endpoint",
Expand Down Expand Up @@ -144,7 +144,7 @@ describe("getVerifiableCredentialAllFromShape", () => {
"@context": ["https://some.context"],
credentialSubject: { id: "https://some.subject/" },
},
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).resolves.toEqual(mockDefaultPresentation().verifiableCredential);
});
Expand All @@ -171,7 +171,7 @@ describe("getVerifiableCredentialAllFromShape", () => {
"@context": ["https://some.context"],
credentialSubject: { id: "https://some.subject/" },
},
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).resolves.toEqual([]);
});
Expand All @@ -192,7 +192,7 @@ describe("getVerifiableCredentialAllFromShape", () => {
"https://some.endpoint/query",
VC_SHAPE,
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);

Expand Down
14 changes: 7 additions & 7 deletions src/lookup/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("query", () => {
await query(
"https://some.endpoint/query",
{ query: [mockRequest] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
expect(mockedFetch).toHaveBeenCalled();
});
Expand Down Expand Up @@ -94,7 +94,7 @@ describe("query", () => {
query(
"https://example.org/query",
{ query: [mockRequest] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).rejects.toThrow();
});
Expand All @@ -111,7 +111,7 @@ describe("query", () => {
query(
"https://example.org/query",
{ query: [mockRequest] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).rejects.toThrow();
});
Expand All @@ -128,7 +128,7 @@ describe("query", () => {
query(
"https://example.org/query",
{ query: [mockRequest] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).rejects.toThrow();
});
Expand All @@ -144,7 +144,7 @@ describe("query", () => {
await query(
"https://some.endpoint/query",
{ query: [mockRequest] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
expect(mockedFetch).toHaveBeenCalledWith(
"https://some.endpoint/query",
Expand All @@ -169,7 +169,7 @@ describe("query", () => {
query(
"https://example.org/query",
{ query: [mockRequest] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).resolves.toStrictEqual(mockDefaultPresentation());
});
Expand All @@ -194,7 +194,7 @@ describe("query", () => {
const resultVp = await query(
"https://example.org/query",
{ query: [mockRequest] },
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
expect(resultVp.verifiableCredential![0].proof.proofValue).toBe(
Expand Down
6 changes: 3 additions & 3 deletions src/revoke/revoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe("revokeVerifiableCredential", () => {
"https://some.endpoint",
"https://some.example#credential",
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
// eslint-disable-next-line no-empty
Expand Down Expand Up @@ -82,7 +82,7 @@ describe("revokeVerifiableCredential", () => {
revokeVerifiableCredential(
"https://some.endpoint",
"https://some.example#credential",
{ fetch: mockedFetch },
{ fetch: mockedFetch as (typeof UniversalFetch)["fetch"] },
),
).rejects.toThrow(/some.endpoint.*400.*Bad request/);
});
Expand All @@ -100,7 +100,7 @@ describe("revokeVerifiableCredential", () => {
"https://some.endpoint",
"https://some.example#credential",
{
fetch: mockedFetch,
fetch: mockedFetch as (typeof UniversalFetch)["fetch"],
},
);
expect(mockedFetch).toHaveBeenCalledWith(
Expand Down
Loading

1 comment on commit cf32676

@vercel
Copy link

@vercel vercel bot commented on cf32676 Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

solid-client-vc-js – ./

solid-client-vc-js-git-main-inrupt.vercel.app
solid-client-vc-js.vercel.app
solid-client-vc-js-inrupt.vercel.app

Please sign in to comment.