equipped 5.3.0 → 5.3.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.
Files changed (129) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/server/adapters/express/index.cjs +47 -1
  3. package/dist/cjs/server/adapters/express/index.cjs.map +1 -1
  4. package/dist/cjs/server/adapters/express/index.min.cjs +6 -6
  5. package/dist/cjs/server/adapters/express/index.min.cjs.map +1 -1
  6. package/dist/cjs/server/adapters/fastify/index.cjs +47 -1
  7. package/dist/cjs/server/adapters/fastify/index.cjs.map +1 -1
  8. package/dist/cjs/server/adapters/fastify/index.min.cjs +6 -6
  9. package/dist/cjs/server/adapters/fastify/index.min.cjs.map +1 -1
  10. package/dist/cjs/server/index.cjs +47 -1
  11. package/dist/cjs/server/index.cjs.map +1 -1
  12. package/dist/cjs/server/index.min.cjs +6 -6
  13. package/dist/cjs/server/index.min.cjs.map +1 -1
  14. package/dist/esm/cache/adapters/in-memory/index.min.mjs +1 -1
  15. package/dist/esm/cache/adapters/in-memory/index.mjs +2 -2
  16. package/dist/esm/cache/adapters/redis/index.min.mjs +1 -1
  17. package/dist/esm/cache/adapters/redis/index.mjs +3 -3
  18. package/dist/esm/cache/index.min.mjs +1 -1
  19. package/dist/esm/cache/index.mjs +2 -2
  20. package/dist/esm/{chunk-QHLKB47N.min.mjs → chunk-2GGMLKRP.min.mjs} +2 -2
  21. package/dist/esm/{chunk-PQCBVQL6.mjs → chunk-3TP7NINX.mjs} +2 -2
  22. package/dist/esm/{chunk-PNZNNUMN.mjs → chunk-5PZACGPI.mjs} +3 -3
  23. package/dist/esm/{chunk-ZGMFFK6Y.min.mjs → chunk-676VIABN.min.mjs} +2 -2
  24. package/dist/esm/{chunk-4MXYZS5R.mjs → chunk-7CP7ZE2O.mjs} +2 -2
  25. package/dist/esm/{chunk-5VW3JAFR.min.mjs → chunk-7NF7PV6S.min.mjs} +2 -2
  26. package/dist/esm/{chunk-4JLDXF7T.min.mjs → chunk-7SQ5JQYR.min.mjs} +2 -2
  27. package/dist/esm/{chunk-MDQKODYQ.mjs → chunk-A4P7P6BU.mjs} +48 -2
  28. package/dist/esm/chunk-A4P7P6BU.mjs.map +1 -0
  29. package/dist/esm/{chunk-JH6EBXY4.mjs → chunk-BWUFPMVG.mjs} +2 -2
  30. package/dist/esm/{chunk-AKQBDYUO.mjs → chunk-HXFNN6RI.mjs} +3 -3
  31. package/dist/esm/{chunk-FLAPYQUT.min.mjs → chunk-IN5YKIJ7.min.mjs} +7 -7
  32. package/dist/esm/chunk-IN5YKIJ7.min.mjs.map +1 -0
  33. package/dist/esm/{chunk-PCAUXBAG.min.mjs → chunk-IRYCN6PI.min.mjs} +2 -2
  34. package/dist/esm/{chunk-Z2TZ3KR7.mjs → chunk-LKS5ZE45.mjs} +2 -2
  35. package/dist/esm/{chunk-SGZNOYC3.min.mjs → chunk-MQXTTWPS.min.mjs} +2 -2
  36. package/dist/esm/{chunk-B5QQ32YY.min.mjs → chunk-P4PRHHIY.min.mjs} +2 -2
  37. package/dist/esm/{chunk-TVTYDU2D.mjs → chunk-TSVHZZE4.mjs} +3 -3
  38. package/dist/esm/dbs/adapters/mongodb/index.min.mjs +1 -1
  39. package/dist/esm/dbs/adapters/mongodb/index.mjs +3 -3
  40. package/dist/esm/dbs/index.min.mjs +1 -1
  41. package/dist/esm/dbs/index.mjs +3 -3
  42. package/dist/esm/errors/index.min.mjs +1 -1
  43. package/dist/esm/errors/index.mjs +1 -1
  44. package/dist/esm/events/adapters/kafka/index.min.mjs +1 -1
  45. package/dist/esm/events/adapters/kafka/index.mjs +2 -2
  46. package/dist/esm/events/adapters/rabbitmq/index.min.mjs +1 -1
  47. package/dist/esm/events/adapters/rabbitmq/index.mjs +1 -1
  48. package/dist/esm/index.min.mjs +1 -1
  49. package/dist/esm/index.mjs +1 -1
  50. package/dist/esm/instance/index.min.mjs +1 -1
  51. package/dist/esm/instance/index.mjs +1 -1
  52. package/dist/esm/introspection-THKMXV5V.min.mjs +2 -0
  53. package/dist/esm/{introspection-32BRYKYY.mjs → introspection-YJF3QAUK.mjs} +3 -3
  54. package/dist/esm/jobs/adapters/redis/index.min.mjs +1 -1
  55. package/dist/esm/jobs/adapters/redis/index.mjs +3 -3
  56. package/dist/esm/orm/adapters/in-memory/index.min.mjs +1 -1
  57. package/dist/esm/orm/adapters/in-memory/index.mjs +3 -3
  58. package/dist/esm/orm/adapters/json/index.min.mjs +1 -1
  59. package/dist/esm/orm/adapters/json/index.mjs +3 -3
  60. package/dist/esm/orm/adapters/mongodb/index.min.mjs +1 -1
  61. package/dist/esm/orm/adapters/mongodb/index.mjs +2 -2
  62. package/dist/esm/orm/adapters/postgresql/index.min.mjs +2 -2
  63. package/dist/esm/orm/adapters/postgresql/index.mjs +3 -3
  64. package/dist/esm/orm/index.min.mjs +1 -1
  65. package/dist/esm/orm/index.mjs +3 -3
  66. package/dist/esm/server/adapters/express/index.min.mjs +1 -1
  67. package/dist/esm/server/adapters/express/index.mjs +1 -1
  68. package/dist/esm/server/adapters/fastify/index.min.mjs +1 -1
  69. package/dist/esm/server/adapters/fastify/index.mjs +1 -1
  70. package/dist/esm/server/index.min.mjs +1 -1
  71. package/dist/esm/server/index.mjs +1 -1
  72. package/dist/esm/utilities/index.min.mjs +1 -1
  73. package/dist/esm/utilities/index.mjs +1 -1
  74. package/dist/esm/validations/index.min.mjs +1 -1
  75. package/dist/esm/validations/index.mjs +1 -1
  76. package/dist/types/{base-DVr0fHil.d.ts → base-BDTBLZ9a.d.ts} +7 -1
  77. package/dist/types/cache/adapters/in-memory/index.js +2 -2
  78. package/dist/types/cache/adapters/redis/index.js +3 -3
  79. package/dist/types/cache/index.js +2 -2
  80. package/dist/types/{chunk-NJ2FHI3U.js → chunk-4DH3POYM.js} +2 -2
  81. package/dist/types/{chunk-OHFTQGQG.js → chunk-55CTVK7R.js} +1 -1
  82. package/dist/types/{chunk-JQ2FWX4W.js → chunk-5Z26ZURE.js} +1 -1
  83. package/dist/types/{chunk-3M4PBZAQ.js → chunk-IZDJDGOV.js} +2 -2
  84. package/dist/types/{chunk-XGGGAEET.js → chunk-J3TGB5YQ.js} +1 -1
  85. package/dist/types/{chunk-3TKJGSCZ.js → chunk-LPB5LS7A.js} +1 -1
  86. package/dist/types/{chunk-YTY3EFNB.js → chunk-TT5EORDK.js} +47 -1
  87. package/dist/types/{chunk-65EHKCDZ.js → chunk-YLJNBL6J.js} +2 -2
  88. package/dist/types/dbs/adapters/mongodb/index.js +3 -3
  89. package/dist/types/dbs/index.js +3 -3
  90. package/dist/types/errors/index.js +1 -1
  91. package/dist/types/events/adapters/kafka/index.js +2 -2
  92. package/dist/types/events/adapters/rabbitmq/index.js +1 -1
  93. package/dist/types/index.js +1 -1
  94. package/dist/types/instance/index.js +1 -1
  95. package/dist/types/{introspection-VOIU3XE6.js → introspection-EHGM4RMO.js} +2 -2
  96. package/dist/types/jobs/adapters/redis/index.js +3 -3
  97. package/dist/types/orm/adapters/in-memory/index.js +3 -3
  98. package/dist/types/orm/adapters/json/index.js +3 -3
  99. package/dist/types/orm/adapters/mongodb/index.js +2 -2
  100. package/dist/types/orm/adapters/postgresql/index.js +3 -3
  101. package/dist/types/orm/index.js +3 -3
  102. package/dist/types/server/adapters/express/index.d.ts +1 -1
  103. package/dist/types/server/adapters/express/index.js +1 -1
  104. package/dist/types/server/adapters/fastify/index.d.ts +1 -1
  105. package/dist/types/server/adapters/fastify/index.js +1 -1
  106. package/dist/types/server/index.d.ts +2 -2
  107. package/dist/types/server/index.js +1 -1
  108. package/dist/types/utilities/index.js +1 -1
  109. package/dist/types/validations/index.js +1 -1
  110. package/package.json +1 -1
  111. package/dist/esm/chunk-FLAPYQUT.min.mjs.map +0 -1
  112. package/dist/esm/chunk-MDQKODYQ.mjs.map +0 -1
  113. package/dist/esm/introspection-A72WMWE3.min.mjs +0 -2
  114. /package/dist/esm/{chunk-QHLKB47N.min.mjs.map → chunk-2GGMLKRP.min.mjs.map} +0 -0
  115. /package/dist/esm/{chunk-PQCBVQL6.mjs.map → chunk-3TP7NINX.mjs.map} +0 -0
  116. /package/dist/esm/{chunk-PNZNNUMN.mjs.map → chunk-5PZACGPI.mjs.map} +0 -0
  117. /package/dist/esm/{chunk-ZGMFFK6Y.min.mjs.map → chunk-676VIABN.min.mjs.map} +0 -0
  118. /package/dist/esm/{chunk-4MXYZS5R.mjs.map → chunk-7CP7ZE2O.mjs.map} +0 -0
  119. /package/dist/esm/{chunk-5VW3JAFR.min.mjs.map → chunk-7NF7PV6S.min.mjs.map} +0 -0
  120. /package/dist/esm/{chunk-4JLDXF7T.min.mjs.map → chunk-7SQ5JQYR.min.mjs.map} +0 -0
  121. /package/dist/esm/{chunk-JH6EBXY4.mjs.map → chunk-BWUFPMVG.mjs.map} +0 -0
  122. /package/dist/esm/{chunk-AKQBDYUO.mjs.map → chunk-HXFNN6RI.mjs.map} +0 -0
  123. /package/dist/esm/{chunk-PCAUXBAG.min.mjs.map → chunk-IRYCN6PI.min.mjs.map} +0 -0
  124. /package/dist/esm/{chunk-Z2TZ3KR7.mjs.map → chunk-LKS5ZE45.mjs.map} +0 -0
  125. /package/dist/esm/{chunk-SGZNOYC3.min.mjs.map → chunk-MQXTTWPS.min.mjs.map} +0 -0
  126. /package/dist/esm/{chunk-B5QQ32YY.min.mjs.map → chunk-P4PRHHIY.min.mjs.map} +0 -0
  127. /package/dist/esm/{chunk-TVTYDU2D.mjs.map → chunk-TSVHZZE4.mjs.map} +0 -0
  128. /package/dist/esm/{introspection-32BRYKYY.mjs.map → introspection-THKMXV5V.min.mjs.map} +0 -0
  129. /package/dist/esm/{introspection-A72WMWE3.min.mjs.map → introspection-YJF3QAUK.mjs.map} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  random_exports,
