Skip to content

Commit

Permalink
Remove references to the webcrypto package since it is available nati…
Browse files Browse the repository at this point in the history
…vely in node 20
  • Loading branch information
islathehut committed Sep 27, 2024
1 parent 7c2ae4f commit 5f04525
Show file tree
Hide file tree
Showing 26 changed files with 37 additions and 387 deletions.
1 change: 0 additions & 1 deletion packages/backend/jestSetup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { setEngine, CryptoEngine } from 'pkijs'
import { Crypto } from '@peculiar/webcrypto'

const crypto = new Crypto()

Expand Down
79 changes: 0 additions & 79 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: 0 additions & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
"@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: 0 additions & 1 deletion packages/backend/src/backendManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
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,6 +1,5 @@
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: 0 additions & 139 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: 0 additions & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
},
"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: 0 additions & 1 deletion packages/desktop/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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: 0 additions & 1 deletion packages/desktop/src/shared/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { setEngine, CryptoEngine } from 'pkijs'
import { Crypto } from '@peculiar/webcrypto'

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

Expand Down
Loading

0 comments on commit 5f04525

Please sign in to comment.