Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Commit b449b9b

Browse files
committed
use native nodejs webcrypto implementation
instead of one that depends on openssl
1 parent 55b4022 commit b449b9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/runtime/crypto.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const Crypto = require('node-webcrypto-ossl')
1+
const { Crypto } = require('@peculiar/webcrypto');
22

3-
module.exports.crypto = new Crypto()
3+
module.exports.crypto = new Crypto();

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
"dependencies": {
3535
"@dollarshaveclub/node-fetch": "^3.1.0",
3636
"@mattiasbuelens/web-streams-polyfill": "^0.1.0",
37+
"@peculiar/webcrypto": "^1.0.9",
3738
"arraybuffer-equal": "^1.0.4",
3839
"b2a": "^1.0.10",
3940
"commander": "^2.19.0",
4041
"http-cache-semantics": "^4.0.1",
4142
"lru-cache": "^5.1.1",
42-
"moment": "^2.22.2",
43-
"node-webcrypto-ossl": "^1.0.39"
43+
"moment": "^2.22.2"
4444
},
4545
"devDependencies": {
4646
"@types/node": "^10.12.18",

0 commit comments

Comments
 (0)