Comparing version 2.0.5 to 3.0.0
@@ -191,9 +191,3 @@ var noop = function () {}; | ||
// bind() might not be defined in some browsers (e.g. IE9) | ||
try { | ||
this$1[method] = (ref = console[method]).bind.apply(ref, [ console ].concat( args )); | ||
} | ||
catch(e) { | ||
this$1[method] = console[method]; | ||
} | ||
this$1[method] = (ref = console[method]).bind.apply(ref, [ console ].concat( args )); | ||
}); | ||
@@ -203,9 +197,3 @@ | ||
eachUnformatableMethod(function (method) { | ||
// bind() might not be defined in some browsers (e.g. IE9) | ||
try { | ||
this$1[method] = console[method].bind(console); | ||
} | ||
catch(e) { | ||
this$1[method] = console[method]; | ||
} | ||
this$1[method] = console[method].bind(console); | ||
}); | ||
@@ -212,0 +200,0 @@ } |
@@ -1,2 +0,2 @@ | ||
"use strict";var n=function(){},t=function(n,t){for(var r in n)t(n[r],r)},r=function(n,t){for(var r in t)n[r]=t[r];return n},u=function(n){return r({},n)},e=function(n,t){return r(u(n),t)},i=("undefined"!=typeof window?window:global).console||{},o=["debug","error","group","groupCollapsed","info","log","warn"],c=["clear","dir","groupEnd"],l=function(n){t(o,n)},f=function(n){t(c,n)},a=function(n){l(n),f(n)};a(function(t){i[t]=i[t]||n});var d={enabled:!0,styled:!0},s=u(d),b=function(n){return n&&(s=e(d,n)),s},p={},g={"border-radius":"2px",padding:"1px 3px",margin:"0 1px",color:"white"},h=function(n,t){if(null!=n&&null!=t)t=e(g,t),p[n]=t;else if(null!=n)return p[n];return Object.keys(p)},v=function(n){return null!=n&&(g=n),g},y=function(n){var r="";return t(p[n],function(n,t){r+=t+":"+n+";"}),r},w=function(n,t){return e(n,{background:t})};t(["green","red"],function(n){h(n,w({},n))}),h("orange",w({color:"black"},"orange"));var x=null,k=null,j=function(n){return null!=x&&!x.test(n)||null!=k&&k.test(n)},m=function(n){return{none:function(){return x=null,k=null,n(),this},include:function(t){return t!==x&&(x=t,n()),this},exclude:function(t){return t!==k&&(k=t,n()),this}}},C={},E=function(n,t,r){var u=[];if(r){var e=C[r],i=e[0],o=e[1],c=e[2];u=E(i.label,o,c)}if(n){var l=t?"%c"+n:"["+n+"]";u[0]=""+(u[0]||"")+l}return t&&u.push(y(t)),u},O=function(t,r){var u=this,e=E(this.label,!!s.styled&&t,r);!s.enabled||j(e[0])?a(function(t){return u[t]=n}):(l(function(n){var t;try{u[n]=(t=i[n]).bind.apply(t,[i].concat(e))}catch(t){u[n]=i[n]}}),f(function(n){try{u[n]=i[n].bind(i)}catch(t){u[n]=i[n]}}))},S=function(n,t,r){this.label=n,O.bind(this,t,r)(),C[n]=[this,t,r]};S.prototype.define=function(n,t){return new S(n,t,this.label)};var q=function(){t(C,function(n){var t=n[0],r=n[1],u=n[2];O.bind(t,r,u)()})},z=new S;z.get=function(n){return(C[n]||{})[0]},z.style=h,z.defaultStyle=v,z.filter=m(q),z.config=function(n){return n&&"object"==typeof n&&(b(n),q()),s},module.exports=z; | ||
"use strict";var e=function(){},t=function(n,t){for(var r in n)t(n[r],r)},r=function(n,t){for(var r in t)n[r]=t[r];return n},u=function(n){return r({},n)},i=function(n,t){return r(u(n),t)},o=("undefined"!=typeof window?window:global).console||{},l=["debug","error","group","groupCollapsed","info","log","warn"],c=["clear","dir","groupEnd"],f=function(n){t(l,n)},a=function(n){t(c,n)},d=function(n){f(n),a(n)};d(function(n){o[n]=o[n]||e});var s={enabled:!0,styled:!0},b=u(s),p=function(n){return n&&(b=i(s,n)),b},g={},v={"border-radius":"2px",padding:"1px 3px",margin:"0 1px",color:"white"},h=function(n,t){if(null!=n&&null!=t)t=i(v,t),g[n]=t;else if(null!=n)return g[n];return Object.keys(g)},n=function(n){return null!=n&&(v=n),v},y=function(n){var r="";return t(g[n],function(n,t){r+=t+":"+n+";"}),r},w=function(n,t){return i(n,{background:t})};t(["green","red"],function(n){h(n,w({},n))}),h("orange",w({color:"black"},"orange"));var x=null,k=null,j=function(n){return null!=x&&!x.test(n)||null!=k&&k.test(n)},m=function(t){return{none:function(){return k=x=null,t(),this},include:function(n){return n!==x&&(x=n,t()),this},exclude:function(n){return n!==k&&(k=n,t()),this}}},C={},E=function(n,t,r){var u=[];if(r){var e=C[r],i=e[0],o=e[1],l=e[2];u=E(i.label,o,l)}if(n){var c=t?"%c"+n:"["+n+"]";u[0]=(u[0]||"")+c}return t&&u.push(y(t)),u},O=function(n,t){var r=this,u=E(this.label,!!b.styled&&n,t);!b.enabled||j(u[0])?d(function(n){return r[n]=e}):(f(function(n){var t;r[n]=(t=o[n]).bind.apply(t,[o].concat(u))}),a(function(n){r[n]=o[n].bind(o)}))},S=function(n,t,r){this.label=n,O.bind(this,t,r)(),C[n]=[this,t,r]};S.prototype.define=function(n,t){return new S(n,t,this.label)};var q=function(){t(C,function(n){var t=n[0],r=n[1],u=n[2];O.bind(t,r,u)()})},z=new S;z.get=function(n){return(C[n]||{})[0]},z.style=h,z.defaultStyle=n,z.filter=m(q),z.config=function(n){return n&&"object"==typeof n&&(p(n),q()),b},module.exports=z; | ||
//# sourceMappingURL=build/badgee.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self,n.badgee=t())}(this,function(){"use strict";var n=function(){},t=function(n,t){for(var e in n)t(n[e],e)},e=function(n,t){for(var e in t)n[e]=t[e];return n},r=function(n){return e({},n)},u=function(n,t){return e(r(n),t)},i=("undefined"!=typeof window?window:global).console||{},o=["debug","error","group","groupCollapsed","info","log","warn"],f=["clear","dir","groupEnd"],c=function(n){t(o,n)},l=function(n){t(f,n)},a=function(n){c(n),l(n)};a(function(t){i[t]=i[t]||n});var d={enabled:!0,styled:!0},s=r(d),p=function(n){return n&&(s=u(d,n)),s},b={},g={"border-radius":"2px",padding:"1px 3px",margin:"0 1px",color:"white"},h=function(n,t){if(null!=n&&null!=t)t=u(g,t),b[n]=t;else if(null!=n)return b[n];return Object.keys(b)},y=function(n){var e="";return t(b[n],function(n,t){e+=t+":"+n+";"}),e},v=function(n,t){return u(n,{background:t})};t(["green","red"],function(n){h(n,v({},n))}),h("orange",v({color:"black"},"orange"));var w=null,x=null,m=function(n){return null!=w&&!w.test(n)||null!=x&&x.test(n)},j={},k=function(n,t,e){var r=[];if(e){var u=j[e],i=u[0],o=u[1],f=u[2];r=k(i.label,o,f)}if(n){var c=t?"%c"+n:"["+n+"]";r[0]=""+(r[0]||"")+c}return t&&r.push(y(t)),r},C=function(t,e){var r=this,u=k(this.label,!!s.styled&&t,e);!s.enabled||m(u[0])?a(function(t){return r[t]=n}):(c(function(n){var t;try{r[n]=(t=i[n]).bind.apply(t,[i].concat(u))}catch(t){r[n]=i[n]}}),l(function(n){try{r[n]=i[n].bind(i)}catch(t){r[n]=i[n]}}))},E=function(n,t,e){this.label=n,C.bind(this,t,e)(),j[n]=[this,t,e]};E.prototype.define=function(n,t){return new E(n,t,this.label)};var O=function(){t(j,function(n){var t=n[0],e=n[1],r=n[2];C.bind(t,e,r)()})},S=new E;return S.get=function(n){return(j[n]||{})[0]},S.style=h,S.defaultStyle=function(n){return null!=n&&(g=n),g},S.filter=function(n){return{none:function(){return w=null,x=null,n(),this},include:function(t){return t!==w&&(w=t,n()),this},exclude:function(t){return t!==x&&(x=t,n()),this}}}(O),S.config=function(n){return n&&"object"==typeof n&&(p(n),O()),s},S}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).badgee=t()}(this,function(){"use strict";function u(){}function c(n,t){for(var e in n)t(n[e],e)}function e(n,t){for(var e in t)n[e]=t[e];return n}function r(n){return e({},n)}function i(n,t){return e(r(n),t)}function o(n){c(t,n)}function f(n){c(d,n)}function l(n){o(n),f(n)}var a=("undefined"!=typeof window?window:global).console||{},t=["debug","error","group","groupCollapsed","info","log","warn"],d=["clear","dir","groupEnd"];l(function(n){a[n]=a[n]||u});function s(n,t){if(null!=n&&null!=t)t=i(h,t),v[n]=t;else if(null!=n)return v[n];return Object.keys(v)}function p(n,t){return i(n,{background:t})}var b={enabled:!0,styled:!0},g=r(b),v={},h={"border-radius":"2px",padding:"1px 3px",margin:"0 1px",color:"white"};c(["green","red"],function(n){s(n,p({},n))}),s("orange",p({color:"black"},"orange"));function y(n,t){var e=this,r=k(this.label,!!g.styled&&n,t);!g.enabled||function(n){return null!=x&&!x.test(n)||null!=m&&m.test(n)}(r[0])?l(function(n){return e[n]=u}):(o(function(n){var t;e[n]=(t=a[n]).bind.apply(t,[a].concat(r))}),f(function(n){e[n]=a[n].bind(a)}))}function w(n,t,e){this.label=n,y.bind(this,t,e)(),j[n]=[this,t,e]}var x=null,m=null,j={},k=function(n,t,e){var r=[];if(e){var u=j[e],i=u[0],o=u[1],f=u[2];r=k(i.label,o,f)}if(n){var l=t?"%c"+n:"["+n+"]";r[0]=(r[0]||"")+l}return t&&r.push(function(n){var e="";return c(v[n],function(n,t){e+=t+":"+n+";"}),e}(t)),r};w.prototype.define=function(n,t){return new w(n,t,this.label)};function C(){c(j,function(n){var t=n[0],e=n[1],r=n[2];y.bind(t,e,r)()})}var E,n=new w;return n.get=function(n){return(j[n]||{})[0]},n.style=s,n.defaultStyle=function(n){return null!=n&&(h=n),h},n.filter=(E=C,{none:function(){return m=x=null,E(),this},include:function(n){return n!==x&&(x=n,E()),this},exclude:function(n){return n!==m&&(m=n,E()),this}}),n.config=function(n){return n&&"object"==typeof n&&(function(n){n&&(g=i(b,n))}(n),C()),g},n}); | ||
//# sourceMappingURL=build/badgee.umd.js.map |
{ | ||
"name": "badgee", | ||
"author": "Olivier Audard <audard@gmail.com>", | ||
"version": "2.0.5", | ||
"version": "3.0.0", | ||
"description": "a browser console improvement", | ||
@@ -34,25 +34,22 @@ "main": "build/badgee.js", | ||
"postversion": "git push --tags", | ||
"serve": "http-server -p 8000 .", | ||
"open": "opener http://localhost:8000/test/", | ||
"live-reload": "live-reload --port 8001 build/", | ||
"size": "echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size)\"", | ||
"dev": "npm-run-all --silent open -p 'live-reload -s' 'serve -s' 'watch -s'" | ||
"browser-sync": "browser-sync start --server --files build/*.js test/index.html --index test/index.html", | ||
"dev": "npm-run-all --silent -p 'browser-sync' 'watch -s'" | ||
}, | ||
"devDependencies": { | ||
"browser-sync": "^2.26.7", | ||
"buble": "^0.19.0", | ||
"chai": "^4.1.0", | ||
"eslint": "^6.1.0", | ||
"eslint": "^6.4.0", | ||
"gzip-size-cli": "^3.0.0", | ||
"http-server": "^0.11.0", | ||
"jsdom": "^15.1.1", | ||
"jsdom": "^16.0.1", | ||
"jsdom-global": "^3.0.2", | ||
"live-reload": "^1.1.0", | ||
"mkdirp": "^0.5.1", | ||
"mocha": "^6.2.0", | ||
"mkdirp": "^1.0.3", | ||
"mocha": "^7.0.1", | ||
"npm-run-all": "^4.0.2", | ||
"opener": "^1.4.1", | ||
"rimraf": "^2.6.1", | ||
"rollup": "^1.17.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.29.1", | ||
"rollup-plugin-buble": "^0.19.2", | ||
"sinon": "^7.3.2", | ||
"sinon": "^8.0.0", | ||
"strip-json-comments-cli": "^1.0.1", | ||
@@ -59,0 +56,0 @@ "uglify-js": "^3.0.28", |
@@ -50,9 +50,3 @@ /* eslint-disable no-console */ | ||
eachFormatableMethod((method) => { | ||
// bind() might not be defined in some browsers (e.g. IE9) | ||
try { | ||
this[method] = console[method].bind(console, ...args); | ||
} | ||
catch(e) { | ||
this[method] = console[method]; | ||
} | ||
this[method] = console[method].bind(console, ...args); | ||
}); | ||
@@ -62,9 +56,3 @@ | ||
eachUnformatableMethod((method) => { | ||
// bind() might not be defined in some browsers (e.g. IE9) | ||
try { | ||
this[method] = console[method].bind(console); | ||
} | ||
catch(e) { | ||
this[method] = console[method]; | ||
} | ||
this[method] = console[method].bind(console); | ||
}); | ||
@@ -71,0 +59,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18
68134
718