@kithinji/orca 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2020,7 +2020,11 @@ var kithinjiorca = (() => {
2020
2020
  try {
2021
2021
  instance = injector.resolve(ComponentClass);
2022
2022
  } catch (e) {
2023
- injector.addProvider(ComponentClass);
2023
+ injector.addProvider({
2024
+ provide: ComponentClass,
2025
+ useClass: ComponentClass,
2026
+ scope: "transient"
2027
+ });
2024
2028
  instance = injector.resolve(ComponentClass);
2025
2029
  }
2026
2030
  const localProviders = Reflect.getMetadata(COMPONENT_PROVIDERS, ComponentClass) || [];