@fluxhub/fluxhub-lib 22.0.12 → 22.0.13
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.
|
@@ -175,6 +175,65 @@ function fhHandledError() {
|
|
|
175
175
|
function fhIsHandled(err) {
|
|
176
176
|
return !!err?.fhHandled;
|
|
177
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Impostazioni comuni per Sentry.init dei portali (Rustrak): rumore da scartare e pulizia
|
|
180
|
+
* dei breadcrumb. Unica fonte per tutti i portali: una voce nuova si aggiunge qui e arriva
|
|
181
|
+
* a tutti con l'aggiornamento della libreria. Uso nel monitoring.ts del portale:
|
|
182
|
+
* Sentry.init({ dsn, release, ..., ...FH_MONITORING_DEFAULTS })
|
|
183
|
+
* Tipi volutamente generici: la libreria non dipende dall'SDK di Sentry.
|
|
184
|
+
* Rumore individuato analizzando le issue di tutti i portali il 21/10/2026.
|
|
185
|
+
*/
|
|
186
|
+
const FH_MONITORING_IGNORE_ERRORS = [
|
|
187
|
+
'ResizeObserver loop',
|
|
188
|
+
'NG0100',
|
|
189
|
+
// sessione scaduta: l'interceptor fa logout e rilancia l'errore alle richieste in coda
|
|
190
|
+
'Refresh token non valido',
|
|
191
|
+
'SESSIONE SCADUTA',
|
|
192
|
+
// file JS della versione precedente spariti dopo una pubblicazione
|
|
193
|
+
'ChunkLoadError',
|
|
194
|
+
/Loading chunk [\w-]+ failed/,
|
|
195
|
+
'Failed to fetch dynamically imported module',
|
|
196
|
+
'Importing a module script failed',
|
|
197
|
+
// copia di un 5xx che la libreria ha gia' segnalato come "HTTP 5xx /endpoint CHIAVE"
|
|
198
|
+
/^Server returned code \d+ with body/,
|
|
199
|
+
];
|
|
200
|
+
/** Scarta un evento gia' segnalato o non azionabile; raggruppa i backend non raggiungibili. */
|
|
201
|
+
function fhMonitoringBeforeSend(event, hint) {
|
|
202
|
+
const ex = hint?.originalException;
|
|
203
|
+
// KO dei servizi dati rilanciato dopo essere stato mostrato e segnalato
|
|
204
|
+
if (fhIsHandled(ex))
|
|
205
|
+
return null;
|
|
206
|
+
// chiamata HTTP senza gestore d'errore arrivata all'ErrorHandler: 0 = rete assente o
|
|
207
|
+
// richiesta interrotta dal cambio pagina, 401 = sessione scaduta (li scarta anche fhHttpErrorReport)
|
|
208
|
+
if (ex instanceof HttpErrorResponse && (ex.status === 0 || ex.status === 401))
|
|
209
|
+
return null;
|
|
210
|
+
// backend giu' o in riavvio: una issue per portale e status, non una per chiave di query
|
|
211
|
+
const msg = String(event?.message || event?.exception?.values?.[0]?.value || '');
|
|
212
|
+
const gw = /^HTTP (502|503|504) /.exec(msg);
|
|
213
|
+
if (gw && event)
|
|
214
|
+
event.fingerprint = ['fh-gateway', gw[1]];
|
|
215
|
+
return event;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Breadcrumb: i console.log dei portali stampano record interi (anche utenti con password),
|
|
219
|
+
* quindi dei log di console restano solo warning ed errori, senza argomenti; via anche il
|
|
220
|
+
* banner di licenza di AG Grid, che riempie la coda.
|
|
221
|
+
*/
|
|
222
|
+
function fhMonitoringBeforeBreadcrumb(b) {
|
|
223
|
+
if (!b || b.category !== 'console')
|
|
224
|
+
return b;
|
|
225
|
+
if (b.level !== 'warning' && b.level !== 'error')
|
|
226
|
+
return null;
|
|
227
|
+
if (/AG Grid/i.test(String(b.message || '')) && /licen/i.test(String(b.message || '')))
|
|
228
|
+
return null;
|
|
229
|
+
delete b.data;
|
|
230
|
+
return b;
|
|
231
|
+
}
|
|
232
|
+
const FH_MONITORING_DEFAULTS = {
|
|
233
|
+
ignoreErrors: FH_MONITORING_IGNORE_ERRORS,
|
|
234
|
+
beforeSend: fhMonitoringBeforeSend,
|
|
235
|
+
beforeBreadcrumb: fhMonitoringBeforeBreadcrumb,
|
|
236
|
+
};
|
|
178
237
|
|
|
179
238
|
class QGResult {
|
|
180
239
|
result_msg = '';
|
|
@@ -43454,5 +43513,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
43454
43513
|
* Generated bundle index. Do not edit.
|
|
43455
43514
|
*/
|
|
43456
43515
|
|
|
43457
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fhHandledError, fhIsHandled, fh_win_translate, wkfField };
|
|
43516
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_MONITORING_DEFAULTS, FH_MONITORING_IGNORE_ERRORS, FH_ROUTE_HEADER, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fhHandledError, fhIsHandled, fhMonitoringBeforeBreadcrumb, fhMonitoringBeforeSend, fh_win_translate, wkfField };
|
|
43458
43517
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|