Comparing version 0.4.0 to 0.5.0
@@ -25,3 +25,4 @@ (function() { | ||
ls = !inNode && window.localStorage, | ||
debug = ls.debug, | ||
debugKey = ls.andlogKey || 'debug', | ||
debug = ls[debugKey], | ||
logger = require('andlog'), | ||
@@ -28,0 +29,0 @@ hue = 0, |
@@ -26,3 +26,4 @@ !function(e){if("object"==typeof exports)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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.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(_dereq_,module,exports){ | ||
ls = !inNode && window.localStorage, | ||
debug = ls.debug, | ||
debugKey = ls.andlogKey || 'debug', | ||
debug = ls[debugKey], | ||
logger = _dereq_('andlog'), | ||
@@ -91,3 +92,4 @@ hue = 0, | ||
if (ls && ls.debug && window.console) { | ||
var andlogKey = ls.andlogKey || 'debug' | ||
if (ls && ls[andlogKey] && window.console) { | ||
out = window.console; | ||
@@ -94,0 +96,0 @@ } else { |
@@ -1,1 +0,1 @@ | ||
!function(n){if("object"==typeof exports)module.exports=n();else if("function"==typeof define&&define.amd)define(n);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.bows=n()}}(function(){return function n(e,o,r){function i(f,u){if(!o[f]){if(!e[f]){var d="function"==typeof require&&require;if(!u&&d)return d(f,!0);if(t)return t(f,!0);throw new Error("Cannot find module '"+f+"'")}var l=o[f]={exports:{}};e[f][0].call(l.exports,function(n){var o=e[f][1][n];return i(o?o:n)},l,l.exports,n,e,o,r)}return o[f].exports}for(var t="function"==typeof require&&require,f=0;f<r.length;f++)i(r[f]);return i}({1:[function(n,e){!function(){function o(){var n,e=!!window.chrome,o=/firefox/i.test(navigator.userAgent);if(o){var r=navigator.userAgent.match(/Firefox\/(\d+\.\d+)/);r&&r[1]&&Number(r[1])&&(n=Number(r[1]))}return e||n>=31}var r=function(){var n=.618033988749895;return d+=n,d%=1,360*d},i="undefined"==typeof window,t=!i&&window.localStorage,f=t.debug,u=n("andlog"),d=0,l=15,a=function(){},c=t.debugColors||o(),s=null,g=null;g=f&&"/"===f[0]&&new RegExp(f.substring(1,f.length-1));var p=["log","debug","warn","error","info"];s=function(n){var e,o,i;if(e=n.slice(0,l),e+=Array(l+3-e.length).join(" ")+"|",g&&!n.match(g))return a;if(c){var t=r();e="%c"+e,o="color: hsl("+t+",99%,40%); font-weight: bold",i=u.log.bind(u,e,o),p.forEach(function(n){i[n]=u[n].bind(u,e,o)})}else i=u.log.bind(u,e),p.forEach(function(n){i[n]=u[n].bind(u,e)});return i},s.config=function(n){n.padLength&&(this.padLength=n.padLength)},"undefined"!=typeof e?e.exports=s:window.bows=s}.call()},{andlog:2}],2:[function(n,e,o){!function(){var n="undefined"==typeof window,r=!n&&window.localStorage,i={};if(n)return e.exports=console,void 0;if(r&&r.debug&&window.console)i=window.console;else for(var t="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),f=t.length,u=function(){};f--;)i[t[f]]=u;"undefined"!=typeof o?e.exports=i:window.console=i}()},{}]},{},[1])(1)}); | ||
!function(n){if("object"==typeof exports)module.exports=n();else if("function"==typeof define&&define.amd)define(n);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.bows=n()}}(function(){return function n(e,o,r){function i(f,u){if(!o[f]){if(!e[f]){var d="function"==typeof require&&require;if(!u&&d)return d(f,!0);if(t)return t(f,!0);throw new Error("Cannot find module '"+f+"'")}var l=o[f]={exports:{}};e[f][0].call(l.exports,function(n){var o=e[f][1][n];return i(o?o:n)},l,l.exports,n,e,o,r)}return o[f].exports}for(var t="function"==typeof require&&require,f=0;f<r.length;f++)i(r[f]);return i}({1:[function(n,e){!function(){function o(){var n,e=!!window.chrome,o=/firefox/i.test(navigator.userAgent);if(o){var r=navigator.userAgent.match(/Firefox\/(\d+\.\d+)/);r&&r[1]&&Number(r[1])&&(n=Number(r[1]))}return e||n>=31}var r=function(){var n=.618033988749895;return l+=n,l%=1,360*l},i="undefined"==typeof window,t=!i&&window.localStorage,f=t.andlogKey||"debug",u=t[f],d=n("andlog"),l=0,a=15,c=function(){},g=t.debugColors||o(),s=null,p=null;p=u&&"/"===u[0]&&new RegExp(u.substring(1,u.length-1));var w=["log","debug","warn","error","info"];s=function(n){var e,o,i;if(e=n.slice(0,a),e+=Array(a+3-e.length).join(" ")+"|",p&&!n.match(p))return c;if(g){var t=r();e="%c"+e,o="color: hsl("+t+",99%,40%); font-weight: bold",i=d.log.bind(d,e,o),w.forEach(function(n){i[n]=d[n].bind(d,e,o)})}else i=d.log.bind(d,e),w.forEach(function(n){i[n]=d[n].bind(d,e)});return i},s.config=function(n){n.padLength&&(this.padLength=n.padLength)},"undefined"!=typeof e?e.exports=s:window.bows=s}.call()},{andlog:2}],2:[function(n,e,o){!function(){var n="undefined"==typeof window,r=!n&&window.localStorage,i={};if(n)return e.exports=console,void 0;var t=r.andlogKey||"debug";if(r&&r[t]&&window.console)i=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,d=function(){};u--;)i[f[u]]=d;"undefined"!=typeof o?e.exports=i:window.console=i}()},{}]},{},[1])(1)}); |
{ | ||
"name": "bows", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Rainbowed console logs for chrome in development", | ||
@@ -11,3 +11,3 @@ "main": "bows.js", | ||
"dependencies": { | ||
"andlog": ">=0.0.4" | ||
"andlog": "^1.0.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "devDependencies": { |
@@ -108,4 +108,4 @@ # Bows | ||
npm test | ||
node build.js #build dist/bows.js and dist/bows.min.js | ||
npm run build.js #build dist/bows.js and dist/bows.min.js, also done by `npm test` | ||
``` | ||
@@ -6,2 +6,3 @@ var runTestPage = require('./helpers/runTestPage'); | ||
'test/disabled.html', | ||
'test/alternative-key.html', | ||
'test/regex.html', | ||
@@ -8,0 +9,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
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
80142
21
262
Updatedandlog@^1.0.0