From 1531c54af69670dd38ab2b3a9c5734254bbe8aa0 Mon Sep 17 00:00:00 2001 From: Petra Jaros Date: Tue, 27 Aug 2024 14:27:39 -0400 Subject: [PATCH 1/2] Check types in CI --- .github/workflows/test.yml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 011dab5..daa3491 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,4 +9,5 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/pnpm - run: pnpm lint + - run: pnpm typecheck - run: pnpm test diff --git a/package.json b/package.json index cec5878..4c7be31 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "start": "next start", "test": "pnpm lint", "lint": "next lint", + "typecheck": "tsc", "pages:build": "pnpm dlx @cloudflare/next-on-pages@1", "pages:watch": "pnpm @cloudflare/next-on-pages@1 --watch", "pages:dev": "pnpm wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat" From f9c60c97249dbde9fae09764a6e9896e450e0cd7 Mon Sep 17 00:00:00 2001 From: Petra Jaros Date: Tue, 27 Aug 2024 14:32:17 -0400 Subject: [PATCH 2/2] Let `HTTP.open()` infer the service type --- src/components/services.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/services.ts b/src/components/services.ts index 9b92d5f..386973e 100644 --- a/src/components/services.ts +++ b/src/components/services.ts @@ -16,7 +16,7 @@ export const servicePrincipal = DID.parse( export const serviceConnection = connect({ id: servicePrincipal, codec: CAR.outbound, - channel: HTTP.open({ + channel: HTTP.open({ url: serviceURL, method: 'POST', }),