Socket
Socket
Sign inDemoInstall

global

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global - npm Package Compare versions

Comparing version 4.3.1 to 4.3.2

10

document.js

@@ -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;

2

package.json
{
"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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc