Fix missed return in container.makeNew

This commit is contained in:
Garrett Mills 2022-03-30 23:20:09 -05:00
parent 78cb26fcb2
commit b42e91533a
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@extollo/lib", "name": "@extollo/lib",
"version": "0.9.16", "version": "0.9.17",
"description": "The framework library that lifts up your code.", "description": "The framework library that lifts up your code.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@ -572,6 +572,7 @@ export class Container {
if ( isAwareOfContainerLifecycle(result) ) { if ( isAwareOfContainerLifecycle(result) ) {
result.onContainerRealize?.() result.onContainerRealize?.()
} }
return result
} }
throw new TypeError(`Invalid or unknown make target: ${key}`) throw new TypeError(`Invalid or unknown make target: ${key}`)