mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
21 lines
504 B
JavaScript
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;
|
|
}
|