Comparing version 0.0.3 to 0.0.4
@@ -12,4 +12,5 @@ "use strict"; | ||
*/ | ||
var doc = function doc() { | ||
return 'undefined' !== typeof document ? document : {}; | ||
var doc = function doc(w) { | ||
w = w || win(); | ||
return 'undefined' !== typeof w.document ? w.document : {}; | ||
}; | ||
@@ -16,0 +17,0 @@ |
@@ -5,4 +5,5 @@ /** | ||
*/ | ||
var doc = function doc() { | ||
return 'undefined' !== typeof document ? document : {}; | ||
var doc = function doc(w) { | ||
w = w || win(); | ||
return 'undefined' !== typeof w.document ? w.document : {}; | ||
}; | ||
@@ -9,0 +10,0 @@ |
{ | ||
"name": "win-doc", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Simple to avoid global not found error", | ||
@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism", |
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
2086
28