From 555a50f48057f41b42d21913effab55ee404107c Mon Sep 17 00:00:00 2001 From: Anthony Griffon Date: Wed, 28 Aug 2024 11:24:52 +0200 Subject: [PATCH] fix: remove pnpm process replace --- .changeset/curvy-points-move.md | 5 +++++ libs/bunny-sdk/src/platform.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/curvy-points-move.md diff --git a/.changeset/curvy-points-move.md b/.changeset/curvy-points-move.md new file mode 100644 index 0000000..5bf61c1 --- /dev/null +++ b/.changeset/curvy-points-move.md @@ -0,0 +1,5 @@ +--- +"@bunny.net/edgescript-sdk": patch +--- + +Remove process replace diff --git a/libs/bunny-sdk/src/platform.ts b/libs/bunny-sdk/src/platform.ts index cdcf60e..e447de5 100644 --- a/libs/bunny-sdk/src/platform.ts +++ b/libs/bunny-sdk/src/platform.ts @@ -69,10 +69,11 @@ const internal_getPlatform = (): Platform => { : Deno.version?.deno ?? "unknown", }; } + const process = globalThis.process; // Check if Node.js if ( Object.prototype.toString.call( - typeof globalThis.process !== "undefined" ? process : 0, + typeof process !== "undefined" ? process : 0, ) === "[object process]" ) { return {