-
Notifications
You must be signed in to change notification settings - Fork 0
/
itslog.min.js
2 lines (2 loc) · 2.19 KB
/
itslog.min.js
1
2
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.itslog=t():e.itslog=t()}(this,function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";var r=o(1),n=o(2),u=(0,n.getEnv)(),f=(0,n.getConsoleObject)(),i={};e.exports=function(e){r.METHODS_SIMPLE.forEach(function(t){i[t]=function(){var o=(0,n.getPrefixes)(u,e),r=(0,n.convertArgsToArray)(arguments);return r=(0,n.prependItemsToArray)(o,r),f[t].apply(f,r)}}),r.METHODS_COMPLEX.forEach(function(t){i[t]=function(){return f.log.apply(f,(0,n.getPrefixes)(u,e)),f[t](arguments)}});for(var t in f)i[t]||(i[t]=f[t]);return i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.METHODS_SIMPLE=["count","error","info","log","warn"],r=t.METHODS_COMPLEX=["assert","dir","dirxml","group","groupCollapsed","groupEnd","table","timeEnd","trace"],n=t.NAME="logger",u=t.STYLES={BROWSER:"font-style: italic;font-weight: bold;",NODE:"[36m%s[0m"},f=t.ENVS={BROWSER:"browser",NODE:"node"};t["default"]={ENVS:f,METHODS_COMPLEX:r,METHODS_SIMPLE:o,NAME:n,STYLES:u}},function(e,t,o){"use strict";function r(){return!1}function n(){return"undefined"!=typeof window?E.ENVS.BROWSER:E.ENVS.NODE}function u(e,t){return e===E.ENVS.BROWSER?["%c["+t+"]: ",E.STYLES.BROWSER]:[E.STYLES.NODE,"["+t+"]: "]}function f(e){var t=Array.prototype.slice.call(e);return t}function i(e,t){return t.unshift.apply(t,e),t}function c(){if(void 0!==("undefined"==typeof console?"undefined":s(console)))return console;var e={},t=E.METHODS_SIMPLE.concat(E.METHODS_COMPLEX);return t.forEach(function(t){e[t]=r}),e}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.getEnv=n,t.getPrefixes=u,t.convertArgsToArray=f,t.prependItemsToArray=i,t.getConsoleObject=c;var E=o(1)}])});
//# sourceMappingURL=itslog.sourcemap.js