Skip to content

Commit 035245e

Browse files
committed
Use uncrypto
1 parent 07f0268 commit 035245e

File tree

5 files changed

+235
-17
lines changed

5 files changed

+235
-17
lines changed

packages/trigger-sdk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"slug": "^6.0.0",
5757
"terminal-link": "^3.0.0",
5858
"ulid": "^2.3.0",
59+
"uncrypto": "^0.1.3",
5960
"uuid": "^9.0.0",
6061
"ws": "^8.11.0"
6162
},
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @ts-ignore
2+
const { subtle } = require("uncrypto");
3+
4+
// @ts-ignore
5+
module.exports.subtle = subtle;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @ts-ignore
2+
import { subtle } from "uncrypto";
3+
4+
// @ts-ignore
5+
export { subtle };

packages/trigger-sdk/src/v3/webhooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Webhook } from "@trigger.dev/core/v3";
2-
import { subtle } from "crypto";
2+
import { subtle } from "../imports/uncrypto.js";
33

44
/**
55
* The type of error thrown when a webhook fails to parse or verify

0 commit comments

Comments
 (0)