@bool-ts/core 2.0.2 → 2.0.4
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/index.js +5 -5
- package/dist/index.js.map +3 -3
- package/package.json +12 -12
- package/src/keys/index.ts +40 -34
package/package.json
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@bool-ts/core",
|
|
3
|
-
"version": "2.0.2",
|
|
4
2
|
"author": "Trần Đức Tâm (Neo)",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"url": "git+https://github.com/BoolTS/core.git"
|
|
3
|
+
"bugs": {
|
|
4
|
+
"url": "https://github.com/BoolTS/core/issues"
|
|
8
5
|
},
|
|
9
|
-
"main": "./dist/index.js",
|
|
10
6
|
"dependencies": {
|
|
11
7
|
"@bool-ts/date-time": "^1.0.0",
|
|
12
8
|
"qs": "^6.14.0",
|
|
13
9
|
"reflect-metadata": "^0.2.2",
|
|
14
|
-
"zod": "^4.
|
|
10
|
+
"zod": "^4.1.8"
|
|
15
11
|
},
|
|
12
|
+
"description": "Core package for BoolTS framework",
|
|
16
13
|
"devDependencies": {
|
|
17
14
|
"@types/bun": "latest",
|
|
18
15
|
"@types/qs": "^6.14.0",
|
|
19
16
|
"typescript": "^5.9.2"
|
|
20
17
|
},
|
|
21
|
-
"bugs": {
|
|
22
|
-
"url": "https://github.com/BoolTS/core/issues"
|
|
23
|
-
},
|
|
24
|
-
"description": "Core package for BoolTS framework",
|
|
25
18
|
"files": [
|
|
26
19
|
"./dist",
|
|
27
20
|
"./src"
|
|
@@ -35,13 +28,20 @@
|
|
|
35
28
|
"framework"
|
|
36
29
|
],
|
|
37
30
|
"license": "MIT",
|
|
31
|
+
"main": "./dist/index.js",
|
|
32
|
+
"name": "@bool-ts/core",
|
|
38
33
|
"private": false,
|
|
39
34
|
"publishConfig": {
|
|
40
35
|
"access": "public"
|
|
41
36
|
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/BoolTS/core.git"
|
|
40
|
+
},
|
|
42
41
|
"scripts": {
|
|
43
42
|
"build": "tsc --emitDeclarationOnly && bun run app.build.ts",
|
|
44
43
|
"test": "bun --hot run __test/index.ts"
|
|
45
44
|
},
|
|
46
|
-
"types": "./dist/index.d.ts"
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
46
|
+
"version": "2.0.4"
|
|
47
47
|
}
|
package/src/keys/index.ts
CHANGED
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
export const webSocketEventArgumentsKey = Symbol("__bool:webSocketEventArguments__");
|
|
3
|
-
export const configKey = Symbol("__bool:config__");
|
|
4
|
-
export const controllerKey = Symbol("__bool:controller__");
|
|
5
|
-
export const interceptorKey = Symbol("__bool:interceptor__");
|
|
6
|
-
export const guardKey = Symbol("__bool:guard__");
|
|
7
|
-
export const controllerHttpKey = Symbol("__bool:controller.http__");
|
|
8
|
-
export const injectKey = Symbol("__bool:inject__");
|
|
9
|
-
export const injectableKey = Symbol("__bool:injectable__");
|
|
10
|
-
export const middlewareKey = Symbol("__bool:middleware__");
|
|
11
|
-
export const moduleKey = Symbol("__bool:module__");
|
|
12
|
-
export const containerKey = Symbol("__bool:container__");
|
|
13
|
-
export const zodSchemaKey = Symbol("__bool:zodSchema__");
|
|
14
|
-
export const webSocketKey = Symbol("__bool:webSocket__");
|
|
15
|
-
export const webSocketEventKey = Symbol("__bool:webSocket:event__");
|
|
1
|
+
const prefix = "__boolTypescriptCore";
|
|
16
2
|
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
3
|
+
export const argumentsKey = Symbol.for(`__${prefix}:arguments__`);
|
|
4
|
+
export const webSocketEventArgumentsKey = Symbol.for(`__${prefix}:webSocketEventArguments__`);
|
|
5
|
+
export const configKey = Symbol.for(`__${prefix}:config__`);
|
|
6
|
+
export const controllerKey = Symbol.for(`__${prefix}:controller__`);
|
|
7
|
+
export const interceptorKey = Symbol.for(`__${prefix}:interceptor__`);
|
|
8
|
+
export const guardKey = Symbol.for(`__${prefix}:guard__`);
|
|
9
|
+
export const controllerHttpKey = Symbol.for(`__${prefix}:controller.http__`);
|
|
10
|
+
export const injectKey = Symbol.for(`__${prefix}:inject__`);
|
|
11
|
+
export const injectableKey = Symbol.for(`__${prefix}:injectable__`);
|
|
12
|
+
export const middlewareKey = Symbol.for(`__${prefix}:middleware__`);
|
|
13
|
+
export const moduleKey = Symbol.for(`__${prefix}:module__`);
|
|
14
|
+
export const containerKey = Symbol.for(`__${prefix}:container__`);
|
|
15
|
+
export const zodSchemaKey = Symbol.for(`__${prefix}:zodSchema__`);
|
|
16
|
+
export const webSocketKey = Symbol.for(`__${prefix}:webSocket__`);
|
|
17
|
+
export const webSocketEventKey = Symbol.for(`__${prefix}:webSocket:event__`);
|
|
22
18
|
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
19
|
+
export const webSocketServerArgsKey = Symbol.for(`__${prefix}:webSocketArguments:server__`);
|
|
20
|
+
export const webSocketConnectionArgsKey = Symbol.for(`__${prefix}:webSocketArguments:connection__`);
|
|
21
|
+
export const webSocketMessageArgsKey = Symbol.for(`__${prefix}:webSocketArguments:message__`);
|
|
22
|
+
export const webSocketCloseCodeArgsKey = Symbol.for(`__${prefix}:webSocketArguments:closeCode__`);
|
|
23
|
+
export const webSocketCloseReasonArgsKey = Symbol.for(
|
|
24
|
+
`__${prefix}:webSocketArguments:closeReason__`
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
export const httpServerArgsKey = Symbol.for(`__${prefix}:httpArguments:server__`);
|
|
28
|
+
export const requestHeadersArgsKey = Symbol.for(`__${prefix}:httpArguments:requestHeaders__`);
|
|
29
|
+
export const requestHeaderArgsKey = Symbol.for(`__${prefix}:httpArguments:requestHeader__`);
|
|
30
|
+
export const requestBodyArgsKey = Symbol.for(`__${prefix}:httpArguments:requestBody__`);
|
|
31
|
+
export const paramsArgsKey = Symbol.for(`__${prefix}:httpArguments:params__`);
|
|
32
|
+
export const paramArgsKey = Symbol.for(`__${prefix}:httpArguments:param__`);
|
|
33
|
+
export const queryArgsKey = Symbol.for(`__${prefix}:httpArguments:query__`);
|
|
34
|
+
export const requestArgsKey = Symbol.for(`__${prefix}:httpArguments:request__`);
|
|
35
|
+
export const responseHeadersArgsKey = Symbol.for(`__${prefix}:httpArguments:responseHeaders__`);
|
|
36
|
+
export const contextArgsKey = Symbol.for(`__${prefix}:httpArguments:context__`);
|
|
37
|
+
export const routeModelArgsKey = Symbol.for(`__${prefix}:httpArguments:routeModel__`);
|
|
38
|
+
export const responseBodyArgsKey = Symbol.for(`__${prefix}:httpArguments:responseBody__`);
|
|
39
|
+
export const responseStatusArgsKey = Symbol.for(`__${prefix}:httpArguments:responseStatus__`);
|
|
40
|
+
export const responseStatusTextArgsKey = Symbol.for(
|
|
41
|
+
`__${prefix}:httpArguments:responseStatusText__`
|
|
42
|
+
);
|