Socket
Socket
Sign inDemoInstall

@ungap/global-this

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ungap/global-this - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

3

cjs/index.js

@@ -1,2 +0,1 @@

// inspired by https://mathiasbynens.be/notes/globalthis
(function (Object) {

@@ -7,3 +6,3 @@ if (typeof globalThis === 'undefined')

get: function () {
this.globalThis = this;
(this.window || this).globalThis = this;
delete Object.prototype._T_;

@@ -10,0 +9,0 @@ }

@@ -1,2 +0,1 @@

// inspired by https://mathiasbynens.be/notes/globalthis
(function (Object) {

@@ -7,3 +6,3 @@ if (typeof globalThis === 'undefined')

get: function () {
this.globalThis = this;
(this.window || this).globalThis = this;
delete Object.prototype._T_;

@@ -10,0 +9,0 @@ }

@@ -6,3 +6,3 @@ (function (Object) {

get: function () {
this.globalThis = this;
(this.window || this).globalThis = this;
delete Object.prototype._T_;

@@ -9,0 +9,0 @@ }

@@ -1,1 +0,1 @@

!function(e){"undefined"==typeof globalThis&&(e.defineProperty(e.prototype,"_T_",{configurable:!0,get:function(){this.globalThis=this,delete e.prototype._T_}}),_T_)}(Object);
!function(e){"undefined"==typeof globalThis&&(e.defineProperty(e.prototype,"_T_",{configurable:!0,get:function(){(this.window||this).globalThis=this,delete e.prototype._T_}}),_T_)}(Object);
{
"name": "@ungap/global-this",
"version": "0.1.0",
"version": "0.2.0",
"description": "A cross engine globalThis.",

@@ -5,0 +5,0 @@ "main": "cjs/index.js",

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