Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Update imports to match bugsnag-js@4.0.3 #2

Merged
merged 2 commits into from
Dec 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
"devDependencies": {
"@angular/core": "^5.0.3",
"angular": "^1.6.7",
"bugsnag-js": "^4.0.0-15",
"bugsnag-js": "^4.0.3",
"tslint": "^5.8.0",
"typescript": "^2.6.2"
},
"peerDependencies": {
"bugsnag-js": "^4.0.3"
},
"dependencies": {
"rxjs": "^5.5.2",
"zone.js": "^0.8.18"
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ErrorHandler } from "@angular/core";
import { Client, IPlugin } from "bugsnag-js";
import { Bugsnag } from "bugsnag-js";

function createPlugin(): IPlugin {
function createPlugin(): Bugsnag.IPlugin {
return {
init: (client: Client): typeof ErrorHandler => {
init: (client: Bugsnag.Client): typeof ErrorHandler => {
class BugsnagErrorHandler extends ErrorHandler {
public handleError(error: any) {
const handledState = {
Expand Down