9
9
  retry,
10
10
  sleep
11
- } from "../chunk-MDQKODYQ.mjs";
11
+ } from "../chunk-A4P7P6BU.mjs";
12
12
  import "../chunk-VCCS7CAI.mjs";
13
13
  import "../chunk-J5LGTIGS.mjs";
14
14
  export {
@@ -1,2 +1,2 @@
1
- import{c as a,d as b,e as c}from "../chunk-FLAPYQUT.min.mjs";import"../chunk-DSUJ5FUL.min.mjs";import"../chunk-AQY7QVYI.min.mjs";export{b as pipeErrorToValidationError,c as validate,a as ve};
1
+ import{c as a,d as b,e as c}from "../chunk-IN5YKIJ7.min.mjs";import"../chunk-DSUJ5FUL.min.mjs";import"../chunk-AQY7QVYI.min.mjs";export{b as pipeErrorToValidationError,c as validate,a as ve};
2
2
  //# sourceMappingURL=index.min.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  pipeErrorToValidationError,
3
3
  validate,
4
4
  valleyed_exports
5
- } from "../chunk-MDQKODYQ.mjs";
5
+ } from "../chunk-A4P7P6BU.mjs";
6
6
  import "../chunk-VCCS7CAI.mjs";
7
7
  import "../chunk-J5LGTIGS.mjs";
