Skip to content

Commit

Permalink
3.0.1-pre.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flexdinesh committed Nov 19, 2023
1 parent d0ffc36 commit b92e0cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-or-node",
"version": "3.0.0",
"version": "3.0.0-pre.0",
"description": "Check in which environment the code is running - browser/node.js/webworker/jsdom/deno",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const isBrowser: boolean =
typeof window !== "undefined" && typeof window.document !== "undefined";

const isNode =
const isNode: boolean =
// @ts-expect-error
typeof process !== "undefined" &&
// @ts-expect-error
Expand Down

0 comments on commit b92e0cc

Please sign in to comment.