Skip to content

Commit d9676ca

Browse files
committed
fix: remove obsolete node-webcrypto-ossl dependency
1 parent f7fbf73 commit d9676ca

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

package-lock.json

Lines changed: 2 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"@types/lolex": "^3.1.1",
4343
"jest": "^24.9.0",
4444
"lolex": "^4.2.0",
45-
"node-webcrypto-ossl": "^1.0.48",
4645
"prettier": "^1.18.2",
4746
"puppeteer": "^1.19.0",
4847
"semantic-release": "^15.13.24",

test/node.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { install, Clock } from "lolex";
2-
import WebCrypto from "node-webcrypto-ossl";
32

43
import { githubAppJwt } from "../src/index";
54

@@ -74,8 +73,7 @@ beforeEach(() => {
7473
test("README example for app auth", async () => {
7574
const result = await githubAppJwt({
7675
id: APP_ID,
77-
privateKey: PRIVATE_KEY,
78-
crypto: new WebCrypto()
76+
privateKey: PRIVATE_KEY
7977
});
8078

8179
expect(result).toStrictEqual({
@@ -88,8 +86,7 @@ test("README example for app auth", async () => {
8886
test("README example for app auth with private key in PKCS#8 format", async () => {
8987
const result = await githubAppJwt({
9088
id: APP_ID,
91-
privateKey: PRIVATE_KEY_PKCS8,
92-
crypto: new WebCrypto()
89+
privateKey: PRIVATE_KEY_PKCS8
9390
});
9491

9592
expect(result).toStrictEqual({

0 commit comments

Comments
 (0)