TenantAtlas/apps/platform/.pnpm-store/v10/files/2f/4a0c2912415bf506bda444405216dfa90f3a03277d1d44dda0038d4aff2af657dac6cb90b10e2c366cfa87096706ede33abfa0281ba0ce5efbffba6fa12d48
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

19 lines
422 B
Plaintext

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
module.exports.deprecate = (fn, msg) => {
let once = true;
return function deprecate() {
if (once) {
// eslint-disable-next-line no-console
console.warn(`DeprecationWarning: ${msg}`);
once = false;
}
// eslint-disable-next-line prefer-rest-params
return fn.apply(this, arguments);
};
};