Comparing version 0.10.1 to 0.10.2
@@ -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') { |
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44446
838