diff --git a/bower.json b/bower.json index 0393840..8b2a15a 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "log", - "version": "0.1.1", - "homepage": "http://adamschwartz.com/log", + "version": "0.1.2", + "homepage": "http://adamschwartz.co/log", "authors": [ "Adam Schwartz " ], diff --git a/component.json b/component.json index b6214b1..e643f0e 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "log", "repo": "adamschwartz/log", - "version": "0.1.1", + "version": "0.1.2", "description": "Console.log with style", "keywords": [], "main": "log.js", diff --git a/log.min.js b/log.min.js index 5ec524f..217f5b6 100644 --- a/log.min.js +++ b/log.min.js @@ -1,2 +1,2 @@ -/*! log.js 0.1.1 */ +/*! log.js 0.1.2 */ (function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n;window.console&&window.console.log&&(i=function(){var a;return a=[],j(arguments).forEach(function(b){return"string"==typeof b?a=a.concat(m(b)):a.push(b)}),n.apply(window,a)},n=function(){return console.log.apply(console,j(arguments))},j=function(a){return Array.prototype.slice.call(a)},b=[{regex:/\*([^\*]+)\*/,replacer:function(a,b){return"%c"+b+"%c"},styles:function(){return["font-style: italic",""]}},{regex:/\_([^\_]+)\_/,replacer:function(a,b){return"%c"+b+"%c"},styles:function(){return["font-weight: bold",""]}},{regex:/\`([^\`]+)\`/,replacer:function(a,b){return"%c"+b+"%c"},styles:function(){return["background: rgb(255, 255, 219); padding: 1px 5px; border: 1px solid rgba(0, 0, 0, 0.1)",""]}},{regex:/\[c\=(?:\"|\')?((?:(?!(?:\"|\')\]).)*)(?:\"|\')?\]((?:(?!\[c\]).)*)\[c\]/,replacer:function(a,b,c){return"%c"+c+"%c"},styles:function(a){return[a[1],""]}}],d=function(a){var c;return c=!1,b.forEach(function(b){return b.regex.test(a)?c=!0:void 0}),c},c=function(a){var c;return c=[],b.forEach(function(b){var d;return d=a.match(b.regex),d?c.push({format:b,match:d}):void 0}),c.sort(function(a,b){return a.match.index-b.match.index})},m=function(a){var b,e,f;for(f=[];d(a);)e=c(a),b=e[0],a=a.replace(b.format.regex,b.format.replacer),f=f.concat(b.format.styles(b.match));return[a].concat(f)},h=function(){return/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)},g=function(){return/OPR/.test(navigator.userAgent)&&/Opera/.test(navigator.vendor)},e=function(){return/Firefox/.test(navigator.userAgent)},f=function(){return/MSIE/.test(navigator.userAgent)},l=function(){var a;return a=navigator.userAgent.match(/AppleWebKit\/(\d+)\.(\d+)(\.|\+|\s)/),a?537.38<=parseInt(a[1],10)+parseInt(a[2],10)/100:!1},k=function(){var a;return a=navigator.userAgent.match(/OPR\/(\d+)\./),a?15<=parseInt(a[1],10):!1},a=function(){return window.console.firebug||window.console.exception},window.log=f()||e()&&!a()||g()&&!k()||h()&&!l()?n:i,window.log.l=n)}).call(this); \ No newline at end of file diff --git a/package.json b/package.json index a6765f8..f66059a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "log-with-style", - "version": "0.1.1", + "version": "0.1.2", "description": "Console.log with style", "author": "Adam Schwartz ", "license": "MIT",