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.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/server/adapters/express/index.cjs +47 -1
- package/dist/cjs/server/adapters/express/index.cjs.map +1 -1
- package/dist/cjs/server/adapters/express/index.min.cjs +6 -6
- package/dist/cjs/server/adapters/express/index.min.cjs.map +1 -1
- package/dist/cjs/server/adapters/fastify/index.cjs +47 -1
- package/dist/cjs/server/adapters/fastify/index.cjs.map +1 -1
- package/dist/cjs/server/adapters/fastify/index.min.cjs +6 -6
- package/dist/cjs/server/adapters/fastify/index.min.cjs.map +1 -1
- package/dist/cjs/server/index.cjs +47 -1
- package/dist/cjs/server/index.cjs.map +1 -1
- package/dist/cjs/server/index.min.cjs +6 -6
- package/dist/cjs/server/index.min.cjs.map +1 -1
- package/dist/esm/cache/adapters/in-memory/index.min.mjs +1 -1
- package/dist/esm/cache/adapters/in-memory/index.mjs +2 -2
- package/dist/esm/cache/adapters/redis/index.min.mjs +1 -1
- package/dist/esm/cache/adapters/redis/index.mjs +3 -3
- package/dist/esm/cache/index.min.mjs +1 -1
- package/dist/esm/cache/index.mjs +2 -2
- package/dist/esm/{chunk-QHLKB47N.min.mjs → chunk-2GGMLKRP.min.mjs} +2 -2
- package/dist/esm/{chunk-PQCBVQL6.mjs → chunk-3TP7NINX.mjs} +2 -2
- package/dist/esm/{chunk-PNZNNUMN.mjs → chunk-5PZACGPI.mjs} +3 -3
- package/dist/esm/{chunk-ZGMFFK6Y.min.mjs → chunk-676VIABN.min.mjs} +2 -2
- package/dist/esm/{chunk-4MXYZS5R.mjs → chunk-7CP7ZE2O.mjs} +2 -2
- package/dist/esm/{chunk-5VW3JAFR.min.mjs → chunk-7NF7PV6S.min.mjs} +2 -2
- package/dist/esm/{chunk-4JLDXF7T.min.mjs → chunk-7SQ5JQYR.min.mjs} +2 -2
- package/dist/esm/{chunk-MDQKODYQ.mjs → chunk-A4P7P6BU.mjs} +48 -2
- package/dist/esm/chunk-A4P7P6BU.mjs.map +1 -0
- package/dist/esm/{chunk-JH6EBXY4.mjs → chunk-BWUFPMVG.mjs} +2 -2
- package/dist/esm/{chunk-AKQBDYUO.mjs → chunk-HXFNN6RI.mjs} +3 -3
- package/dist/esm/{chunk-FLAPYQUT.min.mjs → chunk-IN5YKIJ7.min.mjs} +7 -7
- package/dist/esm/chunk-IN5YKIJ7.min.mjs.map +1 -0
- package/dist/esm/{chunk-PCAUXBAG.min.mjs → chunk-IRYCN6PI.min.mjs} +2 -2
- package/dist/esm/{chunk-Z2TZ3KR7.mjs → chunk-LKS5ZE45.mjs} +2 -2
- package/dist/esm/{chunk-SGZNOYC3.min.mjs → chunk-MQXTTWPS.min.mjs} +2 -2
- package/dist/esm/{chunk-B5QQ32YY.min.mjs → chunk-P4PRHHIY.min.mjs} +2 -2
- package/dist/esm/{chunk-TVTYDU2D.mjs → chunk-TSVHZZE4.mjs} +3 -3
- package/dist/esm/dbs/adapters/mongodb/index.min.mjs +1 -1
- package/dist/esm/dbs/adapters/mongodb/index.mjs +3 -3
- package/dist/esm/dbs/index.min.mjs +1 -1
- package/dist/esm/dbs/index.mjs +3 -3
- package/dist/esm/errors/index.min.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/events/adapters/kafka/index.min.mjs +1 -1
- package/dist/esm/events/adapters/kafka/index.mjs +2 -2
- package/dist/esm/events/adapters/rabbitmq/index.min.mjs +1 -1
- package/dist/esm/events/adapters/rabbitmq/index.mjs +1 -1
- package/dist/esm/index.min.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/instance/index.min.mjs +1 -1
- package/dist/esm/instance/index.mjs +1 -1
- package/dist/esm/introspection-THKMXV5V.min.mjs +2 -0
- package/dist/esm/{introspection-32BRYKYY.mjs → introspection-YJF3QAUK.mjs} +3 -3
- package/dist/esm/jobs/adapters/redis/index.min.mjs +1 -1
- package/dist/esm/jobs/adapters/redis/index.mjs +3 -3
- package/dist/esm/orm/adapters/in-memory/index.min.mjs +1 -1
- package/dist/esm/orm/adapters/in-memory/index.mjs +3 -3
- package/dist/esm/orm/adapters/json/index.min.mjs +1 -1
- package/dist/esm/orm/adapters/json/index.mjs +3 -3
- package/dist/esm/orm/adapters/mongodb/index.min.mjs +1 -1
- package/dist/esm/orm/adapters/mongodb/index.mjs +2 -2
- package/dist/esm/orm/adapters/postgresql/index.min.mjs +2 -2
- package/dist/esm/orm/adapters/postgresql/index.mjs +3 -3
- package/dist/esm/orm/index.min.mjs +1 -1
- package/dist/esm/orm/index.mjs +3 -3
- package/dist/esm/server/adapters/express/index.min.mjs +1 -1
- package/dist/esm/server/adapters/express/index.mjs +1 -1
- package/dist/esm/server/adapters/fastify/index.min.mjs +1 -1
- package/dist/esm/server/adapters/fastify/index.mjs +1 -1
- package/dist/esm/server/index.min.mjs +1 -1
- package/dist/esm/server/index.mjs +1 -1
- package/dist/esm/utilities/index.min.mjs +1 -1
- package/dist/esm/utilities/index.mjs +1 -1
- package/dist/esm/validations/index.min.mjs +1 -1
- package/dist/esm/validations/index.mjs +1 -1
- package/dist/types/{base-DVr0fHil.d.ts → base-BDTBLZ9a.d.ts} +7 -1
- package/dist/types/cache/adapters/in-memory/index.js +2 -2
- package/dist/types/cache/adapters/redis/index.js +3 -3
- package/dist/types/cache/index.js +2 -2
- package/dist/types/{chunk-NJ2FHI3U.js → chunk-4DH3POYM.js} +2 -2
- package/dist/types/{chunk-OHFTQGQG.js → chunk-55CTVK7R.js} +1 -1
- package/dist/types/{chunk-JQ2FWX4W.js → chunk-5Z26ZURE.js} +1 -1
- package/dist/types/{chunk-3M4PBZAQ.js → chunk-IZDJDGOV.js} +2 -2
- package/dist/types/{chunk-XGGGAEET.js → chunk-J3TGB5YQ.js} +1 -1
- package/dist/types/{chunk-3TKJGSCZ.js → chunk-LPB5LS7A.js} +1 -1
- package/dist/types/{chunk-YTY3EFNB.js → chunk-TT5EORDK.js} +47 -1
- package/dist/types/{chunk-65EHKCDZ.js → chunk-YLJNBL6J.js} +2 -2
- package/dist/types/dbs/adapters/mongodb/index.js +3 -3
- package/dist/types/dbs/index.js +3 -3
- package/dist/types/errors/index.js +1 -1
- package/dist/types/events/adapters/kafka/index.js +2 -2
- package/dist/types/events/adapters/rabbitmq/index.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/instance/index.js +1 -1
- package/dist/types/{introspection-VOIU3XE6.js → introspection-EHGM4RMO.js} +2 -2
- package/dist/types/jobs/adapters/redis/index.js +3 -3
- package/dist/types/orm/adapters/in-memory/index.js +3 -3
- package/dist/types/orm/adapters/json/index.js +3 -3
- package/dist/types/orm/adapters/mongodb/index.js +2 -2
- package/dist/types/orm/adapters/postgresql/index.js +3 -3
- package/dist/types/orm/index.js +3 -3
- package/dist/types/server/adapters/express/index.d.ts +1 -1
- package/dist/types/server/adapters/express/index.js +1 -1
- package/dist/types/server/adapters/fastify/index.d.ts +1 -1
- package/dist/types/server/adapters/fastify/index.js +1 -1
- package/dist/types/server/index.d.ts +2 -2
- package/dist/types/server/index.js +1 -1
- package/dist/types/utilities/index.js +1 -1
- package/dist/types/validations/index.js +1 -1
- package/package.json +1 -1
- package/dist/esm/chunk-FLAPYQUT.min.mjs.map +0 -1
- package/dist/esm/chunk-MDQKODYQ.mjs.map +0 -1
- package/dist/esm/introspection-A72WMWE3.min.mjs +0 -2
- /package/dist/esm/{chunk-QHLKB47N.min.mjs.map → chunk-2GGMLKRP.min.mjs.map} +0 -0
- /package/dist/esm/{chunk-PQCBVQL6.mjs.map → chunk-3TP7NINX.mjs.map} +0 -0
- /package/dist/esm/{chunk-PNZNNUMN.mjs.map → chunk-5PZACGPI.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZGMFFK6Y.min.mjs.map → chunk-676VIABN.min.mjs.map} +0 -0
- /package/dist/esm/{chunk-4MXYZS5R.mjs.map → chunk-7CP7ZE2O.mjs.map} +0 -0
- /package/dist/esm/{chunk-5VW3JAFR.min.mjs.map → chunk-7NF7PV6S.min.mjs.map} +0 -0
- /package/dist/esm/{chunk-4JLDXF7T.min.mjs.map → chunk-7SQ5JQYR.min.mjs.map} +0 -0
- /package/dist/esm/{chunk-JH6EBXY4.mjs.map → chunk-BWUFPMVG.mjs.map} +0 -0
- /package/dist/esm/{chunk-AKQBDYUO.mjs.map → chunk-HXFNN6RI.mjs.map} +0 -0
- /package/dist/esm/{chunk-PCAUXBAG.min.mjs.map → chunk-IRYCN6PI.min.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z2TZ3KR7.mjs.map → chunk-LKS5ZE45.mjs.map} +0 -0
- /package/dist/esm/{chunk-SGZNOYC3.min.mjs.map → chunk-MQXTTWPS.min.mjs.map} +0 -0
- /package/dist/esm/{chunk-B5QQ32YY.min.mjs.map → chunk-P4PRHHIY.min.mjs.map} +0 -0
- /package/dist/esm/{chunk-TVTYDU2D.mjs.map → chunk-TSVHZZE4.mjs.map} +0 -0
- /package/dist/esm/{introspection-32BRYKYY.mjs.map → introspection-THKMXV5V.min.mjs.map} +0 -0
- /package/dist/esm/{introspection-A72WMWE3.min.mjs.map → introspection-YJF3QAUK.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a,d as b,e as c}from "../chunk-
|
|
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
|
|
@@ -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
|
|
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-
|
|
3
|
+
} from "../../../chunk-LPB5LS7A.js";
|
|
4
4
|
import {
|
|
5
5
|
Instance,
|
|
6
6
|
configurable
|
|
7
|
-
} from "../../../chunk-
|
|
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-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
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 {
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
PushOp,
|
|
12
12
|
SetOp,
|
|
13
13
|
UnsetOp
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5Z26ZURE.js";
|
|
15
15
|
import {
|
|
16
16
|
configurable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TT5EORDK.js";
|
|
18
18
|
|
|
19
19
|
// src/orm/adapters/in-memory/index.ts
|
|
20
20
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -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-
|
|
3
|
+
} from "./chunk-LPB5LS7A.js";
|
|
4
4
|
import {
|
|
5
5
|
EquippedError,
|
|
6
6
|
Instance,
|
|
7
7
|
configurable
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
6
|
-
import "../../../chunk-
|
|
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-
|
|
11
|
+
} from "../../../chunk-TT5EORDK.js";
|
|
12
12
|
import "../../../chunk-KZKFYO4V.js";
|
|
13
13
|
import "../../../chunk-MLKGABMK.js";
|
|
14
14
|
|
package/dist/types/dbs/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
queryParamsPipe,
|
|
7
7
|
queryResultsPipe,
|
|
8
8
|
wrapQueryParams
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
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 {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KafkaEventBus,
|
|
3
3
|
kafkaConfigPipe
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
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 {
|
package/dist/types/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RedisCache,
|
|
3
3
|
redisConfigPipe
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
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-
|
|
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-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
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-
|
|
3
|
+
} from "../../../chunk-4DH3POYM.js";
|
|
4
4
|
import {
|
|
5
5
|
OrmAdapter
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-5Z26ZURE.js";
|
|
7
7
|
import {
|
|
8
8
|
configurable
|
|
9
|
-
} from "../../../chunk-
|
|
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-
|
|
14
|
+
} from "../../../chunk-5Z26ZURE.js";
|
|
15
15
|
import {
|
|
16
16
|
EquippedError,
|
|
17
17
|
configurable
|
|
18
|
-
} from "../../../chunk-
|
|
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-
|
|
15
|
+
} from "../../../chunk-5Z26ZURE.js";
|
|
16
16
|
import {
|
|
17
17
|
EquippedError,
|
|
18
18
|
configurable
|
|
19
|
-
} from "../../../chunk-
|
|
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-
|
|
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
|
package/dist/types/orm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OrmIntrospectionError
|
|
3
|
-
} from "../chunk-
|
|
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-
|
|
36
|
+
} from "../chunk-5Z26ZURE.js";
|
|
37
37
|
import {
|
|
38
38
|
EquippedError,
|
|
39
39
|
Instance
|
|
40
|
-
} from "../chunk-
|
|
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-
|
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseRequestAuthMethod, S as Server, R as RawResponder } from '../../../base-
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseRequestAuthMethod } from '../base-
|
|
2
|
-
export { O as OnJoinFn, R as RawResponder, b as RawResponseHandled, c as RawResponseHandler,
|
|
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';
|