Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_createConstructionInfo(fn) {
let info = {activator: Metadata.getOwn(Metadata.instanceActivator, fn) || ClassActivator.instance};
if (fn.inject !== undefined) {
if (typeof fn.inject === 'function') {
info.keys = fn.inject();
} else {
info.keys = fn.inject;
}
return info;
}
info.keys = Metadata.getOwn(Metadata.paramTypes, fn) || emptyParameters;
return info;
}
}
var deco = function(target){
target.inject = Metadata.getOwn(Metadata.paramTypes, target) || emptyParameters;
};
let deco = function(target) {
target.inject = Metadata.getOwn(Metadata.paramTypes, target) || emptyParameters;
};
createConstructionInfo(fn) {
var info = { activator: Metadata.getOwn(Metadata.instanceActivator, fn) || ClassActivator.instance };
if (fn.inject !== undefined) {
if (typeof fn.inject === 'function') {
info.keys = fn.inject();
}
else {
info.keys = fn.inject;
}
return info;
}
if (this.locateParameterInfoElsewhere !== undefined) {
info.keys = this.locateParameterInfoElsewhere(fn) || Reflect.getOwnMetadata(Metadata.paramTypes, fn) || emptyParameters;
}
else {
info.keys = Reflect.getOwnMetadata(Metadata.paramTypes, fn) || emptyParameters;
}
return info;
_createConstructionInfo(fn){
var info = {activator: Metadata.getOwn(Metadata.instanceActivator, fn) || ClassActivator.instance};
if(fn.inject !== undefined){
if(typeof fn.inject === 'function'){
info.keys = fn.inject();
}else{
info.keys = fn.inject;
}
return info;
}
info.keys = Metadata.getOwn(Metadata.paramTypes, fn) || emptyParameters;
return info;
}
}
_createConstructionInfo(fn){
var info = {activator: Metadata.getOwn(Metadata.instanceActivator, fn) || ClassActivator.instance};
if(fn.inject !== undefined){
if(typeof fn.inject === 'function'){
info.keys = fn.inject();
}else{
info.keys = fn.inject;
}
return info;
}
info.keys = Metadata.getOwn(Metadata.paramTypes, fn) || emptyParameters;
return info;
}
}