8
8
  export {
@@ -125,6 +125,11 @@ type RawResponseHandled = {
125
125
  };
126
126
  type RawResponseHandler = (request: IncomingMessage, response: ServerResponse) => unknown | Promise<unknown>;
127
127
  type RawResponder = (handler: RawResponseHandler) => Promise<RawResponseHandled>;
128
+ type ServerBeforeListenContext = {
129
+ httpServer: http.Server;
130
+ port: number;
131
+ };
132
+ type ServerBeforeListenHandler = (context: ServerBeforeListenContext) => void | Promise<void>;
128
133
  type ServerNotFoundContext = {
129
134
  request: Request<any>;
130
135
  respondWithRaw: RawResponder;
@@ -145,6 +150,7 @@ declare abstract class Server {
145
150
  addRouter(...routers: Router<any>[]): void;
146
151
  addRoute<T extends RouteDef>(...routes: Route<T>[]): void;
147
152
  setNotFoundHandler(handler: ServerNotFoundHandler): this;
153
+ onBeforeListen(handler: ServerBeforeListenHandler): this;
148
154
  test(): TestAgent;
149
155
  start(): Promise<boolean>;
150
156
  protected createNodeRawResponder(input: {
@@ -154,4 +160,4 @@ declare abstract class Server {
154
160
  }): RawResponder;
155
161
  }
156
162
 
157
- export { BaseRequestAuthMethod as B, type OnJoinFn as O, type RawResponder as R, Server as S, type ServerConfig as a, type RawResponseHandled as b, type RawResponseHandler as c, type ServerNotFoundContext as d, type ServerNotFoundHandler as e, Router as f, type SocketCallbacks as g, SocketEmitter as h, serverConfigPipe as s };
163
+ export { BaseRequestAuthMethod as B, type OnJoinFn as O, type RawResponder as R, Server as S, type ServerConfig as a, type RawResponseHandled as b, type RawResponseHandler as c, type ServerBeforeListenContext as d, type ServerBeforeListenHandler as e, type ServerNotFoundContext as f, type ServerNotFoundHandler as g, Router as h, type SocketCallbacks as i, SocketEmitter as j, serverConfigPipe as s };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Cache
3
- } from "../../../chunk-3TKJGSCZ.js";
3
+ } from "../../../chunk-LPB5LS7A.js";
4
4
  import {
5
5
  Instance,
6
6
  configurable
7
- } from "../../../chunk-YTY3EFNB.js";
7
+ } from "../../../chunk-TT5EORDK.js";
8
8
  import "../../../chunk-KZKFYO4V.js";
