Comparing version 4.3.1 to 4.3.2
@@ -5,6 +5,8 @@ var topLevel = typeof global !== 'undefined' ? global : | ||
var doccy; | ||
if (typeof document !== 'undefined') { | ||
module.exports = document; | ||
doccy = document; | ||
} else { | ||
var doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; | ||
doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; | ||
@@ -14,4 +16,4 @@ if (!doccy) { | ||
} | ||
} | ||
module.exports = doccy; | ||
} | ||
module.exports = doccy; |
{ | ||
"name": "global", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "Require global variables", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -0,9 +1,13 @@ | ||
var win; | ||
if (typeof window !== "undefined") { | ||
module.exports = window; | ||
win = window; | ||
} else if (typeof global !== "undefined") { | ||
module.exports = global; | ||
win = global; | ||
} else if (typeof self !== "undefined"){ | ||
module.exports = self; | ||
win = self; | ||
} else { | ||
module.exports = {}; | ||
win = {}; | ||
} | ||
module.exports = win; |
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
26
3614