![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
angular-bugsnag
Advanced tools
Angular wrapper for Bugsnag.
Specifically, angular-bugsnag
does the following...
bugsnagProvider
to configure the bugsnag
client and also to inject bugsnag
as needed$exceptionHandler
to send uncaught exceptions to BugsnagDownload angular-bugsnag.js or install with bower.
$ bower install angular-bugsnag --save
Load the angular-bugsnag
module into your app...
angular.module('app', ['angular-bugsnag'])
bugsnagProvider
configurationThe bugsnagProvider
has pretty much the same configuration options as bugsnag
.
The main difference is that bugsnagProvider
uses chainable setter methods instead of properties.
noConflict
Call noConflict()
before other settings to remove bugsnag
from window
.
apiKey
releaseStage
notifyReleaseStages
appVersion
user
projectRoot
endpoint
metaData
autoNotify
beforeNotify
Takes an angular providerFunction
or service name that should return a beforeNotify callback used by bugsnag
.
Log notifications with $log
:
bugsnagProvider
.beforeNotify(['$log', function ($log) {
return function (error, metaData) {
$log.debug(error.name);
return true;
};
}])
beforeNotify
can also take a service name defined elsewhere:
module
.factory('bugsnagNotificationInterceptor', ['$log', function ($log) {
return function (error, metaData) {
$log.debug(error.name);
return true;
};
}])
bugsnagProvider
.beforeNotify('bugsnagNotificationInterceptor')
angular.module('demo-app', ['angular-bugsnag'])
.config(['bugsnagProvider', function (bugsnagProvider) {
bugsnagProvider
.noConflict()
.apiKey('[replace me]')
.releaseStage('development')
.user({
id: 123,
name: 'Jon Doe',
email: 'jon.doe@gmail.com'
})
.appVersion('0.1.0')
.beforeNotify(['$log', function ($log) {
return function (error, metaData) {
$log.debug(error.name);
return true;
};
}]);
}])
.controller('MainCtrl', ['$rootScope', 'bugsnag', function ($scope, bugsnag) {
this.throwError = function (err) {
throw err;
};
this.notifyError = function (err) {
bugsnag.notify(err);
};
this.brokenUndefined = function () {
$scope.foo.bar();
};
}]);
PR's are welcome. Just make sure the tests pass.
$ make
$ gulp test
Additionally, use gulp serve
or gulp watch
to run the test app. Just insert a Bugsnag API Key here. Remember, don't commit your key!
MIT
FAQs
Angular wrapper for [Bugsnag](https://github.com/bugsnag/bugsnag-js).
We found that angular-bugsnag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.