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 {