forked from Download/ulog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ulog.min.js.map
1 lines (1 loc) · 13.4 KB
/
ulog.min.js.map
1
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///ulog.min.js","webpack:///webpack/bootstrap dce06a28a67eb6b226e2","webpack:///./browser.js","webpack:///./ulog.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","lvl","dbg","i","log","qs","location","search","substring","args","split","con","window","console","enable","level","WARN","name","mods","enhance","debug","o","parent","NONE","key","LVL","Object","defineProperty","get","undefined","set","n","Number","toUpperCase","patch","mod","dir","bnd","nop","time","timeEnd","assert","a","concat","apply","arguments","ok","shift","error","Math","max","enabled","DEBUG","names","print","bind","ulog","version","str","length","replace","skipMods","push","RegExp","substr","dbgMods","test","disable","ERROR","INFO","LOG","TRACE","keys","map","x","toLowerCase"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,KAAAD,IAEAD,EAAA,KAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,GAGAR,EAAA,KDgBM,SAASL,EAAQD,EAASM,GEtDhC,GAGAS,GAAAC,EAAAC,EAAAL,EAHAM,EAAAZ,EAAA,GACAa,EAAAC,SAAAC,OAAAC,UAAA,GACAC,EAAAJ,KAAAK,MAAA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ACXlB,EAAA3B,OAAA8C,KAAA/C,GAAAgD,IAAA,SAAAC,GAA2C,MAAAA,GAAAC,gBAC3CzD,KAAW+C,KAAAJ","file":"ulog.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ulog\"] = factory();\n\telse\n\t\troot[\"ulog\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ulog\"] = factory();\n\telse\n\t\troot[\"ulog\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar log = __webpack_require__(1),\r\n\t\t\tqs = location.search.substring(1),\r\n\t\t\targs = qs && qs.split('&'),\r\n\t\t\tlvl, dbg, i, m\r\n\t\r\n\tfor (i=0; m=args && args[i] && args[i].split('='); i++) {\r\n\t\tm[0] == 'log' ? lvl = m[1] : 0\r\n\t\tm[0] == 'debug' ? dbg = m[1] : 0\r\n\t}\r\n\t\r\n\tlog.con = function(){return window.console && console}\r\n\tdbg && log.enable(dbg)\r\n\tmodule.exports = log()\r\n\tlog.level = lvl || log.WARN\r\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tfunction log(name){\r\n\t\treturn name\r\n\t\t\t? (mods[name] ? mods[name] : (mods[name] = enhance({name:name}, log)))\r\n\t\t\t: (log.debug ? log : enhance(log))\r\n\t}\r\n\t\r\n\tlog.ulog = {version:'0.1.0'}\r\n\t\r\n\tlog.enable = function(str) {\r\n\t\tvar i, split = (str || '').split(/[\\s,]+/);\r\n\t\tfor (i=0; i<split.length; i++) {\r\n\t\t\tif (split[i]) {\r\n\t\t\t\tstr = split[i].replace(/\\*/g, '.*?')\r\n\t\t\t\tif (str[0] === '-') skipMods.push(new RegExp('^' + str.substr(1) + '$'))\r\n\t\t\t\telse dbgMods.push(new RegExp('^' + str + '$'))\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (i in mods) patch(mods[i], log)\r\n\t}\r\n\t\r\n\tlog.enabled = function(name) {\r\n\t\tvar i;\r\n\t\tfor (i=0; i<skipMods.length; i++)\r\n\t\t\tif (skipMods[i].test(name)) return\r\n\t\tfor (i=0; i<dbgMods.length; i++)\r\n\t\t\tif (dbgMods[i].test(name)) {return true}\r\n\t}\r\n\t\r\n\tlog.disable = log.enable.bind(log, '')\r\n\t\r\n\tmodule.exports = log\r\n\t\r\n\tvar LVL = {ERROR:1, WARN:2, INFO:3, LOG:4, DEBUG:5, TRACE:6},\r\n\t\t\tnames = Object.keys(LVL).map(function(x){return x.toLowerCase()}),\r\n\t\t\tmods = {}, dbgMods = [], skipMods = []\r\n\t\r\n\tfunction enhance(o, parent, level) {\r\n\t\to.NONE = 0\r\n\t\tfor (var key in LVL) {o[key] = LVL[key]}\r\n\t\tObject.defineProperty(o, 'level', {\r\n\t\t\tget: function(){return level !== undefined ? level : parent && parent.level},\r\n\t\t\tset: function(n) {\r\n\t\t\t\tif ((n === undefined) && parent) {level = undefined}\r\n\t\t\t\telse {\r\n\t\t\t\t\tvar lvl = n && (Number(n)!==Number(n) ? o[n.toUpperCase()] : Number(n))\r\n\t\t\t\t\tif (lvl >= 0 && lvl <= 6) {level = lvl}\r\n\t\t\t\t}\r\n\t\t\t\tpatch(o, parent)\r\n\t\t\t\tif (!parent) {for (mod in mods) {patch(mods[mod], o)}}\r\n\t\t\t}\r\n\t\t})\r\n\t\tpatch(o, parent)\r\n\t\to.dir = bnd('dir') || nop\r\n\t\to.time = bnd('time') || nop\r\n\t\to.timeEnd = bnd('timeEnd') || nop\r\n\t\to.assert = function(){\r\n\t\t\tvar a=[].concat.apply([], arguments), ok=a.shift()\r\n\t\t\tif (!ok) {o.error.apply(o, a)}\r\n\t\t}\r\n\t\treturn o\r\n\t}\r\n\t\r\n\tfunction patch(o, parent) {\r\n\t\tvar lvl = Math.max(o.name && log.enabled(o.name) && o.DEBUG || o.level, o.level)\r\n\t\tfor (var i=0,name; name=names[i]; i++) {\r\n\t\t\to[name] = lvl <= i\r\n\t\t\t\t? nop\r\n\t\t\t\t: (\r\n\t\t\t\t\tbnd(name) ||\r\n\t\t\t\t\t(typeof print == 'function' && print) ||\r\n\t\t\t\t\tfunction(){\r\n\t\t\t\t\t\tif (log.con()) {\r\n\t\t\t\t\t\t\tpatch(o)\r\n\t\t\t\t\t\t\to[name].apply(o, arguments)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t)\r\n\t\t}\r\n\t}\r\n\t\r\n\tfunction bnd(n,c){return (c = log.con()) && (c[n]||c.log).bind(c)}\r\n\tfunction nop(){}\r\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n/** WEBPACK FOOTER **\n ** ulog.min.js\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap dce06a28a67eb6b226e2\n **/","var log = require('./ulog'),\r\n\t\tqs = location.search.substring(1),\r\n\t\targs = qs && qs.split('&'),\r\n\t\tlvl, dbg, i, m\r\n\r\nfor (i=0; m=args && args[i] && args[i].split('='); i++) {\r\n\tm[0] == 'log' ? lvl = m[1] : 0\r\n\tm[0] == 'debug' ? dbg = m[1] : 0\r\n}\r\n\r\nlog.con = function(){return window.console && console}\r\ndbg && log.enable(dbg)\r\nmodule.exports = log()\r\nlog.level = lvl || log.WARN\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./browser.js\n ** module id = 0\n ** module chunks = 0\n **/","function log(name){\r\n\treturn name\r\n\t\t? (mods[name] ? mods[name] : (mods[name] = enhance({name:name}, log)))\r\n\t\t: (log.debug ? log : enhance(log))\r\n}\r\n\r\nlog.ulog = {version:'0.1.0'}\r\n\r\nlog.enable = function(str) {\r\n\tvar i, split = (str || '').split(/[\\s,]+/);\r\n\tfor (i=0; i<split.length; i++) {\r\n\t\tif (split[i]) {\r\n\t\t\tstr = split[i].replace(/\\*/g, '.*?')\r\n\t\t\tif (str[0] === '-') skipMods.push(new RegExp('^' + str.substr(1) + '$'))\r\n\t\t\telse dbgMods.push(new RegExp('^' + str + '$'))\r\n\t\t}\r\n\t}\r\n\tfor (i in mods) patch(mods[i], log)\r\n}\r\n\r\nlog.enabled = function(name) {\r\n\tvar i;\r\n\tfor (i=0; i<skipMods.length; i++)\r\n\t\tif (skipMods[i].test(name)) return\r\n\tfor (i=0; i<dbgMods.length; i++)\r\n\t\tif (dbgMods[i].test(name)) {return true}\r\n}\r\n\r\nlog.disable = log.enable.bind(log, '')\r\n\r\nmodule.exports = log\r\n\r\nvar LVL = {ERROR:1, WARN:2, INFO:3, LOG:4, DEBUG:5, TRACE:6},\r\n\t\tnames = Object.keys(LVL).map(function(x){return x.toLowerCase()}),\r\n\t\tmods = {}, dbgMods = [], skipMods = []\r\n\r\nfunction enhance(o, parent, level) {\r\n\to.NONE = 0\r\n\tfor (var key in LVL) {o[key] = LVL[key]}\r\n\tObject.defineProperty(o, 'level', {\r\n\t\tget: function(){return level !== undefined ? level : parent && parent.level},\r\n\t\tset: function(n) {\r\n\t\t\tif ((n === undefined) && parent) {level = undefined}\r\n\t\t\telse {\r\n\t\t\t\tvar lvl = n && (Number(n)!==Number(n) ? o[n.toUpperCase()] : Number(n))\r\n\t\t\t\tif (lvl >= 0 && lvl <= 6) {level = lvl}\r\n\t\t\t}\r\n\t\t\tpatch(o, parent)\r\n\t\t\tif (!parent) {for (mod in mods) {patch(mods[mod], o)}}\r\n\t\t}\r\n\t})\r\n\tpatch(o, parent)\r\n\to.dir = bnd('dir') || nop\r\n\to.time = bnd('time') || nop\r\n\to.timeEnd = bnd('timeEnd') || nop\r\n\to.assert = function(){\r\n\t\tvar a=[].concat.apply([], arguments), ok=a.shift()\r\n\t\tif (!ok) {o.error.apply(o, a)}\r\n\t}\r\n\treturn o\r\n}\r\n\r\nfunction patch(o, parent) {\r\n\tvar lvl = Math.max(o.name && log.enabled(o.name) && o.DEBUG || o.level, o.level)\r\n\tfor (var i=0,name; name=names[i]; i++) {\r\n\t\to[name] = lvl <= i\r\n\t\t\t? nop\r\n\t\t\t: (\r\n\t\t\t\tbnd(name) ||\r\n\t\t\t\t(typeof print == 'function' && print) ||\r\n\t\t\t\tfunction(){\r\n\t\t\t\t\tif (log.con()) {\r\n\t\t\t\t\t\tpatch(o)\r\n\t\t\t\t\t\to[name].apply(o, arguments)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t}\r\n}\r\n\r\nfunction bnd(n,c){return (c = log.con()) && (c[n]||c.log).bind(c)}\r\nfunction nop(){}\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./ulog.js\n ** module id = 1\n ** module chunks = 0\n **/"],"sourceRoot":""}