From 0a56c57edd0ad0fd723bdcf2e4e707eb50cc3485 Mon Sep 17 00:00:00 2001 From: timonson Date: Sun, 18 Jun 2023 15:14:39 +0200 Subject: [PATCH] Update --- .github/workflows/test.yml | 2 +- .gitignore | 3 +++ algorithm.ts | 2 +- deno.json | 12 ++++++++++++ deps.ts | 2 +- 5 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 deno.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b59a61..cee08dc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Deno run: | - curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.27.0' || '' }} + curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.34.2' || '' }} echo "$HOME/.deno/bin" >> $${{ runner.os == 'Windows' && 'env:' || '' }}GITHUB_PATH - name: Upgrade to Deno canary if: matrix.deno == 'canary' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e915afe --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.* +!/.gitignore +deno.lock diff --git a/algorithm.ts b/algorithm.ts index a79b950..d804415 100644 --- a/algorithm.ts +++ b/algorithm.ts @@ -17,7 +17,7 @@ export type Algorithm = | "RS512" | "ES256" | "ES384" - // P-521 is not yet supported. + // | "ES512" //is not yet supported. // https://github.com/denoland/deno/blob/main/ext/crypto/00_crypto.js | "none"; diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..d96757d --- /dev/null +++ b/deno.json @@ -0,0 +1,12 @@ +{ + "tasks": { + "test": "deno test --check --unstable --allow-all" + }, + "compilerOptions": { + "verbatimModuleSyntax": true, + "strict": true, + "useUnknownInCatchVariables": true, + "noImplicitOverride": true, + "checkJs": true + } +} diff --git a/deps.ts b/deps.ts index 1de39de..3559003 100644 --- a/deps.ts +++ b/deps.ts @@ -1 +1 @@ -export * as base64url from "https://deno.land/std@0.161.0/encoding/base64url.ts"; +export * as base64url from "https://deno.land/std@0.192.0/encoding/base64url.ts";