@bugsnag/core
Advanced tools
Comparing version 7.10.0 to 7.11.0
@@ -260,2 +260,8 @@ const config = require('./config') | ||
_isBreadcrumbTypeEnabled (type) { | ||
const types = this._config.enabledBreadcrumbTypes | ||
return types === null || includes(types, type) | ||
} | ||
notify (maybeError, onError, cb = noop) { | ||
@@ -300,3 +306,3 @@ const event = Event.create(maybeError, true, undefined, 'notify()', this._depth + 1, this._logger) | ||
if (includes(this._config.enabledBreadcrumbTypes, 'error')) { | ||
if (this._isBreadcrumbTypeEnabled('error')) { | ||
// only leave a crumb for the error if actually got sent | ||
@@ -303,0 +309,0 @@ Client.prototype.leaveBreadcrumb.call(this, event.errors[0].errorClass, { |
{ | ||
"name": "@bugsnag/core", | ||
"main": "index.js", | ||
"version": "7.10.0", | ||
"version": "7.11.0", | ||
"types": "types/index.d.ts", | ||
@@ -29,3 +29,3 @@ "description": "Core classes and utilities for Bugsnag notifiers", | ||
}, | ||
"gitHead": "c85da3e187f73883e53509a3ff8a4ae3195ccbf1" | ||
"gitHead": "991c73de4560670d73df305cfbc134c6c4058a74" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53915
1517