seek-oss-ci
released this
31 Oct 20:01
·
296 commits
to master
since this release
Patch Changes
-
The Braid Provider contains some code to check that it's running in a browser context (otherwise a BraidTestProvider should be used). (#1382)
Part of this check was looking to see if there was a
navigator
object, which was not available in Node.
If there were, it would check theuserAgent
to determine if it was inside jsdom.Node 21 has a
navigator
object, but it doesn't have auserAgent
property, so this check was failing (cannot read property 'indexOf' of undefined).The "are we in JSDom" check in the BraidProvider has now been reworked slightly to account for the potentially existing but empty
navigator
object.