AikidoSec-safe-chain/packages/safe-chain/src/registryProxy/builtInProxy/interceptors/suppressedVersionsState.js
2026-05-04 12:40:20 +02:00

21 lines
504 B
JavaScript

const state = {
hasSuppressedVersions: false,
};
/**
* Tracks whether any rewritten metadata response suppressed versions during the
* current process lifetime. This is intentional shared state used only for the
* end-of-run summary message exposed through the proxy API.
*
* @returns {void}
*/
export function recordSuppressedVersion() {
state.hasSuppressedVersions = true;
}
/**
* @returns {boolean}
*/
export function getHasSuppressedVersions() {
return state.hasSuppressedVersions;
}