@thecolvinco/nodejs-messenger
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -395,4 +395,4 @@ import { v4 } from 'uuid'; | ||
const Command = resolvedModule['default']; | ||
emitter.on(eventName, message => { | ||
eventDispatcher.dispatch({ | ||
emitter.on(eventName, async message => { | ||
await eventDispatcher.dispatch({ | ||
event: new Command({ | ||
@@ -419,3 +419,3 @@ message | ||
const Command = resolvedCommandModule['default']; | ||
emitter.on(eventName, message => { | ||
emitter.on(eventName, async message => { | ||
const handler = new Handler({ | ||
@@ -426,3 +426,3 @@ command: new Command({ | ||
}); | ||
handler.handle(); | ||
await handler.handle(); | ||
}); | ||
@@ -429,0 +429,0 @@ } |
@@ -414,4 +414,4 @@ function _interopNamespace(e) { | ||
const Command = resolvedModule['default']; | ||
emitter.on(eventName, message => { | ||
eventDispatcher.dispatch({ | ||
emitter.on(eventName, async message => { | ||
await eventDispatcher.dispatch({ | ||
event: new Command({ | ||
@@ -438,3 +438,3 @@ message | ||
const Command = resolvedCommandModule['default']; | ||
emitter.on(eventName, message => { | ||
emitter.on(eventName, async message => { | ||
const handler = new Handler({ | ||
@@ -445,3 +445,3 @@ command: new Command({ | ||
}); | ||
handler.handle(); | ||
await handler.handle(); | ||
}); | ||
@@ -448,0 +448,0 @@ } |
@@ -397,4 +397,4 @@ import { v4 } from 'uuid'; | ||
const Command = resolvedModule['default']; | ||
emitter.on(eventName, message => { | ||
eventDispatcher.dispatch({ | ||
emitter.on(eventName, async message => { | ||
await eventDispatcher.dispatch({ | ||
event: new Command({ | ||
@@ -421,3 +421,3 @@ message | ||
const Command = resolvedCommandModule['default']; | ||
emitter.on(eventName, message => { | ||
emitter.on(eventName, async message => { | ||
const handler = new Handler({ | ||
@@ -428,3 +428,3 @@ command: new Command({ | ||
}); | ||
handler.handle(); | ||
await handler.handle(); | ||
}); | ||
@@ -431,0 +431,0 @@ } |
@@ -395,4 +395,4 @@ (function (global, factory) { | ||
const Command = resolvedModule['default']; | ||
emitter.on(eventName, message => { | ||
eventDispatcher.dispatch({ | ||
emitter.on(eventName, async message => { | ||
await eventDispatcher.dispatch({ | ||
event: new Command({ | ||
@@ -419,3 +419,3 @@ message | ||
const Command = resolvedCommandModule['default']; | ||
emitter.on(eventName, message => { | ||
emitter.on(eventName, async message => { | ||
const handler = new Handler({ | ||
@@ -426,3 +426,3 @@ command: new Command({ | ||
}); | ||
handler.handle(); | ||
await handler.handle(); | ||
}); | ||
@@ -429,0 +429,0 @@ } |
{ | ||
"name": "@thecolvinco/nodejs-messenger", | ||
"description": "Message library for nodejs applications", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"source": "src/main.ts", | ||
@@ -6,0 +6,0 @@ "main": "dist/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
234413