UNPKG

ns-permissions

Version:
26 lines 735 B
let debug = false; export function setDebug(value) { debug = value; } export var CLogTypes; (function (CLogTypes) { CLogTypes[CLogTypes["info"] = 0] = "info"; CLogTypes[CLogTypes["warning"] = 1] = "warning"; CLogTypes[CLogTypes["error"] = 2] = "error"; })(CLogTypes || (CLogTypes = {})); export const CLog = (type = 0, ...args) => { if (debug) { if (type === 0) { // Info console.log('[ns-permissions]', ...args); } else if (type === 1) { // Warning console.warn('[ns-permissions]', ...args); } else if (type === 2) { console.error('[ns-permissions]', ...args); } } }; //# sourceMappingURL=common.js.map