9
9
  import "../../../chunk-MLKGABMK.js";
10
10
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  RedisCache,
3
3
  redisConfigPipe
4
- } from "../../../chunk-65EHKCDZ.js";
5
- import "../../../chunk-3TKJGSCZ.js";
6
- import "../../../chunk-YTY3EFNB.js";
4
+ } from "../../../chunk-YLJNBL6J.js";
5
+ import "../../../chunk-LPB5LS7A.js";
6
+ import "../../../chunk-TT5EORDK.js";
7
7
  import "../../../chunk-KZKFYO4V.js";
8
8
  import "../../../chunk-MLKGABMK.js";
9
9
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Cache
3
- } from "../chunk-3TKJGSCZ.js";
4
- import "../chunk-YTY3EFNB.js";
3
+ } from "../chunk-LPB5LS7A.js";
4
+ import "../chunk-TT5EORDK.js";
5
5
  import "../chunk-KZKFYO4V.js";
6
6
  import "../chunk-MLKGABMK.js";
7
7
  export {
@@ -11,10 +11,10 @@ import {
11
11
  PushOp,
12
12
  SetOp,
13
13
  UnsetOp
14
- } from "./chunk-JQ2FWX4W.js";
14
+ } from "./chunk-5Z26ZURE.js";
15
15
  import {
16
16
  configurable
17
- } from "./chunk-YTY3EFNB.js";
17
+ } from "./chunk-TT5EORDK.js";
18
18
 
19
19
  // src/orm/adapters/in-memory/index.ts
20
20
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EquippedError
3
- } from "./chunk-YTY3EFNB.js";
3
+ } from "./chunk-TT5EORDK.js";
4
4
 
5
5
  // src/orm/errors/introspection.ts
6
6
  var OrmIntrospectionError = class extends EquippedError {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EquippedError,
3
3
  Instance
4
- } from "./chunk-YTY3EFNB.js";
4
+ } from "./chunk-TT5EORDK.js";
5
5
 
6
6
  // src/orm/errors/validation.ts
7
7
  var OrmValidationError = class extends EquippedError {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  KafkaEventBus
3
- } from "./chunk-XGGGAEET.js";
3
+ } from "./chunk-J3TGB5YQ.js";
4
4
  import {
5
5
  Instance
6
- } from "./chunk-YTY3EFNB.js";
6
+ } from "./chunk-TT5EORDK.js";
7
7
 
