plutin 1.7.2 → 1.7.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/index.cjs +9083 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -10
- package/dist/index.d.ts +6 -10
- package/dist/index.mjs +9087 -118
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -232,9 +232,10 @@ type RequestHttp = {
|
|
|
232
232
|
|
|
233
233
|
declare class ExpressAdapter implements IHttp {
|
|
234
234
|
readonly env: Record<string, any>;
|
|
235
|
+
readonly logger: any;
|
|
235
236
|
readonly instance: Express;
|
|
236
237
|
private server;
|
|
237
|
-
constructor(env: Record<string, any
|
|
238
|
+
constructor(env: Record<string, any>, logger: any);
|
|
238
239
|
registerRoute(controllerClass: BaseController): void;
|
|
239
240
|
startServer(port: number): Promise<void>;
|
|
240
241
|
closeServer(): Promise<void>;
|
|
@@ -342,9 +343,10 @@ interface ILogger {
|
|
|
342
343
|
}
|
|
343
344
|
|
|
344
345
|
declare class WinstonOtelFastify implements ILogger {
|
|
345
|
-
logger: Logger;
|
|
346
|
+
logger: Logger | null;
|
|
346
347
|
consoleLogger: winston.Logger;
|
|
347
348
|
level: 'info' | 'error' | 'debug' | 'fatal' | 'warn';
|
|
349
|
+
private otelEnabled;
|
|
348
350
|
constructor();
|
|
349
351
|
private bodyIsFastifyRequest;
|
|
350
352
|
private bodyIsFastifyReply;
|
|
@@ -379,6 +381,7 @@ declare class OpenTelemetry {
|
|
|
379
381
|
sdk: NodeSDK;
|
|
380
382
|
constructor(env: Record<string, any>);
|
|
381
383
|
startSdk(): void;
|
|
384
|
+
shutdown(): Promise<void>;
|
|
382
385
|
}
|
|
383
386
|
|
|
384
387
|
declare function Span(): MethodDecorator;
|
|
@@ -393,11 +396,4 @@ declare class TracerGatewayOpentelemetry implements ITracerGateway {
|
|
|
393
396
|
setAttribute(key: string, value: string | number | boolean): void;
|
|
394
397
|
}
|
|
395
398
|
|
|
396
|
-
|
|
397
|
-
info: (...args: any[]) => void;
|
|
398
|
-
log: (...args: any[]) => void;
|
|
399
|
-
warn: (...args: any[]) => void;
|
|
400
|
-
error: (...args: any[]) => void;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, IErrorNotifier, IHealthCheckDB, IHttp, ILogger, ITracerGateway, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, OpenTelemetry, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, Span, TracerGatewayOpentelemetry, UniqueEntityId, UniqueObjectId, ValueObject, WatchedList, WinstonOtelFastify, ZodSchema, baseEnvSchema, getTakeAndSkip, logger, zodValidator };
|
|
399
|
+
export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, IErrorNotifier, IHealthCheckDB, IHttp, ILogger, ITracerGateway, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, OpenTelemetry, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, Span, TracerGatewayOpentelemetry, UniqueEntityId, UniqueObjectId, ValueObject, WatchedList, WinstonOtelFastify, ZodSchema, baseEnvSchema, getTakeAndSkip, zodValidator };
|
package/dist/index.d.ts
CHANGED
|
@@ -232,9 +232,10 @@ type RequestHttp = {
|
|
|
232
232
|
|
|
233
233
|
declare class ExpressAdapter implements IHttp {
|
|
234
234
|
readonly env: Record<string, any>;
|
|
235
|
+
readonly logger: any;
|
|
235
236
|
readonly instance: Express;
|
|
236
237
|
private server;
|
|
237
|
-
constructor(env: Record<string, any
|
|
238
|
+
constructor(env: Record<string, any>, logger: any);
|
|
238
239
|
registerRoute(controllerClass: BaseController): void;
|
|
239
240
|
startServer(port: number): Promise<void>;
|
|
240
241
|
closeServer(): Promise<void>;
|
|
@@ -342,9 +343,10 @@ interface ILogger {
|
|
|
342
343
|
}
|
|
343
344
|
|
|
344
345
|
declare class WinstonOtelFastify implements ILogger {
|
|
345
|
-
logger: Logger;
|
|
346
|
+
logger: Logger | null;
|
|
346
347
|
consoleLogger: winston.Logger;
|
|
347
348
|
level: 'info' | 'error' | 'debug' | 'fatal' | 'warn';
|
|
349
|
+
private otelEnabled;
|
|
348
350
|
constructor();
|
|
349
351
|
private bodyIsFastifyRequest;
|
|
350
352
|
private bodyIsFastifyReply;
|
|
@@ -379,6 +381,7 @@ declare class OpenTelemetry {
|
|
|
379
381
|
sdk: NodeSDK;
|
|
380
382
|
constructor(env: Record<string, any>);
|
|
381
383
|
startSdk(): void;
|
|
384
|
+
shutdown(): Promise<void>;
|
|
382
385
|
}
|
|
383
386
|
|
|
384
387
|
declare function Span(): MethodDecorator;
|
|
@@ -393,11 +396,4 @@ declare class TracerGatewayOpentelemetry implements ITracerGateway {
|
|
|
393
396
|
setAttribute(key: string, value: string | number | boolean): void;
|
|
394
397
|
}
|
|
395
398
|
|
|
396
|
-
|
|
397
|
-
info: (...args: any[]) => void;
|
|
398
|
-
log: (...args: any[]) => void;
|
|
399
|
-
warn: (...args: any[]) => void;
|
|
400
|
-
error: (...args: any[]) => void;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, IErrorNotifier, IHealthCheckDB, IHttp, ILogger, ITracerGateway, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, OpenTelemetry, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, Span, TracerGatewayOpentelemetry, UniqueEntityId, UniqueObjectId, ValueObject, WatchedList, WinstonOtelFastify, ZodSchema, baseEnvSchema, getTakeAndSkip, logger, zodValidator };
|
|
399
|
+
export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, IErrorNotifier, IHealthCheckDB, IHttp, ILogger, ITracerGateway, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, OpenTelemetry, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, Span, TracerGatewayOpentelemetry, UniqueEntityId, UniqueObjectId, ValueObject, WatchedList, WinstonOtelFastify, ZodSchema, baseEnvSchema, getTakeAndSkip, zodValidator };
|