Skip to content

Commit b92e0cc

Browse files
committed
3.0.1-pre.0
1 parent d0ffc36 commit b92e0cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-or-node",
3-
"version": "3.0.0",
3+
"version": "3.0.0-pre.0",
44
"description": "Check in which environment the code is running - browser/node.js/webworker/jsdom/deno",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const isBrowser: boolean =
22
typeof window !== "undefined" && typeof window.document !== "undefined";
33

4-
const isNode =
4+
const isNode: boolean =
55
// @ts-expect-error
66
typeof process !== "undefined" &&
77
// @ts-expect-error

0 commit comments

Comments
 (0)