
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@descript/sentry-electron
Advanced tools
NOTE: This package is still in beta. It is part of an early access preview
for the
next generation of
Sentry JavaScript SDKs. While we try to keep breaking changes to a minimum,
interfaces might change between minor releases before the first stable 1.x
release.
@sentry/node
)@sentry/browser
)To use this SDK, call init(options)
as early as possible in the entry modules
in the main process as well as all renderer processes or further sub processees
you spawn. This will initialize the SDK and hook into the environment. Note that
you can turn off almost all side effects using the respective options.
import { init } from '@sentry/electron';
init({
dsn: '__DSN__',
// ...
});
To set context information or send manual events, use the exported functions of
@sentry/electron
. Note that these functions will not perform any action before
you have called init()
:
import * as Sentry from '@sentry/electron';
// Set user information, as well as tags and further extras
Sentry.configureScope(scope => {
scope.setExtra('battery', 0.7);
scope.setTag('user_mode', 'admin');
scope.setUser({ id: '4711' });
// scope.clear();
});
// Add a breadcrumb for future events
Sentry.addBreadcrumb({
message: 'My Breadcrumb',
// ...
});
// Capture exceptions, messages or manual events
Sentry.captureMessage('Hello, world!');
Sentry.captureException(new Error('Good bye'));
Sentry.captureEvent({
message: 'Manual',
stacktrace: [
// ...
],
});
v0.15.0
@sentry/*
~4.5.0
FAQs
Offical Sentry SDK for Electron
We found that @descript/sentry-electron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.