@venizia/ignis 0.5.0-7 → 0.5.0-8
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/esm/components/socket-io/common/keys.d.ts +2 -2
- package/dist/esm/components/socket-io/common/keys.js.map +1 -1
- package/dist/esm/components/websocket/common/keys.d.ts +2 -2
- package/dist/esm/components/websocket/common/keys.js.map +1 -1
- package/dist/presets/app/preset.json +3 -3
- package/dist/presets/lib/preset.json +2 -2
- package/package.json +5 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IRedisHelper } from '@venizia/ignis-helpers';
|
|
2
2
|
import type { SocketIOServerHelper, TSocketIOAuthenticateFn, TSocketIOClientConnectedFn, TSocketIOValidateRoomFn } from '@venizia/ignis-helpers/socket-io';
|
|
3
3
|
import type { ServerOptions } from 'socket.io';
|
|
4
4
|
/** Container keys of the Socket.IO component: the server instance, its options, the Redis connection and the handlers an application binds. */
|
|
5
5
|
export declare class SocketIOBindingKeys {
|
|
6
6
|
static readonly SOCKET_IO_INSTANCE: import("@venizia/ignis-inversion").TBindingKey<SocketIOServerHelper>;
|
|
7
7
|
static readonly SERVER_OPTIONS: import("@venizia/ignis-inversion").TBindingKey<Partial<ServerOptions>>;
|
|
8
|
-
static readonly REDIS_CONNECTION: import("@venizia/ignis-inversion").TBindingKey<
|
|
8
|
+
static readonly REDIS_CONNECTION: import("@venizia/ignis-inversion").TBindingKey<IRedisHelper | null>;
|
|
9
9
|
static readonly AUTHENTICATE_HANDLER: import("@venizia/ignis-inversion").TBindingKey<TSocketIOAuthenticateFn | null>;
|
|
10
10
|
static readonly VALIDATE_ROOM_HANDLER: import("@venizia/ignis-inversion").TBindingKey<TSocketIOValidateRoomFn | null>;
|
|
11
11
|
static readonly CLIENT_CONNECTED_HANDLER: import("@venizia/ignis-inversion").TBindingKey<TSocketIOClientConnectedFn | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../src/components/socket-io/common/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAUvD,+IAA+I;AAC/I,MAAM,OAAO,mBAAmB;aACd,uBAAkB,GAAG,WAAW,CAAC,KAAK,CAAuB;QAC3E,GAAG,EAAE,yBAAyB;KAC/B,CAAC,CAAC;aAEa,mBAAc,GAAG,WAAW,CAAC,KAAK,CAAyB;QACzE,GAAG,EAAE,+BAA+B;KACrC,CAAC,CAAC;aAEa,qBAAgB,GAAG,WAAW,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../src/components/socket-io/common/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAUvD,+IAA+I;AAC/I,MAAM,OAAO,mBAAmB;aACd,uBAAkB,GAAG,WAAW,CAAC,KAAK,CAAuB;QAC3E,GAAG,EAAE,yBAAyB;KAC/B,CAAC,CAAC;aAEa,mBAAc,GAAG,WAAW,CAAC,KAAK,CAAyB;QACzE,GAAG,EAAE,+BAA+B;KACrC,CAAC,CAAC;aAEa,qBAAgB,GAAG,WAAW,CAAC,KAAK,CAAsB;QACxE,GAAG,EAAE,iCAAiC;KACvC,CAAC,CAAC;aAEa,yBAAoB,GAAG,WAAW,CAAC,KAAK,CAAiC;QACvF,GAAG,EAAE,qCAAqC;KAC3C,CAAC,CAAC;aAEa,0BAAqB,GAAG,WAAW,CAAC,KAAK,CAAiC;QACxF,GAAG,EAAE,sCAAsC;KAC5C,CAAC,CAAC;aAEa,6BAAwB,GAAG,WAAW,CAAC,KAAK,CAAoC;QAC9F,GAAG,EAAE,yCAAyC;KAC/C,CAAC,CAAC","sourcesContent":["import { BindingKeys } from '@venizia/ignis-inversion';\nimport type { IRedisHelper } from '@venizia/ignis-helpers';\nimport type {\n SocketIOServerHelper,\n TSocketIOAuthenticateFn,\n TSocketIOClientConnectedFn,\n TSocketIOValidateRoomFn,\n} from '@venizia/ignis-helpers/socket-io';\nimport type { ServerOptions } from 'socket.io';\n\n/** Container keys of the Socket.IO component: the server instance, its options, the Redis connection and the handlers an application binds. */\nexport class SocketIOBindingKeys {\n static readonly SOCKET_IO_INSTANCE = BindingKeys.build<SocketIOServerHelper>({\n key: '@app/socket-io/instance',\n });\n\n static readonly SERVER_OPTIONS = BindingKeys.build<Partial<ServerOptions>>({\n key: '@app/socket-io/server-options',\n });\n\n static readonly REDIS_CONNECTION = BindingKeys.build<IRedisHelper | null>({\n key: '@app/socket-io/redis-connection',\n });\n\n static readonly AUTHENTICATE_HANDLER = BindingKeys.build<TSocketIOAuthenticateFn | null>({\n key: '@app/socket-io/authenticate-handler',\n });\n\n static readonly VALIDATE_ROOM_HANDLER = BindingKeys.build<TSocketIOValidateRoomFn | null>({\n key: '@app/socket-io/validate-room-handler',\n });\n\n static readonly CLIENT_CONNECTED_HANDLER = BindingKeys.build<TSocketIOClientConnectedFn | null>({\n key: '@app/socket-io/client-connected-handler',\n });\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IRedisHelper, TWebSocketAuthenticateFn, TWebSocketClientConnectedFn, TWebSocketClientDisconnectedFn, TWebSocketHandshakeFn, TWebSocketMessageHandler, TWebSocketOutboundTransformer, TWebSocketValidateRoomFn, WebSocketServerHelper } from '@venizia/ignis-helpers';
|
|
2
2
|
import type { IServerOptions } from './types.js';
|
|
3
3
|
/** Container keys of the WebSocket component: the server instance, its options, the Redis connection and the handlers an application binds. */
|
|
4
4
|
export declare class WebSocketBindingKeys {
|
|
5
5
|
static readonly WEBSOCKET_INSTANCE: import("@venizia/ignis-inversion").TBindingKey<WebSocketServerHelper<Record<string, unknown>, Record<string, unknown>>>;
|
|
6
6
|
static readonly SERVER_OPTIONS: import("@venizia/ignis-inversion").TBindingKey<Partial<IServerOptions>>;
|
|
7
|
-
static readonly REDIS_CONNECTION: import("@venizia/ignis-inversion").TBindingKey<
|
|
7
|
+
static readonly REDIS_CONNECTION: import("@venizia/ignis-inversion").TBindingKey<IRedisHelper | null>;
|
|
8
8
|
static readonly AUTHENTICATE_HANDLER: import("@venizia/ignis-inversion").TBindingKey<TWebSocketAuthenticateFn | null>;
|
|
9
9
|
static readonly VALIDATE_ROOM_HANDLER: import("@venizia/ignis-inversion").TBindingKey<TWebSocketValidateRoomFn | null>;
|
|
10
10
|
static readonly CLIENT_CONNECTED_HANDLER: import("@venizia/ignis-inversion").TBindingKey<TWebSocketClientConnectedFn | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../src/components/websocket/common/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAcvD,+IAA+I;AAC/I,MAAM,OAAO,oBAAoB;aACf,uBAAkB,GAAG,WAAW,CAAC,KAAK,CAAwB;QAC5E,GAAG,EAAE,yBAAyB;KAC/B,CAAC,CAAC;aAEa,mBAAc,GAAG,WAAW,CAAC,KAAK,CAA0B;QAC1E,GAAG,EAAE,+BAA+B;KACrC,CAAC,CAAC;aAEa,qBAAgB,GAAG,WAAW,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../src/components/websocket/common/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAcvD,+IAA+I;AAC/I,MAAM,OAAO,oBAAoB;aACf,uBAAkB,GAAG,WAAW,CAAC,KAAK,CAAwB;QAC5E,GAAG,EAAE,yBAAyB;KAC/B,CAAC,CAAC;aAEa,mBAAc,GAAG,WAAW,CAAC,KAAK,CAA0B;QAC1E,GAAG,EAAE,+BAA+B;KACrC,CAAC,CAAC;aAEa,qBAAgB,GAAG,WAAW,CAAC,KAAK,CAAsB;QACxE,GAAG,EAAE,iCAAiC;KACvC,CAAC,CAAC;aAEa,yBAAoB,GAAG,WAAW,CAAC,KAAK,CAAkC;QACxF,GAAG,EAAE,qCAAqC;KAC3C,CAAC,CAAC;aAEa,0BAAqB,GAAG,WAAW,CAAC,KAAK,CAAkC;QACzF,GAAG,EAAE,sCAAsC;KAC5C,CAAC,CAAC;aAEa,6BAAwB,GAAG,WAAW,CAAC,KAAK,CAAqC;QAC/F,GAAG,EAAE,yCAAyC;KAC/C,CAAC,CAAC;aAEa,gCAA2B,GACzC,WAAW,CAAC,KAAK,CAAwC;QACvD,GAAG,EAAE,4CAA4C;KAClD,CAAC,CAAC;aAEW,oBAAe,GAAG,WAAW,CAAC,KAAK,CAAkC;QACnF,GAAG,EAAE,gCAAgC;KACtC,CAAC,CAAC;aAEa,yBAAoB,GAAG,WAAW,CAAC,KAAK,CAAuC;QAC7F,GAAG,EAAE,qCAAqC;KAC3C,CAAC,CAAC;aAEa,sBAAiB,GAAG,WAAW,CAAC,KAAK,CAA+B;QAClF,GAAG,EAAE,kCAAkC;KACxC,CAAC,CAAC","sourcesContent":["import { BindingKeys } from '@venizia/ignis-inversion';\nimport type {\n IRedisHelper,\n TWebSocketAuthenticateFn,\n TWebSocketClientConnectedFn,\n TWebSocketClientDisconnectedFn,\n TWebSocketHandshakeFn,\n TWebSocketMessageHandler,\n TWebSocketOutboundTransformer,\n TWebSocketValidateRoomFn,\n WebSocketServerHelper,\n} from '@venizia/ignis-helpers';\nimport type { IServerOptions } from './types';\n\n/** Container keys of the WebSocket component: the server instance, its options, the Redis connection and the handlers an application binds. */\nexport class WebSocketBindingKeys {\n static readonly WEBSOCKET_INSTANCE = BindingKeys.build<WebSocketServerHelper>({\n key: '@app/websocket/instance',\n });\n\n static readonly SERVER_OPTIONS = BindingKeys.build<Partial<IServerOptions>>({\n key: '@app/websocket/server-options',\n });\n\n static readonly REDIS_CONNECTION = BindingKeys.build<IRedisHelper | null>({\n key: '@app/websocket/redis-connection',\n });\n\n static readonly AUTHENTICATE_HANDLER = BindingKeys.build<TWebSocketAuthenticateFn | null>({\n key: '@app/websocket/authenticate-handler',\n });\n\n static readonly VALIDATE_ROOM_HANDLER = BindingKeys.build<TWebSocketValidateRoomFn | null>({\n key: '@app/websocket/validate-room-handler',\n });\n\n static readonly CLIENT_CONNECTED_HANDLER = BindingKeys.build<TWebSocketClientConnectedFn | null>({\n key: '@app/websocket/client-connected-handler',\n });\n\n static readonly CLIENT_DISCONNECTED_HANDLER =\n BindingKeys.build<TWebSocketClientDisconnectedFn | null>({\n key: '@app/websocket/client-disconnected-handler',\n });\n\n static readonly MESSAGE_HANDLER = BindingKeys.build<TWebSocketMessageHandler | null>({\n key: '@app/websocket/message-handler',\n });\n\n static readonly OUTBOUND_TRANSFORMER = BindingKeys.build<TWebSocketOutboundTransformer | null>({\n key: '@app/websocket/outbound-transformer',\n });\n\n static readonly HANDSHAKE_HANDLER = BindingKeys.build<TWebSocketHandshakeFn | null>({\n key: '@app/websocket/handshake-handler',\n });\n}\n"]}
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@hono/zod-openapi": "^1.6.3",
|
|
16
16
|
"@scalar/hono-api-reference": "^0.12.13",
|
|
17
|
-
"@venizia/ignis": "0.5.0-
|
|
18
|
-
"@venizia/ignis-boot": "0.5.0-
|
|
19
|
-
"@venizia/ignis-helpers": "0.5.0-
|
|
17
|
+
"@venizia/ignis": "0.5.0-8",
|
|
18
|
+
"@venizia/ignis-boot": "0.5.0-4",
|
|
19
|
+
"@venizia/ignis-helpers": "0.5.0-4",
|
|
20
20
|
"hono": "^4.13.13",
|
|
21
21
|
"winston": "^3.19.0",
|
|
22
22
|
"winston-daily-rotate-file": "^5.0.0",
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@types/bun": "^1.4.5",
|
|
7
7
|
"@venizia/dev-configs": "0.5.0-6",
|
|
8
|
-
"@venizia/ignis": "0.5.0-
|
|
8
|
+
"@venizia/ignis": "0.5.0-8",
|
|
9
9
|
"eslint": "^10.13.0",
|
|
10
10
|
"oxlint": "1.89.0",
|
|
11
11
|
"oxlint-tsgolint": "7.0.2004",
|
|
12
12
|
"typescript": "^6.0.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@venizia/ignis": "0.5.0-
|
|
15
|
+
"@venizia/ignis": "0.5.0-8"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"typecheck": "bun check",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ignis",
|
|
3
|
-
"version": "0.5.0-
|
|
3
|
+
"version": "0.5.0-8",
|
|
4
4
|
"description": "TypeScript server framework with decorator-based DI, the repository pattern and a component system, on Hono. Features auto-generated OpenAPI docs, Drizzle ORM type-safe SQL, JWT/Basic authentication, Casbin authorization, convention-based bootstrapping, and pluggable components for health checks, Swagger UI, mail, Socket.IO, and static assets. Built for Bun.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"access-control",
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
"force-update": "sh ../../scripts/build/force-update.sh"
|
|
135
135
|
},
|
|
136
136
|
"dependencies": {
|
|
137
|
-
"@venizia/ignis-connectors": "0.5.0-
|
|
137
|
+
"@venizia/ignis-connectors": "0.5.0-6",
|
|
138
138
|
"@venizia/ignis-filter": "0.5.0-1",
|
|
139
|
-
"@venizia/ignis-helpers": "0.5.0-
|
|
139
|
+
"@venizia/ignis-helpers": "0.5.0-4",
|
|
140
140
|
"@venizia/ignis-inversion": "0.5.0-1",
|
|
141
|
-
"@venizia/ignis-kernel": "0.5.0-
|
|
141
|
+
"@venizia/ignis-kernel": "0.5.0-5",
|
|
142
142
|
"reflect-metadata": "^0.2.2"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"@types/nodemailer": "^8.0.2",
|
|
153
153
|
"@types/pg": "^8.23.1",
|
|
154
154
|
"@venizia/dev-configs": "0.5.0-6",
|
|
155
|
-
"@venizia/ignis-boot": "0.5.0-
|
|
155
|
+
"@venizia/ignis-boot": "0.5.0-4",
|
|
156
156
|
"casbin": "^5.51.1",
|
|
157
157
|
"eslint": "^10.13.0",
|
|
158
158
|
"meilisearch": "^0.62.0",
|