resurfaceio / logger-nodejs

Log API calls with Node.js
Apache License 2.0
16 stars 2 forks source link

SharedArrayBuffer is not supported on Electron #40

Open monrax opened 6 months ago

monrax commented 6 months ago

SharedArrayBuffer has not been supported for a while in all major browsers (unless the resource is cross-isolated).

Normally this is not an issue for back-end services and the corresponding middleware. However, for browser-based apps that use node as runtime environment -such as chromium-based electron- the SharedArrayBuffer variable is no longer available. This results in an error when trying to initialize a logger instance. As an example, see https://github.com/Kong/insomnia/issues/5078