Skip to content

Commit

Permalink
chore: replace Buffer with equivalent Uint8Array and crypto with …
Browse files Browse the repository at this point in the history
…Web Crypto (#74)

This makes the package fully "serverless" compatible.
Author: @bitofbreeze
  • Loading branch information
bitofbreeze authored and dev-xo committed Sep 10, 2024
1 parent d3fe144 commit 4e4be7f
Show file tree
Hide file tree
Showing 6 changed files with 838 additions and 1,869 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install Dependencies
uses: bahmutov/[email protected]
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install Dependencies
uses: bahmutov/[email protected]
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install Dependencies
uses: bahmutov/[email protected]
Expand All @@ -95,7 +95,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install Dependencies
uses: bahmutov/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"/public/dist"
],
"dependencies": {
"@epic-web/totp": "^1.1.3",
"@epic-web/totp": "^2.0.0",
"base32-encode": "^2.0.0",
"jose": "^5.8.0"
},
Expand All @@ -62,5 +62,8 @@
"vite": "^4.5.3",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
},
"engines": {
"node": ">=20"
}
}
Loading

0 comments on commit 4e4be7f

Please sign in to comment.