generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed circular dependency giving errors under webpack
- Loading branch information
1 parent
18b4640
commit 5637d56
Showing
6 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const NODE_VERSION = | ||
typeof process !== "undefined" && process.versions && process.versions.node | ||
? process.versions.node | ||
: "unknown"; | ||
|
||
export const BUN_VERSION = | ||
typeof process !== "undefined" && process.versions && process.versions.bun | ||
? process.versions.bun | ||
: "unknown"; | ||
|
||
export const BROWSER_AGENT = | ||
typeof window !== "undefined" && window.navigator && window.navigator.userAgent | ||
? window.navigator.userAgent | ||
: "unknown"; | ||
|
||
export const isBrowser = () => BROWSER_AGENT !== "unknown"; | ||
|
||
export const isNode = () => NODE_VERSION !== "unknown"; | ||
|
||
export const isBun = () => BUN_VERSION !== "unknown"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters