From a2453a1efeece6bdb95b7369ca79894f533cd44e Mon Sep 17 00:00:00 2001 From: Caio Gondim Date: Thu, 13 Jul 2017 15:24:32 -0400 Subject: [PATCH] 3.0.1 --- dist/logdown.js | 13 +++++++------ dist/logdown.min.js | 2 +- dist/logdown.min.js.gzip | Bin 1979 -> 1969 bytes example/lib/logdown.js | 13 +++++++------ package-lock.json | 2 +- package.json | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/dist/logdown.js b/dist/logdown.js index 7bc29b7..8c358f4 100644 --- a/dist/logdown.js +++ b/dist/logdown.js @@ -313,16 +313,17 @@ module.exports = [ },{}],6:[function(require,module,exports){ (function (global){ /* eslint-disable no-new-func */ +/* global self, global */ -module.exports = function getGlobal() { - // return global object based on the environment present in. - // window for browser and global for node. - // https://github.com/purposeindustries/window-or-global/blob/master/lib/index.js - return ( +module.exports = function getGlobal () { + // Return the global object based on the environment presently in. + // window for browser and global for node. + // Ref from -> https://github.com/purposeindustries/window-or-global/blob/master/lib/index.js + return ( (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this - ) + ) } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) diff --git a/dist/logdown.min.js b/dist/logdown.min.js index 0aed295..de4cdd7 100644 --- a/dist/logdown.min.js +++ b/dist/logdown.min.js @@ -1 +1 @@ -!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.logdown=e()}}(function(){return function e(t,r,n){function o(s,f){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!f&&u)return u(s,!0);if(i)return i(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var a=r[s]={exports:{}};t[s][0].call(a.exports,function(e){var r=t[s][1][e];return o(r||e)},a,a.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s1&&(r=r.concat(e.slice(1))),r},n._setPrefixRegExps(),t.exports=n},{"./base":1,"./markdown/browser":3,"./util/get-global":6,"./util/is-color-supported/browser":7}],3:[function(e,t,r){function n(e){for(var t=[],r=i(e,o);r;)t.push(r.rule.style),t.push(""),e=e.replace(r.rule.regexp,r.rule.replacer),r=i(e,o);return{text:e,styles:t}}var o=e("./rules/browser"),i=e("./get-next-match");t.exports={parse:n}},{"./get-next-match":4,"./rules/browser":5}],4:[function(e,t,r){t.exports=function(e,t){var r=[];return t.forEach(function(t){var n=e.match(t.regexp);n&&r.push({rule:t,match:n})}),0===r.length?null:(r.sort(function(e,t){return e.match.index-t.match.index}),r[0])}},{}],5:[function(e,t,r){t.exports=[{regexp:/\*([^*]+)\*/,replacer:function(e,t){return"%c"+t+"%c"},style:"font-weight:bold;"},{regexp:/_([^_]+)_/,replacer:function(e,t){return"%c"+t+"%c"},style:"font-style:italic;"},{regexp:/`([^`]+)`/,replacer:function(e,t){return"%c"+t+"%c"},style:"background-color:rgba(255,204,102, 0.1);color:#FFCC66;padding:2px 5px;border-radius:2px;"}]},{}],6:[function(e,t,r){(function(e){t.exports=function(){return"object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,r){var n=e("../is-webkit"),o=e("../is-firefox");t.exports=function(){return n()||o()}},{"../is-firefox":8,"../is-webkit":9}],8:[function(e,t,r){t.exports=function(){try{return navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)}catch(e){return!1}}},{}],9:[function(e,t,r){t.exports=function(){try{return"WebkitAppearance"in document.documentElement.style}catch(e){return!1}}},{}],10:[function(e,t,r){t.exports=function(e){return Array.prototype.slice.call(e,0)}},{}]},{},[2])(2)}); +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).logdown=e()}}(function(){return function e(t,r,n){function o(s,f){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!f&&u)return u(s,!0);if(i)return i(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var a=r[s]={exports:{}};t[s][0].call(a.exports,function(e){var r=t[s][1][e];return o(r||e)},a,a.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s1&&(r=r.concat(e.slice(1))),r},n._setPrefixRegExps(),t.exports=n},{"./base":1,"./markdown/browser":3,"./util/get-global":6,"./util/is-color-supported/browser":7}],3:[function(e,t,r){var n=e("./rules/browser"),o=e("./get-next-match");t.exports={parse:function(e){for(var t=[],r=o(e,n);r;)t.push(r.rule.style),t.push(""),e=e.replace(r.rule.regexp,r.rule.replacer),r=o(e,n);return{text:e,styles:t}}}},{"./get-next-match":4,"./rules/browser":5}],4:[function(e,t,r){t.exports=function(e,t){var r=[];return t.forEach(function(t){var n=e.match(t.regexp);n&&r.push({rule:t,match:n})}),0===r.length?null:(r.sort(function(e,t){return e.match.index-t.match.index}),r[0])}},{}],5:[function(e,t,r){t.exports=[{regexp:/\*([^*]+)\*/,replacer:function(e,t){return"%c"+t+"%c"},style:"font-weight:bold;"},{regexp:/_([^_]+)_/,replacer:function(e,t){return"%c"+t+"%c"},style:"font-style:italic;"},{regexp:/`([^`]+)`/,replacer:function(e,t){return"%c"+t+"%c"},style:"background-color:rgba(255,204,102, 0.1);color:#FFCC66;padding:2px 5px;border-radius:2px;"}]},{}],6:[function(e,t,r){(function(e){t.exports=function(){return"object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,r){var n=e("../is-webkit"),o=e("../is-firefox");t.exports=function(){return n()||o()}},{"../is-firefox":8,"../is-webkit":9}],8:[function(e,t,r){t.exports=function(){try{return navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)}catch(e){return!1}}},{}],9:[function(e,t,r){t.exports=function(){try{return"WebkitAppearance"in document.documentElement.style}catch(e){return!1}}},{}],10:[function(e,t,r){t.exports=function(e){return Array.prototype.slice.call(e,0)}},{}]},{},[2])(2)}); diff --git a/dist/logdown.min.js.gzip b/dist/logdown.min.js.gzip index 12b64ceea9138da2ad0ae30bef1a78601a823b26..07bebb2d1bf6ecacface8a1772ee42655397148d 100644 GIT binary patch literal 1969 zcmV;i2Tu4OiwFqt$Y)ss18i?+WN&wFE^TRUE^2cCrC4oq+cpyZe!qfduPPA1wB*Ki zO&+Up9ebuTy|~jha~~8{p+rb#Ljf!Z#_~!0@7)FXCQEUAJ$)d-tm)EQl*-fAG0>!%#nFTrM2G&ZN?Lujdvb=8Ht|*gdLWu4G)KoZ6dLv4)(`fTuZk zP+l#+m1w2(diL%`tC-p)8BZ9uTQ}s8x`#x>@?m6e{vnQKDrZqTvbTdAIZqcOy!iS) z$*GshB?uE}bXk%n8g!$$E|hR;io=O!iV3=DD3auCVWM`V#`(mqv{`+Mlv9KUoLBtM zB2nOdwFq#}qSq^ErLO>?M+1uVq^2bm4W(wG;1AA?Qc@B3Iub%^2V9J+TsYsj{k-pf z)3ghsy?x`dtVDTHh_;8DDtZ2+y0T(IjrGfN0gj-w(&^MT%SEtyI?ZUwNeF_hGjXDzT`@G86ZAx6eJ;pGI>|PTs#dSu)pq zHF9a+{ih41@tKIVVs#^S$GcpvI60u3n^1VxjSy<5v`P-d{);*mNvgSep%&;7qi838 z9TiwNh=I9QiCDH6q^a#q4BBr%s=C>Vc2-5Mof&r`r`l&5Uxc4z5<3G>O;iY7wkfH% ziquDhukH2+DN`N^q8b`yGE|kl*D{sZm?kK1`C9+nl1be<8^FRPSHAM>V!NG7k%L%P zi}VGv@_fxYf_+)G0dLFnK(IGSej}n;%46U1+o!6kX(OgX-jQNq=V%zTx!b8;576W$ zn&0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;LRM2Ap15nV})V%;Ju1(2D3Qdimg{96Zp59syq z>fr@)rQO->4nK|HIA}ovJ16|JlT=w!`^s!SE&RXVC%*m#WQ*@P=!?rQOU|{bEPxZYK$~b-%~x|G@Ue`&VGh4=<{CJ1f;XqEE>xg2~1! z064B!FwJ^e{vsc_x&hcGw5s;gO7r_u@;>g<)6V>0C7q1QsxGhoXDi%)nnPS?8B8+x zG6>_l6U&7euDyD3n{xBtr1|I7kA^S9y~fSgI6!xLxan~=n>ZU*XoD9vIh#^)2A~%F N<-h)4cVxvA007To?7;v4 diff --git a/example/lib/logdown.js b/example/lib/logdown.js index 7bc29b7..8c358f4 100644 --- a/example/lib/logdown.js +++ b/example/lib/logdown.js @@ -313,16 +313,17 @@ module.exports = [ },{}],6:[function(require,module,exports){ (function (global){ /* eslint-disable no-new-func */ +/* global self, global */ -module.exports = function getGlobal() { - // return global object based on the environment present in. - // window for browser and global for node. - // https://github.com/purposeindustries/window-or-global/blob/master/lib/index.js - return ( +module.exports = function getGlobal () { + // Return the global object based on the environment presently in. + // window for browser and global for node. + // Ref from -> https://github.com/purposeindustries/window-or-global/blob/master/lib/index.js + return ( (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this - ) + ) } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) diff --git a/package-lock.json b/package-lock.json index 7e13db4..965b794 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "logdown", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 1, "dependencies": { "abab": { diff --git a/package.json b/package.json index 9ec3132..89d9545 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "logdown", - "version": "3.0.0", + "version": "3.0.1", "description": "Debug utility with markdown support that runs on browser and server", "main": "src/node.js", "browser": "dist/logdown.min.js",