@ungap/global-this
Advanced tools
Comparing version 0.2.2 to 0.3.0
(function (Object) { | ||
if (typeof globalThis === 'undefined') | ||
(Object.defineProperty(Object.prototype, '_T_', { | ||
configurable: true, | ||
get: function (self) { | ||
self = this.self || this; | ||
self.globalThis = self; | ||
delete Object.prototype._T_; | ||
} | ||
}), _T_); | ||
typeof globalThis !== 'object' && ( | ||
this ? | ||
get() : | ||
(Object.defineProperty(Object.prototype, '_T_', { | ||
configurable: true, | ||
get: get | ||
}), _T_) | ||
); | ||
function get() { | ||
this.globalThis = this; | ||
delete Object.prototype._T_; | ||
} | ||
}(Object)); | ||
module.exports = globalThis; |
(function (Object) { | ||
if (typeof globalThis === 'undefined') | ||
(Object.defineProperty(Object.prototype, '_T_', { | ||
configurable: true, | ||
get: function (self) { | ||
self = this.self || this; | ||
self.globalThis = self; | ||
delete Object.prototype._T_; | ||
} | ||
}), _T_); | ||
typeof globalThis !== 'object' && ( | ||
this ? | ||
get() : | ||
(Object.defineProperty(Object.prototype, '_T_', { | ||
configurable: true, | ||
get: get | ||
}), _T_) | ||
); | ||
function get() { | ||
this.globalThis = this; | ||
delete Object.prototype._T_; | ||
} | ||
}(Object)); | ||
export default globalThis; |
21
index.js
(function (Object) { | ||
if (typeof globalThis === 'undefined') | ||
(Object.defineProperty(Object.prototype, '_T_', { | ||
configurable: true, | ||
get: function (self) { | ||
self = this.self || this; | ||
self.globalThis = self; | ||
delete Object.prototype._T_; | ||
} | ||
}), _T_); | ||
typeof globalThis !== 'object' && ( | ||
this ? | ||
get() : | ||
(Object.defineProperty(Object.prototype, '_T_', { | ||
configurable: true, | ||
get: get | ||
}), _T_) | ||
); | ||
function get() { | ||
this.globalThis = this; | ||
delete Object.prototype._T_; | ||
} | ||
}(Object)); |
@@ -1,1 +0,1 @@ | ||
!function(t){"undefined"==typeof globalThis&&(t.defineProperty(t.prototype,"_T_",{configurable:!0,get:function(e){(e=this.self||this).globalThis=e,delete t.prototype._T_}}),_T_)}(Object); | ||
!function(t){function e(){this.globalThis=this,delete t.prototype._T_}"object"!=typeof globalThis&&(this?e():(t.defineProperty(t.prototype,"_T_",{configurable:!0,get:e}),_T_))}(Object); |
{ | ||
"name": "@ungap/global-this", | ||
"version": "0.2.2", | ||
"version": "0.3.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
44
2227