@idot-digital/error-logger
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -5,3 +5,3 @@ export default class ErrorLogger { | ||
private secret; | ||
constructor(serviceDescriptor: string, loggerServiceURL: string, secret: string); | ||
constructor(serviceDescriptor: string, loggerServiceURL: string | undefined, secret: string | undefined); | ||
registerUncaughtExceptionListener(): void; | ||
@@ -8,0 +8,0 @@ log(message: string | Error | undefined): void; |
@@ -7,4 +7,8 @@ "use strict"; | ||
this.serviceDescriptor = serviceDescriptor; | ||
if (!loggerServiceURL) | ||
throw new Error("No loggerServiceURL provided"); | ||
if (!secret) | ||
throw new Error("No secret provided"); | ||
this.secret = secret; | ||
this.loggerServiceURL = loggerServiceURL; | ||
this.secret = secret; | ||
} | ||
@@ -11,0 +15,0 @@ registerUncaughtExceptionListener() { |
{ | ||
"name": "@idot-digital/error-logger", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "author": "idotdigital", |
Sorry, the diff of this file is not supported yet
3334
68