Skip to content

Commit

Permalink
feat: try to remove the process dep
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Aug 28, 2024
1 parent ed84922 commit 96c00b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/friendly-needles-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bunny.net/edgescript-sdk": patch
---

Try to remove the process dep
2 changes: 1 addition & 1 deletion libs/bunny-sdk/src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const internal_getPlatform = (): Platform => {
// Check if Node.js
if (
Object.prototype.toString.call(
typeof process !== "undefined" ? process : 0,
typeof globalThis.process !== "undefined" ? process : 0,
) === "[object process]"
) {
return {
Expand Down

0 comments on commit 96c00b7

Please sign in to comment.