Skip to content

Commit

Permalink
Merge branch 'main' into Missing-types-#260
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes authored Jun 21, 2024
2 parents c3e29a4 + 7ce44bd commit f78e362
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { DeepgramClientOptions } from "./types/DeepgramClientOptions";
import { FetchOptions } from "./types/Fetch";
import { version } from "./version";

export const NODE_VERSION = process?.versions.node || "Unknown";
export const NODE_VERSION =
typeof process === "undefined"
? "Unknown"
: process?.versions?.node || "Unknown";

export const DEFAULT_HEADERS = {
"Content-Type": `application/json`,
Expand Down

0 comments on commit f78e362

Please sign in to comment.