🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

badgee

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

badgee - npm Package Compare versions

Comparing version

to
2.0.4

.nvmrc

25

build/badgee.es.js

@@ -62,3 +62,3 @@ var noop = function () {};

// Create store to save styles
var store$1 = {};
var store = {};

@@ -77,8 +77,8 @@ // Default properties for styles

style = extend(defaultsStyle, style);
store$1[name] = style;
store[name] = style;
}
else if (name != null) {
return store$1[name];
return store[name];
}
return Object.keys(store$1);
return Object.keys(store);
};

@@ -95,3 +95,3 @@

var res = '';
each(store$1[name], function (style, k) {
each(store[name], function (style, k) {
res += k + ":" + style + ";";

@@ -147,5 +147,5 @@ });

/* eslint-disable no-console */
/*! badgee v1.2.0 - MIT license */
var store = {};
var store$1 = {};
// Given a label, style and parentName, generate the full list of arguments to

@@ -157,3 +157,3 @@ // pass to console method to get a foramted output

if (parentName) {
var ref = store[parentName];
var ref = store$1[parentName];
var badgee = ref[0];

@@ -194,4 +194,5 @@ var style$1 = ref[1];

eachFormatableMethod(function (method) {
var ref;
this$1[method] = (ref = console[method]).bind.apply(ref, [ console ].concat( args ));
var ref;
});

@@ -215,3 +216,3 @@

// Store instance for later reference
store[label] = [this, style, parentName];
store$1[label] = [this, style, parentName];
};

@@ -227,3 +228,3 @@

var redefineMethodsForAllBadges = function () {
each(store, function (ref) {
each(store$1, function (ref) {
var badgee = ref[0];

@@ -241,3 +242,3 @@ var style = ref[1];

// Augment public instance with getter method
b.get = function (label) { return (store[label] || {})[0]; };
b.get = function (label) { return (store$1[label] || {})[0]; };

@@ -244,0 +245,0 @@ // Some browsers don't allow to use bind on console object anyway

@@ -1,2 +0,2 @@

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"],l=["clear","dir","groupEnd"],c=function(n){t(o,n)},f=function(n){t(l,n)},a=function(n){c(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"},v=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)},h=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){v(n,w({},n))}),v("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],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(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}):(c(function(n){u[n]=(t=i[n]).bind.apply(t,[i].concat(e));var t}),f(function(n){u[n]=i[n].bind(i)}))},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]};try{z.log()}catch(n){z=e(i,{define:function(){return z},get:function(){return z}})}z.style=v,z.defaultStyle=h,z.filter=m(q),z.config=function(n){return n&&"object"==typeof n&&(b(n),q()),s};var A=z;module.exports=A;
"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||{},c=["debug","error","group","groupCollapsed","info","log","warn"],l=["clear","dir","groupEnd"],f=function(n){t(c,n)},a=function(n){t(l,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],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(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]};try{z.log()}catch(n){z=i(o,{define:function(){return z},get:function(){return z}})}z.style=h,z.defaultStyle=n,z.filter=m(q),z.config=function(n){return n&&"object"==typeof n&&(p(n),q()),b};var A=z;module.exports=A;
//# 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.badgee=t()}(this,function(){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)},o=("undefined"!=typeof window?window:global).console||{},i=["debug","error","group","groupCollapsed","info","log","warn"],f=["clear","dir","groupEnd"],c=function(n){t(i,n)},l=function(n){t(f,n)},a=function(n){c(n),l(n)};a(function(t){o[t]=o[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)},v=function(n){var e="";return t(b[n],function(n,t){e+=t+":"+n+";"}),e},y=function(n,t){return u(n,{background:t})};t(["green","red"],function(n){h(n,y({},n))}),h("orange",y({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],o=u[0],i=u[1],f=u[2];r=k(o.label,i,f)}if(n){var c=t?"%c"+n:"["+n+"]";r[0]=""+(r[0]||"")+c}return t&&r.push(v(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){r[n]=(t=o[n]).bind.apply(t,[o].concat(u));var t}),l(function(n){r[n]=o[n].bind(o)}))},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;S.get=function(n){return(j[n]||{})[0]};try{S.log()}catch(n){S=u(o,{define:function(){return S},get:function(){return S}})}return 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.badgee=t()}(this,function(){"use strict";var i=function(){},a=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)},o=("undefined"!=typeof window?window:global).console||{},t=["debug","error","group","groupCollapsed","info","log","warn"],f=["clear","dir","groupEnd"],c=function(n){a(t,n)},l=function(n){a(f,n)},d=function(n){c(n),l(n)};d(function(n){o[n]=o[n]||i});var s={enabled:!0,styled:!0},p=r(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)},v=function(n,t){return u(n,{background:t})};a(["green","red"],function(n){h(n,v({},n))}),h("orange",v({color:"black"},"orange"));var y=null,w=null,x={},m=function(n,t,e){var r,u=[];if(e){var i=x[e],o=i[0],f=i[1],c=i[2];u=m(o.label,f,c)}if(n){var l=t?"%c"+n:"["+n+"]";u[0]=""+(u[0]||"")+l}return t&&u.push((r="",a(b[t],function(n,t){r+=t+":"+n+";"}),r)),u},j=function(n,t){var e,r=this,u=m(this.label,!!p.styled&&n,t);!p.enabled||(e=u[0],null!=y&&!y.test(e)||null!=w&&w.test(e))?d(function(n){return r[n]=i}):(c(function(n){var t;r[n]=(t=o[n]).bind.apply(t,[o].concat(u))}),l(function(n){r[n]=o[n].bind(o)}))},k=function(n,t,e){this.label=n,j.bind(this,t,e)(),x[n]=[this,t,e]};k.prototype.define=function(n,t){return new k(n,t,this.label)};var C,E=function(){a(x,function(n){var t=n[0],e=n[1],r=n[2];j.bind(t,e,r)()})},O=new k;O.get=function(n){return(x[n]||{})[0]};try{O.log()}catch(n){O=u(o,{define:function(){return O},get:function(){return O}})}return O.style=h,O.defaultStyle=function(n){return null!=n&&(g=n),g},O.filter=(C=E,{none:function(){return w=y=null,C(),this},include:function(n){return n!==y&&(y=n,C()),this},exclude:function(n){return n!==w&&(w=n,C()),this}}),O.config=function(n){var t;return n&&"object"==typeof n&&((t=n)&&(p=u(s,t)),E()),p},O});
//# sourceMappingURL=build/badgee.umd.js.map
{
"name": "badgee",
"author": "Olivier Audard <audard@gmail.com>",
"version": "2.0.3",
"version": "2.0.4",
"description": "a browser console improvement",

@@ -41,7 +41,7 @@ "main": "build/badgee.js",

"devDependencies": {
"buble": "^0.15.2",
"buble": "^0.19.0",
"chai": "^4.1.0",
"eslint": "^4.2.0",
"gzip-size-cli": "^2.0.0",
"http-server": "^0.10.0",
"eslint": "^5.0.0",
"gzip-size-cli": "^3.0.0",
"http-server": "^0.11.0",
"jsdom": "^11.1.0",

@@ -51,9 +51,9 @@ "jsdom-global": "^3.0.2",

"mkdirp": "^0.5.1",
"mocha": "^3.0.2",
"mocha": "^5.0.0",
"npm-run-all": "^4.0.2",
"opener": "^1.4.1",
"rimraf": "^2.6.1",
"rollup": "^0.49.0",
"rollup-plugin-buble": "^0.15.0",
"sinon": "^3.0.0",
"rollup": "^0.64.1",
"rollup-plugin-buble": "^0.19.2",
"sinon": "^6.0.0",
"strip-json-comments-cli": "^1.0.1",

@@ -60,0 +60,0 @@ "uglify-js": "^3.0.28",

import buble from 'rollup-plugin-buble';
export default {
strict: false,
sourcemap: true,
output: {
sourcemap: true,
},
input: 'src/badgee.js',

@@ -7,0 +8,0 @@ moduleContext: {

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