Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.1.0 to 4.2.0

11

document.js

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

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