8
8
  // src/dbs/adapters/base/db.ts
9
9
  var Db = class {
@@ -4,7 +4,7 @@ import {
4
4
  configurable,
5
5
  parseJSONValue,
6
6
  random_exports
7
- } from "./chunk-YTY3EFNB.js";
7
+ } from "./chunk-TT5EORDK.js";
8
8
  import {
9
9
  EventBus
10
10
  } from "./chunk-KZKFYO4V.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Instance
3
- } from "./chunk-YTY3EFNB.js";
3
+ } from "./chunk-TT5EORDK.js";
4
4
 
5
5
  // src/cache/adapters/base.ts
6
6
  var Cache = class {
@@ -969,6 +969,7 @@ var Server = class {
969
969
  #queue = [];
970
970
  #routesByKey = /* @__PURE__ */ new Set();
971
971
  #started = false;
972
+ #beforeListenHandlers = [];
972
973
  #notFoundHandler = null;
973
974
  setup(httpServer, config) {
974
975
  this.#httpServer = httpServer;
@@ -1024,6 +1025,11 @@ var Server = class {
1024
1025
  this.#notFoundHandler = handler;
1025
1026
  return this;
1026
1027
  }
1028
+ onBeforeListen(handler) {
1029
+ if (this.#started) throw new EquippedError("Cannot add before-listen handler after server has started", {});
1030
+ this.#beforeListenHandlers.push(handler);
1031
+ return this;
1032
+ }
1027
1033
  test() {
1028
1034
  return supertest(this.#httpServer);
1029
1035
  }
@@ -1057,6 +1063,7 @@ var Server = class {
1057
1063
  });
1058
1064
  return await this.handleResponse(res, response);
1059
1065
  });
1066
+ for (const handler of this.#beforeListenHandlers) await handler({ httpServer: this.#httpServer, port: config.port });
1060
1067
  const started = await this.startServer(config.port);
1061
1068
  if (started) Instance.get().log.info(`${instance.id}(${app.name}) service listening on port ${config.port}`);
1062
1069
  return started;
@@ -1208,6 +1215,7 @@ if (void 0) {
1208
1215
  const testInstanceState = globalThis;
1209
1216
  class TestServer extends Server {
1210
1217
  handledResponse = null;
1218
+ startedPorts = [];
1211
1219
  notFoundHandler = null;
1212
1220
  constructor() {
1213
1221
  super();
@@ -1252,7 +1260,8 @@ if (void 0) {
1252
1260
  registerNotFoundHandler(cb) {
1253
1261
  this.notFoundHandler = cb;
1254
1262
  }
1255
- async startServer() {
1263
+ async startServer(port) {
1264
+ this.startedPorts.push(port);
1256
1265
  return true;
1257
1266
  }
1258
1267
  async dispatchNotFound(path) {
@@ -1263,6 +1272,43 @@ if (void 0) {
1263
1272
  return { handledResponse: this.handledResponse, rawResponse };
1264
1273
  }
1265
1274
  }
1275
+ describe("Server before-listen handlers", () => {
1276
+ test("runs before-listen handlers before adapter listen in registration order", async () => {
1277
+ ensureTestInstance();
1278
+ const server = new TestServer();
1279
+ const calls = [];
1280
+ let receivedServer = null;
1281
+ server.onBeforeListen(({ httpServer, port }) => {
1282
+ calls.push(`first:${port}`);
1283
+ receivedServer = httpServer;
1284
+ expect(server.startedPorts).toEqual([]);
1285
+ }).onBeforeListen(({ httpServer, port }) => {
1286
+ calls.push(`second:${port}`);
1287
+ expect(httpServer).toBe(receivedServer);
1288
+ expect(server.startedPorts).toEqual([]);
1289
+ });
1290
+ await server.start();
1291
+ expect(calls).toEqual(["first:0", "second:0"]);
1292
+ expect(receivedServer).toBeInstanceOf(http.Server);
1293
+ expect(server.startedPorts).toEqual([0]);
1294
+ });
1295
+ test("rejects startup when a before-listen handler fails before adapter listen", async () => {
1296
+ ensureTestInstance();
1297
+ const server = new TestServer();
1298
+ server.onBeforeListen(async () => {
1299
+ throw new Error("before-listen failed");
1300
+ });
1301
+ await expect(server.start()).rejects.toThrow("before-listen failed");
1302
+ expect(server.startedPorts).toEqual([]);
1303
+ });
1304
+ test("rejects adding before-listen handlers after server startup", async () => {
1305
+ ensureTestInstance();
1306
+ const server = new TestServer();
1307
+ await server.start();
1308
+ expect(() => server.onBeforeListen(() => {
1309
+ })).toThrow("Cannot add before-listen handler after server has started");
1310
+ });
1311
+ });
1266
1312
  describe("Server not-found handler", () => {
1267
1313
  test("throws the default Equipped not-found error when no custom handler is set", async () => {
1268
1314
  ensureTestInstance();
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Cache
3
- } from "./chunk-3TKJGSCZ.js";
3
+ } from "./chunk-LPB5LS7A.js";
4
4
  import {
5
5
  EquippedError,
6
6
  Instance,
7
7
  configurable
8
- } from "./chunk-YTY3EFNB.js";
8
+ } from "./chunk-TT5EORDK.js";
9
9
 
10
10
  // src/cache/adapters/redis/index.ts
11
11
  import { Cluster, Redis } from "ioredis";
@@ -2,13 +2,13 @@ import {
2
2
  Db,
3
3
  QueryKeys,
4
4
  dbChangeConfigPipe
5
- } from "../../../chunk-3M4PBZAQ.js";
6
- import "../../../chunk-XGGGAEET.js";
5
+ } from "../../../chunk-IZDJDGOV.js";
6
+ import "../../../chunk-J3TGB5YQ.js";
7
7
  import {
8
8
  EquippedError,
9
9
  Instance,
10
10
  retry
11
- } from "../../../chunk-YTY3EFNB.js";
11
+ } from "../../../chunk-TT5EORDK.js";
12
12
  import "../../../chunk-KZKFYO4V.js";
13
13
  import "../../../chunk-MLKGABMK.js";
14
14
 
@@ -6,9 +6,9 @@ import {
6
6
  queryParamsPipe,
7
7
  queryResultsPipe,
8
8
  wrapQueryParams
9
- } from "../chunk-3M4PBZAQ.js";
10
- import "../chunk-XGGGAEET.js";
11
- import "../chunk-YTY3EFNB.js";
9
+ } from "../chunk-IZDJDGOV.js";
10
+ import "../chunk-J3TGB5YQ.js";
11
+ import "../chunk-TT5EORDK.js";
12
12
  import "../chunk-KZKFYO4V.js";
13
13
  import "../chunk-MLKGABMK.js";
14
14
  export {
@@ -7,7 +7,7 @@ import {
7
7
  RequestError,
8
8
  TokenExpired,
9
9
  ValidationError
10
- } from "../chunk-YTY3EFNB.js";
10
+ } from "../chunk-TT5EORDK.js";
11
11
  import "../chunk-KZKFYO4V.js";
12
12
  import "../chunk-MLKGABMK.js";
13
13
  export {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  KafkaEventBus,
3
3
  kafkaConfigPipe
4
- } from "../../../chunk-XGGGAEET.js";
5
- import "../../../chunk-YTY3EFNB.js";
4
+ } from "../../../chunk-J3TGB5YQ.js";
5
+ import "../../../chunk-TT5EORDK.js";
6
6
  import "../../../chunk-KZKFYO4V.js";
7
7
  import "../../../chunk-MLKGABMK.js";
8
8
  export {
@@ -3,7 +3,7 @@ import {
3
3
  configurable,
4
4
  parseJSONValue,
5
5
  random_exports
6
- } from "../../../chunk-YTY3EFNB.js";
6
+ } from "../../../chunk-TT5EORDK.js";
7
7
  import {
8
8
  EventBus
9
9
  } from "../../../chunk-KZKFYO4V.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Instance
3
- } from "./chunk-YTY3EFNB.js";
3
+ } from "./chunk-TT5EORDK.js";
4
4
  import "./chunk-KZKFYO4V.js";
5
5
  import "./chunk-MLKGABMK.js";
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Instance
3
- } from "../chunk-YTY3EFNB.js";
3
+ } from "../chunk-TT5EORDK.js";
4
4
  import "../chunk-KZKFYO4V.js";
5
5
  import "../chunk-MLKGABMK.js";
6
6
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OrmIntrospectionError
3
- } from "./chunk-OHFTQGQG.js";
4
- import "./chunk-YTY3EFNB.js";
3
+ } from "./chunk-55CTVK7R.js";
4
+ import "./chunk-TT5EORDK.js";
5
5
  import "./chunk-KZKFYO4V.js";
