refactor(core): Introduce @n8n/decorators package (#14784)

This commit is contained in:
Iván Ovejero
2025-04-23 16:39:49 +02:00
committed by GitHub
parent 454e5c77ad
commit e6381e09e3
95 changed files with 447 additions and 228 deletions

View File

@@ -1,4 +1,5 @@
import type { PushMessage } from '@n8n/api-types';
import { OnShutdown } from '@n8n/decorators';
import { Container, Service } from '@n8n/di';
import type { Application } from 'express';
import { ServerResponse } from 'http';
@@ -11,7 +12,6 @@ import { Server as WSServer } from 'ws';
import { AuthService } from '@/auth/auth.service';
import { inProduction, TRIMMED_TASK_DATA_CONNECTIONS } from '@/constants';
import type { User } from '@/databases/entities/user';
import { OnShutdown } from '@/decorators/on-shutdown';
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
import { Publisher } from '@/scaling/pubsub/publisher.service';
import { TypedEmitter } from '@/typed-emitter';