From ca1a03baa44a35085a13bde713d7bae357ad6b88 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 21 Feb 2022 13:12:48 +1100 Subject: [PATCH] chore: update to Deno 1.19.0, media_types 2.12.2 --- .github/workflows/oak-ci.yml | 2 +- deps.ts | 2 +- etag.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/oak-ci.yml b/.github/workflows/oak-ci.yml index 32ed255e..ba5a575e 100644 --- a/.github/workflows/oak-ci.yml +++ b/.github/workflows/oak-ci.yml @@ -15,7 +15,7 @@ jobs: - name: download deno uses: denoland/setup-deno@main with: - deno-version: 1.18.0 + deno-version: 1.19.0 - name: check format if: matrix.os == 'ubuntu-latest' diff --git a/deps.ts b/deps.ts index d14adc72..dc2261ab 100644 --- a/deps.ts +++ b/deps.ts @@ -36,7 +36,7 @@ export { contentType, extension, lookup, -} from "https://deno.land/x/media_types@v2.12.1/mod.ts"; +} from "https://deno.land/x/media_types@v2.12.2/mod.ts"; export { compile, match as pathMatch, diff --git a/etag.ts b/etag.ts index 46ba7e5b..d6066fa5 100644 --- a/etag.ts +++ b/etag.ts @@ -72,7 +72,7 @@ export function getEntity>( context: Context, ): Promise { const { body } = context.response; - if (body instanceof Deno.File) { + if (body instanceof Deno.FsFile) { return fstat(body); } if (body instanceof Uint8Array) {