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

@amplitude/analytics-browser

Package Overview
Dependencies
Maintainers
19
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/analytics-browser - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

10

lib/cjs/browser-client.js

@@ -5,2 +5,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

var analytics_core_1 = require("@amplitude/analytics-core");
var analytics_client_common_1 = require("@amplitude/analytics-client-common");
var snippet_helper_1 = require("./utils/snippet-helper");

@@ -10,5 +11,2 @@ var context_1 = require("./plugins/context");

var cookie_migration_1 = require("./cookie-migration");
var campaign_tracker_1 = require("./attribution/campaign-tracker");
var analytics_connector_1 = require("./utils/analytics-connector");
var identity_1 = require("./plugins/identity");
var AmplitudeBrowser = /** @class */ (function (_super) {

@@ -50,3 +48,3 @@ (0, tslib_1.__extends)(AmplitudeBrowser, _super);

}
connector = (0, analytics_connector_1.getAnalyticsConnector)();
connector = (0, analytics_client_common_1.getAnalyticsConnector)();
connector.eventBridge.setEventReceiver(function (event) {

@@ -66,3 +64,3 @@ void _this.track(event.eventType, event.eventProperties);

_d.sent();
return [4 /*yield*/, this.add(new identity_1.IdentityEventSender())];
return [4 /*yield*/, this.add(new analytics_client_common_1.IdentityEventSender())];
case 5:

@@ -102,3 +100,3 @@ _d.sent();

storage = _a.sent();
campaignTracker = new campaign_tracker_1.CampaignTracker(this.config.apiKey, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, attributionConfig), { storage: storage, track: track, onNewCampaign: onNewCampaign }));
campaignTracker = new analytics_client_common_1.CampaignTracker(this.config.apiKey, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, attributionConfig), { storage: storage, track: track, onNewCampaign: onNewCampaign }));
return [4 /*yield*/, campaignTracker.send(isNewSession)];

@@ -105,0 +103,0 @@ case 2:

3

lib/cjs/config.d.ts
import { Event, BrowserOptions, BrowserConfig as IBrowserConfig, Storage, TrackingOptions, TransportType, UserSession, SessionManager as ISessionManager } from '@amplitude/analytics-types';
import { Config, MemoryStorage } from '@amplitude/analytics-core';
import { FetchTransport } from './transports/fetch';
import { SessionManager, FetchTransport } from '@amplitude/analytics-client-common';
import { XHRTransport } from './transports/xhr';
import { SendBeaconTransport } from './transports/send-beacon';
import { SessionManager } from './session-manager';
export declare const getDefaultConfig: () => {

@@ -8,0 +7,0 @@ cookieExpiration: number;

@@ -7,10 +7,6 @@ var _this = this;

var analytics_core_1 = require("@amplitude/analytics-core");
var cookie_1 = require("./storage/cookie");
var fetch_1 = require("./transports/fetch");
var analytics_client_common_1 = require("@amplitude/analytics-client-common");
var local_storage_1 = require("./storage/local-storage");
var cookie_name_1 = require("./utils/cookie-name");
var query_params_1 = require("./utils/query-params");
var xhr_1 = require("./transports/xhr");
var send_beacon_1 = require("./transports/send-beacon");
var session_manager_1 = require("./session-manager");
var getDefaultConfig = function () {

@@ -34,7 +30,7 @@ var cookieStorage = new analytics_core_1.MemoryStorage();

domain: '',
sessionManager: new session_manager_1.SessionManager(cookieStorage, ''),
sessionManager: new analytics_client_common_1.SessionManager(cookieStorage, ''),
sessionTimeout: 30 * 60 * 1000,
storageProvider: new analytics_core_1.MemoryStorage(),
trackingOptions: trackingOptions,
transportProvider: new fetch_1.FetchTransport(),
transportProvider: new analytics_client_common_1.FetchTransport(),
};

@@ -142,8 +138,8 @@ };

