Skip to content

Commit

Permalink
fix: remove pnpm process replace
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Aug 28, 2024
1 parent d3f0499 commit 555a50f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-points-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bunny.net/edgescript-sdk": patch
---

Remove process replace
3 changes: 2 additions & 1 deletion libs/bunny-sdk/src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 555a50f

Please sign in to comment.