@luminix/core 0.3.3 → 0.3.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.
package/dist/core.js CHANGED
@@ -296,11 +296,11 @@ class f extends (C = TypeError, B = Symbol.toStringTag, C) {
296
296
  p(this, B, "NotModelException");
297
297
  }
298
298
  }
299
- var P, I;
300
- class Ee extends (I = Error, P = Symbol.toStringTag, I) {
299
+ var I, P;
300
+ class Ee extends (P = Error, I = Symbol.toStringTag, P) {
301
301
  constructor(e, i, s, c) {
302
302
  super(`[Luminix] Could not determine inverse relation for "${i}" in model "${e}". Please specify a relation in model "${s}" of type ${c} that points back to "${e}".`);
303
- p(this, P, "NoInverseRelationException");
303
+ p(this, I, "NoInverseRelationException");
304
304
  }
305
305
  }
306
306
  var Q, D;
@@ -1423,8 +1423,8 @@ class Ce {
1423
1423
  return "route";
1424
1424
  }
1425
1425
  }
1426
- const Pe = ie(Ce);
1427
- class Ie {
1426
+ const Ie = ie(Ce);
1427
+ class Pe {
1428
1428
  getClient() {
1429
1429
  return new ge();
1430
1430
  }
@@ -1479,7 +1479,7 @@ class Ie {
1479
1479
  return this.getClient().delete(t, e);
1480
1480
  }
1481
1481
  }
1482
- const Qe = ne(Ie);
1482
+ const Qe = ne(Pe);
1483
1483
  var se, re;
1484
1484
  class De extends (re = ye, se = Symbol.toStringTag, re) {
1485
1485
  constructor() {
@@ -1512,7 +1512,7 @@ class De extends (re = ye, se = Symbol.toStringTag, re) {
1512
1512
  );
1513
1513
  }), this.app.singleton("route", () => {
1514
1514
  var e, i;
1515
- return new Pe(
1515
+ return new Ie(
1516
1516
  ((e = this.app.configuration.manifest) == null ? void 0 : e.routes) ?? {},
1517
1517
  this.app.make("error"),
1518
1518
  () => this.app.make("http"),
@@ -1538,6 +1538,9 @@ class He {
1538
1538
  down() {
1539
1539
  this.app && (this.app.flush(), delete this.app);
1540
1540
  }
1541
+ setInstance(t) {
1542
+ this.down(), this.app = t;
1543
+ }
1541
1544
  }
1542
1545
  const x = M(He);
1543
1546
  function $(o = void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/core",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "> Projeto em desenvolvimento",
5
5
  "module": "dist/core.js",
6
6
  "types": "types/index.d.ts",
@@ -4,6 +4,7 @@ declare class AppFacade implements HasFacadeAccessor {
4
4
  protected app?: Application;
5
5
  getFacadeAccessor(): string | object;
6
6
  down(): void;
7
+ setInstance(app: Application): void;
7
8
  }
8
9
  declare const App: FacadeOf<Application<AppContainers> & AppMacros & MacroableInterface<AppMacros>, AppFacade>;
9
10
  export default App;