From d332ebdd205fc2718a4dcc28d83ad26614391b70 Mon Sep 17 00:00:00 2001 From: gianlucaguarini Date: Fri, 1 Dec 2023 22:44:26 +0100 Subject: [PATCH] updated: improve the node check --- checks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks.js b/checks.js index 90f0d2b..3a514d4 100644 --- a/checks.js +++ b/checks.js @@ -69,5 +69,5 @@ export function isNil(value) { * @returns {boolean} true if the runtime is node */ export function isNode() { - return typeof process !== 'undefined' + return typeof globalThis.process !== 'undefined' }