TenantAtlas/apps/platform/.pnpm-store/v10/files/f3/7394eb6ed915cf893485d876a30ece6584c8c9e1a8c2e3c723e4a9f243c5bea41b109ca09c8b2aa95a068948daa589e271603fc896f99a121992d6cff9f290
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

16 lines
551 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assertDeprecated = assertDeprecated;
const deprecations = new Set();
/**
* Asserts that some condition is true, and if not, prints a warning about it being deprecated.
* The message is printed only once.
*/
function assertDeprecated(check, name, message) {
if (!check && !deprecations.has(name)) {
// eslint-disable-next-line no-console
console.warn(`[concurrently] ${name} is deprecated. ${message}`);
deprecations.add(name);
}
}