Skip to content

Commit

Permalink
Revert "Remove references to the webcrypto package since it is availa…
Browse files Browse the repository at this point in the history
…ble natively in node 20"

This reverts commit 5f04525.
  • Loading branch information
ikoenigsknecht committed Sep 30, 2024
1 parent 5f04525 commit 14f1730
Show file tree
Hide file tree
Showing 26 changed files with 387 additions and 37 deletions.
1 change: 1 addition & 0 deletions packages/backend/jestSetup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { setEngine, CryptoEngine } from 'pkijs'
import { Crypto } from '@peculiar/webcrypto'

const crypto = new Crypto()

Expand Down
79 changes: 79 additions & 0 deletions packages/backend/package-lock.json

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

1 change: 1 addition & 0 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"@nestjs/common": "^10.2.10",
"@nestjs/core": "^10.2.10",
"@nestjs/platform-express": "^10.2.10",
"@peculiar/webcrypto": "1.4.3",
"@quiet/common": "^2.0.2-alpha.1",
"@quiet/identity": "^2.0.2-alpha.2",
"@quiet/logger": "^2.0.2-alpha.0",
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/backendManager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Crypto } from '@peculiar/webcrypto'
import { Command } from 'commander'
import { NestFactory } from '@nestjs/core'
import path from 'path'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { peerIdFromKeys } from '@libp2p/peer-id'
import { Inject, Injectable, OnModuleInit } from '@nestjs/common'
import { Crypto } from '@peculiar/webcrypto'
import { EventEmitter } from 'events'
import fs from 'fs'
import getPort from 'get-port'
Expand Down
139 changes: 139 additions & 0 deletions packages/desktop/package-lock.json

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

1 change: 1 addition & 0 deletions packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
},
"dependencies": {
"@electron/remote": "^2.0.10",
"@peculiar/webcrypto": "1.4.3",
"@quiet/common": "^2.0.2-alpha.1",
"@quiet/logger": "^2.0.2-alpha.0",
"@quiet/types": "^2.0.2-alpha.1",
Expand Down
1 change: 1 addition & 0 deletions packages/desktop/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import electronLocalshortcut from 'electron-localshortcut'
import url from 'url'
import { getPorts, ApplicationPorts, closeHangingBackendProcess } from './backendHelpers'
import { setEngine, CryptoEngine } from 'pkijs'
import { Crypto } from '@peculiar/webcrypto'
import { createLogger } from './logger'
import { fork, ChildProcess } from 'child_process'
import { DESKTOP_DATA_DIR, DESKTOP_DEV_DATA_DIR, getFilesData } from '@quiet/common'
Expand Down
1 change: 1 addition & 0 deletions packages/desktop/src/shared/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { setEngine, CryptoEngine } from 'pkijs'
import { Crypto } from '@peculiar/webcrypto'

import { io } from 'socket.io-client'

Expand Down
Loading

0 comments on commit 14f1730

Please sign in to comment.