Skip to content

Commit

Permalink
Update better-sqlite3 to 8.7.1 to fix node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Feb 23, 2024
1 parent 82a41c3 commit 9c15b89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/qrcode-svg": "1.1.1",
"@types/systemjs": "6.1.1",
"@types/winreg": "1.2.31",
"better-sqlite3": "git+https://github.com/tutao/better-sqlite3-sqlcipher#991676c3b0c53ecb08380b2799cf7b8fda6c9f16",
"better-sqlite3": "git+https://github.com/tutao/better-sqlite3-sqlcipher#c6ee076a4f15671d8a0fa7ddc16d12b179deb350",
"cborg": "4.0.5",
"dompurify": "3.0.6",
"electron": "28.2.1",
Expand Down
11 changes: 0 additions & 11 deletions packages/tutanota-crypto/test/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import { random } from "../lib/random/Randomizer.js"

export async function bootstrapTests() {
const crypto = await import("node:crypto")
globalThis.crypto = {
getRandomValues: function (bytes: Uint8Array) {
let randomBytes = crypto.randomBytes(bytes.length)
bytes.set(randomBytes)
},
randomUUID: function () {
return "36b8f84d-df4e-4d49-b662-bcde71a8764f" as const
},
subtle: "We have to do this, because node's crypto is not compatible with SubtleCrypto. Sorry." as unknown as SubtleCrypto,
}
await random.addEntropy([
{
data: 36,
Expand Down

0 comments on commit 9c15b89

Please sign in to comment.