nestjs-trpc 1.3.4 → 1.3.5
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/app-router.host.d.ts +7 -0
- package/dist/app-router.host.d.ts.map +1 -0
- package/dist/app-router.host.js +21 -0
- package/dist/factories/procedure.factory.d.ts.map +1 -1
- package/dist/factories/procedure.factory.js +7 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/trpc.driver.d.ts +2 -0
- package/dist/trpc.driver.d.ts.map +1 -1
- package/dist/trpc.driver.js +6 -0
- package/dist/trpc.module.d.ts +1 -0
- package/dist/trpc.module.d.ts.map +1 -1
- package/dist/trpc.module.js +10 -2
- package/lib/app-router.host.ts +21 -0
- package/lib/index.ts +1 -0
- package/lib/trpc.driver.ts +7 -2
- package/lib/trpc.module.ts +13 -5
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-router.host.d.ts","sourceRoot":"","sources":["../lib/app-router.host.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBACa,aAAa;IACxB,OAAO,CAAC,UAAU,CAAwB;IAE1C,IAAI,SAAS,CAAC,SAAS,EAAE,SAAS,EAEjC;IAED,IAAI,SAAS,IAAI,SAAS,CAQzB;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppRouterHost = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
let AppRouterHost = class AppRouterHost {
|
|
7
|
+
set appRouter(schemaRef) {
|
|
8
|
+
this._appRouter = schemaRef;
|
|
9
|
+
}
|
|
10
|
+
get appRouter() {
|
|
11
|
+
if (!this._appRouter) {
|
|
12
|
+
throw new Error('TRPC appRouter has not yet been created. ' +
|
|
13
|
+
'Make sure to call the "AppRouterHost#appRouter" getter when the application is already initialized (after the "onModuleInit" hook triggered by either "app.listen()" or "app.init()" method).');
|
|
14
|
+
}
|
|
15
|
+
return this._appRouter;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.AppRouterHost = AppRouterHost;
|
|
19
|
+
exports.AppRouterHost = AppRouterHost = tslib_1.__decorate([
|
|
20
|
+
(0, common_1.Injectable)()
|
|
21
|
+
], AppRouterHost);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedure.factory.d.ts","sourceRoot":"","sources":["../../lib/factories/procedure.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,cAAc,CAAC;AAO1D,OAAO,EACL,wBAAwB,
|
|
1
|
+
{"version":3,"file":"procedure.factory.d.ts","sourceRoot":"","sources":["../../lib/factories/procedure.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,cAAc,CAAC;AAO1D,OAAO,EACL,wBAAwB,EAIxB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAoB,cAAc,EAAE,MAAM,eAAe,CAAC;AAIjE,qBACa,gBAAgB;IAOf,OAAO,CAAC,SAAS;IAL7B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAG/C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAmB;gBAE/B,SAAS,EAAE,SAAS;IAExC,aAAa,CACX,QAAQ,EAAE,OAAO,EAEjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAClC,KAAK,CAAC,wBAAwB,CAAC;IAMlC,OAAO,CAAC,sBAAsB;IAO9B,OAAO,CAAC,wBAAwB;IAwBhC,mBAAmB,CACjB,UAAU,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAC3C,QAAQ,EAAE,GAAG,EACb,oBAAoB,EAAE,MAAM,EAC5B,gBAAgB,EAAE,mBAAmB,EACrC,iBAAiB,EAAE,cAAc,GAAG,SAAS,GAC5C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAiCtB,OAAO,CAAC,uBAAuB;IAgB/B,OAAO,CAAC,6BAA6B;IAYrC,OAAO,CAAC,wBAAwB;IA0BhC,OAAO,CAAC,yBAAyB;CA0BlC"}
|
|
@@ -11,13 +11,17 @@ let ProcedureFactory = class ProcedureFactory {
|
|
|
11
11
|
constructor(moduleRef) {
|
|
12
12
|
this.moduleRef = moduleRef;
|
|
13
13
|
}
|
|
14
|
-
getProcedures(instance,
|
|
14
|
+
getProcedures(instance,
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
16
|
+
prototype) {
|
|
15
17
|
return this.metadataScanner.scanFromPrototype(instance, prototype, (name) => this.extractProcedureMetadata(name, prototype));
|
|
16
18
|
}
|
|
17
19
|
extractProcedureParams(prototype, name) {
|
|
18
20
|
return Reflect.getMetadata(trpc_constants_1.PROCEDURE_PARAM_METADATA_KEY, prototype, name);
|
|
19
21
|
}
|
|
20
|
-
extractProcedureMetadata(name,
|
|
22
|
+
extractProcedureMetadata(name,
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
24
|
+
prototype) {
|
|
21
25
|
const callback = prototype[name];
|
|
22
26
|
const type = Reflect.getMetadata(trpc_constants_1.PROCEDURE_TYPE_KEY, callback);
|
|
23
27
|
const metadata = Reflect.getMetadata(trpc_constants_1.PROCEDURE_METADATA_KEY, callback);
|
|
@@ -66,7 +70,7 @@ let ProcedureFactory = class ProcedureFactory {
|
|
|
66
70
|
if (params == null) {
|
|
67
71
|
return [];
|
|
68
72
|
}
|
|
69
|
-
|
|
73
|
+
return new Array(Math.max(...params.map((val) => val.index)) + 1)
|
|
70
74
|
.fill(undefined)
|
|
71
75
|
.map((_val, idx) => {
|
|
72
76
|
const param = params.find((param) => param.index === idx);
|
|
@@ -83,7 +87,6 @@ let ProcedureFactory = class ProcedureFactory {
|
|
|
83
87
|
}
|
|
84
88
|
return opts[param.type];
|
|
85
89
|
});
|
|
86
|
-
return args;
|
|
87
90
|
}
|
|
88
91
|
createSerializedProcedure(procedureInstance, procedureName, input, output, type, routerInstance, params) {
|
|
89
92
|
const procedureWithInput = input
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/trpc.driver.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { HttpAdapterHost, ModuleRef } from '@nestjs/core';
|
|
|
3
3
|
import { TRPCModuleOptions } from './interfaces';
|
|
4
4
|
import { TRPCFactory } from './factories/trpc.factory';
|
|
5
5
|
import { TRPCGenerator } from './generators/trpc.generator';
|
|
6
|
+
import { AppRouterHost } from './app-router.host';
|
|
6
7
|
export declare class TRPCDriver<TOptions extends Record<string, any> = TRPCModuleOptions> {
|
|
7
8
|
private moduleRef;
|
|
8
9
|
protected readonly httpAdapterHost: HttpAdapterHost;
|
|
9
10
|
protected readonly trpcFactory: TRPCFactory;
|
|
10
11
|
protected readonly trpcGenerator: TRPCGenerator;
|
|
11
12
|
protected readonly consoleLogger: ConsoleLogger;
|
|
13
|
+
protected readonly appRouterHost: AppRouterHost;
|
|
12
14
|
constructor(moduleRef: ModuleRef);
|
|
13
15
|
start(options: TRPCModuleOptions): Promise<void>;
|
|
14
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc.driver.d.ts","sourceRoot":"","sources":["../lib/trpc.driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"trpc.driver.d.ts","sourceRoot":"","sources":["../lib/trpc.driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAe,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBACa,UAAU,CACrB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,iBAAiB;IAiB5C,OAAO,CAAC,SAAS;IAd7B,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAG,eAAe,CAAC;IAGrD,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAG,WAAW,CAAC;IAG7C,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;IAGjD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;IAGjD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;gBAE7B,SAAS,EAAE,SAAS;IAE3B,KAAK,CAAC,OAAO,EAAE,iBAAiB;CAwD9C"}
|
package/dist/trpc.driver.js
CHANGED
|
@@ -8,6 +8,7 @@ const server_1 = require("@trpc/server");
|
|
|
8
8
|
const trpcExpress = require("@trpc/server/adapters/express");
|
|
9
9
|
const trpc_factory_1 = require("./factories/trpc.factory");
|
|
10
10
|
const trpc_generator_1 = require("./generators/trpc.generator");
|
|
11
|
+
const app_router_host_1 = require("./app-router.host");
|
|
11
12
|
let TRPCDriver = class TRPCDriver {
|
|
12
13
|
constructor(moduleRef) {
|
|
13
14
|
this.moduleRef = moduleRef;
|
|
@@ -28,6 +29,7 @@ let TRPCDriver = class TRPCDriver {
|
|
|
28
29
|
...(options.errorShape != null ? { errorShape: options.errorShape } : {}),
|
|
29
30
|
});
|
|
30
31
|
const appRouter = this.trpcFactory.serializeAppRoutes(router, procedure);
|
|
32
|
+
this.appRouterHost.appRouter = appRouter;
|
|
31
33
|
const contextClass = options.context;
|
|
32
34
|
const contextInstance = contextClass != null
|
|
33
35
|
? this.moduleRef.get(contextClass, {
|
|
@@ -68,6 +70,10 @@ tslib_1.__decorate([
|
|
|
68
70
|
(0, common_1.Inject)(common_1.ConsoleLogger),
|
|
69
71
|
tslib_1.__metadata("design:type", common_1.ConsoleLogger)
|
|
70
72
|
], TRPCDriver.prototype, "consoleLogger", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, common_1.Inject)(app_router_host_1.AppRouterHost),
|
|
75
|
+
tslib_1.__metadata("design:type", app_router_host_1.AppRouterHost)
|
|
76
|
+
], TRPCDriver.prototype, "appRouterHost", void 0);
|
|
71
77
|
exports.TRPCDriver = TRPCDriver = tslib_1.__decorate([
|
|
72
78
|
(0, common_1.Injectable)(),
|
|
73
79
|
tslib_1.__metadata("design:paramtypes", [core_1.ModuleRef])
|
package/dist/trpc.module.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare class TRPCModule implements OnModuleInit {
|
|
|
5
5
|
private readonly consoleLogger;
|
|
6
6
|
private readonly httpAdapterHost;
|
|
7
7
|
private readonly trpcDriver;
|
|
8
|
+
private readonly appRouterHost;
|
|
8
9
|
static forRoot<TOptions extends Record<string, any> = TRPCModuleOptions>(options?: TOptions): DynamicModule;
|
|
9
10
|
onModuleInit(): Promise<void>;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc.module.d.ts","sourceRoot":"","sources":["../lib/trpc.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"trpc.module.d.ts","sourceRoot":"","sources":["../lib/trpc.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAgBjD,qBAmBa,UAAW,YAAW,YAAY;IAE7C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAG7C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAG/C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAmB;IAGnD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAc;IAGzC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAE/C,MAAM,CAAC,OAAO,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,iBAAiB,EACrE,OAAO,GAAE,QAAyB,GACjC,aAAa;IAOV,YAAY;CAgBnB"}
|
package/dist/trpc.module.js
CHANGED
|
@@ -16,6 +16,7 @@ const decorator_generator_1 = require("./generators/decorator.generator");
|
|
|
16
16
|
const router_generator_1 = require("./generators/router.generator");
|
|
17
17
|
const middleware_generator_1 = require("./generators/middleware.generator");
|
|
18
18
|
const context_generator_1 = require("./generators/context.generator");
|
|
19
|
+
const app_router_host_1 = require("./app-router.host");
|
|
19
20
|
let TRPCModule = TRPCModule_1 = class TRPCModule {
|
|
20
21
|
static forRoot(options = {}) {
|
|
21
22
|
return {
|
|
@@ -30,7 +31,9 @@ let TRPCModule = TRPCModule_1 = class TRPCModule {
|
|
|
30
31
|
}
|
|
31
32
|
this.consoleLogger.setContext(trpc_constants_1.LOGGER_CONTEXT);
|
|
32
33
|
await this.trpcDriver.start(this.options);
|
|
33
|
-
this.
|
|
34
|
+
if (this.appRouterHost.appRouter != null) {
|
|
35
|
+
this.consoleLogger.log('Server has been initialized successfully.', 'TRPC Server');
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
};
|
|
36
39
|
exports.TRPCModule = TRPCModule;
|
|
@@ -50,6 +53,10 @@ tslib_1.__decorate([
|
|
|
50
53
|
(0, common_1.Inject)(trpc_driver_1.TRPCDriver),
|
|
51
54
|
tslib_1.__metadata("design:type", trpc_driver_1.TRPCDriver)
|
|
52
55
|
], TRPCModule.prototype, "trpcDriver", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, common_1.Inject)(app_router_host_1.AppRouterHost),
|
|
58
|
+
tslib_1.__metadata("design:type", app_router_host_1.AppRouterHost)
|
|
59
|
+
], TRPCModule.prototype, "appRouterHost", void 0);
|
|
53
60
|
exports.TRPCModule = TRPCModule = TRPCModule_1 = tslib_1.__decorate([
|
|
54
61
|
(0, common_1.Module)({
|
|
55
62
|
imports: [],
|
|
@@ -66,7 +73,8 @@ exports.TRPCModule = TRPCModule = TRPCModule_1 = tslib_1.__decorate([
|
|
|
66
73
|
context_generator_1.ContextGenerator,
|
|
67
74
|
router_generator_1.RouterGenerator,
|
|
68
75
|
trpc_generator_1.TRPCGenerator,
|
|
76
|
+
app_router_host_1.AppRouterHost,
|
|
69
77
|
],
|
|
70
|
-
exports: [],
|
|
78
|
+
exports: [app_router_host_1.AppRouterHost],
|
|
71
79
|
})
|
|
72
80
|
], TRPCModule);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
import { AnyRouter } from '@trpc/server';
|
|
3
|
+
|
|
4
|
+
@Injectable()
|
|
5
|
+
export class AppRouterHost {
|
|
6
|
+
private _appRouter: AnyRouter | undefined;
|
|
7
|
+
|
|
8
|
+
set appRouter(schemaRef: AnyRouter) {
|
|
9
|
+
this._appRouter = schemaRef;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
get appRouter(): AnyRouter {
|
|
13
|
+
if (!this._appRouter) {
|
|
14
|
+
throw new Error(
|
|
15
|
+
'TRPC appRouter has not yet been created. ' +
|
|
16
|
+
'Make sure to call the "AppRouterHost#appRouter" getter when the application is already initialized (after the "onModuleInit" hook triggered by either "app.listen()" or "app.init()" method).',
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
return this._appRouter;
|
|
20
|
+
}
|
|
21
|
+
}
|
package/lib/index.ts
CHANGED
package/lib/trpc.driver.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ConsoleLogger, Inject, Injectable, Type } from '@nestjs/common';
|
|
2
|
-
import {
|
|
2
|
+
import { HttpAdapterHost, ModuleRef } from '@nestjs/core';
|
|
3
3
|
import type { Application as ExpressApplication } from 'express';
|
|
4
4
|
import { TRPCContext, TRPCModuleOptions } from './interfaces';
|
|
5
5
|
import { AnyRouter, initTRPC } from '@trpc/server';
|
|
6
6
|
import * as trpcExpress from '@trpc/server/adapters/express';
|
|
7
7
|
import { TRPCFactory } from './factories/trpc.factory';
|
|
8
8
|
import { TRPCGenerator } from './generators/trpc.generator';
|
|
9
|
-
import {
|
|
9
|
+
import { AppRouterHost } from './app-router.host';
|
|
10
10
|
|
|
11
11
|
@Injectable()
|
|
12
12
|
export class TRPCDriver<
|
|
@@ -24,6 +24,9 @@ export class TRPCDriver<
|
|
|
24
24
|
@Inject(ConsoleLogger)
|
|
25
25
|
protected readonly consoleLogger!: ConsoleLogger;
|
|
26
26
|
|
|
27
|
+
@Inject(AppRouterHost)
|
|
28
|
+
protected readonly appRouterHost!: AppRouterHost;
|
|
29
|
+
|
|
27
30
|
constructor(private moduleRef: ModuleRef) {}
|
|
28
31
|
|
|
29
32
|
public async start(options: TRPCModuleOptions) {
|
|
@@ -50,6 +53,8 @@ export class TRPCDriver<
|
|
|
50
53
|
procedure,
|
|
51
54
|
);
|
|
52
55
|
|
|
56
|
+
this.appRouterHost.appRouter = appRouter;
|
|
57
|
+
|
|
53
58
|
const contextClass = options.context;
|
|
54
59
|
const contextInstance =
|
|
55
60
|
contextClass != null
|
package/lib/trpc.module.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { DecoratorGenerator } from './generators/decorator.generator';
|
|
|
18
18
|
import { RouterGenerator } from './generators/router.generator';
|
|
19
19
|
import { MiddlewareGenerator } from './generators/middleware.generator';
|
|
20
20
|
import { ContextGenerator } from './generators/context.generator';
|
|
21
|
+
import { AppRouterHost } from './app-router.host';
|
|
21
22
|
|
|
22
23
|
@Module({
|
|
23
24
|
imports: [],
|
|
@@ -34,8 +35,9 @@ import { ContextGenerator } from './generators/context.generator';
|
|
|
34
35
|
ContextGenerator,
|
|
35
36
|
RouterGenerator,
|
|
36
37
|
TRPCGenerator,
|
|
38
|
+
AppRouterHost,
|
|
37
39
|
],
|
|
38
|
-
exports: [],
|
|
40
|
+
exports: [AppRouterHost],
|
|
39
41
|
})
|
|
40
42
|
export class TRPCModule implements OnModuleInit {
|
|
41
43
|
@Inject(TRPC_MODULE_OPTIONS)
|
|
@@ -50,6 +52,9 @@ export class TRPCModule implements OnModuleInit {
|
|
|
50
52
|
@Inject(TRPCDriver)
|
|
51
53
|
private readonly trpcDriver!: TRPCDriver;
|
|
52
54
|
|
|
55
|
+
@Inject(AppRouterHost)
|
|
56
|
+
private readonly appRouterHost!: AppRouterHost;
|
|
57
|
+
|
|
53
58
|
static forRoot<TOptions extends Record<string, any> = TRPCModuleOptions>(
|
|
54
59
|
options: TOptions = {} as TOptions,
|
|
55
60
|
): DynamicModule {
|
|
@@ -67,9 +72,12 @@ export class TRPCModule implements OnModuleInit {
|
|
|
67
72
|
|
|
68
73
|
this.consoleLogger.setContext(LOGGER_CONTEXT);
|
|
69
74
|
await this.trpcDriver.start(this.options);
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
|
|
76
|
+
if (this.appRouterHost.appRouter != null) {
|
|
77
|
+
this.consoleLogger.log(
|
|
78
|
+
'Server has been initialized successfully.',
|
|
79
|
+
'TRPC Server',
|
|
80
|
+
);
|
|
81
|
+
}
|
|
74
82
|
}
|
|
75
83
|
}
|