6
6
  import "./chunk-MLKGABMK.js";
7
7
  export {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  RedisCache,
3
3
  redisConfigPipe
4
- } from "../../../chunk-65EHKCDZ.js";
5
- import "../../../chunk-3TKJGSCZ.js";
4
+ } from "../../../chunk-YLJNBL6J.js";
5
+ import "../../../chunk-LPB5LS7A.js";
6
6
  import {
7
7
  Job
8
8
  } from "../../../chunk-LN3A6R4Y.js";
@@ -10,7 +10,7 @@ import {
10
10
  Instance,
11
11
  configurable,
12
12
  random_exports
13
- } from "../../../chunk-YTY3EFNB.js";
13
+ } from "../../../chunk-TT5EORDK.js";
14
14
  import "../../../chunk-KZKFYO4V.js";
15
15
  import "../../../chunk-MLKGABMK.js";
16
16
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  InMemoryAdapter
3
- } from "../../../chunk-NJ2FHI3U.js";
4
- import "../../../chunk-JQ2FWX4W.js";
5
- import "../../../chunk-YTY3EFNB.js";
3
+ } from "../../../chunk-4DH3POYM.js";
4
+ import "../../../chunk-5Z26ZURE.js";
5
+ import "../../../chunk-TT5EORDK.js";
6
6
  import "../../../chunk-KZKFYO4V.js";
