From fd70d4828053489924bf73bd28320a7c8296b97b Mon Sep 17 00:00:00 2001 From: Petra Jaros Date: Tue, 3 Dec 2024 10:58:08 -0500 Subject: [PATCH 1/2] build: Actually run the build in CI --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca1b820..01bf506 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,5 +24,7 @@ jobs: cache: 'pnpm' - name: Install run: pnpm install + - name: Build + run: pnpm build - name: Test run: pnpm test From a96fc0641e7682faab04f4e347ff0b3a823e1415 Mon Sep 17 00:00:00 2001 From: Petra Jaros Date: Tue, 3 Dec 2024 11:01:16 -0500 Subject: [PATCH 2/2] fix: Fix build error --- src/api.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api.ts b/src/api.ts index dce5a69..130a7c9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -47,9 +47,11 @@ export interface ByteRange { length: number } +type FetchError = NotFound | Aborted | NetworkError | QueryError + export interface Locator { /** Retrieves the location of a blob of content. */ - locate (digest: MultihashDigest, options?: LocateOptions): Promise> + locate (digest: MultihashDigest, options?: LocateOptions): Promise> /** * Returns a similar locator which only locates content belonging to the given * Spaces. @@ -59,7 +61,7 @@ export interface Locator { export interface Fetcher { /** Fetches the bytes that correspond to the passed multihash digest. */ - fetch (digest: MultihashDigest, options?: FetchOptions): Promise> + fetch (digest: MultihashDigest, options?: FetchOptions): Promise> } export interface NotFound extends Failure {