@palbase/backend 25.0.0 → 25.0.2

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.
Files changed (57) hide show
  1. package/dist/bin/palbase-backend.cjs +2 -0
  2. package/dist/bin/palbase-backend.cjs.map +1 -1
  3. package/dist/bin/palbase-backend.js +2 -2
  4. package/dist/{chunk-43A3KGWL.js → chunk-34I4GB7D.js} +4 -2
  5. package/dist/{chunk-43A3KGWL.js.map → chunk-34I4GB7D.js.map} +1 -1
  6. package/dist/{chunk-ZQRWW37O.js → chunk-35PNTIRN.js} +5 -1
  7. package/dist/chunk-35PNTIRN.js.map +1 -0
  8. package/dist/{chunk-OEQBHE2Z.js → chunk-7JSEN7UR.js} +20 -4
  9. package/dist/chunk-7JSEN7UR.js.map +1 -0
  10. package/dist/{chunk-5CMLOAEF.js → chunk-YOY5DFQS.js} +2 -2
  11. package/dist/db/env.cjs.map +1 -1
  12. package/dist/db/env.d.cts +2 -1
  13. package/dist/db/env.d.ts +2 -1
  14. package/dist/db/index.cjs +17 -3
  15. package/dist/db/index.cjs.map +1 -1
  16. package/dist/db/index.d.cts +2 -2
  17. package/dist/db/index.d.ts +2 -2
  18. package/dist/db/index.js +1 -1
  19. package/dist/{endpoint-DMwJjEHQ.d.ts → endpoint-CTEHhb7A.d.ts} +19 -8
  20. package/dist/{endpoint-BSGw1pTu.d.cts → endpoint-DYHMo6cC.d.cts} +19 -8
  21. package/dist/engine/index.cjs +2 -0
  22. package/dist/engine/index.cjs.map +1 -1
  23. package/dist/engine/index.d.cts +4 -4
  24. package/dist/engine/index.d.ts +4 -4
  25. package/dist/engine/index.js +2 -2
  26. package/dist/{index-BF1f0DfA.d.ts → index-CUomTA3e.d.ts} +3 -3
  27. package/dist/{index-Ct1iiB4N.d.ts → index-CW21M9Z3.d.ts} +24 -17
  28. package/dist/{index-CoaDN9dL.d.cts → index-ClpDeSos.d.cts} +3 -3
  29. package/dist/{index-CwaWRhyc.d.cts → index-CmBK76nx.d.cts} +24 -17
  30. package/dist/index.cjs +80 -51
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.cts +13 -11
  33. package/dist/index.d.ts +13 -11
  34. package/dist/index.js +62 -51
  35. package/dist/index.js.map +1 -1
  36. package/dist/openapi/index.cjs +1 -1
  37. package/dist/openapi/index.cjs.map +1 -1
  38. package/dist/openapi/index.d.cts +2 -2
  39. package/dist/openapi/index.d.ts +2 -2
  40. package/dist/openapi/index.js +3 -3
  41. package/dist/openapi/index.js.map +1 -1
  42. package/dist/{registry-CgJvDYUW.d.cts → registry-CC0WBQq6.d.cts} +1 -1
  43. package/dist/{registry-B8pld3fj.d.ts → registry-dZZ5JKYg.d.ts} +1 -1
  44. package/dist/test/index.d.cts +1 -1
  45. package/dist/test/index.d.ts +1 -1
  46. package/docs/README.md +9 -8
  47. package/docs/database.md +2 -2
  48. package/docs/endpoints.md +6 -5
  49. package/docs/getting-started.md +1 -1
  50. package/docs/llms-full.txt +74 -38
  51. package/docs/migrations.md +16 -14
  52. package/docs/schema.md +38 -7
  53. package/docs/services.md +2 -1
  54. package/package.json +1 -1
  55. package/dist/chunk-OEQBHE2Z.js.map +0 -1
  56. package/dist/chunk-ZQRWW37O.js.map +0 -1
  57. /package/dist/{chunk-5CMLOAEF.js.map → chunk-YOY5DFQS.js.map} +0 -0
@@ -3,13 +3,13 @@ import {
3
3
  BootRefused,
4
4
  createApp,
5
5
  loadConfig
6
- } from "../chunk-43A3KGWL.js";
6
+ } from "../chunk-34I4GB7D.js";
7
7
  import "../chunk-XJ2RSHEU.js";
8
8
  import "../chunk-XABBC7JP.js";
9
9
  import "../chunk-P2Q27SGP.js";
10
10
  import {
11
11
  getRegisteredControllers
12
- } from "../chunk-ZQRWW37O.js";
12
+ } from "../chunk-35PNTIRN.js";
13
13
  import "../chunk-7D4SUZUM.js";
14
14
 
15
15
  // src/bin/palbase-backend.ts
@@ -15,7 +15,7 @@ import {
15
15
  isHttpError,
16
16
  markEngineRaised,
17
17
  resolveEffectiveAuth
18
- } from "./chunk-ZQRWW37O.js";
18
+ } from "./chunk-35PNTIRN.js";
19
19
 
20
20
  // src/engine/config.ts
21
21
  var BootRefused = class extends Error {
@@ -1756,6 +1756,7 @@ function assertGuard(op, result) {
1756
1756
  }
1757
1757
 
1758
1758
  // src/engine/router.ts
1759
+ var ROOM_META = /* @__PURE__ */ Symbol.for("palbase.backend.room");
1759
1760
  var CONTROLLER_META = /* @__PURE__ */ Symbol.for("palbase.backend.controllerMeta");
1760
1761
  function toSegments(path) {
1761
1762
  return path.split("/").filter(Boolean).map((s) => s.startsWith("{") && s.endsWith("}") ? `:${s.slice(1, -1)}` : s);
@@ -1763,6 +1764,7 @@ function toSegments(path) {
1763
1764
  function buildRouteTable(controllers) {
1764
1765
  const table = [];
1765
1766
  for (const Ctrl of controllers) {
1767
+ if (Ctrl[ROOM_META] !== void 0) continue;
1766
1768
  const ctor = Ctrl;
1767
1769
  const meta = ctor[CONTROLLER_META];
1768
1770
  const basePath = meta?.basePath ?? "";
@@ -2463,4 +2465,4 @@ export {
2463
2465
  installEgressFence,
2464
2466
  createApp
2465
2467
  };
2466
- //# sourceMappingURL=chunk-43A3KGWL.js.map
2468
+ //# sourceMappingURL=chunk-34I4GB7D.js.map