Comparing version 5.1.0 to 5.2.0
@@ -34,3 +34,5 @@ /*global window*/ | ||
if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') { | ||
if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && require('supports-color')) { | ||
MagicPen.defaultFormat = 'ansi'; // colored console | ||
} else if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') { | ||
if (window.mochaPhantomJS || (window.__karma__ && window.__karma__.config.captureConsole)) { | ||
@@ -41,4 +43,2 @@ MagicPen.defaultFormat = 'ansi'; // colored console | ||
} | ||
} else if (require('supports-color')) { | ||
MagicPen.defaultFormat = 'ansi'; // colored console | ||
} else { | ||
@@ -45,0 +45,0 @@ MagicPen.defaultFormat = 'text'; // Plain text |
@@ -374,3 +374,5 @@ /*! | ||
if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') { | ||
if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && require(18)) { | ||
MagicPen.defaultFormat = 'ansi'; // colored console | ||
} else if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') { | ||
if (window.mochaPhantomJS || (window.__karma__ && window.__karma__.config.captureConsole)) { | ||
@@ -381,4 +383,2 @@ MagicPen.defaultFormat = 'ansi'; // colored console | ||
} | ||
} else if (require(18)) { | ||
MagicPen.defaultFormat = 'ansi'; // colored console | ||
} else { | ||
@@ -385,0 +385,0 @@ MagicPen.defaultFormat = 'text'; // Plain text |
{ | ||
"name": "magicpen", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Styled output in both consoles and browsers", | ||
@@ -18,3 +18,3 @@ "main": "./lib/MagicPen.js", | ||
"prepublish": "(echo '/*!' && <LICENSE sed -e's/^/ * /' | sed -e's/\\s+$//' && echo ' */' && browserify -p bundle-collapser/plugin -e lib/MagicPen -s weknowhow.MagicPen) > magicpen.js", | ||
"coverage": "NODE_ENV=development istanbul cover _mocha -- --reporter dot" | ||
"coverage": "NODE_ENV=development istanbul cover _mocha --report text --report lcov -- --reporter dot && echo google-chrome coverage/lcov-report/index.html" | ||
}, | ||
@@ -27,8 +27,8 @@ "author": "Sune Simonsen", | ||
"del": "0.1.1", | ||
"istanbul": "0.3.0", | ||
"istanbul": "0.3.17", | ||
"jshint": "*", | ||
"mocha": "1.20.1", | ||
"sinon": "1.9.1", | ||
"unexpected": "^7.0.0", | ||
"unexpected-sinon": "^5.1.2" | ||
"unexpected": "9.5.0", | ||
"unexpected-sinon": "6.4.2" | ||
}, | ||
@@ -35,0 +35,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
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
568200
4106