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

@honeybadger-io/react-native

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honeybadger-io/react-native - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

17

index.js

@@ -17,4 +17,6 @@ //

let _logLevel = "warning"; // "error", "warning", "debug"
let _previousJSGlobalExceptionHandler = null;
// ----------------------------------------------------------------------------

@@ -157,9 +159,22 @@ // Public Interface

function setJavaScriptErrorHandler() {
function setJavaScriptErrorHandler()
{
logDebug("Setting up the JavaScript global error handler.");
_previousJSGlobalExceptionHandler = global.ErrorUtils.getGlobalHandler();
global.ErrorUtils.setGlobalHandler(function(err, isFatal) {
logDebug("JavaScript global error handler triggered.");
onJavaScriptError(err, {
initialHandler: 'Global JavaScript Error Handler',
});
// Allowing the default error handler to process the error after
// we're done with it will show the useful RN red info box in dev.
if ( _previousJSGlobalExceptionHandler && _previousJSGlobalExceptionHandler != this ) {
logDebug("Passing error to previous error handler.");
_previousJSGlobalExceptionHandler(err, isFatal);
}
});

@@ -166,0 +181,0 @@ }

2

package.json
{
"name": "@honeybadger-io/react-native",
"version": "0.0.6",
"version": "0.0.7",
"description": "Honeybadger.io for React Native.",

@@ -5,0 +5,0 @@ "author": "Andrey Butov <andreybutov@antair.com> (https://andreybutov.com)",

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