Skip to content

Commit

Permalink
unfuck lock file, other items in session w/ Dan
Browse files Browse the repository at this point in the history
  • Loading branch information
boorad committed May 16, 2024
1 parent 4bafcc4 commit a569329
Show file tree
Hide file tree
Showing 4 changed files with 8,935 additions and 10,391 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install Dependencies
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Travis Vachon",
"Mikeal Rogers"
],
"packageManager": "[email protected]",
"license": "Apache-2.0 OR MIT",
"devDependencies": {
"c8": "^7.12.0",
Expand Down
10 changes: 2 additions & 8 deletions packages/encrypted-blockstore/src/crypto-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ import { Crypto } from '@peculiar/webcrypto'

export function getCrypto() {
try {
if (crypto && crypto.subtle) {
return crypto
} else {
return new Crypto()
}
return new Crypto()
} catch (e) {
return null
}
}
const gotCrypto = getCrypto()

export { gotCrypto as crypto }
export const crypto = getCrypto()

export function randomBytes(size: number) {
const bytes = new Uint8Array(size)
Expand Down
Loading

0 comments on commit a569329

Please sign in to comment.