7
7
  import "../../../chunk-MLKGABMK.js";
8
8
  export {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  InMemoryAdapter
3
- } from "../../../chunk-NJ2FHI3U.js";
3
+ } from "../../../chunk-4DH3POYM.js";
4
4
  import {
5
5
  OrmAdapter
6
- } from "../../../chunk-JQ2FWX4W.js";
6
+ } from "../../../chunk-5Z26ZURE.js";
7
7
  import {
8
8
  configurable
9
- } from "../../../chunk-YTY3EFNB.js";
9
+ } from "../../../chunk-TT5EORDK.js";
10
10
  import "../../../chunk-KZKFYO4V.js";
11
11
  import "../../../chunk-MLKGABMK.js";
12
12
 
@@ -11,11 +11,11 @@ import {
11
11
  PushOp,
12
12
  UnsetOp,
13
13
  flattenOps
14
- } from "../../../chunk-JQ2FWX4W.js";
14
+ } from "../../../chunk-5Z26ZURE.js";
15
15
  import {
16
16
  EquippedError,
17
17
  configurable
18
- } from "../../../chunk-YTY3EFNB.js";
18
+ } from "../../../chunk-TT5EORDK.js";
19
19
  import "../../../chunk-KZKFYO4V.js";
20
20
  import "../../../chunk-MLKGABMK.js";
21
21
 
@@ -12,11 +12,11 @@ import {
12
12
  PushOp,
13
13
  UnsetOp,
14
14
  flattenOps
15
- } from "../../../chunk-JQ2FWX4W.js";
15
+ } from "../../../chunk-5Z26ZURE.js";
16
16
  import {
17
17
  EquippedError,
18
18
  configurable
19
- } from "../../../chunk-YTY3EFNB.js";
19
+ } from "../../../chunk-TT5EORDK.js";
20
20
  import "../../../chunk-KZKFYO4V.js";
21
21
  import "../../../chunk-MLKGABMK.js";
22
22
 
@@ -1109,7 +1109,7 @@ var PostgresAdapter = class extends configurable(postgresqlConnectionPipe, OrmAd
1109
1109
  await this.#getClient().query(`ALTER TABLE "${change.table}" DROP CONSTRAINT "${change.name}"`);
1110
1110
  }
