Socket
Socket
Sign inDemoInstall

emittery

Package Overview
Dependencies
0
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.1 to 0.10.2

7

index.js

@@ -219,3 +219,8 @@ 'use strict';

this.debug.logger = (type, debugName, eventName, eventData) => {
eventData = JSON.stringify(eventData);
try {
// TODO: Use https://github.com/sindresorhus/safe-stringify when the package is more mature. Just copy-paste the code.
eventData = JSON.stringify(eventData);
} catch {
eventData = `Object with the following keys failed to stringify: ${Object.keys(eventData).join(',')}`;
}

@@ -222,0 +227,0 @@ if (typeof eventName === 'symbol') {

2

package.json
{
"name": "emittery",
"version": "0.10.1",
"version": "0.10.2",
"description": "Simple and modern async event emitter",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -92,3 +92,3 @@ # <img src="media/header.png" width="1000">

Type: `objcect`
Type: `object`

@@ -95,0 +95,0 @@ Configure the debugging options for this instance.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc