@kithinji/orca 1.0.2 → 1.0.4

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.
@@ -1704,6 +1704,7 @@ var OSC = class {
1704
1704
  const module = await import(path2);
1705
1705
  const ComponentClass = module[name];
1706
1706
  const params = Reflect.getMetadata(DESIGN_PARAMTYPES, ComponentClass) || [];
1707
+ const deps = Reflect.getMetadata(COMPONENT_DEPS, ComponentClass) || [];
1707
1708
  const injector = getCurrentInjector();
1708
1709
  if (injector == null) {
1709
1710
  throw new Error(`Couldn't find an injector`);
@@ -1716,7 +1717,14 @@ var OSC = class {
1716
1717
  useClass: ComponentClass,
1717
1718
  scope: "transient"
1718
1719
  });
1719
- [...params].forEach((p) => injector.addProvider(p));
1720
+ deps.forEach(
1721
+ (depClass) => injector.addProvider({
1722
+ provide: depClass,
1723
+ useClass: depClass,
1724
+ scope: "transient"
1725
+ })
1726
+ );
1727
+ params.forEach((p) => injector.addProvider(p));
1720
1728
  const cleanProps = { ...props };
1721
1729
  delete cleanProps.__clientComponent;
1722
1730
  const componentInstance = injector.resolve(ComponentClass);