toxiproxy-node-client icon indicating copy to clipboard operation
toxiproxy-node-client copied to clipboard

Make library universal to allow running from v8 engines or in-browser tests

Open ngbrown opened this issue 2 years ago • 1 comments

When trying to use this library from vitest in-browser, it errors with "process is not defined". Using native fetch would allow this to run everywhere.

ngbrown avatar Aug 11 '23 06:08 ngbrown

Fixed in scope of #6. Axios makes this transparent to the user so this library can now be used in Node or in the browser.

dvag-gloeckner-daniel avatar Sep 17 '23 09:09 dvag-gloeckner-daniel

@ngbrown this is fixed now, thank you @dvag-gloeckner-daniel

ihsw avatar Jul 06 '24 21:07 ihsw