roc
Version:
Build modern web applications easily
31 lines (28 loc) • 767 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isVerbose = isVerbose;
exports.setVerbose = setVerbose;
/* Using global variables here to make sure that we can access the values set from different projects.
* This guarantees that the variables will live outside the require cache, something that we need for stability.
*/
global.roc = global.roc || {};
global.roc.verbose = global.roc.verbose || false;
/**
* If verbose is enabled.
*
* @returns {boolean} - If verbose is enabled.
*/
function isVerbose() {
return global.roc.verbose;
}
/**
* Set verbose state.
*
* @param {boolean} value - State to set verbose in.
*/
function setVerbose(value) {
global.roc.verbose = value;
}
//# sourceMappingURL=verbose.js.map