From 95b2b3630eb6c6211c9cd2cdf9d0beb93b5104af Mon Sep 17 00:00:00 2001 From: Dominic Date: Thu, 3 Apr 2025 11:57:09 +0800 Subject: [PATCH] Fix crash on edge runtimes #996 --- src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 24e250daa..dd13e694c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -6,8 +6,10 @@ import { version } from './version.js'; export const generateClientInfo = () => ({ name: 'node-auth0', version: version, - env: { + env: 'version' in process ? { node: process.version.replace('v', ''), + } : { + edge: true, }, });