
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@tc-libs/message
Advanced tools
Servizio di messaggistica applicativa e normalizzazione errori validazione.
Servizio di messaggistica applicativa e normalizzazione errori validazione.
Il package non contiene ancora un motore i18n attivo: setMessage() al momento ritorna null, ma l'API e gia pronta e viene usata dagli altri package per costruire risposte multilingua o fallback.
MessageModule.register(
{
appDefaultLanguage: 'it',
availableLanguages: ['it', 'en'],
i18nEnabled: false,
},
true,
);
Il modulo applica anche il middleware MessageCustomLanguageMiddleware per leggere la lingua custom dalla request.
MessageService espone:
getAvailableLanguages()get(key, options?)getRequestErrorsMessage(validationErrors, customLanguages?)getImportErrorsMessage(importErrors, customLanguages?)Esempio:
const msg = await this.messageService.get('user.created', {
customLanguages: ['it'],
properties: { name: 'Mario' },
});
const errors = await this.messageService.getRequestErrorsMessage(
validationErrors,
['it'],
);
Questo e il punto di integrazione usato da @tc-libs/error-handler.
import {
IMessage,
IMessageOptions,
MessageModule,
MessageService,
} from '@tc-libs/message';
Lo strato di API e pronto, ma la traduzione vera e propria e da completare. Nei package che lo usano, trattalo come message resolver/pluggable facade piu che come i18n engine finito.
nx build message
nx test message
FAQs
Servizio di messaggistica applicativa e normalizzazione errori validazione.
The npm package @tc-libs/message receives a total of 37 weekly downloads. As such, @tc-libs/message popularity was classified as not popular.
We found that @tc-libs/message demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.