
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
raygun-angular2
Advanced tools
A pre-packaged Angular 2 addon that attempts to take the hard work out of logging errors with Raygun. Still very much in beta but logs plenty of information already.
From within an Angular2 project
npm install raygun-angular2 --savetypings install npm:raygun-angular2 --saveIf you are using a similar setup to the Angular2 Quickstart (i.e., using SystemJS)
add the following to your System.config:
System.config({
packages: {
'raygun-angular2': {
main: 'index.js',
defaultExtension: 'js'
},
'stack-trace': {
main: 'stack-trace.js',
defaultExtension: 'js'
}
},
paths: {
'raygun-angular2': 'node_modules/raygun-angular2/',
'stack-trace': 'node_modules/stack-trace/lib/'
}
});
raygun-angular2 has a dependency on @angular/http so ensure that
the bundle is loaded and the provider is bootstrapped in to your
application
import {bootstrap} from '@angular/platform-browser';
import {provide, ExceptionHandler} from '@angular/core';
import {HTTP_PROVIDERS} from '@angular/http';
import {RaygunExceptionHandler} from 'raygun-angular2';
import {AppComponent} from './appComponent';
import {ROUTER_PROVIDERS} from '@angular/router';
RaygunExceptionHandler.apiKey = 'Enter API Key here';
bootstrap(AppComponent, [
ROUTER_PROVIDERS,
HTTP_PROVIDERS,
provide(ExceptionHandler, {useClass: RaygunExceptionHandler})
]);
To prevent errors being reported to Raygun during development
use setDevelopmentHostnames to blacklist your local hostnames.
RaygunExceptionHandler.setDevelopmentHostnames(['localhost']);
X-ApiKey headers rather than a query string, however
Raygun currently does not correctly respond to the pre-flight
request generated by Angular2.Pull requests are always welcome. Please make sure that your work is tested, follows the established code convention and passes the AppVeyor build.
FAQs
Raygun integration for angular 2
We found that raygun-angular2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.