From f9b6450d44ed30fbfa770dee9d98aa478f733870 Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Fri, 2 Aug 2024 22:56:43 +0200 Subject: [PATCH] fix: makes node version undefined when process.version is undefined --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 6e668746c..3424e7e1b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -7,7 +7,7 @@ export const generateClientInfo = () => ({ name: 'node-auth0', version: version, env: { - node: process.version.replace('v', ''), + node: process.version?.replace('v', ''), }, });