tslint changes

This commit is contained in:
Jeremy Simpson
2019-08-30 01:52:40 -07:00
parent 7603879d35
commit 7f7efbb94b
446 changed files with 70650 additions and 70661 deletions
@@ -6,34 +6,34 @@ import { ErrorReporter } from './errorReporter';
@Injectable()
export class RollbarErrorReporter extends ErrorReporter {
constructor(@Inject(RollbarService) private rollbar?: Rollbar) {
super();
}
configureUser(person: Person) {
if (this.rollbar) {
this.rollbar.configure({ payload: { person }, checkIgnore: rollbarCheckIgnore });
}
}
configureData(data: any) {
if (this.rollbar) {
this.rollbar.configure({ payload: data, checkIgnore: rollbarCheckIgnore });
}
}
captureEvent(data: any) {
if (this.rollbar) {
this.rollbar.captureEvent(data, 'info');
}
}
reportError(error: any, data?: any) {
DEVELOPMENT && console.error(error, data);
constructor(@Inject(RollbarService) private rollbar?: Rollbar) {
super();
}
configureUser(person: Person) {
if (this.rollbar) {
this.rollbar.configure({ payload: { person }, checkIgnore: rollbarCheckIgnore });
}
}
configureData(data: any) {
if (this.rollbar) {
this.rollbar.configure({ payload: data, checkIgnore: rollbarCheckIgnore });
}
}
captureEvent(data: any) {
if (this.rollbar) {
this.rollbar.captureEvent(data, 'info');
}
}
reportError(error: any, data?: any) {
DEVELOPMENT && console.error(error, data);
if (this.rollbar && !isIgnoredError(error)) {
this.rollbar.error(error, data);
}
}
disable() {
if (this.rollbar) {
this.rollbar.configure({ enabled: false });
}
}
if (this.rollbar && !isIgnoredError(error)) {
this.rollbar.error(error, data);
}
}
disable() {
if (this.rollbar) {
this.rollbar.configure({ enabled: false });
}
}
}