From 9b1bf0d2530c5dd03ec0339e4386ab01d34cb9e6 Mon Sep 17 00:00:00 2001 From: timonson Date: Fri, 9 Aug 2024 16:15:13 +0200 Subject: [PATCH] Reverted last 6 commits because jsr is not compatible with browser --- .github/workflows/publish.yml | 19 ------------------- .github/workflows/test.yml | 2 +- .gitignore | 7 ------- README.md | 2 +- deno.json | 3 --- deps.ts | 2 +- 6 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 27776a9..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish -on: - push: - branches: - - master - -jobs: - publish: - runs-on: ubuntu-latest - - permissions: - contents: read - id-token: write - - steps: - - uses: actions/checkout@v4 - - - name: Publish package - run: npx jsr publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1367356..221997e 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.45.4' || '' }} + curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.37.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 index 564f2e7..e915afe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,3 @@ .* !/.gitignore - -!/.github -/.github/* -!/.github/workflows -/.github/workflows/* -!/.github/workflows/publish.yml - deno.lock diff --git a/README.md b/README.md index cb2d7d1..ace39f3 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Takes `Header`, `Payload` and `CryptoKey` and returns the url-safe encoded ```typescript import { create } from "https://deno.land/x/djwt@$VERSION/mod.ts"; -const jwt = await create({ alg: "HS512", type: "JWT" }, { foo: "bar" }, key); +const jwt = await create({ alg: "HS512", typ: "JWT" }, { foo: "bar" }, key); ``` ### verify diff --git a/deno.json b/deno.json index 58685cd..d96757d 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,4 @@ { - "name": "@zaubrik/djwt", - "version": "3.0.2", - "exports": "./mod.ts", "tasks": { "test": "deno test --check --unstable --allow-all" }, diff --git a/deps.ts b/deps.ts index 56bb689..df9408c 100644 --- a/deps.ts +++ b/deps.ts @@ -1,4 +1,4 @@ export { decodeBase64Url, encodeBase64Url, -} from "https://deno.land/std@0.224.0/encoding/base64url.ts"; +} from "https://deno.land/std@0.221.0/encoding/base64url.ts";