cookieStorage = _l.sent();
cookieName = (0, cookie_name_1.getCookieName)(apiKey);
cookieName = (0, analytics_client_common_1.getCookieName)(apiKey);
return [4 /*yield*/, cookieStorage.get(cookieName)];
case 5:
cookies = _l.sent();
queryParams = (0, query_params_1.getQueryParams)();
return [4 /*yield*/, new session_manager_1.SessionManager(cookieStorage, apiKey).load()];
queryParams = (0, analytics_client_common_1.getQueryParams)();
return [4 /*yield*/, new analytics_client_common_1.SessionManager(cookieStorage, apiKey).load()];
case 6:

@@ -194,3 +190,3 @@ sessionManager = _l.sent();

case 0:
storage = new cookie_1.CookieStorage({
storage = new analytics_client_common_1.CookieStorage({
domain: options.domain,

@@ -285,3 +281,3 @@ expirationDays: options.cookieExpiration,

switch (_a.label) {
case 0: return [4 /*yield*/, new cookie_1.CookieStorage().isEnabled()];
case 0: return [4 /*yield*/, new analytics_client_common_1.CookieStorage().isEnabled()];
case 1:

@@ -304,3 +300,3 @@ if (!(_a.sent()) || (!url && typeof location === 'undefined')) {

options = { domain: '.' + domain };
storage = new cookie_1.CookieStorage(options);
storage = new analytics_client_common_1.CookieStorage(options);
return [4 /*yield*/, storage.set(storageKey, 1)];

@@ -307,0 +303,0 @@ case 3:

@@ -5,5 +5,4 @@ var _this = this;

var tslib_1 = require("tslib");
var cookie_name_1 = require("../utils/cookie-name");
var analytics_client_common_1 = require("@amplitude/analytics-client-common");
var local_storage_1 = require("../storage/local-storage");
var cookie_1 = require("../storage/cookie");
var parseOldCookies = function (apiKey, options) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () {

@@ -14,3 +13,3 @@ var storage, oldCookieName, cookies, _a, deviceId, userId, optOut, sessionId, lastEventTime;

case 0:
storage = new cookie_1.CookieStorage();
storage = new analytics_client_common_1.CookieStorage();
return [4 /*yield*/, storage.isEnabled()];

@@ -28,3 +27,3 @@ case 1:

}
oldCookieName = (0, cookie_name_1.getOldCookieName)(apiKey);
oldCookieName = (0, analytics_client_common_1.getOldCookieName)(apiKey);
return [4 /*yield*/, storage.getRaw(oldCookieName)];

@@ -31,0 +30,0 @@ case 3:

@@ -7,3 +7,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

var analytics_core_1 = require("@amplitude/analytics-core");
var language_1 = require("../utils/language");
var analytics_client_common_1 = require("@amplitude/analytics-client-common");
var version_1 = require("../version");

@@ -47,3 +47,8 @@ var BROWSER_PLATFORM = 'Web';

deviceVendor = this.uaResult.device.vendor;
event = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({ user_id: this.config.userId, device_id: this.config.deviceId, session_id: this.config.sessionId, time: time }, (this.config.appVersion && { app_version: this.config.appVersion })), (this.config.trackingOptions.platform && { platform: BROWSER_PLATFORM })), (this.config.trackingOptions.osName && { os_name: osName })), (this.config.trackingOptions.osVersion && { os_version: osVersion })), (this.config.trackingOptions.deviceManufacturer && { device_manufacturer: deviceVendor })), (this.config.trackingOptions.deviceModel && { device_model: deviceModel })), (this.config.trackingOptions.language && { language: (0, language_1.getLanguage)() })), (this.config.trackingOptions.ipAddress && { ip: IP_ADDRESS })), { insert_id: (0, analytics_core_1.UUID)(), partner_id: this.config.partnerId, plan: this.config.plan }), context), { event_id: this.eventId++, library: this.library });
event = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({ user_id: this.config.userId, device_id: this.config.deviceId, session_id: this.config.sessionId, time: time }, (this.config.appVersion && { app_version: this.config.appVersion })), (this.config.trackingOptions.platform && { platform: BROWSER_PLATFORM })), (this.config.trackingOptions.osName && { os_name: osName })), (this.config.trackingOptions.osVersion && { os_version: osVersion })), (this.config.trackingOptions.deviceManufacturer && { device_manufacturer: deviceVendor })), (this.config.trackingOptions.deviceModel && { device_model: deviceModel })), (this.config.trackingOptions.language && { language: (0, analytics_client_common_1.getLanguage)() })), (this.config.trackingOptions.ipAddress && { ip: IP_ADDRESS })), { insert_id: (0, analytics_core_1.UUID)(), partner_id: this.config.partnerId, plan: this.config.plan }), (this.config.ingestionMetadata && {
ingestion_metadata: {
source_name: this.config.ingestionMetadata.sourceName,
source_version: this.config.ingestionMetadata.sourceVersion,
},
})), context), { event_id: this.eventId++, library: this.library });
return [2 /*return*/, event];

