From 1999a4378fd4dac3085cef806d0ff85d607cfc9a Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 16 Jun 2015 12:41:03 +0300 Subject: [PATCH] Release version 1.3.1 --- README.md | 2 ++ bower.json | 2 +- dist/loglevel.js | 4 ++-- dist/loglevel.min.js | 4 ++-- package.json | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eb5c2a5..3ba9a6f 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,8 @@ v1.2.0 - New plugin API! Plus various bits of refactoring and tidy up, nicely si v1.3.0 - Make persistence optional in setLevel, plus lots of documentation updates and other small tweaks +v1.3.1 - With the new optional persistence, stop unnecessarily persisting the initially set default level (warn) + ## License Copyright (c) 2013 Tim Perry Licensed under the MIT license. diff --git a/bower.json b/bower.json index d293ed7..9971213 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "loglevel", - "version": "1.3.0", + "version": "1.3.1", "main": "dist/loglevel.min.js", "dependencies": {}, "ignore": [ diff --git a/dist/loglevel.js b/dist/loglevel.js index b4212c7..ef5916a 100644 --- a/dist/loglevel.js +++ b/dist/loglevel.js @@ -1,4 +1,4 @@ -/*! loglevel - v1.3.0 - https://github.com/pimterry/loglevel - (c) 2015 Tim Perry - licensed MIT */ +/*! loglevel - v1.3.1 - https://github.com/pimterry/loglevel - (c) 2015 Tim Perry - licensed MIT */ (function (root, definition) { if (typeof module === 'object' && module.exports && typeof require === 'function') { module.exports = definition(); @@ -96,7 +96,7 @@ storedLevel = "WARN"; } - self.setLevel(self.levels[storedLevel]); + self.setLevel(self.levels[storedLevel], false); } /* diff --git a/dist/loglevel.min.js b/dist/loglevel.min.js index 88c760f..b8ef403 100644 --- a/dist/loglevel.min.js +++ b/dist/loglevel.min.js @@ -1,2 +1,2 @@ -/*! loglevel - v1.3.0 - https://github.com/pimterry/loglevel - (c) 2015 Tim Perry - licensed MIT */ -!function(a,b){"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=b():"function"==typeof define&&"object"==typeof define.amd?define(b):a.log=b()}(this,function(){function a(a){return typeof console===i?!1:void 0!==console[a]?b(console,a):void 0!==console.log?b(console,"log"):h}function b(a,b){var c=a[b];if("function"==typeof c.bind)return c.bind(a);try{return Function.prototype.bind.call(c,a)}catch(d){return function(){return Function.prototype.apply.apply(c,[a,arguments])}}}function c(a,b){return function(){typeof console!==i&&(d(b),g[a].apply(g,arguments))}}function d(a){for(var b=0;bb?h:g.methodFactory(c,a)}}function e(a){var b=(j[a]||"silent").toUpperCase();try{return void(window.localStorage.loglevel=b)}catch(c){}try{window.document.cookie="loglevel="+b+";"}catch(c){}}function f(){var a;try{a=window.localStorage.loglevel}catch(b){}if(typeof a===i)try{a=/loglevel=([^;]+)/.exec(window.document.cookie)[1]}catch(b){}void 0===g.levels[a]&&(a="WARN"),g.setLevel(g.levels[a])}var g={},h=function(){},i="undefined",j=["trace","debug","info","warn","error"];g.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},g.methodFactory=function(b,d){return a(b)||c(b,d)},g.setLevel=function(a,b){if("string"==typeof a&&void 0!==g.levels[a.toUpperCase()]&&(a=g.levels[a.toUpperCase()]),!("number"==typeof a&&a>=0&&a<=g.levels.SILENT))throw"log.setLevel() called with invalid level: "+a;return b!==!1&&e(a),d(a),typeof console===i&&ab?h:g.methodFactory(c,a)}}function e(a){var b=(j[a]||"silent").toUpperCase();try{return void(window.localStorage.loglevel=b)}catch(c){}try{window.document.cookie="loglevel="+b+";"}catch(c){}}function f(){var a;try{a=window.localStorage.loglevel}catch(b){}if(typeof a===i)try{a=/loglevel=([^;]+)/.exec(window.document.cookie)[1]}catch(b){}void 0===g.levels[a]&&(a="WARN"),g.setLevel(g.levels[a],!1)}var g={},h=function(){},i="undefined",j=["trace","debug","info","warn","error"];g.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},g.methodFactory=function(b,d){return a(b)||c(b,d)},g.setLevel=function(a,b){if("string"==typeof a&&void 0!==g.levels[a.toUpperCase()]&&(a=g.levels[a.toUpperCase()]),!("number"==typeof a&&a>=0&&a<=g.levels.SILENT))throw"log.setLevel() called with invalid level: "+a;return b!==!1&&e(a),d(a),typeof console===i&&a