@bugsnag/plugin-react-native-unhandled-rejection
Advanced tools
Comparing version 8.0.0 to 8.1.0
{ | ||
"name": "@bugsnag/plugin-react-native-unhandled-rejection", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"main": "rejection-handler.js", | ||
@@ -20,9 +20,12 @@ "description": "@bugsnag/js plugin to report unhandled promise rejections in React Native", | ||
"devDependencies": { | ||
"@bugsnag/core": "^8.0.0", | ||
"@bugsnag/core": "^8.1.0", | ||
"promise": "^8.0.2" | ||
}, | ||
"peerDependencies": { | ||
"@bugsnag/core": "^8.0.0-alpha.1" | ||
"@bugsnag/core": "^8.0.0" | ||
}, | ||
"gitHead": "73555402fbc4908d4474593d18b0d001fc9c7502" | ||
"scripts": { | ||
"test:types": "tsc -p tsconfig.json" | ||
}, | ||
"gitHead": "3857e806cd45074a5354d6017bdf8049dfa7177c" | ||
} |
@@ -14,2 +14,5 @@ /* | ||
// Report unhandled promise rejections as handled if the user has configured it | ||
const unhandled = !client._config.reportUnhandledPromiseRejectionsAsHandled | ||
// Check if Hermes is available and is being used for promises | ||
@@ -23,3 +26,3 @@ // React Native v0.63 and v0.64 include global.HermesInternal but not 'hasPromise' | ||
severity: 'error', | ||
unhandled: true, | ||
unhandled, | ||
severityReason: { type: 'unhandledPromiseRejection' } | ||
@@ -44,3 +47,3 @@ }, 'promise rejection tracking', 1) | ||
severity: 'error', | ||
unhandled: true, | ||
unhandled, | ||
severityReason: { type: 'unhandledPromiseRejection' } | ||
@@ -47,0 +50,0 @@ }, 'promise rejection tracking', 1) |
5312
73