@amplitude/analytics-client-common
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -6,2 +6,8 @@ /* eslint-disable no-restricted-globals */ | ||
var getGlobalScope = function () { | ||
// This should only be used for integrations with Amplitude that are not running in a browser environment | ||
// We need to specify the name of the global variable as a string to prevent it from being minified | ||
var ampIntegrationContextName = 'ampIntegrationContext'; | ||
if (typeof globalThis !== 'undefined' && typeof globalThis[ampIntegrationContextName] !== 'undefined') { | ||
return globalThis[ampIntegrationContextName]; | ||
} | ||
if (typeof globalThis !== 'undefined') { | ||
@@ -8,0 +14,0 @@ return globalThis; |
/* eslint-disable no-restricted-globals */ | ||
/* Only file allowed to access to globalThis, window, self */ | ||
export var getGlobalScope = function () { | ||
// This should only be used for integrations with Amplitude that are not running in a browser environment | ||
// We need to specify the name of the global variable as a string to prevent it from being minified | ||
var ampIntegrationContextName = 'ampIntegrationContext'; | ||
if (typeof globalThis !== 'undefined' && typeof globalThis[ampIntegrationContextName] !== 'undefined') { | ||
return globalThis[ampIntegrationContextName]; | ||
} | ||
if (typeof globalThis !== 'undefined') { | ||
@@ -5,0 +11,0 @@ return globalThis; |
{ | ||
"name": "@amplitude/analytics-client-common", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "", | ||
@@ -46,3 +46,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "79b78f3a3c810012825defd513488bdf3390ac0c" | ||
"gitHead": "58f78b288db20dec13ef0c4381d14916ad4d4811" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
222976
146
2038