@elysiumjs/core 0.6.0 → 0.6.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/dist/websocket.d.ts +2 -2
- package/package.json +46 -44
- package/.turbo/turbo-build.log +0 -8
package/dist/websocket.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Route } from './http';
|
|
|
6
6
|
* Properties required when declaring a websocket controller using the `@websocket()` decorator.
|
|
7
7
|
* @author Axel Nana <axel.nana@workbud.com>
|
|
8
8
|
*/
|
|
9
|
-
export type WebsocketProps = {
|
|
9
|
+
export type WebsocketProps<TWebsocketData = any> = {
|
|
10
10
|
/**
|
|
11
11
|
* The path of the websocket route.
|
|
12
12
|
*/
|
|
@@ -14,7 +14,7 @@ export type WebsocketProps = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The options for the websocket server.
|
|
16
16
|
*/
|
|
17
|
-
options?: ConditionalPick<Bun.WebSocketHandler
|
|
17
|
+
options?: ConditionalPick<Bun.WebSocketHandler<TWebsocketData>, Primitive | JsonObject>;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* The websocket connection instance.
|
package/package.json
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
"name": "@elysiumjs/core",
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "A super-charged web framework for Bun, built on top of ElysiaJS.",
|
|
6
|
+
"private": false,
|
|
7
|
+
"author": "Workbud Technologies Inc.",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/workbud/elysium"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/workbud/elysium",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"format": "prettier --write \"./src/**/*.ts\"",
|
|
15
|
+
"clean": "rimraf dist",
|
|
16
|
+
"build:js": "bun build ./src/index.ts --outdir ./dist --target bun --packages external --root ./src --minify",
|
|
17
|
+
"build:ts": "tsc",
|
|
18
|
+
"build": "bun run clean && bun run build:js && bun run build:ts",
|
|
19
|
+
"typecheck": "tsc --noEmit",
|
|
20
|
+
"prepublishOnly": "bun run build"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"elysium",
|
|
24
|
+
"framework",
|
|
25
|
+
"web",
|
|
26
|
+
"api",
|
|
27
|
+
"typescript"
|
|
28
|
+
],
|
|
29
|
+
"module": "dist/index.js",
|
|
30
|
+
"type": "module",
|
|
31
|
+
"types": "dist/index.d.ts",
|
|
32
|
+
"sideEffects": [
|
|
33
|
+
"./src/index.ts"
|
|
34
|
+
],
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@elysiajs/swagger": "^1.3.1",
|
|
37
|
+
"cache-manager": "^7.2.3",
|
|
38
|
+
"cacheable": "^2.0.3",
|
|
39
|
+
"drizzle-orm": "^0.44.6",
|
|
40
|
+
"elysia": "^1.4.9",
|
|
41
|
+
"radash": "^12.1.1",
|
|
42
|
+
"reflect-metadata": "^0.2.2",
|
|
43
|
+
"wampy": "^7.2.0"
|
|
44
|
+
},
|
|
45
|
+
"trustedDependencies": [
|
|
46
|
+
"es5-ext"
|
|
47
|
+
]
|
|
46
48
|
}
|
package/.turbo/turbo-build.log
DELETED