@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.js CHANGED
@@ -1224,7 +1224,7 @@ var AvleonRouter = class {
1224
1224
  return [...classMiddlewares, ...methodMiddlewares];
1225
1225
  }
1226
1226
  async buildController(controller) {
1227
- const ctrl = Container.get(controller);
1227
+ const ctrl = container_default.get(controller);
1228
1228
  const controllerMeta = Reflect.getMetadata(CONTROLLER_META_KEY, ctrl.constructor);
1229
1229
  if (!controllerMeta) return;
1230
1230
  const prototype = Object.getPrototypeOf(ctrl);
@@ -1310,7 +1310,7 @@ var AvleonRouter = class {
1310
1310
  if (res.sent) return;
1311
1311
  }
1312
1312
  if (classMiddlewares.length > 0) for (let m of classMiddlewares) {
1313
- reqClone = await Container.get(m.constructor).invoke(reqClone, res);
1313
+ reqClone = await container_default.get(m.constructor).invoke(reqClone, res);
1314
1314
  if (res.sent) return;
1315
1315
  }
1316
1316
  const args = await this._mapArgs(reqClone, allMeta);
@@ -1461,7 +1461,7 @@ var AvleonRouter = class {
1461
1461
  const route = {
1462
1462
  useMiddleware: (middlewares) => {
1463
1463
  const ms = (Array.isArray(middlewares) ? middlewares : [middlewares]).map((mclass) => {
1464
- const cls = Container.get(mclass);
1464
+ const cls = container_default.get(mclass);
1465
1465
  this.middlewares.set(mclass.name, cls);
1466
1466
  return cls.invoke;
1467
1467
  });