Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bugsnag/plugin-electron-client-state-manager

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bugsnag/plugin-electron-client-state-manager

@bugsnag/electron plugin to sync state between various processes

  • 8.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
decreased by-3.13%
Maintainers
0
Weekly downloads
 
Created
Source

@bugsnag/plugin-electron-client-state-manager

This plugin provides a wrapper around the parts of state that need to be synchronised, providing a way for listeners to be notified of changes.

The plugin runs in the main Electron process, and patches each of the client mutators whose state we need to synchronise:

  • setUser()
  • setContext()
  • addMetadata()
  • clearMetadata()

Any call to these methods (which will be from a developer or a plugin calling Bugsnag.<method>() in the main process) will emit an event signifying the change and updated value.

Separately, we expose a bulkUpdate method for a new renderer to deliver a full state update in one pass.

License

This package is free software released under the MIT License. See LICENSE.txt for details.

FAQs

Package last updated on 23 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc