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

@amplitude/analytics-client-common

Package Overview
Dependencies
Maintainers
0
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/analytics-client-common - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

lib/cjs/types/global.d.ts

6

lib/cjs/global-scope.js

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

4

package.json
{
"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

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