debug
Advanced tools
Comparing version 2.6.4 to 2.6.5
2.6.5 / 2017-04-27 | ||
================== | ||
* Fix: null reference check on window.documentElement.style.WebkitAppearance (#447, @thebigredgeek) | ||
* Misc: clean up browser reference checks (#447, @thebigredgeek) | ||
* Misc: add npm-debug.log to .gitignore (@thebigredgeek) | ||
2.6.4 / 2017-04-20 | ||
@@ -3,0 +11,0 @@ ================== |
{ | ||
"name": "debug", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -43,3 +43,3 @@ /** | ||
// explicitly | ||
if (typeof window !== 'undefined' && window && typeof window.process !== 'undefined' && window.process.type === 'renderer') { | ||
if (window && window.process && window.process.type === 'renderer') { | ||
return true; | ||
@@ -50,10 +50,10 @@ } | ||
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 | ||
return (typeof document !== 'undefined' && document && 'WebkitAppearance' in document.documentElement.style) || | ||
return (document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || | ||
// is firebug? http://stackoverflow.com/a/398120/376773 | ||
(typeof window !== 'undefined' && window && window.console && (console.firebug || (console.exception && console.table))) || | ||
(window && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || | ||
// is firefox >= v31? | ||
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages | ||
(typeof navigator !== 'undefined' && navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || | ||
(navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || | ||
// double check webkit in userAgent just in case we are in a worker | ||
(typeof navigator !== 'undefined' && navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); | ||
(navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); | ||
} | ||
@@ -60,0 +60,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
50138
1