@@ -50,0 +55,0 @@ });

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

export declare const VERSION = "1.2.3";
export declare const VERSION = "1.3.0";
//# sourceMappingURL=version.d.ts.map
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = '1.2.3';
exports.VERSION = '1.3.0';
//# sourceMappingURL=version.js.map
import { __assign, __awaiter, __extends, __generator } from "tslib";
import { AmplitudeCore, Destination, Identify, Revenue, UUID, returnWrapper } from '@amplitude/analytics-core';
import { CampaignTracker, getAnalyticsConnector, IdentityEventSender } from '@amplitude/analytics-client-common';
import { convertProxyObjectToRealObject, isInstanceProxy } from './utils/snippet-helper';

@@ -7,5 +8,2 @@ import { Context } from './plugins/context';

import { parseOldCookies } from './cookie-migration';
import { CampaignTracker } from './attribution/campaign-tracker';
import { getAnalyticsConnector } from './utils/analytics-connector';
import { IdentityEventSender } from './plugins/identity';
var AmplitudeBrowser = /** @class */ (function (_super) {

@@ -12,0 +10,0 @@ __extends(AmplitudeBrowser, _super);

import { Event, BrowserOptions, BrowserConfig as IBrowserConfig, Storage, TrackingOptions, TransportType, UserSession, SessionManager as ISessionManager } from '@amplitude/analytics-types';
import { Config, MemoryStorage } from '@amplitude/analytics-core';
import { FetchTransport } from './transports/fetch';
import { SessionManager, FetchTransport } from '@amplitude/analytics-client-common';
import { XHRTransport } from './transports/xhr';
import { SendBeaconTransport } from './transports/send-beacon';
import { SessionManager } from './session-manager';
export declare const getDefaultConfig: () => {

@@ -8,0 +7,0 @@ cookieExpiration: number;

import { __assign, __awaiter, __extends, __generator, __values } from "tslib";
import { TransportType, } from '@amplitude/analytics-types';
import { Config, MemoryStorage, UUID } from '@amplitude/analytics-core';
import { CookieStorage } from './storage/cookie';
import { FetchTransport } from './transports/fetch';
import { CookieStorage, getCookieName, getQueryParams, SessionManager, FetchTransport, } from '@amplitude/analytics-client-common';
import { LocalStorage } from './storage/local-storage';
import { getCookieName } from './utils/cookie-name';
import { getQueryParams } from './utils/query-params';
import { XHRTransport } from './transports/xhr';
import { SendBeaconTransport } from './transports/send-beacon';
import { SessionManager } from './session-manager';
export var getDefaultConfig = function () {

@@ -13,0 +9,0 @@ var cookieStorage = new MemoryStorage();

import { __awaiter, __generator, __read } from "tslib";
import { getOldCookieName } from '../utils/cookie-name';
import { getOldCookieName, CookieStorage } from '@amplitude/analytics-client-common';
import { LocalStorage } from '../storage/local-storage';
import { CookieStorage } from '../storage/cookie';
export var parseOldCookies = function (apiKey, options) { return __awaiter(void 0, void 0, void 0, function () {

@@ -6,0 +5,0 @@ var storage, oldCookieName, cookies, _a, deviceId, userId, optOut, sessionId, lastEventTime;

@@ -5,3 +5,3 @@ import { __assign, __awaiter, __generator } from "tslib";

import { UUID } from '@amplitude/analytics-core';
import { getLanguage } from '../utils/language';
import { getLanguage } from '@amplitude/analytics-client-common';
import { VERSION } from '../version';

@@ -45,3 +45,8 @@ var BROWSER_PLATFORM = 'Web';

deviceVendor = this.uaResult.device.vendor;
event = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ user_id: this.config.userId, device_id: this.config.deviceId, session_id: this.config.sessionId, time: time }, (this.config.appVersion && { app_version: this.config.appVersion })), (this.config.trackingOptions.platform && { platform: BROWSER_PLATFORM })), (this.config.trackingOptions.osName && { os_name: osName })), (this.config.trackingOptions.osVersion && { os_version: osVersion })), (this.config.trackingOptions.deviceManufacturer && { device_manufacturer: deviceVendor })), (this.config.trackingOptions.deviceModel && { device_model: deviceModel })), (this.config.trackingOptions.language && { language: getLanguage() })), (this.config.trackingOptions.ipAddress && { ip: IP_ADDRESS })), { insert_id: UUID(), partner_id: this.config.partnerId, plan: this.config.plan }), context), { event_id: this.eventId++, library: this.library });
event = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ user_id: this.config.userId, device_id: this.config.deviceId, session_id: this.config.sessionId, time: time }, (this.config.appVersion && { app_version: this.config.appVersion })), (this.config.trackingOptions.platform && { platform: BROWSER_PLATFORM })), (this.config.trackingOptions.osName && { os_name: osName })), (this.config.trackingOptions.osVersion && { os_version: osVersion })), (this.config.trackingOptions.deviceManufacturer && { device_manufacturer: deviceVendor })), (this.config.trackingOptions.deviceModel && { device_model: deviceModel })), (this.config.trackingOptions.language && { language: getLanguage() })), (this.config.trackingOptions.ipAddress && { ip: IP_ADDRESS })), { insert_id: UUID(), partner_id: this.config.partnerId, plan: this.config.plan }), (this.config.ingestionMetadata && {
ingestion_metadata: {
source_name: this.config.ingestionMetadata.sourceName,
source_version: this.config.ingestionMetadata.sourceVersion,
},
})), context), { event_id: this.eventId++, library: this.library });
return [2 /*return*/, event];

