@bool-ts/core 1.8.0 → 1.8.2
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/__test/controller.ts +1 -1
- package/__test/dispatcher.ts +2 -2
- package/__test/firstGuard.ts +3 -1
- package/__test/firstMiddleware.ts +3 -2
- package/__test/index.ts +1 -1
- package/__test/module.ts +1 -1
- package/__test/repository.ts +2 -3
- package/__test/secondGuard.ts +1 -1
- package/__test/secondMiddleware.ts +2 -2
- package/__test/service.ts +4 -7
- package/__test/tsconfig.json +6 -2
- package/__test/webSocket.ts +1 -1
- package/dist/entities/webSocketRoute.d.ts +2 -0
- package/dist/entities/webSocketRouter.d.ts +1 -1
- package/dist/index.js +4995 -6
- package/package.json +2 -2
- package/src/entities/webSocketRoute.ts +13 -5
- package/src/entities/webSocketRouter.ts +2 -2
- package/dist/decorators/arguments.js +0 -123
- package/dist/decorators/controller.js +0 -9
- package/dist/decorators/dispatcher.js +0 -6
- package/dist/decorators/guard.js +0 -9
- package/dist/decorators/http.js +0 -60
- package/dist/decorators/index.js +0 -13
- package/dist/decorators/inject.js +0 -9
- package/dist/decorators/injectable.js +0 -3
- package/dist/decorators/middleware.js +0 -6
- package/dist/decorators/module.js +0 -48
- package/dist/decorators/webSocket.js +0 -40
- package/dist/decorators/webSocketArguments.js +0 -49
- package/dist/decorators/webSocketEvent.js +0 -24
- package/dist/decorators/zodSchema.js +0 -15
- package/dist/entities/httpRoute.js +0 -268
- package/dist/entities/httpRouter.js +0 -27
- package/dist/entities/httpRouterGroup.js +0 -24
- package/dist/entities/index.js +0 -6
- package/dist/entities/webSocketRoute.js +0 -15
- package/dist/entities/webSocketRouter.js +0 -54
- package/dist/entities/webSocketRouterGroup.js +0 -51
- package/dist/hooks/factory.js +0 -1072
- package/dist/hooks/index.js +0 -2
- package/dist/hooks/injector.js +0 -36
- package/dist/http/clientError.js +0 -42
- package/dist/http/index.js +0 -40
- package/dist/http/serverError.js +0 -24
- package/dist/interfaces/context.js +0 -1
- package/dist/interfaces/controller.js +0 -1
- package/dist/interfaces/dispatcher.js +0 -1
- package/dist/interfaces/guard.js +0 -1
- package/dist/interfaces/index.js +0 -1
- package/dist/interfaces/middleware.js +0 -1
- package/dist/interfaces/module.js +0 -1
- package/dist/interfaces/webSocket.js +0 -1
- package/dist/keys/index.js +0 -31
- package/dist/ultils/asyncFunction.js +0 -1
- package/dist/ultils/colors.js +0 -41
- package/dist/ultils/index.js +0 -3
- package/dist/ultils/socket.js +0 -7
package/__test/controller.ts
CHANGED
package/__test/dispatcher.ts
CHANGED
package/__test/firstGuard.ts
CHANGED
package/__test/index.ts
CHANGED
package/__test/module.ts
CHANGED
package/__test/repository.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { IRepository } from "./interfaces";
|
|
2
2
|
|
|
3
|
-
import { Injectable } from "
|
|
4
|
-
|
|
3
|
+
import { Injectable } from "@dist";
|
|
5
4
|
|
|
6
5
|
@Injectable()
|
|
7
6
|
export class TestRepository implements IRepository {
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
*
|
|
10
9
|
*/
|
|
11
10
|
exec() {
|
|
12
11
|
console.log("This is test repository.");
|
package/__test/secondGuard.ts
CHANGED
package/__test/service.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IRepository, IService } from "./interfaces";
|
|
2
2
|
|
|
3
|
-
import { Inject, Injectable } from "
|
|
3
|
+
import { Inject, Injectable } from "@dist";
|
|
4
4
|
import { TestRepository } from "./repository";
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
@Injectable()
|
|
8
7
|
export class TestService implements IService {
|
|
9
|
-
constructor(
|
|
10
|
-
@Inject(TestRepository) private readonly testRepository: IRepository
|
|
11
|
-
) { }
|
|
8
|
+
constructor(@Inject(TestRepository) private readonly testRepository: IRepository) {}
|
|
12
9
|
|
|
13
10
|
/**
|
|
14
|
-
*
|
|
11
|
+
*
|
|
15
12
|
*/
|
|
16
13
|
exec() {
|
|
17
14
|
console.log("This is test service.", this.testRepository);
|
package/__test/tsconfig.json
CHANGED
|
@@ -30,9 +30,13 @@
|
|
|
30
30
|
"moduleResolution": "Bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
|
31
31
|
"baseUrl": "./" /* Specify the base directory to resolve non-relative module names. */,
|
|
32
32
|
"paths": {
|
|
33
|
-
"@src": ["../src"]
|
|
33
|
+
"@src": ["../src"],
|
|
34
|
+
"@dist": ["../dist"]
|
|
34
35
|
} /* Specify a set of entries that re-map imports to additional lookup locations. */,
|
|
35
|
-
"rootDirs": [
|
|
36
|
+
"rootDirs": [
|
|
37
|
+
"./",
|
|
38
|
+
"@dist"
|
|
39
|
+
] /* Allow multiple folders to be treated as one when resolving modules. */,
|
|
36
40
|
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
37
41
|
// "types": [
|
|
38
42
|
// "reflect-metadata"
|
package/__test/webSocket.ts
CHANGED
|
@@ -2,9 +2,11 @@ import type { TWebSocketEventHandlerMetadata } from "../decorators";
|
|
|
2
2
|
export declare class WebSocketRoute {
|
|
3
3
|
readonly eventName: string;
|
|
4
4
|
readonly metadata: TWebSocketEventHandlerMetadata;
|
|
5
|
+
private _context;
|
|
5
6
|
constructor({ eventName, metadata }: {
|
|
6
7
|
eventName: string;
|
|
7
8
|
metadata: TWebSocketEventHandlerMetadata;
|
|
8
9
|
});
|
|
9
10
|
bind(instance: Object): ThisType<WebSocketRoute>;
|
|
11
|
+
execute(): Readonly<TWebSocketEventHandlerMetadata>;
|
|
10
12
|
}
|