Comparing version 3.3.0 to 3.3.1
@@ -40,4 +40,11 @@ import 'reflect-metadata'; | ||
export function getClassDeps(ctor) { | ||
return depMetadata.filter(_ => _.class === ctor); | ||
const result = []; | ||
let proto = ctor; | ||
while (proto !== Object.prototype) { | ||
const deps = depMetadata.filter(_ => _.class === proto); | ||
result.push(...deps); | ||
proto = Object.getPrototypeOf(proto); | ||
} | ||
return result; | ||
} | ||
//# sourceMappingURL=dep.js.map |
{ | ||
"name": "mesh-ioc", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Powerful and Lightweight IoC Library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
38893
379