@dits/dits
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -24,4 +24,4 @@ import Container from './container'; | ||
initialize(config: ServiceConfig): Promise<any>; | ||
fork(name: string, properties?: any): Promise<Zone>; | ||
fork(name: string, properties?: any): Zone; | ||
} | ||
//# sourceMappingURL=service.d.ts.map |
@@ -49,3 +49,3 @@ "use strict"; | ||
} | ||
async fork(name, properties) { | ||
fork(name, properties) { | ||
const container = this.container.createChild(); | ||
@@ -52,0 +52,0 @@ return this.zone.fork({ |
@@ -32,3 +32,3 @@ "use strict"; | ||
const dependencies = paramTypes; | ||
const metadata = Metadata_1.default.retrieveMetadata(target, propertyKey); | ||
const metadata = Metadata_1.default.retrieveMetadata(target, propertyKey) || {}; | ||
// allow customization of what type of event is being registered for the handler | ||
@@ -53,3 +53,3 @@ const registerType = Reflect.getMetadata(exports.REGISTER_AS_META_KEY, target, propertyKey) || eventType; | ||
// container.handler(registerType, decl) | ||
const handlers = Reflect.getMetadata(exports.HANDLER_KEY, target) || []; | ||
const handlers = Reflect.getMetadata(exports.HANDLER_KEY, target.constructor) || []; | ||
handlers.push(decl); | ||
@@ -56,0 +56,0 @@ Reflect.defineMetadata(exports.HANDLER_KEY, handlers, target.constructor); |
{ | ||
"name": "@dits/dits", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
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
106565