@spinajs/di
Advanced tools
Comparing version 2.0.200 to 2.0.201
@@ -175,3 +175,4 @@ "use strict"; | ||
// if not, by default last registered type is resolved | ||
const fType = tType ?? targetType[targetType.length - 1]; | ||
// if we have override for target type in registry, resolve it ( last registered ) otherwise resolve target type type itself | ||
const fType = targetType[targetType.length - 1] ?? tType; | ||
const rValue = this.resolveType(sourceType, fType, opt); | ||
@@ -178,0 +179,0 @@ return rValue; |
@@ -169,3 +169,4 @@ import { InvalidArgument } from '@spinajs/exceptions'; | ||
// if not, by default last registered type is resolved | ||
const fType = tType ?? targetType[targetType.length - 1]; | ||
// if we have override for target type in registry, resolve it ( last registered ) otherwise resolve target type type itself | ||
const fType = targetType[targetType.length - 1] ?? tType; | ||
const rValue = this.resolveType(sourceType, fType, opt); | ||
@@ -172,0 +173,0 @@ return rValue; |
{ | ||
"name": "@spinajs/di", | ||
"version": "2.0.200", | ||
"version": "2.0.201", | ||
"description": "lightweight di container ", | ||
@@ -53,4 +53,4 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/exceptions": "^2.0.200", | ||
"@spinajs/util": "^2.0.200", | ||
"@spinajs/exceptions": "^2.0.201", | ||
"@spinajs/util": "^2.0.201", | ||
"lodash": "^4.17.21", | ||
@@ -57,0 +57,0 @@ "reflect-metadata": "^0.1.13" |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
406310
4321
Updated@spinajs/exceptions@^2.0.201
Updated@spinajs/util@^2.0.201