From 961ab627b6b7129929ff65a27e2617236af3b264 Mon Sep 17 00:00:00 2001 From: Steve Lam Date: Fri, 19 Apr 2019 17:27:52 -0700 Subject: [PATCH] use native nodejs webcrypto implementation instead of one that depends on openssl --- lib/runtime/crypto.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/runtime/crypto.js b/lib/runtime/crypto.js index 966b214..5633294 100644 --- a/lib/runtime/crypto.js +++ b/lib/runtime/crypto.js @@ -1,3 +1,3 @@ -const Crypto = require('node-webcrypto-ossl') +const { Crypto } = require('@peculiar/webcrypto') module.exports.crypto = new Crypto() diff --git a/package.json b/package.json index 537b1f0..4f1e136 100644 --- a/package.json +++ b/package.json @@ -34,13 +34,13 @@ "dependencies": { "@dollarshaveclub/node-fetch": "^3.1.0", "@mattiasbuelens/web-streams-polyfill": "^0.1.0", + "@peculiar/webcrypto": "^1.0.9", "arraybuffer-equal": "^1.0.4", "b2a": "^1.0.10", "commander": "^2.19.0", "http-cache-semantics": "^4.0.1", "lru-cache": "^5.1.1", - "moment": "^2.22.2", - "node-webcrypto-ossl": "^1.0.39" + "moment": "^2.22.2" }, "devDependencies": { "@types/node": "^10.12.18",