Skip to content

Commit

Permalink
fix: conditional check for process.versions?.bun (resolves #75)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 22, 2023
1 parent 0c3da3b commit 81dee0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtimes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const isDeno = !!globalThis.Deno;
// https://nodejs.org/api/process.html#processrelease
export const isLagon = !!globalThis.__lagon__;
export const isNode = globalThis.process?.release?.name === "node";
export const isBun = !!globalThis.Bun || !!globalThis.process?.versions.bun;
export const isBun = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
export const isFastly = !!globalThis.fastly;

const runtimeChecks: [boolean, RuntimeName][] = [
Expand Down

0 comments on commit 81dee0d

Please sign in to comment.