@@ -48,0 +53,0 @@ });

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

export declare const VERSION = "1.2.3";
export declare const VERSION = "1.3.0";
//# sourceMappingURL=version.d.ts.map

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

export var VERSION = '1.2.3';
export var VERSION = '1.3.0';
//# sourceMappingURL=version.js.map

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

!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:[]};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{r.invoked=!0;var n=t.createElement("script");n.type="text/javascript",n.integrity="sha384-0vZPaWt9CIvyHXEAxZ7c7qeHzoq5IC9XSrcLo3o3/89ytXa4Sh3Ngw/5t8PzGnl5",n.crossOrigin="anonymous",n.async=!0,n.src="https://cdn.amplitude.com/libs/analytics-browser-1.2.3-min.js.gz",n.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var s=t.getElementsByTagName("script")[0];function v(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}}s.parentNode.insertBefore(n,s);for(var o=function(){return this._q=[],this},i=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],a=0;a<i.length;a++)v(o,i[a]);r.Identify=o;for(var c=function(){return this._q=[],this},u=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setEventProperties"],p=0;p<u.length;p++)v(c,u[p]);r.Revenue=c;var l=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset"],d=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];function f(e){function t(t,r){e[t]=function(){var n={promise:new Promise((r=>{e._q.push({name:t,args:Array.prototype.slice.call(arguments,0),resolve:r})}))};if(r)return n}}for(var r=0;r<l.length;r++)t(l[r],!1);for(var n=0;n<d.length;n++)t(d[n],!0)}f(r),r.createInstance=function(){var e=r._iq.push({_q:[]})-1;return f(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:[]};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{r.invoked=!0;var n=t.createElement("script");n.type="text/javascript",n.integrity="sha384-NNWrkI+gdrTMfZz3Mz8bE96PifcYjWRmbR3rrAwXok8mgtJLd8yUKifn/DJHPT6Z",n.crossOrigin="anonymous",n.async=!0,n.src="https://cdn.amplitude.com/libs/analytics-browser-1.3.0-min.js.gz",n.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var s=t.getElementsByTagName("script")[0];function f(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}}s.parentNode.insertBefore(n,s);for(var o=function(){return this._q=[],this},i=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],a=0;a<i.length;a++)f(o,i[a]);r.Identify=o;for(var u=function(){return this._q=[],this},c=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setEventProperties"],p=0;p<c.length;p++)f(u,c[p]);r.Revenue=u;var d=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset"],l=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];function v(e){function t(t,r){e[t]=function(){var n={promise:new Promise((r=>{e._q.push({name:t,args:Array.prototype.slice.call(arguments,0),resolve:r})}))};if(r)return n}}for(var r=0;r<d.length;r++)t(d[r],!1);for(var n=0;n<l.length;n++)t(l[n],!0)}v(r),r.createInstance=function(){var e=r._iq.push({_q:[]})-1;return v(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
{
"name": "@amplitude/analytics-browser",
"version": "1.2.3",
"version": "1.3.0",
"description": "Official Amplitude SDK for Web",

@@ -44,5 +44,6 @@ "keywords": [

"dependencies": {
"@amplitude/analytics-client-common": "^0.0.1",
"@amplitude/analytics-connector": "^1.4.5",
"@amplitude/analytics-core": "^0.8.1",
"@amplitude/analytics-types": "^0.8.1",
"@amplitude/analytics-core": "^0.9.0",
"@amplitude/analytics-types": "^0.9.0",
"@amplitude/ua-parser-js": "^0.7.31",

@@ -66,3 +67,3 @@ "tslib": "^2.3.1"

],
"gitHead": "404f81a1cdcf1cce9bd35d04561016a65dab635a"
"gitHead": "b05595653967707fa6db014030f071ff5eca6e82"
}

@@ -35,3 +35,3 @@ <p align="center">

<script type="text/javascript">
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:[]};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{r.invoked=!0;var n=t.createElement("script");n.type="text/javascript",n.integrity="sha384-0vZPaWt9CIvyHXEAxZ7c7qeHzoq5IC9XSrcLo3o3/89ytXa4Sh3Ngw/5t8PzGnl5",n.crossOrigin="anonymous",n.async=!0,n.src="https://cdn.amplitude.com/libs/analytics-browser-1.2.3-min.js.gz",n.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var s=t.getElementsByTagName("script")[0];function v(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}}s.parentNode.insertBefore(n,s);for(var o=function(){return this._q=[],this},i=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],a=0;a<i.length;a++)v(o,i[a]);r.Identify=o;for(var c=function(){return this._q=[],this},u=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setEventProperties"],p=0;p<u.length;p++)v(c,u[p]);r.Revenue=c;var l=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset"],d=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];function f(e){function t(t,r){e[t]=function(){var n={promise:new Promise((r=>{e._q.push({name:t,args:Array.prototype.slice.call(arguments,0),resolve:r})}))};if(r)return n}}for(var r=0;r<l.length;r++)t(l[r],!1);for(var n=0;n<d.length;n++)t(d[n],!0)}f(r),r.createInstance=function(){var e=r._iq.push({_q:[]})-1;return f(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:[]};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{r.invoked=!0;var n=t.createElement("script");n.type="text/javascript",n.integrity="sha384-NNWrkI+gdrTMfZz3Mz8bE96PifcYjWRmbR3rrAwXok8mgtJLd8yUKifn/DJHPT6Z",n.crossOrigin="anonymous",n.async=!0,n.src="https://cdn.amplitude.com/libs/analytics-browser-1.3.0-min.js.gz",n.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var s=t.getElementsByTagName("script")[0];function f(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}}s.parentNode.insertBefore(n,s);for(var o=function(){return this._q=[],this},i=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],a=0;a<i.length;a++)f(o,i[a]);r.Identify=o;for(var u=function(){return this._q=[],this},c=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setEventProperties"],p=0;p<c.length;p++)f(u,c[p]);r.Revenue=u;var d=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset"],l=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];function v(e){function t(t,r){e[t]=function(){var n={promise:new Promise((r=>{e._q.push({name:t,args:Array.prototype.slice.call(arguments,0),resolve:r})}))};if(r)return n}}for(var r=0;r<d.length;r++)t(d[r],!1);for(var n=0;n<l.length;n++)t(l[n],!0)}v(r),r.createInstance=function(){var e=r._iq.push({_q:[]})-1;return v(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();

@@ -38,0 +38,0 @@ amplitude.init("YOUR_API_KEY_HERE");

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

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

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

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

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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