Comparing version 1.4.1 to 1.4.2
@@ -38,3 +38,3 @@ (function() { | ||
if (debug[0] === '!' && debug[1] === '/') { | ||
if (debug && debug[0] === '!' && debug[1] === '/') { | ||
invertRegex = true; | ||
@@ -41,0 +41,0 @@ debug = debug.slice(1); |
@@ -39,3 +39,3 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.bows=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
if (debug[0] === '!' && debug[1] === '/') { | ||
if (debug && debug[0] === '!' && debug[1] === '/') { | ||
invertRegex = true; | ||
@@ -42,0 +42,0 @@ debug = debug.slice(1); |
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.bows=e()}}(function(){return function e(o,n,r){function t(f,u){if(!n[f]){if(!o[f]){var l="function"==typeof require&&require;if(!u&&l)return l(f,!0);if(i)return i(f,!0);var d=new Error("Cannot find module '"+f+"'");throw d.code="MODULE_NOT_FOUND",d}var a=n[f]={exports:{}};o[f][0].call(a.exports,function(e){var n=o[f][1][e];return t(n?n:e)},a,a.exports,e,o,n,r)}return n[f].exports}for(var i="function"==typeof require&&require,f=0;f<r.length;f++)t(r[f]);return t}({1:[function(e,o){(function(){function n(){var e,o=!!window.chrome,n=/firefox/i.test(navigator.userAgent);if(n){var r=navigator.userAgent.match(/Firefox\/(\d+\.\d+)/);r&&r[1]&&Number(r[1])&&(e=Number(r[1]))}return o||e>=31}var r=function(){var e=.618033988749895;return a+=e,a%=1,360*a},t="undefined"==typeof window,i=!t&&window.localStorage,f=i.andlogKey||"debug",u=i[f],l=e("andlog"),d=Function.prototype.bind,a=0,c=15,p=function(){},s=i.debugColors||n(),g=null,w=null,v=!1;moduleColorsMap={},"!"===u[0]&&"/"===u[1]&&(v=!0,u=u.slice(1)),w=u&&"/"===u[0]&&new RegExp(u.substring(1,u.length-1));for(var m=["log","debug","warn","error","info"],y=0,h=m.length;h>y;y++)p[m[y]]=p;g=function(e){var o,n,t;if(o=e.slice(0,c),o+=Array(c+3-o.length).join(" ")+"|",w){var i=e.match(w);if(!v&&!i||v&&i)return p}if(!d)return p;var f=[l];if(s){moduleColorsMap[e]||(moduleColorsMap[e]=r());var u=moduleColorsMap[e];o="%c"+o,n="color: hsl("+u+",99%,40%); font-weight: bold",f.push(o,n)}else f.push(o);if(arguments.length>1){var a=Array.prototype.slice.call(arguments,1);f=f.concat(a)}return t=d.apply(l.log,f),m.forEach(function(e){t[e]=d.apply(l[e]||t,f)}),t},g.config=function(e){e.padLength&&(c=e.padLength)},"undefined"!=typeof o?o.exports=g:window.bows=g}).call()},{andlog:2}],2:[function(e,o,n){!function(){var e="undefined"==typeof window,r=!e&&window.localStorage,t={};if(e)return void(o.exports=console);var i=r.andlogKey||"debug";if(r&&r[i]&&window.console)t=window.console;else for(var f="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),u=f.length,l=function(){};u--;)t[f[u]]=l;"undefined"!=typeof n?o.exports=t:window.console=t}()},{}]},{},[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 o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.bows=e()}}(function(){return function e(o,n,r){function t(f,u){if(!n[f]){if(!o[f]){var l="function"==typeof require&&require;if(!u&&l)return l(f,!0);if(i)return i(f,!0);var d=new Error("Cannot find module '"+f+"'");throw d.code="MODULE_NOT_FOUND",d}var a=n[f]={exports:{}};o[f][0].call(a.exports,function(e){var n=o[f][1][e];return t(n?n:e)},a,a.exports,e,o,n,r)}return n[f].exports}for(var i="function"==typeof require&&require,f=0;f<r.length;f++)t(r[f]);return t}({1:[function(e,o){(function(){function n(){var e,o=!!window.chrome,n=/firefox/i.test(navigator.userAgent);if(n){var r=navigator.userAgent.match(/Firefox\/(\d+\.\d+)/);r&&r[1]&&Number(r[1])&&(e=Number(r[1]))}return o||e>=31}var r=function(){var e=.618033988749895;return a+=e,a%=1,360*a},t="undefined"==typeof window,i=!t&&window.localStorage,f=i.andlogKey||"debug",u=i[f],l=e("andlog"),d=Function.prototype.bind,a=0,c=15,p=function(){},s=i.debugColors||n(),g=null,w=null,v=!1;moduleColorsMap={},u&&"!"===u[0]&&"/"===u[1]&&(v=!0,u=u.slice(1)),w=u&&"/"===u[0]&&new RegExp(u.substring(1,u.length-1));for(var m=["log","debug","warn","error","info"],y=0,h=m.length;h>y;y++)p[m[y]]=p;g=function(e){var o,n,t;if(o=e.slice(0,c),o+=Array(c+3-o.length).join(" ")+"|",w){var i=e.match(w);if(!v&&!i||v&&i)return p}if(!d)return p;var f=[l];if(s){moduleColorsMap[e]||(moduleColorsMap[e]=r());var u=moduleColorsMap[e];o="%c"+o,n="color: hsl("+u+",99%,40%); font-weight: bold",f.push(o,n)}else f.push(o);if(arguments.length>1){var a=Array.prototype.slice.call(arguments,1);f=f.concat(a)}return t=d.apply(l.log,f),m.forEach(function(e){t[e]=d.apply(l[e]||t,f)}),t},g.config=function(e){e.padLength&&(c=e.padLength)},"undefined"!=typeof o?o.exports=g:window.bows=g}).call()},{andlog:2}],2:[function(e,o,n){!function(){var e="undefined"==typeof window,r=!e&&window.localStorage,t={};if(e)return void(o.exports=console);var i=r.andlogKey||"debug";if(r&&r[i]&&window.console)t=window.console;else for(var f="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),u=f.length,l=function(){};u--;)t[f[u]]=l;"undefined"!=typeof n?o.exports=t:window.console=t}()},{}]},{},[1])(1)}); |
{ | ||
"name": "bows", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Rainbowed console logs for chrome, opera and firefox in development.", | ||
@@ -5,0 +5,0 @@ "main": "bows.js", |
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
86973