1111
1111
  async introspect() {
1112
- const { OrmIntrospectionError } = await import("../../../introspection-VOIU3XE6.js");
1112
+ const { OrmIntrospectionError } = await import("../../../introspection-EHGM4RMO.js");
1113
1113
  const client = this.#getClient();
1114
1114
  const tablesResult = await client.query(`
1115
1115
  SELECT table_name FROM information_schema.tables
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OrmIntrospectionError
3
- } from "../chunk-OHFTQGQG.js";
3
+ } from "../chunk-55CTVK7R.js";
4
4
  import {
5
5
  ComputedField,
6
6
  Field,
@@ -33,11 +33,11 @@ import {
33
33
  set,
34
34
  toFieldName,
35
35
  unset
36
- } from "../chunk-JQ2FWX4W.js";
36
+ } from "../chunk-5Z26ZURE.js";
37
37
  import {
38
38
  EquippedError,
39
39
  Instance
40
- } from "../chunk-YTY3EFNB.js";
40
+ } from "../chunk-TT5EORDK.js";
41
41
  import "../chunk-KZKFYO4V.js";
42
42
  import "../chunk-MLKGABMK.js";
43
43
 
@@ -1,4 +1,4 @@
1
- import { B as BaseRequestAuthMethod, S as Server, R as RawResponder } from '../../../base-DVr0fHil.js';
1
+ import { B as BaseRequestAuthMethod, S as Server, R as RawResponder } from '../../../base-BDTBLZ9a.js';
2
2
  import { A as AuthUser } from '../../../overrides-6Hxg764S.js';
3
3
  import { R as Request, a as Response, M as MethodsEnum } from '../../../requestError-DdaL8hc3.js';
4
4
  import { EventBus } from '../../../events/index.js';
@@ -6,7 +6,7 @@ import {
6
6
  configurable,
7
7
  getMediaDuration,
8
8
  serverConfigPipe
9
- } from "../../../chunk-YTY3EFNB.js";
9
+ } from "../../../chunk-TT5EORDK.js";
10
10
  import "../../../chunk-KZKFYO4V.js";
11
11
  import "../../../chunk-MLKGABMK.js";
12
12
 
@@ -1,4 +1,4 @@
1
- import { B as BaseRequestAuthMethod, S as Server, R as RawResponder } from '../../../base-DVr0fHil.js';
1
+ import { B as BaseRequestAuthMethod, S as Server, R as RawResponder } from '../../../base-BDTBLZ9a.js';
2
2
  import { A as AuthUser } from '../../../overrides-6Hxg764S.js';
3
3
  import { R as Request, a as Response, M as MethodsEnum } from '../../../requestError-DdaL8hc3.js';
4
4
  import { EventBus } from '../../../events/index.js';
@@ -7,7 +7,7 @@ import {
7
7
  configurable,
8
8
  getMediaDuration,
9
9
  serverConfigPipe
10
- } from "../../../chunk-YTY3EFNB.js";
10
+ } from "../../../chunk-TT5EORDK.js";
11
11
  import "../../../chunk-KZKFYO4V.js";
12
12
  import "../../../chunk-MLKGABMK.js";
13
13
 
@@ -1,5 +1,5 @@
1
- import { B as BaseRequestAuthMethod } from '../base-DVr0fHil.js';
2
- export { O as OnJoinFn, R as RawResponder, b as RawResponseHandled, c as RawResponseHandler, f as Router, S as Server, a as ServerConfig, d as ServerNotFoundContext, e as ServerNotFoundHandler, g as SocketCallbacks, h as SocketEmitter, s as serverConfigPipe } from '../base-DVr0fHil.js';
1
+ import { B as BaseRequestAuthMethod } from '../base-BDTBLZ9a.js';
2
+ export { O as OnJoinFn, R as RawResponder, b as RawResponseHandled, c as RawResponseHandler, h as Router, S as Server, d as ServerBeforeListenContext, e as ServerBeforeListenHandler, a as ServerConfig, f as ServerNotFoundContext, g as ServerNotFoundHandler, i as SocketCallbacks, j as SocketEmitter, s as serverConfigPipe } from '../base-BDTBLZ9a.js';
3
3
  import { A as AuthUser } from '../overrides-6Hxg764S.js';
4
4
  import { R as Request, c as RouteDefToReqRes, d as RouteDef, e as Route } from '../requestError-DdaL8hc3.js';
5
5
  export { C as CookieVal, h as DefaultCookies, D as DefaultHeaders, I as IncomingFile, k as MergeRouteDefs, f as Methods, M as MethodsEnum, a as Response, i as RouteConfig, l as RouteDefHandler, j as RouterConfig, S as StatusCodes, g as StatusCodesEnum, o as makeErrorMiddleware, m as makeMiddleware, n as makeResponseMiddleware } from '../requestError-DdaL8hc3.js';
@@ -15,7 +15,7 @@ import {
15
15
  makeResponseMiddleware,
16
16
  requireAuthUser,
17
17
  serverConfigPipe
18
- } from "../chunk-YTY3EFNB.js";
18
+ } from "../chunk-TT5EORDK.js";
19
19
  import "../chunk-KZKFYO4V.js";
20
20
  import "../chunk-MLKGABMK.js";
21
21
  export {
@@ -8,7 +8,7 @@ import {
8
8
  random_exports,
9
9
  retry,
10
10
  sleep
11
- } from "../chunk-YTY3EFNB.js";
11
+ } from "../chunk-TT5EORDK.js";
12
12
  import "../chunk-KZKFYO4V.js";
13
13
  import "../chunk-MLKGABMK.js";
14
14
  export {
@@ -2,7 +2,7 @@ import {
2
2
  pipeErrorToValidationError,
3
3
  validate,
4
4
  valleyed_exports
5
- } from "../chunk-YTY3EFNB.js";
5
+ } from "../chunk-TT5EORDK.js";
6
6
  import "../chunk-KZKFYO4V.js";
7
7
  import "../chunk-MLKGABMK.js";
8
8
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "equipped",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "type": "module",