You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't tell if this was intentional or not. Thus, I can't tell which function has the correct logic.
Describe the solution you'd like
Ensure that both isOptionalFactoryDependency and isOptionalFactoryDep have the same logic, as we don't want to expose that internal utility from outside of @nestjs/* packages.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
at
@nestjs/common
we have ax is OptionalFactoryDependency
with the following logic:nest/packages/common/module-utils/utils/get-injection-providers.util.ts
Lines 14 to 18 in 7d62aad
but at
@nestjs/core
we have ax is OptionalFactoryDependency
with a bit different logic:nest/packages/core/injector/injector.ts
Lines 346 to 350 in 7d62aad
I can't tell if this was intentional or not. Thus, I can't tell which function has the correct logic.
Describe the solution you'd like
Ensure that both
isOptionalFactoryDependency
andisOptionalFactoryDep
have the same logic, as we don't want to expose that internal utility from outside of@nestjs/*
packages.Teachability, documentation, adoption, migration strategy
N/A
What is the motivation / use case for changing the behavior?
I believe that
OptionalFactoryDependency
should be just one thing.Also, 3rd-party packages might want to reuse that logic (like
nestjs-spelunker
here: https://github.com/jmcdo29/nestjs-spelunker/blob/3cf07cbaef306e885eb031ad46f979cc7497dfd1/src/exploration.module.ts#L149-L153).The text was updated successfully, but these errors were encountered: