@dzeio/logger
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -1,1 +0,1 @@ | ||
{"id":"TyHJ","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612780016879},{"name":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\package.json","includedInParent":true,"mtime":1604412746700},{"name":"process","parent":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\symbols.js","resolved":"D:\\git\\dzeio\\libs\\node_modules\\process\\browser.js"}],"generated":{"js":"var $TyHJ$exports={},$TyHJ$var$process=$parcel$require(\"TyHJ\",\"process\"),$TyHJ$var$isHyper=!1,$TyHJ$var$isWindows=\"win32\"===$TyHJ$var$process.platform,$TyHJ$var$isLinux=\"linux\"===$TyHJ$var$process.platform,$TyHJ$var$common={ballotDisabled:\"☒\",ballotOff:\"☐\",ballotOn:\"☑\",bullet:\"•\",bulletWhite:\"◦\",fullBlock:\"█\",heart:\"❤\",identicalTo:\"≡\",line:\"─\",mark:\"※\",middot:\"·\",minus:\"-\",multiplication:\"×\",obelus:\"÷\",pencilDownRight:\"✎\",pencilRight:\"✏\",pencilUpRight:\"✐\",percent:\"%\",pilcrow2:\"❡\",pilcrow:\"¶\",plusMinus:\"±\",section:\"§\",starsOff:\"☆\",starsOn:\"★\",upDownArrow:\"↕\"},$TyHJ$var$windows=Object.assign({},$TyHJ$var$common,{check:\"√\",cross:\"×\",ellipsisLarge:\"...\",ellipsis:\"...\",info:\"i\",question:\"?\",questionSmall:\"?\",pointer:\">\",pointerSmall:\"»\",radioOff:\"( )\",radioOn:\"(*)\",warning:\"‼\"}),$TyHJ$var$other=Object.assign({},$TyHJ$var$common,{ballotCross:\"✘\",check:\"✔\",cross:\"✖\",ellipsisLarge:\"⋯\",ellipsis:\"…\",info:\"ℹ\",question:\"?\",questionFull:\"?\",questionSmall:\"﹖\",pointer:$TyHJ$var$isLinux?\"▸\":\"❯\",pointerSmall:$TyHJ$var$isLinux?\"‣\":\"›\",radioOff:\"◯\",radioOn:\"◉\",warning:\"⚠\"});$TyHJ$exports=$TyHJ$var$isWindows&&!$TyHJ$var$isHyper?$TyHJ$var$windows:$TyHJ$var$other,Reflect.defineProperty($TyHJ$exports,\"common\",{enumerable:!1,value:$TyHJ$var$common}),Reflect.defineProperty($TyHJ$exports,\"windows\",{enumerable:!1,value:$TyHJ$var$windows}),Reflect.defineProperty($TyHJ$exports,\"other\",{enumerable:!1,value:$TyHJ$var$other});"},"sourceMaps":null,"error":null,"hash":"0cee4b278b3ff5ef946a927f173eaab5","cacheData":{"env":{"TERM_PROGRAM":"vscode"},"imports":{"$require$process":["process","*"]},"exports":{},"wildcards":[],"sideEffects":true,"isCommonJS":true,"shouldWrap":true}} | ||
{"id":"TyHJ","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612784706410},{"name":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\package.json","includedInParent":true,"mtime":1604412746700},{"name":"process","parent":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\symbols.js","resolved":"D:\\git\\dzeio\\libs\\node_modules\\process\\browser.js"}],"generated":{"js":"var $TyHJ$exports={},$TyHJ$var$process=$parcel$require(\"TyHJ\",\"process\"),$TyHJ$var$isHyper=!1,$TyHJ$var$isWindows=\"win32\"===$TyHJ$var$process.platform,$TyHJ$var$isLinux=\"linux\"===$TyHJ$var$process.platform,$TyHJ$var$common={ballotDisabled:\"☒\",ballotOff:\"☐\",ballotOn:\"☑\",bullet:\"•\",bulletWhite:\"◦\",fullBlock:\"█\",heart:\"❤\",identicalTo:\"≡\",line:\"─\",mark:\"※\",middot:\"·\",minus:\"-\",multiplication:\"×\",obelus:\"÷\",pencilDownRight:\"✎\",pencilRight:\"✏\",pencilUpRight:\"✐\",percent:\"%\",pilcrow2:\"❡\",pilcrow:\"¶\",plusMinus:\"±\",section:\"§\",starsOff:\"☆\",starsOn:\"★\",upDownArrow:\"↕\"},$TyHJ$var$windows=Object.assign({},$TyHJ$var$common,{check:\"√\",cross:\"×\",ellipsisLarge:\"...\",ellipsis:\"...\",info:\"i\",question:\"?\",questionSmall:\"?\",pointer:\">\",pointerSmall:\"»\",radioOff:\"( )\",radioOn:\"(*)\",warning:\"‼\"}),$TyHJ$var$other=Object.assign({},$TyHJ$var$common,{ballotCross:\"✘\",check:\"✔\",cross:\"✖\",ellipsisLarge:\"⋯\",ellipsis:\"…\",info:\"ℹ\",question:\"?\",questionFull:\"?\",questionSmall:\"﹖\",pointer:$TyHJ$var$isLinux?\"▸\":\"❯\",pointerSmall:$TyHJ$var$isLinux?\"‣\":\"›\",radioOff:\"◯\",radioOn:\"◉\",warning:\"⚠\"});$TyHJ$exports=$TyHJ$var$isWindows&&!$TyHJ$var$isHyper?$TyHJ$var$windows:$TyHJ$var$other,Reflect.defineProperty($TyHJ$exports,\"common\",{enumerable:!1,value:$TyHJ$var$common}),Reflect.defineProperty($TyHJ$exports,\"windows\",{enumerable:!1,value:$TyHJ$var$windows}),Reflect.defineProperty($TyHJ$exports,\"other\",{enumerable:!1,value:$TyHJ$var$other});"},"sourceMaps":null,"error":null,"hash":"0cee4b278b3ff5ef946a927f173eaab5","cacheData":{"env":{"TERM_PROGRAM":"vscode"},"imports":{"$require$process":["process","*"]},"exports":{},"wildcards":[],"sideEffects":true,"isCommonJS":true,"shouldWrap":true}} |
@@ -1,1 +0,1 @@ | ||
{"id":"shls","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\tsconfig.json","includedInParent":true,"mtime":1612779389372},{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612780016879},{"name":"ansi-colors","loc":{"line":8,"column":58},"parent":"D:\\git\\dzeio\\libs\\packages\\logger\\src\\Logger.ts","resolved":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\index.js"}],"generated":{"js":"var $shls$exports={};function $shls$var$_typeof(t){return($shls$var$_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}$parcel$require(\"shls\",\"ansi-colors\");var $shls$var$__spreadArrays=$shls$exports&&$shls$exports.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var r=Array(t),n=0;for(o=0;o<e;o++)for(var s=arguments[o],i=0,p=s.length;i<p;i++,n++)r[n]=s[i];return r},$shls$export$default=function(){function t(o){void 0===o&&(o=\"Logger\"),this.prefix=o,this.memory=console.memory,this.Console=console.Console,this.queue=[],this.blocked=!1,this.countCount={},this.timeCount={},t.loggers.push(this),\"undefined\"!=typeof InstallTrigger&&($shls$import$colors.enabled=!1)}return t.isBlocked=function(t){for(var o=0,e=this.loggers;o<e.length;o++){var r=e[o];r.blocked=t,t||r.processQueue()}},t.forceTheme=function(t){this.theme=t},t.prototype.assert=function(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(!t)return this.error.apply(this,$shls$var$__spreadArrays([\"Assertion failed:\"],o))},t.prototype.clear=function(){console.clear()},t.prototype.count=function(t){void 0===t&&(t=\"default\"),Object.prototype.hasOwnProperty.call(this.countCount,t)||(this.countCount[t]=0),this.log(t+\":\",++this.countCount[t])},t.prototype.countReset=function(t){void 0===t&&(t=\"default\"),delete this.countCount[t]},t.prototype.debug=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"debug\",t)},t.prototype.dir=function(t,o){if(\"object\"!==$shls$var$_typeof(t))return this.log(t);this.log(\"Method not fully implemented\"),\"undefined\"==typeof window?console.dir(t,o):console.dir(t)},t.prototype.dirxml=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"dirxml\",t)},t.prototype.error=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"error\",t)},t.prototype.exception=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.error.apply(this,t)},t.prototype.group=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.group.apply(console,t)},t.prototype.groupCollapsed=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.group.apply(this,t)},t.prototype.groupEnd=function(){console.groupEnd()},t.prototype.info=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"info\",t)},t.prototype.log=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"log\",t)},t.prototype.profile=function(t){if(!console.profile)throw new Error(\"profile don't exist in the current contexte\");console.profile(t)},t.prototype.profileEnd=function(t){console.profileEnd(t)},t.prototype.table=function(t,o){console.table(t,o)},t.prototype.time=function(t){void 0===t&&(t=\"default\"),Object.prototype.hasOwnProperty.call(this.timeCount,t)?this.warn(\"Timer '\"+t+\"' already exists.\"):this.timeCount[t]=new Date},t.prototype.timeEnd=function(t){void 0===t&&(t=\"default\");var o=(new Date).getTime()-this.timeCount[t].getTime();this.log(t+\": \"+o+\"ms - Timer ended\"),delete this.timeCount[t]},t.prototype.timeLog=function(t){void 0===t&&(t=\"default\");for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(this.timeCount[t]){var r=(new Date).getTime()-this.timeCount[t].getTime();this.log.apply(this,$shls$var$__spreadArrays([t+\": \"+r+\"ms\"],o))}else this.warn(\"Timer '\"+t+\"' does not exist\")},t.prototype.timeStamp=function(t){console.timeStamp(t)},t.prototype.trace=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"trace\",t)},t.prototype.warn=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"warn\",t)},t.prototype.urgent=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.log.apply(console,this.formatMessage(t))},t.prototype.process=function(t,o){this.queue.push({type:t,msg:this.formatMessage(o)}),this.processQueue()},t.prototype.formatMessage=function(o){var e=this.prefix,r=e.length;t.prefixLen<r&&(t.prefixLen=r);var n=[\"\",\"\"];if(t.prefixLen>r){var s=t.prefixLen-r,i=s/2;n[0]=this.buildSpace(i-(s%2!=0?1:0)),n[1]=this.buildSpace(i)}return[\"\"+this.blackOrWhite(\"[ \")+n[0]+$shls$import$blue(e)+n[1]+this.blackOrWhite(\" ]\")+\":\"].concat(o.map(function(t){return\"object\"===$shls$var$_typeof(t)?t:void 0===t?$shls$import$yellow(\"undefined\"):null===t?$shls$import$yellow(\"null\"):\"string\"!=typeof t?$shls$import$yellow(t.toString()):$shls$import$green(t)}))},t.prototype.processQueue=function(){for(;this.queue.length>0&&!this.blocked;){var t=this.queue.shift();t&&(\"trace\"===t.type&&console.log(t.msg.shift()),console[t.type].apply(console,t.msg))}},t.prototype.buildSpace=function(t){return\"\".padStart(t,\" \")},t.prototype.blackOrWhite=function(o){return!t.theme&&\"undefined\"!=typeof window||\"light\"===t.theme?$shls$import$black(o):$shls$import$white(o)},t.prefixLen=0,t.theme=void 0,t.loggers=[],t}();$shls$exports.default=$shls$export$default;var $shls$export$logger=new $shls$export$default;$shls$exports.logger=$shls$export$logger;"},"sourceMaps":null,"error":null,"hash":"e9ae8e2837d497e9863191b54e7f0641","cacheData":{"env":{},"imports":{"$shls$import$colors":["ansi-colors","default"],"$shls$import$black":["ansi-colors","black"],"$shls$import$white":["ansi-colors","white"],"$shls$import$blue":["ansi-colors","blue"],"$shls$import$yellow":["ansi-colors","yellow"],"$shls$import$green":["ansi-colors","green"]},"exports":{"default":"$shls$export$default","logger":"$shls$export$logger"},"wildcards":[],"sideEffects":true,"isCommonJS":true,"isES6Module":true,"shouldWrap":false}} | ||
{"id":"shls","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\tsconfig.json","includedInParent":true,"mtime":1612779389372},{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612784706410},{"name":"ansi-colors","loc":{"line":8,"column":58},"parent":"D:\\git\\dzeio\\libs\\packages\\logger\\src\\Logger.ts","resolved":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\index.js"}],"generated":{"js":"var $shls$exports={};function $shls$var$_typeof(t){return($shls$var$_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}$parcel$require(\"shls\",\"ansi-colors\");var $shls$var$__spreadArrays=$shls$exports&&$shls$exports.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var r=Array(t),n=0;for(o=0;o<e;o++)for(var s=arguments[o],i=0,p=s.length;i<p;i++,n++)r[n]=s[i];return r},$shls$export$default=function(){function t(o){void 0===o&&(o=\"Logger\"),this.prefix=o,this.memory=console.memory,this.Console=console.Console,this.queue=[],this.blocked=!1,this.countCount={},this.timeCount={},t.loggers.push(this),\"undefined\"!=typeof InstallTrigger&&($shls$import$colors.enabled=!1)}return t.isBlocked=function(t){for(var o=0,e=this.loggers;o<e.length;o++){var r=e[o];r.blocked=t,t||r.processQueue()}},t.forceTheme=function(t){this.theme=t},t.prototype.assert=function(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(!t)return this.error.apply(this,$shls$var$__spreadArrays([\"Assertion failed:\"],o))},t.prototype.clear=function(){console.clear()},t.prototype.count=function(t){void 0===t&&(t=\"default\"),Object.prototype.hasOwnProperty.call(this.countCount,t)||(this.countCount[t]=0),this.log(t+\":\",++this.countCount[t])},t.prototype.countReset=function(t){void 0===t&&(t=\"default\"),delete this.countCount[t]},t.prototype.debug=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"debug\",t)},t.prototype.dir=function(t,o){if(\"object\"!==$shls$var$_typeof(t))return this.log(t);this.log(\"Method not fully implemented\"),\"undefined\"==typeof window?console.dir(t,o):console.dir(t)},t.prototype.dirxml=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"dirxml\",t)},t.prototype.error=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"error\",t)},t.prototype.exception=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.error.apply(this,t)},t.prototype.group=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.group.apply(console,t)},t.prototype.groupCollapsed=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.group.apply(this,t)},t.prototype.groupEnd=function(){console.groupEnd()},t.prototype.info=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"info\",t)},t.prototype.log=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"log\",t)},t.prototype.profile=function(t){if(!console.profile)throw new Error(\"profile don't exist in the current contexte\");console.profile(t)},t.prototype.profileEnd=function(t){console.profileEnd(t)},t.prototype.table=function(t,o){console.table(t,o)},t.prototype.time=function(t){void 0===t&&(t=\"default\"),Object.prototype.hasOwnProperty.call(this.timeCount,t)?this.warn(\"Timer '\"+t+\"' already exists.\"):this.timeCount[t]=new Date},t.prototype.timeEnd=function(t){void 0===t&&(t=\"default\");var o=(new Date).getTime()-this.timeCount[t].getTime();this.log(t+\": \"+o+\"ms - Timer ended\"),delete this.timeCount[t]},t.prototype.timeLog=function(t){void 0===t&&(t=\"default\");for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(this.timeCount[t]){var r=(new Date).getTime()-this.timeCount[t].getTime();this.log.apply(this,$shls$var$__spreadArrays([t+\": \"+r+\"ms\"],o))}else this.warn(\"Timer '\"+t+\"' does not exist\")},t.prototype.timeStamp=function(t){console.timeStamp(t)},t.prototype.trace=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"trace\",t)},t.prototype.warn=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process(\"warn\",t)},t.prototype.urgent=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.log.apply(console,this.formatMessage(t))},t.prototype.process=function(t,o){this.queue.push({type:t,msg:this.formatMessage(o)}),this.processQueue()},t.prototype.formatMessage=function(o){var e=this.prefix,r=e.length;t.prefixLen<r&&(t.prefixLen=r);var n=[\"\",\"\"];if(t.prefixLen>r){var s=t.prefixLen-r,i=s/2;n[0]=this.buildSpace(i-(s%2!=0?1:0)),n[1]=this.buildSpace(i)}return[\"\"+this.blackOrWhite(\"[ \")+n[0]+$shls$import$blue(e)+n[1]+this.blackOrWhite(\" ]\")+\":\"].concat(o.map(function(t){return\"object\"===$shls$var$_typeof(t)?t:void 0===t?$shls$import$yellow(\"undefined\"):null===t?$shls$import$yellow(\"null\"):\"string\"!=typeof t?$shls$import$yellow(t.toString()):$shls$import$green(t)}))},t.prototype.processQueue=function(){for(;this.queue.length>0&&!this.blocked;){var t=this.queue.shift();t&&(\"trace\"===t.type&&console.log(t.msg.shift()),console[t.type].apply(console,t.msg))}},t.prototype.buildSpace=function(t){return\"\".padStart(t,\" \")},t.prototype.blackOrWhite=function(o){return!t.theme&&\"undefined\"!=typeof window||\"light\"===t.theme?$shls$import$black(o):$shls$import$white(o)},t.prefixLen=0,t.theme=void 0,t.loggers=[],t}();$shls$exports.default=$shls$export$default;var $shls$export$logger=new $shls$export$default;$shls$exports.logger=$shls$export$logger;"},"sourceMaps":null,"error":null,"hash":"e9ae8e2837d497e9863191b54e7f0641","cacheData":{"env":{},"imports":{"$shls$import$colors":["ansi-colors","default"],"$shls$import$black":["ansi-colors","black"],"$shls$import$white":["ansi-colors","white"],"$shls$import$blue":["ansi-colors","blue"],"$shls$import$yellow":["ansi-colors","yellow"],"$shls$import$green":["ansi-colors","green"]},"exports":{"default":"$shls$export$default","logger":"$shls$export$logger"},"wildcards":[],"sideEffects":true,"isCommonJS":true,"isES6Module":true,"shouldWrap":false}} |
@@ -1,1 +0,1 @@ | ||
{"id":"QCba","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\tsconfig.json","includedInParent":true,"mtime":1612779389372},{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612780016879},{"name":"./Logger","loc":{"line":1,"column":19},"parent":"D:\\git\\dzeio\\libs\\packages\\logger\\src\\index.ts","resolved":"D:\\git\\dzeio\\libs\\packages\\logger\\src\\Logger.ts"}],"generated":{"js":"$parcel$require(\"QCba\",\"./Logger\"),window.Logger=$QCba$import$Logger,window.initConsole=function(){window.console=new $QCba$import$Logger(\"Console\")};"},"sourceMaps":null,"error":null,"hash":"423039492c65862f33358429fbbc4d18","cacheData":{"env":{},"imports":{"$QCba$import$Logger":["./Logger","default"]},"exports":{},"wildcards":[],"sideEffects":true,"shouldWrap":false}} | ||
{"id":"QCba","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\tsconfig.json","includedInParent":true,"mtime":1612779389372},{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612784706410},{"name":"./Logger","loc":{"line":1,"column":19},"parent":"D:\\git\\dzeio\\libs\\packages\\logger\\src\\index.ts","resolved":"D:\\git\\dzeio\\libs\\packages\\logger\\src\\Logger.ts"}],"generated":{"js":"$parcel$require(\"QCba\",\"./Logger\"),window.Logger=$QCba$import$Logger,window.logger=new $QCba$import$Logger(\"Console\"),window.initConsole=function(){console.log(\"// @deprecated Now use window.logger to get the correct logger\")};"},"sourceMaps":null,"error":null,"hash":"99132d68d88489cb5441ec4295a9de9d","cacheData":{"env":{},"imports":{"$QCba$import$Logger":["./Logger","default"]},"exports":{},"wildcards":[],"sideEffects":true,"shouldWrap":false}} |
@@ -1,1 +0,1 @@ | ||
{"id":"FT5O","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612780016879},{"name":"D:\\git\\dzeio\\libs\\node_modules\\process\\package.json","includedInParent":true,"mtime":1604750909532}],"generated":{"js":"\nvar $FT5O$var$cachedSetTimeout,$FT5O$var$cachedClearTimeout,$FT5O$exports={},$FT5O$var$process=$FT5O$exports={};function $FT5O$var$defaultSetTimout(){throw new Error(\"setTimeout has not been defined\")}function $FT5O$var$defaultClearTimeout(){throw new Error(\"clearTimeout has not been defined\")}function $FT5O$var$runTimeout($){if($FT5O$var$cachedSetTimeout===setTimeout)return setTimeout($,0);if(($FT5O$var$cachedSetTimeout===$FT5O$var$defaultSetTimout||!$FT5O$var$cachedSetTimeout)&&setTimeout)return $FT5O$var$cachedSetTimeout=setTimeout,setTimeout($,0);try{return $FT5O$var$cachedSetTimeout($,0)}catch(e){try{return $FT5O$var$cachedSetTimeout.call(null,$,0)}catch(e){return $FT5O$var$cachedSetTimeout.call(this,$,0)}}}function $FT5O$var$runClearTimeout($){if($FT5O$var$cachedClearTimeout===clearTimeout)return clearTimeout($);if(($FT5O$var$cachedClearTimeout===$FT5O$var$defaultClearTimeout||!$FT5O$var$cachedClearTimeout)&&clearTimeout)return $FT5O$var$cachedClearTimeout=clearTimeout,clearTimeout($);try{return $FT5O$var$cachedClearTimeout($)}catch(e){try{return $FT5O$var$cachedClearTimeout.call(null,$)}catch(e){return $FT5O$var$cachedClearTimeout.call(this,$)}}}!function(){try{$FT5O$var$cachedSetTimeout=\"function\"==typeof setTimeout?setTimeout:$FT5O$var$defaultSetTimout}catch($){$FT5O$var$cachedSetTimeout=$FT5O$var$defaultSetTimout}try{$FT5O$var$cachedClearTimeout=\"function\"==typeof clearTimeout?clearTimeout:$FT5O$var$defaultClearTimeout}catch($){$FT5O$var$cachedClearTimeout=$FT5O$var$defaultClearTimeout}}();var $FT5O$var$currentQueue,$FT5O$var$queue=[],$FT5O$var$draining=!1,$FT5O$var$queueIndex=-1;function $FT5O$var$cleanUpNextTick(){$FT5O$var$draining&&$FT5O$var$currentQueue&&($FT5O$var$draining=!1,$FT5O$var$currentQueue.length?$FT5O$var$queue=$FT5O$var$currentQueue.concat($FT5O$var$queue):$FT5O$var$queueIndex=-1,$FT5O$var$queue.length&&$FT5O$var$drainQueue())}function $FT5O$var$drainQueue(){if(!$FT5O$var$draining){var $=$FT5O$var$runTimeout($FT5O$var$cleanUpNextTick);$FT5O$var$draining=!0;for(var e=$FT5O$var$queue.length;e;){for($FT5O$var$currentQueue=$FT5O$var$queue,$FT5O$var$queue=[];++$FT5O$var$queueIndex<e;)$FT5O$var$currentQueue&&$FT5O$var$currentQueue[$FT5O$var$queueIndex].run();$FT5O$var$queueIndex=-1,e=$FT5O$var$queue.length}$FT5O$var$currentQueue=null,$FT5O$var$draining=!1,$FT5O$var$runClearTimeout($)}}function $FT5O$var$Item($,e){this.fun=$,this.array=e}function $FT5O$var$noop(){}$FT5O$var$process.nextTick=function($){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];$FT5O$var$queue.push(new $FT5O$var$Item($,e)),1!==$FT5O$var$queue.length||$FT5O$var$draining||$FT5O$var$runTimeout($FT5O$var$drainQueue)},$FT5O$var$Item.prototype.run=function(){this.fun.apply(null,this.array)},$FT5O$var$process.title=\"browser\",$FT5O$var$process.env={},$FT5O$var$process.argv=[],$FT5O$var$process.version=\"\",$FT5O$var$process.versions={},$FT5O$var$process.on=$FT5O$var$noop,$FT5O$var$process.addListener=$FT5O$var$noop,$FT5O$var$process.once=$FT5O$var$noop,$FT5O$var$process.off=$FT5O$var$noop,$FT5O$var$process.removeListener=$FT5O$var$noop,$FT5O$var$process.removeAllListeners=$FT5O$var$noop,$FT5O$var$process.emit=$FT5O$var$noop,$FT5O$var$process.prependListener=$FT5O$var$noop,$FT5O$var$process.prependOnceListener=$FT5O$var$noop,$FT5O$var$process.listeners=function($){return[]},$FT5O$var$process.binding=function($){throw new Error(\"process.binding is not supported\")},$FT5O$var$process.cwd=function(){return\"/\"},$FT5O$var$process.chdir=function($){throw new Error(\"process.chdir is not supported\")},$FT5O$var$process.umask=function(){return 0};"},"sourceMaps":null,"error":null,"hash":"b441e0e33514746225ec1e399e2e2a3e","cacheData":{"env":{},"imports":{},"exports":{},"wildcards":[],"sideEffects":true,"isCommonJS":true,"shouldWrap":true}} | ||
{"id":"FT5O","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612784706410},{"name":"D:\\git\\dzeio\\libs\\node_modules\\process\\package.json","includedInParent":true,"mtime":1604750909532}],"generated":{"js":"\nvar $FT5O$var$cachedSetTimeout,$FT5O$var$cachedClearTimeout,$FT5O$exports={},$FT5O$var$process=$FT5O$exports={};function $FT5O$var$defaultSetTimout(){throw new Error(\"setTimeout has not been defined\")}function $FT5O$var$defaultClearTimeout(){throw new Error(\"clearTimeout has not been defined\")}function $FT5O$var$runTimeout($){if($FT5O$var$cachedSetTimeout===setTimeout)return setTimeout($,0);if(($FT5O$var$cachedSetTimeout===$FT5O$var$defaultSetTimout||!$FT5O$var$cachedSetTimeout)&&setTimeout)return $FT5O$var$cachedSetTimeout=setTimeout,setTimeout($,0);try{return $FT5O$var$cachedSetTimeout($,0)}catch(e){try{return $FT5O$var$cachedSetTimeout.call(null,$,0)}catch(e){return $FT5O$var$cachedSetTimeout.call(this,$,0)}}}function $FT5O$var$runClearTimeout($){if($FT5O$var$cachedClearTimeout===clearTimeout)return clearTimeout($);if(($FT5O$var$cachedClearTimeout===$FT5O$var$defaultClearTimeout||!$FT5O$var$cachedClearTimeout)&&clearTimeout)return $FT5O$var$cachedClearTimeout=clearTimeout,clearTimeout($);try{return $FT5O$var$cachedClearTimeout($)}catch(e){try{return $FT5O$var$cachedClearTimeout.call(null,$)}catch(e){return $FT5O$var$cachedClearTimeout.call(this,$)}}}!function(){try{$FT5O$var$cachedSetTimeout=\"function\"==typeof setTimeout?setTimeout:$FT5O$var$defaultSetTimout}catch($){$FT5O$var$cachedSetTimeout=$FT5O$var$defaultSetTimout}try{$FT5O$var$cachedClearTimeout=\"function\"==typeof clearTimeout?clearTimeout:$FT5O$var$defaultClearTimeout}catch($){$FT5O$var$cachedClearTimeout=$FT5O$var$defaultClearTimeout}}();var $FT5O$var$currentQueue,$FT5O$var$queue=[],$FT5O$var$draining=!1,$FT5O$var$queueIndex=-1;function $FT5O$var$cleanUpNextTick(){$FT5O$var$draining&&$FT5O$var$currentQueue&&($FT5O$var$draining=!1,$FT5O$var$currentQueue.length?$FT5O$var$queue=$FT5O$var$currentQueue.concat($FT5O$var$queue):$FT5O$var$queueIndex=-1,$FT5O$var$queue.length&&$FT5O$var$drainQueue())}function $FT5O$var$drainQueue(){if(!$FT5O$var$draining){var $=$FT5O$var$runTimeout($FT5O$var$cleanUpNextTick);$FT5O$var$draining=!0;for(var e=$FT5O$var$queue.length;e;){for($FT5O$var$currentQueue=$FT5O$var$queue,$FT5O$var$queue=[];++$FT5O$var$queueIndex<e;)$FT5O$var$currentQueue&&$FT5O$var$currentQueue[$FT5O$var$queueIndex].run();$FT5O$var$queueIndex=-1,e=$FT5O$var$queue.length}$FT5O$var$currentQueue=null,$FT5O$var$draining=!1,$FT5O$var$runClearTimeout($)}}function $FT5O$var$Item($,e){this.fun=$,this.array=e}function $FT5O$var$noop(){}$FT5O$var$process.nextTick=function($){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];$FT5O$var$queue.push(new $FT5O$var$Item($,e)),1!==$FT5O$var$queue.length||$FT5O$var$draining||$FT5O$var$runTimeout($FT5O$var$drainQueue)},$FT5O$var$Item.prototype.run=function(){this.fun.apply(null,this.array)},$FT5O$var$process.title=\"browser\",$FT5O$var$process.env={},$FT5O$var$process.argv=[],$FT5O$var$process.version=\"\",$FT5O$var$process.versions={},$FT5O$var$process.on=$FT5O$var$noop,$FT5O$var$process.addListener=$FT5O$var$noop,$FT5O$var$process.once=$FT5O$var$noop,$FT5O$var$process.off=$FT5O$var$noop,$FT5O$var$process.removeListener=$FT5O$var$noop,$FT5O$var$process.removeAllListeners=$FT5O$var$noop,$FT5O$var$process.emit=$FT5O$var$noop,$FT5O$var$process.prependListener=$FT5O$var$noop,$FT5O$var$process.prependOnceListener=$FT5O$var$noop,$FT5O$var$process.listeners=function($){return[]},$FT5O$var$process.binding=function($){throw new Error(\"process.binding is not supported\")},$FT5O$var$process.cwd=function(){return\"/\"},$FT5O$var$process.chdir=function($){throw new Error(\"process.chdir is not supported\")},$FT5O$var$process.umask=function(){return 0};"},"sourceMaps":null,"error":null,"hash":"b441e0e33514746225ec1e399e2e2a3e","cacheData":{"env":{},"imports":{},"exports":{},"wildcards":[],"sideEffects":true,"isCommonJS":true,"shouldWrap":true}} |
@@ -1,1 +0,1 @@ | ||
{"id":"s6s2","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612780016879},{"name":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\package.json","includedInParent":true,"mtime":1604412746700},{"name":"./symbols","loc":{"line":171,"column":27},"shouldWrap":true,"parent":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\index.js","resolved":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\symbols.js"},{"name":"process","parent":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\index.js","resolved":"D:\\git\\dzeio\\libs\\node_modules\\process\\browser.js"}],"generated":{"js":"var $s6s2$var$define,$s6s2$exports={},$s6s2$var$process=$parcel$require(\"s6s2\",\"process\");function $s6s2$var$_toConsumableArray(r){return $s6s2$var$_arrayWithoutHoles(r)||$s6s2$var$_iterableToArray(r)||$s6s2$var$_unsupportedIterableToArray(r)||$s6s2$var$_nonIterableSpread()}function $s6s2$var$_nonIterableSpread(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function $s6s2$var$_unsupportedIterableToArray(r,e){if(r){if(\"string\"==typeof r)return $s6s2$var$_arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return\"Object\"===t&&r.constructor&&(t=r.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(r):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$s6s2$var$_arrayLikeToArray(r,e):void 0}}function $s6s2$var$_iterableToArray(r){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}function $s6s2$var$_arrayWithoutHoles(r){if(Array.isArray(r))return $s6s2$var$_arrayLikeToArray(r)}function $s6s2$var$_arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function $s6s2$var$_typeof(r){return($s6s2$var$_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&\"function\"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?\"symbol\":typeof r})(r)}var $s6s2$var$isObject=function(r){return null!==r&&\"object\"===$s6s2$var$_typeof(r)&&!Array.isArray(r)},$s6s2$var$identity=function(r){return r},$s6s2$var$ANSI_REGEX=/[\\u001b\\u009b][[\\]#;?()]*(?:(?:(?:[^\\W_]*;?[^\\W_]*)\\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,$s6s2$var$create=function(){var r={enabled:!0,visible:!0,styles:{},keys:{}};\"FORCE_COLOR\"in $s6s2$var$process.env&&(r.enabled=!0);var e=function(r,e,t){return\"function\"==typeof r?r(e):r.wrap(e,t)},t=function(t,n){if(\"\"===t||null==t)return\"\";if(!1===r.enabled)return t;if(!1===r.visible)return\"\";var o=\"\"+t,a=o.includes(\"\\n\"),s=n.length;for(s>0&&n.includes(\"unstyle\")&&(n=$s6s2$var$_toConsumableArray(new Set([\"unstyle\"].concat($s6s2$var$_toConsumableArray(n)))).reverse());s-- >0;)o=e(r.styles[n[s]],o,a);return o},n=function(e,n,o){r.styles[e]=function(r){var e=r.open=\"\u001b[\".concat(r.codes[0],\"m\"),t=r.close=\"\u001b[\".concat(r.codes[1],\"m\"),n=r.regex=new RegExp(\"\\\\u001b\\\\[\".concat(r.codes[1],\"m\"),\"g\");return r.wrap=function(r,o){r.includes(t)&&(r=r.replace(n,t+e));var a=e+r+t;return o?a.replace(/\\r*\\n/g,\"\".concat(t,\"$&\").concat(e)):a},r}({name:e,codes:n}),(r.keys[o]||(r.keys[o]=[])).push(e),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var n=function(r){return t(r,n.stack)};return Reflect.setPrototypeOf(n,r),n.stack=this.stack?this.stack.concat(e):[e],n}})};return n(\"reset\",[0,0],\"modifier\"),n(\"bold\",[1,22],\"modifier\"),n(\"dim\",[2,22],\"modifier\"),n(\"italic\",[3,23],\"modifier\"),n(\"underline\",[4,24],\"modifier\"),n(\"inverse\",[7,27],\"modifier\"),n(\"hidden\",[8,28],\"modifier\"),n(\"strikethrough\",[9,29],\"modifier\"),n(\"black\",[30,39],\"color\"),n(\"red\",[31,39],\"color\"),n(\"green\",[32,39],\"color\"),n(\"yellow\",[33,39],\"color\"),n(\"blue\",[34,39],\"color\"),n(\"magenta\",[35,39],\"color\"),n(\"cyan\",[36,39],\"color\"),n(\"white\",[37,39],\"color\"),n(\"gray\",[90,39],\"color\"),n(\"grey\",[90,39],\"color\"),n(\"bgBlack\",[40,49],\"bg\"),n(\"bgRed\",[41,49],\"bg\"),n(\"bgGreen\",[42,49],\"bg\"),n(\"bgYellow\",[43,49],\"bg\"),n(\"bgBlue\",[44,49],\"bg\"),n(\"bgMagenta\",[45,49],\"bg\"),n(\"bgCyan\",[46,49],\"bg\"),n(\"bgWhite\",[47,49],\"bg\"),n(\"blackBright\",[90,39],\"bright\"),n(\"redBright\",[91,39],\"bright\"),n(\"greenBright\",[92,39],\"bright\"),n(\"yellowBright\",[93,39],\"bright\"),n(\"blueBright\",[94,39],\"bright\"),n(\"magentaBright\",[95,39],\"bright\"),n(\"cyanBright\",[96,39],\"bright\"),n(\"whiteBright\",[97,39],\"bright\"),n(\"bgBlackBright\",[100,49],\"bgBright\"),n(\"bgRedBright\",[101,49],\"bgBright\"),n(\"bgGreenBright\",[102,49],\"bgBright\"),n(\"bgYellowBright\",[103,49],\"bgBright\"),n(\"bgBlueBright\",[104,49],\"bgBright\"),n(\"bgMagentaBright\",[105,49],\"bgBright\"),n(\"bgCyanBright\",[106,49],\"bgBright\"),n(\"bgWhiteBright\",[107,49],\"bgBright\"),r.ansiRegex=$s6s2$var$ANSI_REGEX,r.hasColor=r.hasAnsi=function(e){return r.ansiRegex.lastIndex=0,\"string\"==typeof e&&\"\"!==e&&r.ansiRegex.test(e)},r.alias=function(e,n){var o=\"string\"==typeof n?r[n]:n;if(\"function\"!=typeof o)throw new TypeError(\"Expected alias to be the name of an existing color (string) or a function\");o.stack||(Reflect.defineProperty(o,\"name\",{value:e}),r.styles[e]=o,o.stack=[e]),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var e=function(r){return t(r,e.stack)};return Reflect.setPrototypeOf(e,r),e.stack=this.stack?this.stack.concat(o.stack):o.stack,e}})},r.theme=function(e){if(!$s6s2$var$isObject(e))throw new TypeError(\"Expected theme to be an object\");for(var t of Object.keys(e))r.alias(t,e[t]);return r},r.alias(\"unstyle\",function(e){return\"string\"==typeof e&&\"\"!==e?(r.ansiRegex.lastIndex=0,e.replace(r.ansiRegex,\"\")):\"\"}),r.alias(\"noop\",function(r){return r}),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=$parcel$require(\"s6s2\",\"./symbols\"),r.define=n,r};($s6s2$exports=$s6s2$var$create()).create=$s6s2$var$create;"},"sourceMaps":null,"error":null,"hash":"35c3ba8ccb0fbc6dec5be5f9ac69d000","cacheData":{"env":{},"imports":{"$require$./symbols":["./symbols","*"],"$require$process":["process","*"]},"exports":{},"wildcards":[],"sideEffects":true,"isCommonJS":true,"shouldWrap":false}} | ||
{"id":"s6s2","dependencies":[{"name":"D:\\git\\dzeio\\libs\\packages\\logger\\package.json","includedInParent":true,"mtime":1612784706410},{"name":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\package.json","includedInParent":true,"mtime":1604412746700},{"name":"./symbols","loc":{"line":171,"column":27},"shouldWrap":true,"parent":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\index.js","resolved":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\symbols.js"},{"name":"process","parent":"D:\\git\\dzeio\\libs\\node_modules\\ansi-colors\\index.js","resolved":"D:\\git\\dzeio\\libs\\node_modules\\process\\browser.js"}],"generated":{"js":"var $s6s2$var$define,$s6s2$exports={},$s6s2$var$process=$parcel$require(\"s6s2\",\"process\");function $s6s2$var$_toConsumableArray(r){return $s6s2$var$_arrayWithoutHoles(r)||$s6s2$var$_iterableToArray(r)||$s6s2$var$_unsupportedIterableToArray(r)||$s6s2$var$_nonIterableSpread()}function $s6s2$var$_nonIterableSpread(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function $s6s2$var$_unsupportedIterableToArray(r,e){if(r){if(\"string\"==typeof r)return $s6s2$var$_arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return\"Object\"===t&&r.constructor&&(t=r.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(r):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$s6s2$var$_arrayLikeToArray(r,e):void 0}}function $s6s2$var$_iterableToArray(r){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}function $s6s2$var$_arrayWithoutHoles(r){if(Array.isArray(r))return $s6s2$var$_arrayLikeToArray(r)}function $s6s2$var$_arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function $s6s2$var$_typeof(r){return($s6s2$var$_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&\"function\"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?\"symbol\":typeof r})(r)}var $s6s2$var$isObject=function(r){return null!==r&&\"object\"===$s6s2$var$_typeof(r)&&!Array.isArray(r)},$s6s2$var$identity=function(r){return r},$s6s2$var$ANSI_REGEX=/[\\u001b\\u009b][[\\]#;?()]*(?:(?:(?:[^\\W_]*;?[^\\W_]*)\\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,$s6s2$var$create=function(){var r={enabled:!0,visible:!0,styles:{},keys:{}};\"FORCE_COLOR\"in $s6s2$var$process.env&&(r.enabled=!0);var e=function(r,e,t){return\"function\"==typeof r?r(e):r.wrap(e,t)},t=function(t,n){if(\"\"===t||null==t)return\"\";if(!1===r.enabled)return t;if(!1===r.visible)return\"\";var o=\"\"+t,a=o.includes(\"\\n\"),s=n.length;for(s>0&&n.includes(\"unstyle\")&&(n=$s6s2$var$_toConsumableArray(new Set([\"unstyle\"].concat($s6s2$var$_toConsumableArray(n)))).reverse());s-- >0;)o=e(r.styles[n[s]],o,a);return o},n=function(e,n,o){r.styles[e]=function(r){var e=r.open=\"\u001b[\".concat(r.codes[0],\"m\"),t=r.close=\"\u001b[\".concat(r.codes[1],\"m\"),n=r.regex=new RegExp(\"\\\\u001b\\\\[\".concat(r.codes[1],\"m\"),\"g\");return r.wrap=function(r,o){r.includes(t)&&(r=r.replace(n,t+e));var a=e+r+t;return o?a.replace(/\\r*\\n/g,\"\".concat(t,\"$&\").concat(e)):a},r}({name:e,codes:n}),(r.keys[o]||(r.keys[o]=[])).push(e),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var n=function(r){return t(r,n.stack)};return Reflect.setPrototypeOf(n,r),n.stack=this.stack?this.stack.concat(e):[e],n}})};return n(\"reset\",[0,0],\"modifier\"),n(\"bold\",[1,22],\"modifier\"),n(\"dim\",[2,22],\"modifier\"),n(\"italic\",[3,23],\"modifier\"),n(\"underline\",[4,24],\"modifier\"),n(\"inverse\",[7,27],\"modifier\"),n(\"hidden\",[8,28],\"modifier\"),n(\"strikethrough\",[9,29],\"modifier\"),n(\"black\",[30,39],\"color\"),n(\"red\",[31,39],\"color\"),n(\"green\",[32,39],\"color\"),n(\"yellow\",[33,39],\"color\"),n(\"blue\",[34,39],\"color\"),n(\"magenta\",[35,39],\"color\"),n(\"cyan\",[36,39],\"color\"),n(\"white\",[37,39],\"color\"),n(\"gray\",[90,39],\"color\"),n(\"grey\",[90,39],\"color\"),n(\"bgBlack\",[40,49],\"bg\"),n(\"bgRed\",[41,49],\"bg\"),n(\"bgGreen\",[42,49],\"bg\"),n(\"bgYellow\",[43,49],\"bg\"),n(\"bgBlue\",[44,49],\"bg\"),n(\"bgMagenta\",[45,49],\"bg\"),n(\"bgCyan\",[46,49],\"bg\"),n(\"bgWhite\",[47,49],\"bg\"),n(\"blackBright\",[90,39],\"bright\"),n(\"redBright\",[91,39],\"bright\"),n(\"greenBright\",[92,39],\"bright\"),n(\"yellowBright\",[93,39],\"bright\"),n(\"blueBright\",[94,39],\"bright\"),n(\"magentaBright\",[95,39],\"bright\"),n(\"cyanBright\",[96,39],\"bright\"),n(\"whiteBright\",[97,39],\"bright\"),n(\"bgBlackBright\",[100,49],\"bgBright\"),n(\"bgRedBright\",[101,49],\"bgBright\"),n(\"bgGreenBright\",[102,49],\"bgBright\"),n(\"bgYellowBright\",[103,49],\"bgBright\"),n(\"bgBlueBright\",[104,49],\"bgBright\"),n(\"bgMagentaBright\",[105,49],\"bgBright\"),n(\"bgCyanBright\",[106,49],\"bgBright\"),n(\"bgWhiteBright\",[107,49],\"bgBright\"),r.ansiRegex=$s6s2$var$ANSI_REGEX,r.hasColor=r.hasAnsi=function(e){return r.ansiRegex.lastIndex=0,\"string\"==typeof e&&\"\"!==e&&r.ansiRegex.test(e)},r.alias=function(e,n){var o=\"string\"==typeof n?r[n]:n;if(\"function\"!=typeof o)throw new TypeError(\"Expected alias to be the name of an existing color (string) or a function\");o.stack||(Reflect.defineProperty(o,\"name\",{value:e}),r.styles[e]=o,o.stack=[e]),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var e=function(r){return t(r,e.stack)};return Reflect.setPrototypeOf(e,r),e.stack=this.stack?this.stack.concat(o.stack):o.stack,e}})},r.theme=function(e){if(!$s6s2$var$isObject(e))throw new TypeError(\"Expected theme to be an object\");for(var t of Object.keys(e))r.alias(t,e[t]);return r},r.alias(\"unstyle\",function(e){return\"string\"==typeof e&&\"\"!==e?(r.ansiRegex.lastIndex=0,e.replace(r.ansiRegex,\"\")):\"\"}),r.alias(\"noop\",function(r){return r}),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=$parcel$require(\"s6s2\",\"./symbols\"),r.define=n,r};($s6s2$exports=$s6s2$var$create()).create=$s6s2$var$create;"},"sourceMaps":null,"error":null,"hash":"35c3ba8ccb0fbc6dec5be5f9ac69d000","cacheData":{"env":{},"imports":{"$require$./symbols":["./symbols","*"],"$require$process":["process","*"]},"exports":{},"wildcards":[],"sideEffects":true,"isCommonJS":true,"shouldWrap":false}} |
@@ -9,2 +9,8 @@ # Changelog | ||
## [2.0.4] - 2021-02-08 | ||
### Removed | ||
- initConsole Function as it break the Console object (#17) | ||
## [2.0.2] - 2020-10-20 | ||
@@ -64,2 +70,3 @@ | ||
[2.0.3]: https://github.com/dzeiocom/libs/releases/tag/%40dzeio%2Flogger%402.0.3 | ||
[2.0.2]: https://github.com/dzeiocom/libs/releases/tag/%40dzeio%2Flogger%402.0.2 | ||
@@ -66,0 +73,0 @@ [2.0.1]: https://github.com/dzeiocom/libs/releases/tag/%40dzeio%2Flogger%402.0.1 |
@@ -1,1 +0,1 @@ | ||
(function () {function M(a){return a&&a.__esModule?{d:a.default}:{d:a}}var k={};function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g,h,z,b,j,f,q,A,N=false;function u(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function B($){if(g===setTimeout)return setTimeout($,0);if((g===u||!g)&&setTimeout)return g=setTimeout,setTimeout($,0);try{return g($,0)}catch(e){try{return g.call(null,$,0)}catch(e){return g.call(this,$,0)}}}function O($){if(h===clearTimeout)return clearTimeout($);if((h===v||!h)&&clearTimeout)return h=clearTimeout,clearTimeout($);try{return h($)}catch(e){try{return h.call(null,$)}catch(e){return h.call(this,$)}}}function P(){q&&j&&(q=!1,j.length?f=j.concat(f):A=-1,f.length&&C())}function C(){if(!q){var $=B(P);q=!0;for(var e=f.length;e;){for(j=f,f=[];++A<e;)j&&j[A].run();A=-1,e=f.length}j=null,q=!1,O($)}}function D($,e){this.fun=$,this.array=e}function c(){}function E(){if(N)return;N=true;z={};b=z={};!function(){try{g="function"==typeof setTimeout?setTimeout:u}catch($){g=u}try{h="function"==typeof clearTimeout?clearTimeout:v}catch($){h=v}}();f=[];q=!1;A=-1;b.nextTick=function($){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new D($,e)),1!==f.length||q||B(C)},D.prototype.run=function(){this.fun.apply(null,this.array)},b.title="browser",b.env={},b.argv=[],b.version="",b.versions={},b.on=c,b.addListener=c,b.once=c,b.off=c,b.removeListener=c,b.removeAllListeners=c,b.emit=c,b.prependListener=c,b.prependOnceListener=c,b.listeners=function($){return[]},b.binding=function($){throw new Error("process.binding is not supported")},b.cwd=function(){return"/"},b.chdir=function($){throw new Error("process.chdir is not supported")},b.umask=function(){return 0}}var l,F,Q,R,G,w,H,I,S=false;function T(){if(S)return;S=true;l={};F=(E(),z);Q=!1;R="win32"===F.platform;G="linux"===F.platform;w={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"};H=Object.assign({},w,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",question:"?",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"});I=Object.assign({},w,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",question:"?",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:G?"\u25B8":"\u276F",pointerSmall:G?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});l=R&&!Q?H:I,Reflect.defineProperty(l,"common",{enumerable:!1,value:w}),Reflect.defineProperty(l,"windows",{enumerable:!1,value:H}),Reflect.defineProperty(l,"other",{enumerable:!1,value:I})}var a,d={},U=(E(),z);function J(r){return Y(r)||X(r)||W(r)||V()}function V(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function W(r,e){if(r){if("string"==typeof r)return x(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(r,e):void 0}}function X(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}function Y(r){if(Array.isArray(r))return x(r)}function x(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Z(r){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var _=function(r){return null!==r&&"object"===Z(r)&&!Array.isArray(r)},aa=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,K=function(){var r={enabled:!0,visible:!0,styles:{},keys:{}};"FORCE_COLOR"in U.env&&(r.enabled=!0);var e=function(r,e,t){return"function"==typeof r?r(e):r.wrap(e,t)},t=function(t,n){if(""===t||null==t)return"";if(!1===r.enabled)return t;if(!1===r.visible)return"";var o=""+t,a=o.includes("\n"),s=n.length;for(s>0&&n.includes("unstyle")&&(n=J(new Set(["unstyle"].concat(J(n)))).reverse());s-->0;)o=e(r.styles[n[s]],o,a);return o},n=function(e,n,o){r.styles[e]=function(r){var e=r.open="\x1B[".concat(r.codes[0],"m"),t=r.close="\x1B[".concat(r.codes[1],"m"),n=r.regex=new RegExp("\\u001b\\[".concat(r.codes[1],"m"),"g");return r.wrap=function(r,o){r.includes(t)&&(r=r.replace(n,t+e));var a=e+r+t;return o?a.replace(/\r*\n/g,"".concat(t,"$&").concat(e)):a},r}({name:e,codes:n}),(r.keys[o]||(r.keys[o]=[])).push(e),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var n=function(r){return t(r,n.stack)};return Reflect.setPrototypeOf(n,r),n.stack=this.stack?this.stack.concat(e):[e],n}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=aa,r.hasColor=r.hasAnsi=function(e){return r.ansiRegex.lastIndex=0,"string"==typeof e&&""!==e&&r.ansiRegex.test(e)},r.alias=function(e,n){var o="string"==typeof n?r[n]:n;if("function"!=typeof o)throw new TypeError("Expected alias to be the name of an existing color (string) or a function");o.stack||(Reflect.defineProperty(o,"name",{value:e}),r.styles[e]=o,o.stack=[e]),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var e=function(r){return t(r,e.stack)};return Reflect.setPrototypeOf(e,r),e.stack=this.stack?this.stack.concat(o.stack):o.stack,e}})},r.theme=function(e){if(!_(e))throw new TypeError("Expected theme to be an object");for(var t of Object.keys(e))r.alias(t,e[t]);return r},r.alias("unstyle",function(e){return"string"==typeof e&&""!==e?(r.ansiRegex.lastIndex=0,e.replace(r.ansiRegex,"")):""}),r.alias("noop",function(r){return r}),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=(T(),l),r.define=n,r};(d=K()).create=K;var L=k&&k.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var r=Array(t),n=0;for(o=0;o<e;o++)for(var s=arguments[o],i=0,p=s.length;i<p;i++,n++)r[n]=s[i];return r},m=function(){function t(o){var $s6s2$$interop$default=M(d);void 0===o&&(o="Logger"),this.prefix=o,this.memory=console.memory,this.Console=console.Console,this.queue=[],this.blocked=!1,this.countCount={},this.timeCount={},t.loggers.push(this),"undefined"!=typeof InstallTrigger&&($s6s2$$interop$default.d.enabled=!1)}return t.isBlocked=function(t){for(var o=0,e=this.loggers;o<e.length;o++){var r=e[o];r.blocked=t,t||r.processQueue()}},t.forceTheme=function(t){this.theme=t},t.prototype.assert=function(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(!t)return this.error.apply(this,L(["Assertion failed:"],o))},t.prototype.clear=function(){console.clear()},t.prototype.count=function(t){void 0===t&&(t="default"),Object.prototype.hasOwnProperty.call(this.countCount,t)||(this.countCount[t]=0),this.log(t+":",++this.countCount[t])},t.prototype.countReset=function(t){void 0===t&&(t="default"),delete this.countCount[t]},t.prototype.debug=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("debug",t)},t.prototype.dir=function(t,o){if("object"!==y(t))return this.log(t);this.log("Method not fully implemented"),"undefined"==typeof window?console.dir(t,o):console.dir(t)},t.prototype.dirxml=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("dirxml",t)},t.prototype.error=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("error",t)},t.prototype.exception=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.error.apply(this,t)},t.prototype.group=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.group.apply(console,t)},t.prototype.groupCollapsed=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.group.apply(this,t)},t.prototype.groupEnd=function(){console.groupEnd()},t.prototype.info=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("info",t)},t.prototype.log=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("log",t)},t.prototype.profile=function(t){if(!console.profile)throw new Error("profile don't exist in the current contexte");console.profile(t)},t.prototype.profileEnd=function(t){console.profileEnd(t)},t.prototype.table=function(t,o){console.table(t,o)},t.prototype.time=function(t){void 0===t&&(t="default"),Object.prototype.hasOwnProperty.call(this.timeCount,t)?this.warn("Timer '"+t+"' already exists."):this.timeCount[t]=new Date},t.prototype.timeEnd=function(t){void 0===t&&(t="default");var o=new Date().getTime()-this.timeCount[t].getTime();this.log(t+": "+o+"ms - Timer ended"),delete this.timeCount[t]},t.prototype.timeLog=function(t){void 0===t&&(t="default");for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(this.timeCount[t]){var r=new Date().getTime()-this.timeCount[t].getTime();this.log.apply(this,L([t+": "+r+"ms"],o))}else this.warn("Timer '"+t+"' does not exist")},t.prototype.timeStamp=function(t){console.timeStamp(t)},t.prototype.trace=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("trace",t)},t.prototype.warn=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("warn",t)},t.prototype.urgent=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.log.apply(console,this.formatMessage(t))},t.prototype.process=function(t,o){this.queue.push({type:t,msg:this.formatMessage(o)}),this.processQueue()},t.prototype.formatMessage=function(o){var e=this.prefix,r=e.length;t.prefixLen<r&&(t.prefixLen=r);var n=["",""];if(t.prefixLen>r){var s=t.prefixLen-r,i=s/2;n[0]=this.buildSpace(i-(s%2!=0?1:0)),n[1]=this.buildSpace(i)}return[""+this.blackOrWhite("[ ")+n[0]+d.blue(e)+n[1]+this.blackOrWhite(" ]")+":"].concat(o.map(function(t){return"object"===y(t)?t:void 0===t?d.yellow("undefined"):null===t?d.yellow("null"):"string"!=typeof t?d.yellow(t.toString()):d.green(t)}))},t.prototype.processQueue=function(){for(;this.queue.length>0&&!this.blocked;){var t=this.queue.shift();t&&("trace"===t.type&&console.log(t.msg.shift()),console[t.type].apply(console,t.msg))}},t.prototype.buildSpace=function(t){return"".padStart(t," ")},t.prototype.blackOrWhite=function(o){return!t.theme&&"undefined"!=typeof window||"light"===t.theme?d.black(o):d.white(o)},t.prefixLen=0,t.theme=void 0,t.loggers=[],t}();k.default=m;var ba=new m;k.logger=ba;window.Logger=m,window.initConsole=function(){window.console=new m("Console")};})(); | ||
(function () {function M(a){return a&&a.__esModule?{d:a.default}:{d:a}}var k={};function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g,h,z,b,j,f,q,A,N=false;function u(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function B($){if(g===setTimeout)return setTimeout($,0);if((g===u||!g)&&setTimeout)return g=setTimeout,setTimeout($,0);try{return g($,0)}catch(e){try{return g.call(null,$,0)}catch(e){return g.call(this,$,0)}}}function O($){if(h===clearTimeout)return clearTimeout($);if((h===v||!h)&&clearTimeout)return h=clearTimeout,clearTimeout($);try{return h($)}catch(e){try{return h.call(null,$)}catch(e){return h.call(this,$)}}}function P(){q&&j&&(q=!1,j.length?f=j.concat(f):A=-1,f.length&&C())}function C(){if(!q){var $=B(P);q=!0;for(var e=f.length;e;){for(j=f,f=[];++A<e;)j&&j[A].run();A=-1,e=f.length}j=null,q=!1,O($)}}function D($,e){this.fun=$,this.array=e}function c(){}function E(){if(N)return;N=true;z={};b=z={};!function(){try{g="function"==typeof setTimeout?setTimeout:u}catch($){g=u}try{h="function"==typeof clearTimeout?clearTimeout:v}catch($){h=v}}();f=[];q=!1;A=-1;b.nextTick=function($){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new D($,e)),1!==f.length||q||B(C)},D.prototype.run=function(){this.fun.apply(null,this.array)},b.title="browser",b.env={},b.argv=[],b.version="",b.versions={},b.on=c,b.addListener=c,b.once=c,b.off=c,b.removeListener=c,b.removeAllListeners=c,b.emit=c,b.prependListener=c,b.prependOnceListener=c,b.listeners=function($){return[]},b.binding=function($){throw new Error("process.binding is not supported")},b.cwd=function(){return"/"},b.chdir=function($){throw new Error("process.chdir is not supported")},b.umask=function(){return 0}}var l,F,Q,R,G,w,H,I,S=false;function T(){if(S)return;S=true;l={};F=(E(),z);Q=!1;R="win32"===F.platform;G="linux"===F.platform;w={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"};H=Object.assign({},w,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",question:"?",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"});I=Object.assign({},w,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",question:"?",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:G?"\u25B8":"\u276F",pointerSmall:G?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});l=R&&!Q?H:I,Reflect.defineProperty(l,"common",{enumerable:!1,value:w}),Reflect.defineProperty(l,"windows",{enumerable:!1,value:H}),Reflect.defineProperty(l,"other",{enumerable:!1,value:I})}var a,d={},U=(E(),z);function J(r){return Y(r)||X(r)||W(r)||V()}function V(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function W(r,e){if(r){if("string"==typeof r)return x(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(r,e):void 0}}function X(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}function Y(r){if(Array.isArray(r))return x(r)}function x(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Z(r){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var _=function(r){return null!==r&&"object"===Z(r)&&!Array.isArray(r)},aa=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,K=function(){var r={enabled:!0,visible:!0,styles:{},keys:{}};"FORCE_COLOR"in U.env&&(r.enabled=!0);var e=function(r,e,t){return"function"==typeof r?r(e):r.wrap(e,t)},t=function(t,n){if(""===t||null==t)return"";if(!1===r.enabled)return t;if(!1===r.visible)return"";var o=""+t,a=o.includes("\n"),s=n.length;for(s>0&&n.includes("unstyle")&&(n=J(new Set(["unstyle"].concat(J(n)))).reverse());s-->0;)o=e(r.styles[n[s]],o,a);return o},n=function(e,n,o){r.styles[e]=function(r){var e=r.open="\x1B[".concat(r.codes[0],"m"),t=r.close="\x1B[".concat(r.codes[1],"m"),n=r.regex=new RegExp("\\u001b\\[".concat(r.codes[1],"m"),"g");return r.wrap=function(r,o){r.includes(t)&&(r=r.replace(n,t+e));var a=e+r+t;return o?a.replace(/\r*\n/g,"".concat(t,"$&").concat(e)):a},r}({name:e,codes:n}),(r.keys[o]||(r.keys[o]=[])).push(e),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var n=function(r){return t(r,n.stack)};return Reflect.setPrototypeOf(n,r),n.stack=this.stack?this.stack.concat(e):[e],n}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=aa,r.hasColor=r.hasAnsi=function(e){return r.ansiRegex.lastIndex=0,"string"==typeof e&&""!==e&&r.ansiRegex.test(e)},r.alias=function(e,n){var o="string"==typeof n?r[n]:n;if("function"!=typeof o)throw new TypeError("Expected alias to be the name of an existing color (string) or a function");o.stack||(Reflect.defineProperty(o,"name",{value:e}),r.styles[e]=o,o.stack=[e]),Reflect.defineProperty(r,e,{configurable:!0,enumerable:!0,set:function(t){r.alias(e,t)},get:function(){var e=function(r){return t(r,e.stack)};return Reflect.setPrototypeOf(e,r),e.stack=this.stack?this.stack.concat(o.stack):o.stack,e}})},r.theme=function(e){if(!_(e))throw new TypeError("Expected theme to be an object");for(var t of Object.keys(e))r.alias(t,e[t]);return r},r.alias("unstyle",function(e){return"string"==typeof e&&""!==e?(r.ansiRegex.lastIndex=0,e.replace(r.ansiRegex,"")):""}),r.alias("noop",function(r){return r}),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=(T(),l),r.define=n,r};(d=K()).create=K;var L=k&&k.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var r=Array(t),n=0;for(o=0;o<e;o++)for(var s=arguments[o],i=0,p=s.length;i<p;i++,n++)r[n]=s[i];return r},m=function(){function t(o){var $s6s2$$interop$default=M(d);void 0===o&&(o="Logger"),this.prefix=o,this.memory=console.memory,this.Console=console.Console,this.queue=[],this.blocked=!1,this.countCount={},this.timeCount={},t.loggers.push(this),"undefined"!=typeof InstallTrigger&&($s6s2$$interop$default.d.enabled=!1)}return t.isBlocked=function(t){for(var o=0,e=this.loggers;o<e.length;o++){var r=e[o];r.blocked=t,t||r.processQueue()}},t.forceTheme=function(t){this.theme=t},t.prototype.assert=function(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(!t)return this.error.apply(this,L(["Assertion failed:"],o))},t.prototype.clear=function(){console.clear()},t.prototype.count=function(t){void 0===t&&(t="default"),Object.prototype.hasOwnProperty.call(this.countCount,t)||(this.countCount[t]=0),this.log(t+":",++this.countCount[t])},t.prototype.countReset=function(t){void 0===t&&(t="default"),delete this.countCount[t]},t.prototype.debug=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("debug",t)},t.prototype.dir=function(t,o){if("object"!==y(t))return this.log(t);this.log("Method not fully implemented"),"undefined"==typeof window?console.dir(t,o):console.dir(t)},t.prototype.dirxml=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("dirxml",t)},t.prototype.error=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("error",t)},t.prototype.exception=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.error.apply(this,t)},t.prototype.group=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.group.apply(console,t)},t.prototype.groupCollapsed=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.group.apply(this,t)},t.prototype.groupEnd=function(){console.groupEnd()},t.prototype.info=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("info",t)},t.prototype.log=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("log",t)},t.prototype.profile=function(t){if(!console.profile)throw new Error("profile don't exist in the current contexte");console.profile(t)},t.prototype.profileEnd=function(t){console.profileEnd(t)},t.prototype.table=function(t,o){console.table(t,o)},t.prototype.time=function(t){void 0===t&&(t="default"),Object.prototype.hasOwnProperty.call(this.timeCount,t)?this.warn("Timer '"+t+"' already exists."):this.timeCount[t]=new Date},t.prototype.timeEnd=function(t){void 0===t&&(t="default");var o=new Date().getTime()-this.timeCount[t].getTime();this.log(t+": "+o+"ms - Timer ended"),delete this.timeCount[t]},t.prototype.timeLog=function(t){void 0===t&&(t="default");for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(this.timeCount[t]){var r=new Date().getTime()-this.timeCount[t].getTime();this.log.apply(this,L([t+": "+r+"ms"],o))}else this.warn("Timer '"+t+"' does not exist")},t.prototype.timeStamp=function(t){console.timeStamp(t)},t.prototype.trace=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("trace",t)},t.prototype.warn=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.process("warn",t)},t.prototype.urgent=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];console.log.apply(console,this.formatMessage(t))},t.prototype.process=function(t,o){this.queue.push({type:t,msg:this.formatMessage(o)}),this.processQueue()},t.prototype.formatMessage=function(o){var e=this.prefix,r=e.length;t.prefixLen<r&&(t.prefixLen=r);var n=["",""];if(t.prefixLen>r){var s=t.prefixLen-r,i=s/2;n[0]=this.buildSpace(i-(s%2!=0?1:0)),n[1]=this.buildSpace(i)}return[""+this.blackOrWhite("[ ")+n[0]+d.blue(e)+n[1]+this.blackOrWhite(" ]")+":"].concat(o.map(function(t){return"object"===y(t)?t:void 0===t?d.yellow("undefined"):null===t?d.yellow("null"):"string"!=typeof t?d.yellow(t.toString()):d.green(t)}))},t.prototype.processQueue=function(){for(;this.queue.length>0&&!this.blocked;){var t=this.queue.shift();t&&("trace"===t.type&&console.log(t.msg.shift()),console[t.type].apply(console,t.msg))}},t.prototype.buildSpace=function(t){return"".padStart(t," ")},t.prototype.blackOrWhite=function(o){return!t.theme&&"undefined"!=typeof window||"light"===t.theme?d.black(o):d.white(o)},t.prefixLen=0,t.theme=void 0,t.loggers=[],t}();k.default=m;var ba=new m;k.logger=ba;window.Logger=m,window.logger=new m("Console"),window.initConsole=function(){console.log("// @deprecated Now use window.logger to get the correct logger")};})(); |
{ | ||
"name": "@dzeio/logger", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "My Personnal Logger", | ||
@@ -29,3 +29,3 @@ "repository": { | ||
}, | ||
"gitHead": "799c0269c2f20ad17b83301b0852c468b8c1fd09" | ||
"gitHead": "cd898fde78ed529487519553b8ecacc8538265eb" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55495