@avleon/core 0.0.49 → 0.1.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.
package/dist/index.cjs CHANGED
@@ -1235,7 +1235,7 @@ var AvleonRouter = class {
1235
1235
  return [...classMiddlewares, ...methodMiddlewares];
1236
1236
  }
1237
1237
  async buildController(controller) {
1238
- const ctrl = typedi.default.get(controller);
1238
+ const ctrl = container_default.get(controller);
1239
1239
  const controllerMeta = Reflect.getMetadata(CONTROLLER_META_KEY, ctrl.constructor);
1240
1240
  if (!controllerMeta) return;
1241
1241
  const prototype = Object.getPrototypeOf(ctrl);
@@ -1321,7 +1321,7 @@ var AvleonRouter = class {
1321
1321
  if (res.sent) return;
1322
1322
  }
1323
1323
  if (classMiddlewares.length > 0) for (let m of classMiddlewares) {
1324
- reqClone = await typedi.default.get(m.constructor).invoke(reqClone, res);
1324
+ reqClone = await container_default.get(m.constructor).invoke(reqClone, res);
1325
1325
  if (res.sent) return;
1326
1326
  }
1327
1327
  const args = await this._mapArgs(reqClone, allMeta);
@@ -1472,7 +1472,7 @@ var AvleonRouter = class {
1472
1472
  const route = {
1473
1473
  useMiddleware: (middlewares) => {
1474
1474
  const ms = (Array.isArray(middlewares) ? middlewares : [middlewares]).map((mclass) => {
1475
- const cls = typedi.default.get(mclass);
1475
+ const cls = container_default.get(mclass);
1476
1476
  this.middlewares.set(mclass.name, cls);
1477
1477
  return cls.invoke;
1478
1478
  });