diff --git a/README.md b/README.md index 45a5969..adad204 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ulog v1.0.2 +# ulog v1.0.3 ### Microscopically small universal logging library [![npm](https://img.shields.io/npm/v/ulog.svg)](https://npmjs.com/package/ulog) @@ -17,8 +17,8 @@ from [debug](https://npmjs.com/package/debug) that I missed. Even with these ext still **very** small, weighing in just over 1 kB minified and gzipped. ## Download -* [ulog.umd.js](https://cdn.rawgit.com/download/ulog/1.0.2/ulog.umd.js) (~3kB, source) -* [ulog.min.js](https://cdn.rawgit.com/download/ulog/1.0.2/ulog.min.js) (~2kB, minified) +* [ulog.umd.js](https://cdn.rawgit.com/download/ulog/1.0.3/ulog.umd.js) (~3kB, source) +* [ulog.min.js](https://cdn.rawgit.com/download/ulog/1.0.3/ulog.min.js) (~2kB, minified) ## Install ```sh @@ -53,7 +53,7 @@ define(['ulog'], function(ulog){ ### Script tag ```html - + ``` ## Logging methods diff --git a/package-lock.json b/package-lock.json index 21cdc0a..02d0b36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ulog", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ac5a85e..6c1e10a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ulog", - "version": "1.0.2", + "version": "1.0.3", "description": "Microscopically small universal logging library", "main": "node.js", "browser": "browser.js", diff --git a/ulog.js b/ulog.js index 12a12dc..83f88ae 100644 --- a/ulog.js +++ b/ulog.js @@ -9,7 +9,7 @@ function log(name){ : (log.debug ? log : enhance(log)) } -log.ulog = {version:'0.1.0'} +log.ulog = {version:'1.0.3'} log.enable = function(str) { var i, split = (str || '').split(/[\s,]+/); diff --git a/ulog.min.js b/ulog.min.js index 928f849..94b736a 100644 --- a/ulog.min.js +++ b/ulog.min.js @@ -1 +1 @@ -!function(e,n,t){"function"==typeof define&&define.amd?define(n,[],t):"object"==typeof module&&module.exports?module.exports=t():e[n]=t()}(this,"ulog",function(){"use strict";function e(t){return t?s[t]?s[t]:s[t]=n({name:t},e):e.debug?e:n(e)}function n(e,n,i){e.NONE=0;for(var u in a)e[u]=a[u];return Object.defineProperty(e,"level",{get:function(){return void 0!==i?i:n&&n.level},set:function(o){if(void 0===o&&n)i=void 0;else{var r=o&&(Number(o)!==Number(o)?e[o.toUpperCase()]:Number(o));r>=0&&r<=6&&(i=r)}if(t(e),!n)for(mod in s)t(s[mod])}}),t(e,n),e.dir=o("dir")||r,e.time=o("time")||r,e.timeEnd=o("timeEnd")||r,e.assert=function(){var n=[].concat.apply([],arguments),t=n.shift();t||e.error.apply(e,n)},e}function t(n){for(var i,u=Math.max(n.name&&e.enabled(n.name)&&n.DEBUG||n.level,n.level),f=0;i=c[f];f++)n[i]=u<=f?r:o(i)||"function"==typeof print&&print||function(){e.con()&&(t(n),n[i].apply(n,arguments))}}function o(n,t){return(t=e.con())&&(t[n]||t.log).bind(t)}function r(){}e.ulog={version:"0.1.0"},e.enable=function(e){var n,o=(e||"").split(/[\s,]+/);for(n=0;n=0&&r<=6&&(i=r)}if(t(e),!n)for(mod in s)t(s[mod])}}),t(e,n),e.dir=o("dir")||r,e.time=o("time")||r,e.timeEnd=o("timeEnd")||r,e.assert=function(){var n=[].concat.apply([],arguments);n.shift()||e.error.apply(e,n)},e}function t(n){for(var i,u=Math.max(n.name&&e.enabled(n.name)&&n.DEBUG||n.level,n.level),f=0;i=c[f];f++)n[i]=u<=f?r:o(i)||"function"==typeof print&&print||function(){e.con()&&(t(n),n[i].apply(n,arguments))}}function o(n,t){return(t=e.con())&&(t[n]||t.log).bind(t)}function r(){}e.ulog={version:"1.0.3"},e.enable=function(e){var n,o=(e||"").split(/[\s,]+/);for(n=0;n