@appolo/bus
Advanced tools
Comparing version 8.0.4 to 8.0.5
@@ -149,3 +149,3 @@ "use strict"; | ||
if (typeof eventName == "function") { | ||
eventName = eventName(this.app); | ||
eventName = eventName(define.definition.injector ? define.definition.injector.get("app") : this.app); | ||
} | ||
@@ -152,0 +152,0 @@ manager.register(eventName, options, define, propertyKey); |
@@ -248,3 +248,3 @@ import {define, inject, singleton, Util, Define} from "@appolo/inject"; | ||
if (typeof eventName == "function") { | ||
eventName = eventName(this.app); | ||
eventName = eventName(define.definition.injector ? define.definition.injector.get("app") : this.app); | ||
} | ||
@@ -251,0 +251,0 @@ |
{ | ||
"name": "@appolo/bus", | ||
"version": "8.0.4", | ||
"version": "8.0.5", | ||
"description": "appolo bus module", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -42,3 +42,3 @@ "use strict"; | ||
let busProvider = app.injector.get(index_1.BusProvider); | ||
// await busProvider.addHandlerClass(MessageHandler) | ||
await busProvider.addHandlerClass(handler_1.MessageHandler); | ||
let spy = sinon.spy(handler, "handle"); | ||
@@ -45,0 +45,0 @@ await publisher.publishMethod("aa"); |
@@ -61,3 +61,3 @@ import {createApp, App} from '@appolo/engine' | ||
// await busProvider.addHandlerClass(MessageHandler) | ||
await busProvider.addHandlerClass(MessageHandler) | ||
@@ -64,0 +64,0 @@ let spy = sinon.spy(handler, "handle"); |
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
80350