Socket
Socket
Sign inDemoInstall

@amplitude/analytics-client-common

Package Overview
Dependencies
Maintainers
19
Versions
90
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 0.0.1 to 0.1.0

7

lib/cjs/attribution/campaign-parser.js

@@ -76,4 +76,9 @@ Object.defineProperty(exports, "__esModule", { value: true });

return _a = {},
_a[constants_1.DCLID] = params[constants_1.DCLID],
_a[constants_1.FBCLID] = params[constants_1.FBCLID],
_a[constants_1.GCLID] = params[constants_1.GCLID],
_a[constants_1.FBCLID] = params[constants_1.FBCLID],
_a[constants_1.KO_CLICK_ID] = params[constants_1.KO_CLICK_ID],
_a[constants_1.MSCLKID] = params[constants_1.MSCLKID],
_a[constants_1.TTCLID] = params[constants_1.TTCLID],
_a[constants_1.TWCLID] = params[constants_1.TWCLID],
_a;

@@ -80,0 +85,0 @@ };

@@ -12,4 +12,9 @@ import { Campaign } from '@amplitude/analytics-types';

export declare const UTMZ_CONTENT = "utmcct";
export declare const DCLID = "dclid";
export declare const FBCLID = "fbclid";
export declare const GCLID = "gclid";
export declare const FBCLID = "fbclid";
export declare const KO_CLICK_ID = "ko_click_id";
export declare const MSCLKID = "msclkid";
export declare const TTCLID = "ttclid";
export declare const TWCLID = "twclid";
export declare const EMPTY_VALUE = "EMPTY";

@@ -16,0 +21,0 @@ export declare const BASE_CAMPAIGN: Campaign;

9

lib/cjs/attribution/constants.js
Object.defineProperty(exports, "__esModule", { value: true });
exports.MKTG = exports.BASE_CAMPAIGN = exports.EMPTY_VALUE = exports.FBCLID = exports.GCLID = exports.UTMZ_CONTENT = exports.UTMZ_TERM = exports.UTMZ_CAMPAIGN = exports.UTMZ_MEDIUM = exports.UTMZ_SOURCE = exports.UTM_CONTENT = exports.UTM_TERM = exports.UTM_CAMPAIGN = exports.UTM_MEDIUM = exports.UTM_SOURCE = void 0;
exports.MKTG = exports.BASE_CAMPAIGN = exports.EMPTY_VALUE = exports.TWCLID = exports.TTCLID = exports.MSCLKID = exports.KO_CLICK_ID = exports.GCLID = exports.FBCLID = exports.DCLID = exports.UTMZ_CONTENT = exports.UTMZ_TERM = exports.UTMZ_CAMPAIGN = exports.UTMZ_MEDIUM = exports.UTMZ_SOURCE = exports.UTM_CONTENT = exports.UTM_TERM = exports.UTM_CAMPAIGN = exports.UTM_MEDIUM = exports.UTM_SOURCE = void 0;
exports.UTM_SOURCE = 'utm_source';

@@ -13,4 +13,9 @@ exports.UTM_MEDIUM = 'utm_medium';

exports.UTMZ_CONTENT = 'utmcct';
exports.DCLID = 'dclid';
exports.FBCLID = 'fbclid';
exports.GCLID = 'gclid';
exports.FBCLID = 'fbclid';
exports.KO_CLICK_ID = 'ko_click_id';
exports.MSCLKID = 'msclkid';
exports.TTCLID = 'ttclid';
exports.TWCLID = 'twclid';
exports.EMPTY_VALUE = 'EMPTY';

@@ -17,0 +22,0 @@ exports.BASE_CAMPAIGN = {

import { __assign, __awaiter, __generator } from "tslib";
import { UTMCookie } from '../storage/utm-cookie';
import { getQueryParams } from '../query-params';
import { UTM_CAMPAIGN, UTM_CONTENT, UTM_MEDIUM, UTM_SOURCE, UTM_TERM, UTMZ_SOURCE, UTMZ_MEDIUM, UTMZ_CAMPAIGN, UTMZ_TERM, UTMZ_CONTENT, GCLID, FBCLID, BASE_CAMPAIGN, } from './constants';
import { UTM_CAMPAIGN, UTM_CONTENT, UTM_MEDIUM, UTM_SOURCE, UTM_TERM, UTMZ_SOURCE, UTMZ_MEDIUM, UTMZ_CAMPAIGN, UTMZ_TERM, UTMZ_CONTENT, GCLID, FBCLID, BASE_CAMPAIGN, DCLID, MSCLKID, TWCLID, TTCLID, KO_CLICK_ID, } from './constants';
var CampaignParser = /** @class */ (function () {

@@ -74,4 +74,9 @@ function CampaignParser() {

return _a = {},
_a[DCLID] = params[DCLID],
_a[FBCLID] = params[FBCLID],
_a[GCLID] = params[GCLID],
_a[FBCLID] = params[FBCLID],
_a[KO_CLICK_ID] = params[KO_CLICK_ID],
_a[MSCLKID] = params[MSCLKID],
_a[TTCLID] = params[TTCLID],
_a[TWCLID] = params[TWCLID],
_a;

@@ -78,0 +83,0 @@ };

@@ -12,4 +12,9 @@ import { Campaign } from '@amplitude/analytics-types';

export declare const UTMZ_CONTENT = "utmcct";
export declare const DCLID = "dclid";
export declare const FBCLID = "fbclid";
export declare const GCLID = "gclid";
export declare const FBCLID = "fbclid";
export declare const KO_CLICK_ID = "ko_click_id";
export declare const MSCLKID = "msclkid";
export declare const TTCLID = "ttclid";
export declare const TWCLID = "twclid";
export declare const EMPTY_VALUE = "EMPTY";

@@ -16,0 +21,0 @@ export declare const BASE_CAMPAIGN: Campaign;

@@ -11,4 +11,9 @@ export var UTM_SOURCE = 'utm_source';

export var UTMZ_CONTENT = 'utmcct';
export var DCLID = 'dclid';
export var FBCLID = 'fbclid';
export var GCLID = 'gclid';
export var FBCLID = 'fbclid';
export var KO_CLICK_ID = 'ko_click_id';
export var MSCLKID = 'msclkid';
export var TTCLID = 'ttclid';
export var TWCLID = 'twclid';
export var EMPTY_VALUE = 'EMPTY';

@@ -15,0 +20,0 @@ export var BASE_CAMPAIGN = {

{
"name": "@amplitude/analytics-client-common",
"version": "0.0.1",
"version": "0.1.0",
"description": "",

@@ -36,4 +36,4 @@ "author": "Amplitude Inc",

"dependencies": {
"@amplitude/analytics-core": "^0.9.0",
"@amplitude/analytics-types": "^0.9.0",
"@amplitude/analytics-core": "^0.9.1",
"@amplitude/analytics-types": "^0.10.0",
"tslib": "^2.3.1"

@@ -44,3 +44,3 @@ },

],
"gitHead": "b05595653967707fa6db014030f071ff5eca6e82"
"gitHead": "fff912bc630dc8cd98b5b2a89c2cf8611d557903"
}

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

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