diff --git a/CHANGELOG.md b/CHANGELOG.md index 02e96d1..d9dc758 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,18 @@ + +## 2.5.1 (2016-01-26) + + +* Delete unnecessary dependency ([831c4e2](https://github.com/kikobeats/acho/commit/831c4e2)) + + + # 2.5.0 (2016-01-25) * Add documentation ([c4795a5](https://github.com/kikobeats/acho/commit/c4795a5)) * Add symbol special keyword ([c287277](https://github.com/kikobeats/acho/commit/c287277)) +* Release 2.5.0 ([001ab8e](https://github.com/kikobeats/acho/commit/001ab8e)) * Separate align from diff ([134fa13](https://github.com/kikobeats/acho/commit/134fa13)) * update scripts ([cd64037](https://github.com/kikobeats/acho/commit/cd64037)) @@ -19,8 +28,8 @@ * Fix tests script ([cd34ec8](https://github.com/kikobeats/acho/commit/cd34ec8)) * Move prepublish into bumped step ([eefa46a](https://github.com/kikobeats/acho/commit/eefa46a)) * Update bumped config ([16128e6](https://github.com/kikobeats/acho/commit/16128e6)) -* update scripts ([d74876f](https://github.com/kikobeats/acho/commit/d74876f)) * Update scripts, more simple ([d5f4209](https://github.com/kikobeats/acho/commit/d5f4209)) +* update scripts ([d74876f](https://github.com/kikobeats/acho/commit/d74876f)) @@ -29,22 +38,22 @@ * 2.4.1 releases ([58c3b3d](https://github.com/kikobeats/acho/commit/58c3b3d)) +* Moved configurable stuff into Default ([f7c3b26](https://github.com/kikobeats/acho/commit/f7c3b26)) +* Update .travis.yml ([284724c](https://github.com/kikobeats/acho/commit/284724c)) +* Update README.md ([86cf60e](https://github.com/kikobeats/acho/commit/86cf60e)) +* Update README.md ([01aea77](https://github.com/kikobeats/acho/commit/01aea77)) * added existential-assign dep ([f8b35d4](https://github.com/kikobeats/acho/commit/f8b35d4)) * better gif, round 2. ([675710e](https://github.com/kikobeats/acho/commit/675710e)) * bye fat arrow ([431b1d1](https://github.com/kikobeats/acho/commit/431b1d1)) * composition over inheritance ([963907e](https://github.com/kikobeats/acho/commit/963907e)) -* little refactor ([3906739](https://github.com/kikobeats/acho/commit/3906739)) * little refactor ([28f225c](https://github.com/kikobeats/acho/commit/28f225c)) -* Moved configurable stuff into Default ([f7c3b26](https://github.com/kikobeats/acho/commit/f7c3b26)) +* little refactor ([3906739](https://github.com/kikobeats/acho/commit/3906739)) * moved getEnvironment inot CONST.ENV ([403cf73](https://github.com/kikobeats/acho/commit/403cf73)) * no moar new keyword ([8417785](https://github.com/kikobeats/acho/commit/8417785)) * refactor test, more expressive ([cb0f665](https://github.com/kikobeats/acho/commit/cb0f665)) * refactored, less is more ([a2edabd](https://github.com/kikobeats/acho/commit/a2edabd)) * removed new keyword, not necessary any more ([85bc524](https://github.com/kikobeats/acho/commit/85bc524)) * removed unnecessary new keyword ([9905b4a](https://github.com/kikobeats/acho/commit/9905b4a)) -* Update .travis.yml ([284724c](https://github.com/kikobeats/acho/commit/284724c)) -* Update README.md ([01aea77](https://github.com/kikobeats/acho/commit/01aea77)) -* Update README.md ([86cf60e](https://github.com/kikobeats/acho/commit/86cf60e)) * updated ([b603a19](https://github.com/kikobeats/acho/commit/b603a19)) * updated bumped settings ([1010569](https://github.com/kikobeats/acho/commit/1010569)) @@ -88,11 +97,11 @@ * 2.2.0 releases ([27cb3b0](https://github.com/kikobeats/acho/commit/27cb3b0)) -* added keyword parameter in constructor ([967023d](https://github.com/kikobeats/acho/commit/967023d)) -* complemented documentation ([abc2153](https://github.com/kikobeats/acho/commit/abc2153)) -* Update package.json ([8b4b0a4](https://github.com/kikobeats/acho/commit/8b4b0a4)) * Update README.md ([c077a60](https://github.com/kikobeats/acho/commit/c077a60)) * Update README.md ([44bc90f](https://github.com/kikobeats/acho/commit/44bc90f)) +* Update package.json ([8b4b0a4](https://github.com/kikobeats/acho/commit/8b4b0a4)) +* added keyword parameter in constructor ([967023d](https://github.com/kikobeats/acho/commit/967023d)) +* complemented documentation ([abc2153](https://github.com/kikobeats/acho/commit/abc2153)) @@ -101,10 +110,10 @@ * 2.1.0 releases ([ddcc6c3](https://github.com/kikobeats/acho/commit/ddcc6c3)) -* added generateTypeMessage as external parameter. ([a0f67f3](https://github.com/kikobeats/acho/commit/a0f67f3)) * Added transport option ([a1170e3](https://github.com/kikobeats/acho/commit/a1170e3)) -* fixed production check ([af63da9](https://github.com/kikobeats/acho/commit/af63da9)) * Improve production comparation ([eee1281](https://github.com/kikobeats/acho/commit/eee1281)) +* added generateTypeMessage as external parameter. ([a0f67f3](https://github.com/kikobeats/acho/commit/a0f67f3)) +* fixed production check ([af63da9](https://github.com/kikobeats/acho/commit/af63da9)) * updated ([ca112ba](https://github.com/kikobeats/acho/commit/ca112ba)) * updated ([ad532e2](https://github.com/kikobeats/acho/commit/ad532e2)) @@ -115,12 +124,12 @@ * 2.0.0 releases ([0daf159](https://github.com/kikobeats/acho/commit/0daf159)) +* Update README.md ([fd0acee](https://github.com/kikobeats/acho/commit/fd0acee)) * avoid avoid colorize messages in production under NodeJS ([f6d2d54](https://github.com/kikobeats/acho/commit/f6d2d54)) * colors by default ([103194b](https://github.com/kikobeats/acho/commit/103194b)) * documentation refactor ([bc43872](https://github.com/kikobeats/acho/commit/bc43872)) * expose generateMessage ([57c3b9f](https://github.com/kikobeats/acho/commit/57c3b9f)) * little refactor. ([4046677](https://github.com/kikobeats/acho/commit/4046677)) -* Update README.md ([fd0acee](https://github.com/kikobeats/acho/commit/fd0acee)) * updated ([2bec971](https://github.com/kikobeats/acho/commit/2bec971)) * updated bumped settings ([3025456](https://github.com/kikobeats/acho/commit/3025456)) @@ -161,8 +170,8 @@ * 1.0.4 releases ([e4bcef2](https://github.com/kikobeats/acho/commit/e4bcef2)) * 1.0.5 releases ([448ea4e](https://github.com/kikobeats/acho/commit/448ea4e)) -* first commit ([99c44a4](https://github.com/kikobeats/acho/commit/99c44a4)) * Update README.md ([330b4d0](https://github.com/kikobeats/acho/commit/330b4d0)) +* first commit ([99c44a4](https://github.com/kikobeats/acho/commit/99c44a4)) * update warning message into warn ([5c1654d](https://github.com/kikobeats/acho/commit/5c1654d)) @@ -180,16 +189,16 @@ * 1.0.3 releases ([193f234](https://github.com/kikobeats/acho/commit/193f234)) -* because mac is not a real os ([e636ce2](https://github.com/kikobeats/acho/commit/e636ce2)) -* linus torvalds is crying for this ([f4eff0f](https://github.com/kikobeats/acho/commit/f4eff0f)) * Merge pull request #4 from clocklear/master ([4cfdb40](https://github.com/kikobeats/acho/commit/4cfdb40)) * Switched to titleize for propercase ([45a9bfd](https://github.com/kikobeats/acho/commit/45a9bfd)) * Update README.md ([1082a73](https://github.com/kikobeats/acho/commit/1082a73)) +* Update README.md ([9b04cb2](https://github.com/kikobeats/acho/commit/9b04cb2)) * Update README.md ([78407bb](https://github.com/kikobeats/acho/commit/78407bb)) * Update README.md ([88e415d](https://github.com/kikobeats/acho/commit/88e415d)) -* Update README.md ([9b04cb2](https://github.com/kikobeats/acho/commit/9b04cb2)) -* updated ([8c52aec](https://github.com/kikobeats/acho/commit/8c52aec)) * Updated README.md to include UMD blurb ([f05d703](https://github.com/kikobeats/acho/commit/f05d703)) +* because mac is not a real os ([e636ce2](https://github.com/kikobeats/acho/commit/e636ce2)) +* linus torvalds is crying for this ([f4eff0f](https://github.com/kikobeats/acho/commit/f4eff0f)) +* updated ([8c52aec](https://github.com/kikobeats/acho/commit/8c52aec)) @@ -199,12 +208,12 @@ * 1.0.2 releases ([fa3b7d1](https://github.com/kikobeats/acho/commit/fa3b7d1)) * Fix example.html, export proper module name to global space ([f6ef959](https://github.com/kikobeats/acho/commit/f6ef959)) -* refactor ([1786df2](https://github.com/kikobeats/acho/commit/1786df2)) * Removed makefile, added npm script for build ([c441376](https://github.com/kikobeats/acho/commit/c441376)) * Update README.md ([c61aeb7](https://github.com/kikobeats/acho/commit/c61aeb7)) +* Usability changes. Added a makefile for quick task execution. Added component.json so that we can ([9e73dd4](https://github.com/kikobeats/acho/commit/9e73dd4)) +* refactor ([1786df2](https://github.com/kikobeats/acho/commit/1786df2)) * updated ([c217034](https://github.com/kikobeats/acho/commit/c217034)) * updated mocha reference to local dependency ([7fc622c](https://github.com/kikobeats/acho/commit/7fc622c)) -* Usability changes. Added a makefile for quick task execution. Added component.json so that we can ([9e73dd4](https://github.com/kikobeats/acho/commit/9e73dd4)) @@ -213,13 +222,13 @@ * 1.0.1 releases ([7b1f9e8](https://github.com/kikobeats/acho/commit/7b1f9e8)) -* added support for styles ([775e84a](https://github.com/kikobeats/acho/commit/775e84a)) -* fixed ([5a37063](https://github.com/kikobeats/acho/commit/5a37063)) -* fixed browserify build and little improvements ([c72b67d](https://github.com/kikobeats/acho/commit/c72b67d)) * Grammar and styling corrections ([d703e87](https://github.com/kikobeats/acho/commit/d703e87)) * Merge branch 'master' of github.com:Kikobeats/acho ([c9d3998](https://github.com/kikobeats/acho/commit/c9d3998)) * Merge pull request #3 from saelfaer/patch-1 ([76d4b66](https://github.com/kikobeats/acho/commit/76d4b66)) * Update README.md ([45f08d6](https://github.com/kikobeats/acho/commit/45f08d6)) +* added support for styles ([775e84a](https://github.com/kikobeats/acho/commit/775e84a)) +* fixed ([5a37063](https://github.com/kikobeats/acho/commit/5a37063)) +* fixed browserify build and little improvements ([c72b67d](https://github.com/kikobeats/acho/commit/c72b67d)) @@ -227,13 +236,13 @@ # 1.0.0 (2015-03-14) +* Update README.md ([1194cfa](https://github.com/kikobeats/acho/commit/1194cfa)) * completed ([8d01b7d](https://github.com/kikobeats/acho/commit/8d01b7d)) * completed ([5b73e9e](https://github.com/kikobeats/acho/commit/5b73e9e)) * first commit ([edac5ab](https://github.com/kikobeats/acho/commit/edac5ab)) * fixed url ([9b4d611](https://github.com/kikobeats/acho/commit/9b4d611)) * merged ([222e72d](https://github.com/kikobeats/acho/commit/222e72d)) * refactor and updated documentation ([6824d6a](https://github.com/kikobeats/acho/commit/6824d6a)) -* Update README.md ([1194cfa](https://github.com/kikobeats/acho/commit/1194cfa)) * updated ([14b3639](https://github.com/kikobeats/acho/commit/14b3639)) * updated ([2a5d5f7](https://github.com/kikobeats/acho/commit/2a5d5f7)) * updated ([1c12565](https://github.com/kikobeats/acho/commit/1c12565)) diff --git a/bower.json b/bower.json index e363df2..23c6a73 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "acho", "description": "An extremely simple (but powerful) logging system for NodeJS and browser.", - "version": "2.5.0", + "version": "2.5.1", "authors": [ "Kiko Beats josefrancisco.verdu@gmail.com" ], diff --git a/dist/acho.js b/dist/acho.js index c58103d..1c4afed 100644 --- a/dist/acho.js +++ b/dist/acho.js @@ -1,6 +1,6 @@ /** * acho - An extremely simple (but powerful) logging system for NodeJS and browser. - * @version v2.5.0 + * @version v2.5.1 * @link https://github.com/Kikobeats/acho * @license MIT - */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.Acho=e()}}(function(){var e;return function r(e,t,n){function s(i,c){if(!t[i]){if(!e[i]){var a="function"==typeof require&&require;if(!c&&a)return a(i,!0);if(o)return o(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var u=t[i]={exports:{}};e[i][0].call(u.exports,function(r){var t=e[i][1][r];return s(t?t:r)},u,u.exports,r,e,t,n)}return t[i].exports}for(var o="function"==typeof require&&require,i=0;ir;r++)e=s[r],o.push(this.transport(this.generateMessage(t,e)));return o}.call(this));return r},outputMessage:function(e){return e},outputType:function(e){var r;return r=this.align?" ":" ",this.keyword&&(e=this.keyword===n.SYMBOL_KEYWORD?this.types[e].symbol:e),""+e+r},transport:console.log,generateMessage:function(e,r){var t,n,s,o;if(this.isPrintable(e))return t=this.types[e].color,r=this.outputMessage(r),r=this.colorize(this.types.line.color,r),n=null,this.diff&&(this.diff[e]?(n=c(new Date-this.diff[e]),n=" +"+n,this.diff[e]=new Date):(this.diff[e]=new Date,n=" +0ms")),s=this.outputType(e),s=this.colorize(t,s),o=s+r,n&&(o+=this.colorize(t,n)),o},generateTypeMessage:function(e){return function(){var r;return r=1<=arguments.length?a.call(arguments,0):[],r=this.format(r),this.transport(this.generateMessage(e,r)),this}},colorize:function(e,r){var t,o,i,c;if(!this.color||"production"===n.ENV)return r;for(e=e.split(" "),c=s,o=0,i=e.length;i>o;o++)t=e[o],c=c[t];return c(r)},isPrintable:function(e){return this.level===n.UNMUTED?!0:this.level===n.MUTED?!1:this.types[e].level<=this.types[this.level].level},format:function(e){return i.apply(null,e)},keyword:null,diff:!1,align:!0,color:!0,level:n.UNMUTED,types:{line:{color:"gray",symbol:""},error:{level:0,color:"red",symbol:o.cross},warn:{level:1,color:"yellow",symbol:o.warning},success:{level:2,color:"green",symbol:o.tick},info:{level:3,color:"white",symbol:o.info},verbose:{level:4,color:"cyan",symbol:o.info},debug:{level:5,color:"blue",symbol:o.info},silly:{level:6,color:"magenta",symbol:o.info}}}},{"./Constants":2,chalk:7,figures:12,"format-util":13,ms:15}],4:[function(e,r,t){"use strict";r.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g}},{}],5:[function(e,r,t){"use strict";function n(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach(function(r){var t=e[r];Object.keys(t).forEach(function(r){var n=t[r];e[r]=t[r]={open:"["+n[0]+"m",close:"["+n[1]+"m"}}),Object.defineProperty(e,r,{value:t,enumerable:!1})}),e}Object.defineProperty(r,"exports",{enumerable:!0,get:n})},{}],6:[function(e,r,t){},{}],7:[function(e,r,t){(function(t){"use strict";function n(e){this.enabled=e&&void 0!==e.enabled?e.enabled:f}function s(e){var r=function(){return o.apply(r,arguments)};return r._styles=e,r.enabled=this.enabled,r.__proto__=d,r}function o(){var e=arguments,r=e.length,t=0!==r&&String(arguments[0]);if(r>1)for(var n=1;r>n;n++)t+=" "+e[n];if(!this.enabled||!t)return t;var s=this._styles,o=s.length,i=a.dim.open;for(!h||-1===s.indexOf("gray")&&-1===s.indexOf("grey")||(a.dim.open="");o--;){var c=a[s[o]];t=c.open+t.replace(c.closeRe,c.open)+c.close}return a.dim.open=i,t}function i(){var e={};return Object.keys(g).forEach(function(r){e[r]={get:function(){return s.call(this,[r])}}}),e}var c=e("escape-string-regexp"),a=e("ansi-styles"),l=e("strip-ansi"),u=e("has-ansi"),f=e("supports-color"),p=Object.defineProperties,h="win32"===t.platform&&!/^xterm/i.test(t.env.TERM);h&&(a.blue.open="");var g=function(){var e={};return Object.keys(a).forEach(function(r){a[r].closeRe=new RegExp(c(a[r].close),"g"),e[r]={get:function(){return s.call(this,this._styles.concat(r))}}}),e}(),d=p(function(){},g);p(n.prototype,i()),r.exports=new n,r.exports.styles=a,r.exports.hasColor=u,r.exports.stripColor=l,r.exports.supportsColor=f}).call(this,e("_process"))},{_process:16,"ansi-styles":5,"escape-string-regexp":9,"has-ansi":14,"strip-ansi":17,"supports-color":18}],8:[function(r,t,n){!function(r,s){"function"==typeof e&&e.amd?e(s):"object"==typeof n?t.exports=s():r.deepmerge=s()}(this,function(){return function e(r,t){var n=Array.isArray(t),s=n&&[]||{};return n?(r=r||[],s=s.concat(r),t.forEach(function(t,n){"undefined"==typeof s[n]?s[n]=t:"object"==typeof t?s[n]=e(r[n],t):-1===r.indexOf(t)&&s.push(t)})):(r&&"object"==typeof r&&Object.keys(r).forEach(function(e){s[e]=r[e]}),Object.keys(t).forEach(function(n){"object"==typeof t[n]&&t[n]&&r[n]?s[n]=e(r[n],t[n]):s[n]=t[n]})),s}})},{}],9:[function(e,r,t){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;r.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},{}],10:[function(e,r,t){"use strict";function n(e){return"object"==typeof e&&null!==e}function s(e,r){return n(r)?o(e,r):i(r)?r:e}var o=e("deepmerge"),i=e("existential");r.exports=function(){for(var e=Array.prototype.slice.call(arguments),r=s(e.shift(),e.shift());e.length;)r=s(e.shift(),r);return r}},{deepmerge:8,existential:11}],11:[function(e,r,t){"use strict";r.exports=function(e){return null!=e}},{}],12:[function(e,r,t){(function(e){"use strict";var t=e.platform,n={tick:"✔",cross:"✖",star:"★",square:"▇",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",circleQuestionMark:"?⃝",bullet:"●",dot:"․",line:"─",ellipsis:"…",pointer:"❯",pointerSmall:"›",info:"ℹ",warning:"⚠",hamburger:"☰",smiley:"㋡",mustache:"෴",heart:"♥",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",questionMarkPrefix:"?⃝"},s={tick:"√",cross:"×",star:"*",square:"█",squareSmall:"[ ]",squareSmallFilled:"[█]",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"─",ellipsis:"...",pointer:">",pointerSmall:"»",info:"i",warning:"‼",hamburger:"≡",smiley:"☺",mustache:"┌─┐",heart:n.heart,arrowUp:n.arrowUp,arrowDown:n.arrowDown,arrowLeft:n.arrowLeft,arrowRight:n.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",questionMarkPrefix:"?"};"linux"===t&&(n.questionMarkPrefix="?"),r.exports="win32"===t?s:n}).call(this,e("_process"))},{_process:16}],13:[function(e,r,t){function n(e){var r=/(%?)(%([jds]))/g,t=Array.prototype.slice.call(arguments,1);return t.length&&(e=e.replace(r,function(e,r,n,s){var o=t.shift();switch(s){case"s":o=""+o;break;case"d":o=Number(o);break;case"j":o=JSON.stringify(o)}return r?(t.unshift(o),e):o})),t.length&&(e+=" "+t.join(" ")),e=e.replace(/%{2,2}/g,"%"),""+e}r.exports=n},{}],14:[function(e,r,t){"use strict";var n=e("ansi-regex"),s=new RegExp(n().source);r.exports=s.test.bind(s)},{"ansi-regex":4}],15:[function(e,r,t){function n(e){if(e=""+e,!(e.length>1e4)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),n=(r[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*f;case"days":case"day":case"d":return t*u;case"hours":case"hour":case"hrs":case"hr":case"h":return t*l;case"minutes":case"minute":case"mins":case"min":case"m":return t*a;case"seconds":case"second":case"secs":case"sec":case"s":return t*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t}}}}function s(e){return e>=u?Math.round(e/u)+"d":e>=l?Math.round(e/l)+"h":e>=a?Math.round(e/a)+"m":e>=c?Math.round(e/c)+"s":e+"ms"}function o(e){return i(e,u,"day")||i(e,l,"hour")||i(e,a,"minute")||i(e,c,"second")||e+" ms"}function i(e,r,t){return r>e?void 0:1.5*r>e?Math.floor(e/r)+" "+t:Math.ceil(e/r)+" "+t+"s"}var c=1e3,a=60*c,l=60*a,u=24*l,f=365.25*u;r.exports=function(e,r){return r=r||{},"string"==typeof e?n(e):r["long"]?o(e):s(e)}},{}],16:[function(e,r,t){function n(){u=!1,c.length?l=c.concat(l):f=-1,l.length&&s()}function s(){if(!u){var e=setTimeout(n);u=!0;for(var r=l.length;r;){for(c=l,l=[];++f1)for(var t=1;tr:!0)};r.exports=function(){return"FORCE_COLOR"in e.env?!0:s("no-color")||s("no-colors")||s("color=false")?!1:s("color")||s("colors")||s("color=true")||s("color=always")?!0:e.stdout&&!e.stdout.isTTY?!1:"win32"===e.platform?!0:"COLORTERM"in e.env?!0:"dumb"===e.env.TERM?!1:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(e.env.TERM)?!0:!1}()}).call(this,e("_process"))},{_process:16}],Acho:[function(e,r,t){"use strict";e("coffee-script/register"),r.exports=e("./lib/Acho")},{"./lib/Acho":1,"coffee-script/register":6}]},{},[])("Acho")}); \ No newline at end of file + */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Acho=e()}}(function(){var e;return function t(e,n,r){function s(i,c){if(!n[i]){if(!e[i]){var u="function"==typeof require&&require;if(!c&&u)return u(i,!0);if(o)return o(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var l=n[i]={exports:{}};e[i][0].call(l.exports,function(t){var n=e[i][1][t];return s(n?n:t)},l,l.exports,t,e,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;it;t++)e=s[t],o.push(this.transport(this.generateMessage(n,e)));return o}.call(this));return t},outputMessage:function(e){return e},outputType:function(e){var t;return t=this.align?" ":" ",this.keyword&&(e=this.keyword===r.SYMBOL_KEYWORD?this.types[e].symbol:e),""+e+t},transport:console.log,generateMessage:function(e,t){var n,r,s,o;if(this.isPrintable(e))return n=this.types[e].color,t=this.outputMessage(t),t=this.colorize(this.types.line.color,t),r=null,this.diff&&(this.diff[e]?(r=c(new Date-this.diff[e]),r=" +"+r,this.diff[e]=new Date):(this.diff[e]=new Date,r=" +0ms")),s=this.outputType(e),s=this.colorize(n,s),o=s+t,r&&(o+=this.colorize(n,r)),o},generateTypeMessage:function(e){return function(){var t;return t=1<=arguments.length?u.call(arguments,0):[],t=this.format(t),this.transport(this.generateMessage(e,t)),this}},colorize:function(e,t){var n,o,i,c;if(!this.color||"production"===r.ENV)return t;for(e=e.split(" "),c=s,o=0,i=e.length;i>o;o++)n=e[o],c=c[n];return c(t)},isPrintable:function(e){return this.level===r.UNMUTED?!0:this.level===r.MUTED?!1:this.types[e].level<=this.types[this.level].level},format:function(e){return i.apply(null,e)},keyword:null,diff:!1,align:!0,color:!0,level:r.UNMUTED,types:{line:{color:"gray"},error:{level:0,color:"red",symbol:o.error},warn:{level:1,color:"yellow",symbol:o.warning},success:{level:2,color:"green",symbol:o.success},info:{level:3,color:"white",symbol:o.info},verbose:{level:4,color:"cyan",symbol:o.info},debug:{level:5,color:"blue",symbol:o.info},silly:{level:6,color:"magenta",symbol:o.info}}}}).call(this,e("_process"))},{"./Constants":2,_process:5,chalk:6,"format-util":17,ms:18}],4:[function(e,t,n){},{}],5:[function(e,t,n){function r(){l=!1,c.length?a=c.concat(a):f=-1,a.length&&s()}function s(){if(!l){var e=setTimeout(r);l=!0;for(var t=a.length;t;){for(c=a,a=[];++f1)for(var n=1;n1)for(var r=1;t>r;r++)n+=" "+e[r];if(!this.enabled||!n)return n;var s=this._styles,o=s.length,i=u.dim.open;for(!h||-1===s.indexOf("gray")&&-1===s.indexOf("grey")||(u.dim.open="");o--;){var c=u[s[o]];n=c.open+n.replace(c.closeRe,c.open)+c.close}return u.dim.open=i,n}function i(){var e={};return Object.keys(g).forEach(function(t){e[t]={get:function(){return s.call(this,[t])}}}),e}var c=e("escape-string-regexp"),u=e("ansi-styles"),a=e("strip-ansi"),l=e("has-ansi"),f=e("supports-color"),p=Object.defineProperties,h="win32"===n.platform&&!/^xterm/i.test(n.env.TERM);h&&(u.blue.open="");var g=function(){var e={};return Object.keys(u).forEach(function(t){u[t].closeRe=new RegExp(c(u[t].close),"g"),e[t]={get:function(){return s.call(this,this._styles.concat(t))}}}),e}(),d=p(function(){},g);p(r.prototype,i()),t.exports=new r,t.exports.styles=u,t.exports.hasColor=l,t.exports.stripColor=a,t.exports.supportsColor=f}).call(this,e("_process"))},{_process:5,"ansi-styles":7,"escape-string-regexp":8,"has-ansi":9,"strip-ansi":11,"supports-color":13}],7:[function(e,t,n){"use strict";function r(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach(function(t){var n=e[t];Object.keys(n).forEach(function(t){var r=n[t];e[t]=n[t]={open:"["+r[0]+"m",close:"["+r[1]+"m"}}),Object.defineProperty(e,t,{value:n,enumerable:!1})}),e}Object.defineProperty(t,"exports",{enumerable:!0,get:r})},{}],8:[function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},{}],9:[function(e,t,n){"use strict";var r=e("ansi-regex"),s=new RegExp(r().source);t.exports=s.test.bind(s)},{"ansi-regex":10}],10:[function(e,t,n){"use strict";t.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g}},{}],11:[function(e,t,n){"use strict";var r=e("ansi-regex")();t.exports=function(e){return"string"==typeof e?e.replace(r,""):e}},{"ansi-regex":12}],12:[function(e,t,n){arguments[4][10][0].apply(n,arguments)},{dup:10}],13:[function(e,t,n){(function(e){"use strict";var n=e.argv,r=n.indexOf("--"),s=function(e){e="--"+e;var t=n.indexOf(e);return-1!==t&&(-1!==r?r>t:!0)};t.exports=function(){return"FORCE_COLOR"in e.env?!0:s("no-color")||s("no-colors")||s("color=false")?!1:s("color")||s("colors")||s("color=true")||s("color=always")?!0:e.stdout&&!e.stdout.isTTY?!1:"win32"===e.platform?!0:"COLORTERM"in e.env?!0:"dumb"===e.env.TERM?!1:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(e.env.TERM)?!0:!1}()}).call(this,e("_process"))},{_process:5}],14:[function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e}function s(e,t){return r(t)?o(e,t):i(t)?t:e}var o=e("deepmerge"),i=e("existential");t.exports=function(){for(var e=Array.prototype.slice.call(arguments),t=s(e.shift(),e.shift());e.length;)t=s(e.shift(),t);return t}},{deepmerge:15,existential:16}],15:[function(t,n,r){!function(t,s){"function"==typeof e&&e.amd?e(s):"object"==typeof r?n.exports=s():t.deepmerge=s()}(this,function(){return function e(t,n){var r=Array.isArray(n),s=r&&[]||{};return r?(t=t||[],s=s.concat(t),n.forEach(function(n,r){"undefined"==typeof s[r]?s[r]=n:"object"==typeof n?s[r]=e(t[r],n):-1===t.indexOf(n)&&s.push(n)})):(t&&"object"==typeof t&&Object.keys(t).forEach(function(e){s[e]=t[e]}),Object.keys(n).forEach(function(r){"object"==typeof n[r]&&n[r]&&t[r]?s[r]=e(t[r],n[r]):s[r]=n[r]})),s}})},{}],16:[function(e,t,n){"use strict";t.exports=function(e){return null!=e}},{}],17:[function(e,t,n){function r(e){var t=/(%?)(%([jds]))/g,n=Array.prototype.slice.call(arguments,1);return n.length&&(e=e.replace(t,function(e,t,r,s){var o=n.shift();switch(s){case"s":o=""+o;break;case"d":o=Number(o);break;case"j":o=JSON.stringify(o)}return t?(n.unshift(o),e):o})),n.length&&(e+=" "+n.join(" ")),e=e.replace(/%{2,2}/g,"%"),""+e}t.exports=r},{}],18:[function(e,t,n){function r(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*f;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*a;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function s(e){return e>=l?Math.round(e/l)+"d":e>=a?Math.round(e/a)+"h":e>=u?Math.round(e/u)+"m":e>=c?Math.round(e/c)+"s":e+"ms"}function o(e){return i(e,l,"day")||i(e,a,"hour")||i(e,u,"minute")||i(e,c,"second")||e+" ms"}function i(e,t,n){return t>e?void 0:1.5*t>e?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var c=1e3,u=60*c,a=60*u,l=24*a,f=365.25*l;t.exports=function(e,t){return t=t||{},"string"==typeof e?r(e):t["long"]?o(e):s(e)}},{}],Acho:[function(e,t,n){"use strict";e("coffee-script/register"),t.exports=e("./lib/Acho")},{"./lib/Acho":1,"coffee-script/register":4}]},{},[])("Acho")}); \ No newline at end of file diff --git a/package.json b/package.json index 86f85f9..ffecccd 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "acho", "description": "An extremely simple (but powerful) logging system for NodeJS and browser.", "homepage": "https://github.com/Kikobeats/acho", - "version": "2.5.0", + "version": "2.5.1", "main": "./index.js", "author": { "name": "Kiko Beats",