UNPKG

1.62 kBSource Map (JSON)View Raw
1{"version":3,"file":"console.js","sourceRoot":"","sources":["../../../../src/lib/common/console.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,4CAA2C;IAE3C,SAAgB,GAAG;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QAChC,IAAI,eAAM,CAAC,OAAO,IAAI,eAAM,CAAC,OAAO,CAAC,GAAG,EAAE;YACxC,IAAI;gBACF,eAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,eAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aAChD;YAAC,OAAO,KAAK,EAAE,GAAE;SACnB;IACH,CAAC;IAND,kBAMC;IAED,SAAgB,KAAK;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QAClC,IAAI,eAAM,CAAC,OAAO,IAAI,eAAM,CAAC,OAAO,CAAC,KAAK,EAAE;YAC1C,IAAI;gBACF,eAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,eAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aAClD;YAAC,OAAO,KAAK,EAAE,GAAE;SACnB;IACH,CAAC;IAND,sBAMC;IAED,SAAgB,IAAI;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACjC,IAAI,eAAM,CAAC,OAAO,IAAI,eAAM,CAAC,OAAO,CAAC,IAAI,EAAE;YACzC,IAAI;gBACF,eAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,eAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aACjD;YAAC,OAAO,KAAK,EAAE,GAAE;SACnB;IACH,CAAC;IAND,oBAMC","sourcesContent":["import { global } from '@theintern/common';\n\nexport function log(...args: any[]) {\n if (global.console && global.console.log) {\n try {\n global.console.log.apply(global.console, args);\n } catch (error) {}\n }\n}\n\nexport function error(...args: any[]) {\n if (global.console && global.console.error) {\n try {\n global.console.error.apply(global.console, args);\n } catch (error) {}\n }\n}\n\nexport function warn(...args: any[]) {\n if (global.console && global.console.warn) {\n try {\n global.console.warn.apply(global.console, args);\n } catch (error) {}\n }\n}\n"]}
\No newline at end of file