Socket
Socket
Sign inDemoInstall

@idot-digital/error-logger

Package Overview
Dependencies
5
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.1.0

2

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc