Skip to content

Commit d2a20d6

Browse files
committed
fix: NodeJS bundle invalid
safe-buffer was using require Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 111cb62 commit d2a20d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/comms/src/index.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ root.fetch.__trustwaveAgent = new https.Agent({
5858
});
5959

6060
// btoa polyfill ---
61-
import { Buffer } from "safe-buffer";
61+
import { Buffer } from "node:buffer";
6262
if (typeof root.btoa === "undefined") {
6363
root.btoa = function (str: string) {
6464
return Buffer.from(str || "", "utf8").toString("base64");

0 commit comments

Comments
 (0)