@ungap/global-this
Advanced tools
Comparing version 0.1.0 to 0.2.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 @@ } |
@@ -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", |
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
1983
32