Comparing version 4.1.0 to 4.2.0
@@ -0,10 +1,15 @@ | ||
var topLevel = typeof global !== 'undefined' ? global : | ||
typeof window !== 'undefined' ? window : {} | ||
var minDoc = require('min-document'); | ||
if (typeof document !== 'undefined') { | ||
module.exports = document; | ||
} else { | ||
var Individual = require('individual'); | ||
var document = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; | ||
var document = Individual('__GLOBAL_DOCUMENT_CACHE@4', | ||
require('min-document')); | ||
if (!document) { | ||
document = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc; | ||
} | ||
module.exports = document; | ||
} |
{ | ||
"name": "global", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Require global variables", | ||
@@ -24,3 +24,2 @@ "keywords": [], | ||
"dependencies": { | ||
"individual": "^2.0.0", | ||
"min-document": "^2.6.1", | ||
@@ -27,0 +26,0 @@ "process": "~0.5.1" |
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
3673
2
21
- Removedindividual@^2.0.0
- Removedindividual@2.0.0(transitive)