fix: makes node version undefined when process.version is undefined#1027
fix: makes node version undefined when process.version is undefined#1027emmanuelgautier wants to merge 2 commits intoauth0:masterfrom
Conversation
|
Would also be nice to bump the My reading of the |
|
Btw, you can define these variables if you're using Cloudflare Workers. Add this (or similar) to your "define": {
"process.version": "\"v22.14.0\"",
"process.versions": "{ \"node\": \"22.14.0\" }"
},And then these values will get injected at build time |
Yes, a JOSE update would be nice too. Perhaps in a separate PR? @tusharpandey13 @tanya732 Could someone review this? |
Changes
Makes node version undefined when process.version is undefined. process.version can be undefined on some edge runtimes like cloudflare workers.
References
Testing
Expected: No error should be thrown.
Checklist