rudder-sdk-js 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +376 -587
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5148,136 +5148,6 @@
|
|
5148
5148
|
return isobject(val) || Array.isArray(val) || typeof val === 'function';
|
5149
5149
|
}
|
5150
5150
|
|
5151
|
-
function isObjectObject(o) {
|
5152
|
-
return isobject(o) === true && Object.prototype.toString.call(o) === '[object Object]';
|
5153
|
-
}
|
5154
|
-
|
5155
|
-
var isPlainObject = function isPlainObject(o) {
|
5156
|
-
var ctor, prot;
|
5157
|
-
if (isObjectObject(o) === false) return false; // If has modified constructor
|
5158
|
-
|
5159
|
-
ctor = o.constructor;
|
5160
|
-
if (typeof ctor !== 'function') return false; // If has modified prototype
|
5161
|
-
|
5162
|
-
prot = ctor.prototype;
|
5163
|
-
if (isObjectObject(prot) === false) return false; // If constructor does not have an Object-specific method
|
5164
|
-
|
5165
|
-
if (prot.hasOwnProperty('isPrototypeOf') === false) {
|
5166
|
-
return false;
|
5167
|
-
} // Most likely a plain Object
|
5168
|
-
|
5169
|
-
|
5170
|
-
return true;
|
5171
|
-
};
|
5172
|
-
|
5173
|
-
function set(target, path, value, options) {
|
5174
|
-
if (!isObject(target)) {
|
5175
|
-
return target;
|
5176
|
-
}
|
5177
|
-
|
5178
|
-
var opts = options || {};
|
5179
|
-
var isArray = Array.isArray(path);
|
5180
|
-
|
5181
|
-
if (!isArray && typeof path !== 'string') {
|
5182
|
-
return target;
|
5183
|
-
}
|
5184
|
-
|
5185
|
-
var merge = opts.merge;
|
5186
|
-
|
5187
|
-
if (merge && typeof merge !== 'function') {
|
5188
|
-
merge = Object.assign;
|
5189
|
-
}
|
5190
|
-
|
5191
|
-
var keys = (isArray ? path : split$1(path, opts)).filter(isValidKey);
|
5192
|
-
var len = keys.length;
|
5193
|
-
var orig = target;
|
5194
|
-
|
5195
|
-
if (!options && keys.length === 1) {
|
5196
|
-
result(target, keys[0], value, merge);
|
5197
|
-
return target;
|
5198
|
-
}
|
5199
|
-
|
5200
|
-
for (var i = 0; i < len; i++) {
|
5201
|
-
var prop = keys[i];
|
5202
|
-
|
5203
|
-
if (!isObject(target[prop])) {
|
5204
|
-
target[prop] = {};
|
5205
|
-
}
|
5206
|
-
|
5207
|
-
if (i === len - 1) {
|
5208
|
-
result(target, prop, value, merge);
|
5209
|
-
break;
|
5210
|
-
}
|
5211
|
-
|
5212
|
-
target = target[prop];
|
5213
|
-
}
|
5214
|
-
|
5215
|
-
return orig;
|
5216
|
-
}
|
5217
|
-
|
5218
|
-
function result(target, path, value, merge) {
|
5219
|
-
if (merge && isPlainObject(target[path]) && isPlainObject(value)) {
|
5220
|
-
target[path] = merge({}, target[path], value);
|
5221
|
-
} else {
|
5222
|
-
target[path] = value;
|
5223
|
-
}
|
5224
|
-
}
|
5225
|
-
|
5226
|
-
function split$1(path, options) {
|
5227
|
-
var id = createKey(path, options);
|
5228
|
-
if (set.memo[id]) return set.memo[id];
|
5229
|
-
var char = options && options.separator ? options.separator : '.';
|
5230
|
-
var keys = [];
|
5231
|
-
var res = [];
|
5232
|
-
|
5233
|
-
if (options && typeof options.split === 'function') {
|
5234
|
-
keys = options.split(path);
|
5235
|
-
} else {
|
5236
|
-
keys = path.split(char);
|
5237
|
-
}
|
5238
|
-
|
5239
|
-
for (var i = 0; i < keys.length; i++) {
|
5240
|
-
var prop = keys[i];
|
5241
|
-
|
5242
|
-
while (prop && prop.slice(-1) === '\\' && keys[i + 1] != null) {
|
5243
|
-
prop = prop.slice(0, -1) + char + keys[++i];
|
5244
|
-
}
|
5245
|
-
|
5246
|
-
res.push(prop);
|
5247
|
-
}
|
5248
|
-
|
5249
|
-
set.memo[id] = res;
|
5250
|
-
return res;
|
5251
|
-
}
|
5252
|
-
|
5253
|
-
function createKey(pattern, options) {
|
5254
|
-
var id = pattern;
|
5255
|
-
|
5256
|
-
if (typeof options === 'undefined') {
|
5257
|
-
return id + '';
|
5258
|
-
}
|
5259
|
-
|
5260
|
-
var keys = Object.keys(options);
|
5261
|
-
|
5262
|
-
for (var i = 0; i < keys.length; i++) {
|
5263
|
-
var key = keys[i];
|
5264
|
-
id += ';' + key + '=' + String(options[key]);
|
5265
|
-
}
|
5266
|
-
|
5267
|
-
return id;
|
5268
|
-
}
|
5269
|
-
|
5270
|
-
function isValidKey(key) {
|
5271
|
-
return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
|
5272
|
-
}
|
5273
|
-
|
5274
|
-
function isObject(val) {
|
5275
|
-
return val !== null && (_typeof(val) === 'object' || typeof val === 'function');
|
5276
|
-
}
|
5277
|
-
|
5278
|
-
set.memo = {};
|
5279
|
-
var setValue = set;
|
5280
|
-
|
5281
5151
|
var LOG_LEVEL_INFO = 1;
|
5282
5152
|
var LOG_LEVEL_DEBUG = 2;
|
5283
5153
|
var LOG_LEVEL_WARN = 3;
|
@@ -5328,149 +5198,237 @@
|
|
5328
5198
|
}
|
5329
5199
|
};
|
5330
5200
|
|
5331
|
-
|
5201
|
+
var _CNameMapping;
|
5202
|
+
|
5203
|
+
var NAME = "ADOBE_ANALYTICS";
|
5204
|
+
var CNameMapping = (_CNameMapping = {
|
5205
|
+
"Adobe Analytics": NAME
|
5206
|
+
}, _defineProperty(_CNameMapping, NAME, NAME), _defineProperty(_CNameMapping, "AdobeAnalytics", NAME), _defineProperty(_CNameMapping, "adobeanalytics", NAME), _CNameMapping);
|
5207
|
+
|
5208
|
+
var _CNameMapping$1;
|
5209
|
+
|
5210
|
+
var NAME$1 = "AM";
|
5211
|
+
var CNameMapping$1 = (_CNameMapping$1 = {}, _defineProperty(_CNameMapping$1, NAME$1, NAME$1), _defineProperty(_CNameMapping$1, "AMPLITUDE", NAME$1), _defineProperty(_CNameMapping$1, "Amplitude", NAME$1), _CNameMapping$1);
|
5212
|
+
|
5213
|
+
var _CNameMapping$2;
|
5214
|
+
|
5215
|
+
var NAME$2 = "APPCUES";
|
5216
|
+
var CNameMapping$2 = (_CNameMapping$2 = {}, _defineProperty(_CNameMapping$2, NAME$2, NAME$2), _defineProperty(_CNameMapping$2, "Appcues", NAME$2), _CNameMapping$2);
|
5217
|
+
|
5218
|
+
var _CNameMapping$3;
|
5219
|
+
|
5220
|
+
var NAME$3 = "BINGADS";
|
5221
|
+
var CNameMapping$3 = (_CNameMapping$3 = {}, _defineProperty(_CNameMapping$3, NAME$3, NAME$3), _defineProperty(_CNameMapping$3, "BingAds", NAME$3), _CNameMapping$3);
|
5222
|
+
|
5223
|
+
var _CNameMapping$4;
|
5224
|
+
|
5225
|
+
var NAME$4 = "BRAZE";
|
5226
|
+
var CNameMapping$4 = (_CNameMapping$4 = {}, _defineProperty(_CNameMapping$4, NAME$4, NAME$4), _defineProperty(_CNameMapping$4, "Braze", NAME$4), _CNameMapping$4);
|
5227
|
+
|
5228
|
+
var NAME$5 = "BUGSNAG";
|
5229
|
+
|
5230
|
+
var CNameMapping$5 = _defineProperty({}, NAME$5, NAME$5);
|
5231
|
+
|
5232
|
+
var _CNameMapping$5;
|
5233
|
+
|
5234
|
+
var NAME$6 = "CHARTBEAT";
|
5235
|
+
var CNameMapping$6 = (_CNameMapping$5 = {}, _defineProperty(_CNameMapping$5, NAME$6, NAME$6), _defineProperty(_CNameMapping$5, "Chartbeat", NAME$6), _CNameMapping$5);
|
5236
|
+
|
5237
|
+
var _CNameMapping$6;
|
5238
|
+
|
5239
|
+
var NAME$7 = "CLEVERTAP";
|
5240
|
+
var CNameMapping$7 = (_CNameMapping$6 = {}, _defineProperty(_CNameMapping$6, NAME$7, NAME$7), _defineProperty(_CNameMapping$6, "Clevertap", NAME$7), _CNameMapping$6);
|
5241
|
+
|
5242
|
+
var _CNameMapping$7;
|
5243
|
+
|
5244
|
+
var NAME$8 = "COMSCORE";
|
5245
|
+
var CNameMapping$8 = (_CNameMapping$7 = {}, _defineProperty(_CNameMapping$7, NAME$8, NAME$8), _defineProperty(_CNameMapping$7, "Comscore", NAME$8), _CNameMapping$7);
|
5246
|
+
|
5247
|
+
var _CNameMapping$8;
|
5248
|
+
|
5249
|
+
var NAME$9 = "CRITEO";
|
5250
|
+
var CNameMapping$9 = (_CNameMapping$8 = {}, _defineProperty(_CNameMapping$8, NAME$9, NAME$9), _defineProperty(_CNameMapping$8, "Criteo", NAME$9), _defineProperty(_CNameMapping$8, "criteo", NAME$9), _CNameMapping$8);
|
5251
|
+
|
5252
|
+
var _CNameMapping$9;
|
5253
|
+
|
5254
|
+
var NAME$a = "CUSTOMERIO";
|
5255
|
+
var CNameMapping$a = (_CNameMapping$9 = {}, _defineProperty(_CNameMapping$9, NAME$a, NAME$a), _defineProperty(_CNameMapping$9, "Customerio", NAME$a), _defineProperty(_CNameMapping$9, "Customer.io", NAME$a), _CNameMapping$9);
|
5256
|
+
|
5257
|
+
var _CNameMapping$a;
|
5258
|
+
|
5259
|
+
var NAME$b = "DRIP";
|
5260
|
+
var CNameMapping$b = (_CNameMapping$a = {}, _defineProperty(_CNameMapping$a, NAME$b, NAME$b), _defineProperty(_CNameMapping$a, "Drip", NAME$b), _defineProperty(_CNameMapping$a, "drip", NAME$b), _CNameMapping$a);
|
5261
|
+
|
5262
|
+
var _CNameMapping$b;
|
5263
|
+
|
5264
|
+
var NAME$c = "FACEBOOK_PIXEL";
|
5265
|
+
var CNameMapping$c = (_CNameMapping$b = {}, _defineProperty(_CNameMapping$b, NAME$c, NAME$c), _defineProperty(_CNameMapping$b, "FB Pixel", NAME$c), _defineProperty(_CNameMapping$b, "Facebook Pixel", NAME$c), _defineProperty(_CNameMapping$b, "FB_PIXEL", NAME$c), _CNameMapping$b);
|
5266
|
+
|
5267
|
+
var _CNameMapping$c;
|
5268
|
+
|
5269
|
+
var NAME$d = "FULLSTORY";
|
5270
|
+
var CNameMapping$d = (_CNameMapping$c = {}, _defineProperty(_CNameMapping$c, NAME$d, NAME$d), _defineProperty(_CNameMapping$c, "Fullstory", NAME$d), _defineProperty(_CNameMapping$c, "FullStory", NAME$d), _CNameMapping$c);
|
5271
|
+
|
5272
|
+
var _CNameMapping$d;
|
5273
|
+
|
5274
|
+
var NAME$e = "GA";
|
5275
|
+
var CNameMapping$e = (_CNameMapping$d = {}, _defineProperty(_CNameMapping$d, NAME$e, NAME$e), _defineProperty(_CNameMapping$d, "Google Analytics", NAME$e), _defineProperty(_CNameMapping$d, "GoogleAnalytics", NAME$e), _CNameMapping$d);
|
5276
|
+
|
5277
|
+
var _CNameMapping$e;
|
5278
|
+
|
5279
|
+
var NAME$f = "GA4";
|
5280
|
+
var CNameMapping$f = (_CNameMapping$e = {}, _defineProperty(_CNameMapping$e, NAME$f, NAME$f), _defineProperty(_CNameMapping$e, "Google Analytics 4", NAME$f), _defineProperty(_CNameMapping$e, "GoogleAnalytics4", NAME$f), _CNameMapping$e);
|
5281
|
+
|
5282
|
+
var _CNameMapping$f;
|
5283
|
+
|
5284
|
+
var NAME$g = "GOOGLEADS";
|
5285
|
+
var CNameMapping$g = (_CNameMapping$f = {}, _defineProperty(_CNameMapping$f, NAME$g, NAME$g), _defineProperty(_CNameMapping$f, "Google Ads", NAME$g), _defineProperty(_CNameMapping$f, "GoogleAds", NAME$g), _CNameMapping$f);
|
5286
|
+
|
5287
|
+
var _CNameMapping$g;
|
5288
|
+
|
5289
|
+
var NAME$h = "GOOGLE_OPTIMIZE";
|
5290
|
+
var CNameMapping$h = (_CNameMapping$g = {}, _defineProperty(_CNameMapping$g, NAME$h, NAME$h), _defineProperty(_CNameMapping$g, "Google Optimize", NAME$h), _defineProperty(_CNameMapping$g, "GoogleOptimize", NAME$h), _defineProperty(_CNameMapping$g, "Googleoptimize", NAME$h), _defineProperty(_CNameMapping$g, "GOOGLEOPTIMIZE", NAME$h), _CNameMapping$g);
|
5291
|
+
|
5292
|
+
var _CNameMapping$h;
|
5293
|
+
|
5294
|
+
var NAME$i = "GTM";
|
5295
|
+
var CNameMapping$i = (_CNameMapping$h = {}, _defineProperty(_CNameMapping$h, NAME$i, NAME$i), _defineProperty(_CNameMapping$h, "Google Tag Manager", NAME$i), _CNameMapping$h);
|
5296
|
+
|
5297
|
+
var _CNameMapping$i;
|
5298
|
+
|
5299
|
+
var NAME$j = "HEAP";
|
5300
|
+
var CNameMapping$j = (_CNameMapping$i = {}, _defineProperty(_CNameMapping$i, NAME$j, NAME$j), _defineProperty(_CNameMapping$i, "Heap", NAME$j), _defineProperty(_CNameMapping$i, "heap", NAME$j), _defineProperty(_CNameMapping$i, "Heap.io", NAME$j), _CNameMapping$i);
|
5301
|
+
|
5302
|
+
var _CNameMapping$j;
|
5303
|
+
|
5304
|
+
var NAME$k = "HOTJAR";
|
5305
|
+
var CNameMapping$k = (_CNameMapping$j = {}, _defineProperty(_CNameMapping$j, NAME$k, NAME$k), _defineProperty(_CNameMapping$j, "Hotjar", NAME$k), _defineProperty(_CNameMapping$j, "hotjar", NAME$k), _CNameMapping$j);
|
5306
|
+
|
5307
|
+
var _CNameMapping$k;
|
5308
|
+
|
5309
|
+
var NAME$l = "HS";
|
5310
|
+
var CNameMapping$l = (_CNameMapping$k = {}, _defineProperty(_CNameMapping$k, NAME$l, NAME$l), _defineProperty(_CNameMapping$k, "Hubspot", NAME$l), _defineProperty(_CNameMapping$k, "HUBSPOT", NAME$l), _CNameMapping$k);
|
5311
|
+
|
5312
|
+
var _CNameMapping$l;
|
5313
|
+
|
5314
|
+
var NAME$m = "INTERCOM";
|
5315
|
+
var CNameMapping$m = (_CNameMapping$l = {}, _defineProperty(_CNameMapping$l, NAME$m, NAME$m), _defineProperty(_CNameMapping$l, "Intercom", NAME$m), _CNameMapping$l);
|
5316
|
+
|
5317
|
+
var _CNameMapping$m;
|
5318
|
+
|
5319
|
+
var NAME$n = "KEEN";
|
5320
|
+
var CNameMapping$n = (_CNameMapping$m = {}, _defineProperty(_CNameMapping$m, NAME$n, NAME$n), _defineProperty(_CNameMapping$m, "Keen", NAME$n), _defineProperty(_CNameMapping$m, "Keen.io", NAME$n), _CNameMapping$m);
|
5321
|
+
|
5322
|
+
var _CNameMapping$n;
|
5323
|
+
|
5324
|
+
var NAME$o = "KISSMETRICS";
|
5325
|
+
var CNameMapping$o = (_CNameMapping$n = {}, _defineProperty(_CNameMapping$n, NAME$o, NAME$o), _defineProperty(_CNameMapping$n, "Kissmetrics", NAME$o), _CNameMapping$n);
|
5326
|
+
|
5327
|
+
var _CNameMapping$o;
|
5328
|
+
|
5329
|
+
var NAME$p = "KLAVIYO";
|
5330
|
+
var CNameMapping$p = (_CNameMapping$o = {}, _defineProperty(_CNameMapping$o, NAME$p, NAME$p), _defineProperty(_CNameMapping$o, "Klaviyo", NAME$p), _CNameMapping$o);
|
5331
|
+
|
5332
|
+
var _CNameMapping$p;
|
5333
|
+
|
5334
|
+
var NAME$q = "LAUNCHDARKLY";
|
5335
|
+
var CNameMapping$q = (_CNameMapping$p = {}, _defineProperty(_CNameMapping$p, NAME$q, NAME$q), _defineProperty(_CNameMapping$p, "LaunchDarkly", NAME$q), _defineProperty(_CNameMapping$p, "Launch_Darkly", NAME$q), _defineProperty(_CNameMapping$p, "Launch Darkly", NAME$q), _defineProperty(_CNameMapping$p, "launchDarkly", NAME$q), _CNameMapping$p);
|
5336
|
+
|
5337
|
+
var _CNameMapping$q;
|
5338
|
+
|
5339
|
+
var NAME$r = "LINKEDIN_INSIGHT_TAG";
|
5340
|
+
var CNameMapping$r = (_CNameMapping$q = {}, _defineProperty(_CNameMapping$q, NAME$r, NAME$r), _defineProperty(_CNameMapping$q, "LinkedIn Insight Tag", NAME$r), _defineProperty(_CNameMapping$q, "Linkedin_insight_tag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedinInsighttag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedinInsightTag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedInInsightTag", NAME$r), _defineProperty(_CNameMapping$q, "Linkedininsighttag", NAME$r), _defineProperty(_CNameMapping$q, "LINKEDININSIGHTTAG", NAME$r), _CNameMapping$q);
|
5341
|
+
|
5342
|
+
var _CNameMapping$r;
|
5343
|
+
|
5344
|
+
var NAME$s = "LOTAME";
|
5345
|
+
var CNameMapping$s = (_CNameMapping$r = {}, _defineProperty(_CNameMapping$r, NAME$s, NAME$s), _defineProperty(_CNameMapping$r, "Lotame", NAME$s), _CNameMapping$r);
|
5346
|
+
|
5347
|
+
var _CNameMapping$s;
|
5348
|
+
|
5349
|
+
var NAME$t = "LYTICS";
|
5350
|
+
var CNameMapping$t = (_CNameMapping$s = {}, _defineProperty(_CNameMapping$s, NAME$t, NAME$t), _defineProperty(_CNameMapping$s, "Lytics", NAME$t), _CNameMapping$s);
|
5351
|
+
|
5352
|
+
var _CNameMapping$t;
|
5353
|
+
|
5354
|
+
var NAME$u = "MP";
|
5355
|
+
var CNameMapping$u = (_CNameMapping$t = {}, _defineProperty(_CNameMapping$t, NAME$u, NAME$u), _defineProperty(_CNameMapping$t, "MIXPANEL", NAME$u), _defineProperty(_CNameMapping$t, "Mixpanel", NAME$u), _CNameMapping$t);
|
5356
|
+
|
5357
|
+
var _CNameMapping$u;
|
5358
|
+
|
5359
|
+
var NAME$v = "MOENGAGE";
|
5360
|
+
var CNameMapping$v = (_CNameMapping$u = {}, _defineProperty(_CNameMapping$u, NAME$v, NAME$v), _defineProperty(_CNameMapping$u, "MoEngage", NAME$v), _CNameMapping$u);
|
5361
|
+
|
5362
|
+
var _CNameMapping$v;
|
5363
|
+
|
5364
|
+
var NAME$w = "OPTIMIZELY";
|
5365
|
+
var CNameMapping$w = (_CNameMapping$v = {}, _defineProperty(_CNameMapping$v, NAME$w, NAME$w), _defineProperty(_CNameMapping$v, "Optimizely", NAME$w), _CNameMapping$v);
|
5366
|
+
|
5367
|
+
var _CNameMapping$w;
|
5368
|
+
|
5369
|
+
var NAME$x = "PENDO";
|
5370
|
+
var CNameMapping$x = (_CNameMapping$w = {}, _defineProperty(_CNameMapping$w, NAME$x, NAME$x), _defineProperty(_CNameMapping$w, "Pendo", NAME$x), _CNameMapping$w);
|
5371
|
+
|
5372
|
+
var _CNameMapping$x;
|
5373
|
+
|
5374
|
+
var NAME$y = "PINTEREST_TAG";
|
5375
|
+
var CNameMapping$y = (_CNameMapping$x = {}, _defineProperty(_CNameMapping$x, NAME$y, NAME$y), _defineProperty(_CNameMapping$x, "PinterestTag", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest_Tag", NAME$y), _defineProperty(_CNameMapping$x, "PINTERESTTAG", NAME$y), _defineProperty(_CNameMapping$x, "pinterest", NAME$y), _defineProperty(_CNameMapping$x, "PinterestAds", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest_Ads", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest", NAME$y), _CNameMapping$x);
|
5376
|
+
|
5377
|
+
var _CNameMapping$y;
|
5378
|
+
|
5379
|
+
var NAME$z = "POST_AFFILIATE_PRO";
|
5380
|
+
var CNameMapping$z = (_CNameMapping$y = {}, _defineProperty(_CNameMapping$y, NAME$z, NAME$z), _defineProperty(_CNameMapping$y, "PostAffiliatePro", NAME$z), _defineProperty(_CNameMapping$y, "Post_affiliate_pro", NAME$z), _defineProperty(_CNameMapping$y, "Post Affiliate Pro", NAME$z), _defineProperty(_CNameMapping$y, "postaffiliatepro", NAME$z), _defineProperty(_CNameMapping$y, "POSTAFFILIATEPRO", NAME$z), _CNameMapping$y);
|
5381
|
+
|
5382
|
+
var _CNameMapping$z;
|
5383
|
+
|
5384
|
+
var NAME$A = "POSTHOG";
|
5385
|
+
var CNameMapping$A = (_CNameMapping$z = {}, _defineProperty(_CNameMapping$z, NAME$A, NAME$A), _defineProperty(_CNameMapping$z, "PostHog", NAME$A), _defineProperty(_CNameMapping$z, "Posthog", NAME$A), _CNameMapping$z);
|
5386
|
+
|
5387
|
+
var _CNameMapping$A;
|
5388
|
+
|
5389
|
+
var NAME$B = "PROFITWELL";
|
5390
|
+
var CNameMapping$B = (_CNameMapping$A = {}, _defineProperty(_CNameMapping$A, NAME$B, NAME$B), _defineProperty(_CNameMapping$A, "ProfitWell", NAME$B), _defineProperty(_CNameMapping$A, "profitwell", NAME$B), _defineProperty(_CNameMapping$A, "Profitwell", NAME$B), _CNameMapping$A);
|
5391
|
+
|
5392
|
+
var _CNameMapping$B;
|
5393
|
+
|
5394
|
+
var NAME$C = "QUALTRICS";
|
5395
|
+
var CNameMapping$C = (_CNameMapping$B = {}, _defineProperty(_CNameMapping$B, NAME$C, NAME$C), _defineProperty(_CNameMapping$B, "Qualtrics", NAME$C), _defineProperty(_CNameMapping$B, "qualtrics", NAME$C), _CNameMapping$B);
|
5396
|
+
|
5397
|
+
var _CNameMapping$C;
|
5398
|
+
|
5399
|
+
var NAME$D = "QUANTUMMETRIC";
|
5400
|
+
var CNameMapping$D = (_CNameMapping$C = {}, _defineProperty(_CNameMapping$C, NAME$D, NAME$D), _defineProperty(_CNameMapping$C, "Quantum Metric", NAME$D), _defineProperty(_CNameMapping$C, "QuantumMetric", NAME$D), _defineProperty(_CNameMapping$C, "quantumMetric", NAME$D), _defineProperty(_CNameMapping$C, "quantummetric", NAME$D), _defineProperty(_CNameMapping$C, "Quantum_Metric", NAME$D), _CNameMapping$C);
|
5401
|
+
|
5402
|
+
var _CNameMapping$D;
|
5403
|
+
|
5404
|
+
var NAME$E = "REDDIT_PIXEL";
|
5405
|
+
var CNameMapping$E = (_CNameMapping$D = {}, _defineProperty(_CNameMapping$D, NAME$E, NAME$E), _defineProperty(_CNameMapping$D, "Reddit_Pixel", NAME$E), _defineProperty(_CNameMapping$D, "RedditPixel", NAME$E), _defineProperty(_CNameMapping$D, "REDDITPIXEL", NAME$E), _defineProperty(_CNameMapping$D, "redditpixel", NAME$E), _defineProperty(_CNameMapping$D, "Reddit Pixel", NAME$E), _defineProperty(_CNameMapping$D, "REDDIT PIXEL", NAME$E), _defineProperty(_CNameMapping$D, "reddit pixel", NAME$E), _CNameMapping$D);
|
5406
|
+
|
5407
|
+
var _CNameMapping$E;
|
5408
|
+
|
5409
|
+
var NAME$F = "SENTRY";
|
5410
|
+
var CNameMapping$F = (_CNameMapping$E = {}, _defineProperty(_CNameMapping$E, NAME$F, NAME$F), _defineProperty(_CNameMapping$E, "sentry", NAME$F), _defineProperty(_CNameMapping$E, "Sentry", NAME$F), _CNameMapping$E);
|
5411
|
+
|
5412
|
+
var _CNameMapping$F;
|
5413
|
+
|
5414
|
+
var NAME$G = "SNAP_PIXEL";
|
5415
|
+
var CNameMapping$G = (_CNameMapping$F = {}, _defineProperty(_CNameMapping$F, NAME$G, NAME$G), _defineProperty(_CNameMapping$F, "Snap_Pixel", NAME$G), _defineProperty(_CNameMapping$F, "SnapPixel", NAME$G), _defineProperty(_CNameMapping$F, "SNAPPIXEL", NAME$G), _defineProperty(_CNameMapping$F, "snappixel", NAME$G), _defineProperty(_CNameMapping$F, "Snap Pixel", NAME$G), _defineProperty(_CNameMapping$F, "SNAP PIXEL", NAME$G), _defineProperty(_CNameMapping$F, "snap pixel", NAME$G), _CNameMapping$F);
|
5416
|
+
|
5417
|
+
var _CNameMapping$G;
|
5418
|
+
|
5419
|
+
var NAME$H = "TVSQUARED";
|
5420
|
+
var CNameMapping$H = (_CNameMapping$G = {}, _defineProperty(_CNameMapping$G, NAME$H, NAME$H), _defineProperty(_CNameMapping$G, "TVSquared", NAME$H), _CNameMapping$G);
|
5421
|
+
|
5422
|
+
var _CNameMapping$H;
|
5423
|
+
|
5424
|
+
var NAME$I = "VWO";
|
5425
|
+
var CNameMapping$I = (_CNameMapping$H = {}, _defineProperty(_CNameMapping$H, NAME$I, NAME$I), _defineProperty(_CNameMapping$H, "Visual Website Optimizer", NAME$I), _CNameMapping$H);
|
5426
|
+
|
5332
5427
|
// add a mapping from common names to index.js exported key names as identified by Rudder
|
5333
|
-
|
5334
|
-
|
5335
|
-
|
5336
|
-
|
5337
|
-
GA: "GA",
|
5338
|
-
"Google Ads": "GOOGLEADS",
|
5339
|
-
GoogleAds: "GOOGLEADS",
|
5340
|
-
GOOGLEADS: "GOOGLEADS",
|
5341
|
-
Braze: "BRAZE",
|
5342
|
-
BRAZE: "BRAZE",
|
5343
|
-
Chartbeat: "CHARTBEAT",
|
5344
|
-
CHARTBEAT: "CHARTBEAT",
|
5345
|
-
Comscore: "COMSCORE",
|
5346
|
-
COMSCORE: "COMSCORE",
|
5347
|
-
Customerio: "CUSTOMERIO",
|
5348
|
-
"Customer.io": "CUSTOMERIO",
|
5349
|
-
"FB Pixel": "FACEBOOK_PIXEL",
|
5350
|
-
"Facebook Pixel": "FACEBOOK_PIXEL",
|
5351
|
-
FB_PIXEL: "FACEBOOK_PIXEL",
|
5352
|
-
"Google Tag Manager": "GOOGLETAGMANAGER",
|
5353
|
-
GTM: "GTM",
|
5354
|
-
Hotjar: "HOTJAR",
|
5355
|
-
hotjar: "HOTJAR",
|
5356
|
-
HOTJAR: "HOTJAR",
|
5357
|
-
Hubspot: "HS",
|
5358
|
-
HUBSPOT: "HS",
|
5359
|
-
Intercom: "INTERCOM",
|
5360
|
-
INTERCOM: "INTERCOM",
|
5361
|
-
Keen: "KEEN",
|
5362
|
-
"Keen.io": "KEEN",
|
5363
|
-
KEEN: "KEEN",
|
5364
|
-
Kissmetrics: "KISSMETRICS",
|
5365
|
-
KISSMETRICS: "KISSMETRICS",
|
5366
|
-
Lotame: "LOTAME",
|
5367
|
-
LOTAME: "LOTAME",
|
5368
|
-
"Visual Website Optimizer": "VWO",
|
5369
|
-
VWO: "VWO",
|
5370
|
-
OPTIMIZELY: "OPTIMIZELY",
|
5371
|
-
Optimizely: "OPTIMIZELY",
|
5372
|
-
FULLSTORY: "FULLSTORY",
|
5373
|
-
Fullstory: "FULLSTORY",
|
5374
|
-
FullStory: "FULLSTORY",
|
5375
|
-
BUGSNAG: "BUGSNAG",
|
5376
|
-
TVSQUARED: "TVSQUARED",
|
5377
|
-
"Google Analytics 4": "GA4",
|
5378
|
-
GoogleAnalytics4: "GA4",
|
5379
|
-
GA4: "GA4",
|
5380
|
-
MOENGAGE: "MoEngage",
|
5381
|
-
AM: "AM",
|
5382
|
-
AMPLITUDE: "AM",
|
5383
|
-
Amplitude: "AM",
|
5384
|
-
Pendo: "PENDO",
|
5385
|
-
PENDO: "PENDO",
|
5386
|
-
Lytics: "Lytics",
|
5387
|
-
LYTICS: "Lytics",
|
5388
|
-
Appcues: "APPCUES",
|
5389
|
-
APPCUES: "APPCUES",
|
5390
|
-
POSTHOG: "POSTHOG",
|
5391
|
-
PostHog: "POSTHOG",
|
5392
|
-
Posthog: "POSTHOG",
|
5393
|
-
KLAVIYO: "KLAVIYO",
|
5394
|
-
Klaviyo: "KLAVIYO",
|
5395
|
-
CLEVERTAP: "CLEVERTAP",
|
5396
|
-
Clevertap: "CLEVERTAP",
|
5397
|
-
BingAds: "BINGADS",
|
5398
|
-
PinterestTag: "PINTEREST_TAG",
|
5399
|
-
Pinterest_Tag: "PINTEREST_TAG",
|
5400
|
-
PINTERESTTAG: "PINTEREST_TAG",
|
5401
|
-
PINTEREST_TAG: "PINTEREST_TAG",
|
5402
|
-
pinterest: "PINTEREST_TAG",
|
5403
|
-
PinterestAds: "PINTEREST_TAG",
|
5404
|
-
Pinterest_Ads: "PINTEREST_TAG",
|
5405
|
-
Pinterest: "PINTEREST_TAG",
|
5406
|
-
"Adobe Analytics": "ADOBE_ANALYTICS",
|
5407
|
-
ADOBE_ANALYTICS: "ADOBE_ANALYTICS",
|
5408
|
-
AdobeAnalytics: "ADOBE_ANALYTICS",
|
5409
|
-
adobeanalytics: "ADOBE_ANALYTICS",
|
5410
|
-
"LinkedIn Insight Tag": "LINKEDIN_INSIGHT_TAG",
|
5411
|
-
LINKEDIN_INSIGHT_TAG: "LINKEDIN_INSIGHT_TAG",
|
5412
|
-
Linkedin_insight_tag: "LINKEDIN_INSIGHT_TAG",
|
5413
|
-
LinkedinInsighttag: "LINKEDIN_INSIGHT_TAG",
|
5414
|
-
LinkedinInsightTag: "LINKEDIN_INSIGHT_TAG",
|
5415
|
-
LinkedInInsightTag: "LINKEDIN_INSIGHT_TAG",
|
5416
|
-
Linkedininsighttag: "LINKEDIN_INSIGHT_TAG",
|
5417
|
-
LINKEDININSIGHTTAG: "LINKEDIN_INSIGHT_TAG",
|
5418
|
-
Reddit_Pixel: "REDDIT_PIXEL",
|
5419
|
-
RedditPixel: "REDDIT_PIXEL",
|
5420
|
-
REDDITPIXEL: "REDDIT_PIXEL",
|
5421
|
-
redditpixel: "REDDIT_PIXEL",
|
5422
|
-
"Reddit Pixel": "REDDIT_PIXEL",
|
5423
|
-
"REDDIT PIXEL": "REDDIT_PIXEL",
|
5424
|
-
"reddit pixel": "REDDIT_PIXEL",
|
5425
|
-
Drip: "DRIP",
|
5426
|
-
drip: "DRIP",
|
5427
|
-
Heap: "HEAP",
|
5428
|
-
heap: "HEAP",
|
5429
|
-
"Heap.io": "HEAP",
|
5430
|
-
HEAP: "HEAP",
|
5431
|
-
Criteo: "CRITEO",
|
5432
|
-
criteo: "CRITEO",
|
5433
|
-
CRITEO: "CRITEO",
|
5434
|
-
MIXPANEL: "MP",
|
5435
|
-
Mixpanel: "MP",
|
5436
|
-
Qualtrics: "QUALTRICS",
|
5437
|
-
qualtrics: "QUALTRICS",
|
5438
|
-
QUALTRICS: "QUALTRICS",
|
5439
|
-
Snap_Pixel: "SNAP_PIXEL",
|
5440
|
-
SnapPixel: "SNAP_PIXEL",
|
5441
|
-
SNAPPIXEL: "SNAP_PIXEL",
|
5442
|
-
snappixel: "SNAP_PIXEL",
|
5443
|
-
"Snap Pixel": "SNAP_PIXEL",
|
5444
|
-
"SNAP PIXEL": "SNAP_PIXEL",
|
5445
|
-
"snap pixel": "SNAP_PIXEL",
|
5446
|
-
PROFITWELL: "PROFITWELL",
|
5447
|
-
ProfitWell: "PROFITWELL",
|
5448
|
-
profitwell: "PROFITWELL",
|
5449
|
-
SENTRY: "SENTRY",
|
5450
|
-
sentry: "SENTRY",
|
5451
|
-
Sentry: "SENTRY",
|
5452
|
-
"Quantum Metric": "QUANTUMMETRIC",
|
5453
|
-
QuantumMetric: "QUANTUMMETRIC",
|
5454
|
-
quantumMetric: "QUANTUMMETRIC",
|
5455
|
-
quantummetric: "QUANTUMMETRIC",
|
5456
|
-
Quantum_Metric: "QUANTUMMETRIC",
|
5457
|
-
"Google Optimize": "GOOGLE_OPTIMIZE",
|
5458
|
-
GOOGLE_OPTIMIZE: "GOOGLE_OPTIMIZE",
|
5459
|
-
GoogleOptimize: "GOOGLE_OPTIMIZE",
|
5460
|
-
Googleoptimize: "GOOGLE_OPTIMIZE",
|
5461
|
-
GOOGLEOPTIMIZE: "GOOGLE_OPTIMIZE",
|
5462
|
-
PostAffiliatePro: "POST_AFFILIATE_PRO",
|
5463
|
-
Post_affiliate_pro: "POST_AFFILIATE_PRO",
|
5464
|
-
"Post Affiliate Pro": "POST_AFFILIATE_PRO",
|
5465
|
-
postaffiliatepro: "POST_AFFILIATE_PRO",
|
5466
|
-
POSTAFFILIATEPRO: "POST_AFFILIATE_PRO",
|
5467
|
-
POST_AFFILIATE_PRO: "POST_AFFILIATE_PRO",
|
5468
|
-
LaunchDarkly: "LAUNCHDARKLY",
|
5469
|
-
Launch_Darkly: "LAUNCHDARKLY",
|
5470
|
-
LAUNCHDARKLY: "LAUNCHDARKLY",
|
5471
|
-
"Launch Darkly": "LAUNCHDARKLY",
|
5472
|
-
launchDarkly: "LAUNCHDARKLY"
|
5473
|
-
};
|
5428
|
+
|
5429
|
+
var commonNames = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
5430
|
+
All: "All"
|
5431
|
+
}, CNameMapping), CNameMapping$1), CNameMapping$2), CNameMapping$3), CNameMapping$4), CNameMapping$5), CNameMapping$6), CNameMapping$7), CNameMapping$8), CNameMapping$9), CNameMapping$a), CNameMapping$b), CNameMapping$c), CNameMapping$d), CNameMapping$e), CNameMapping$f), CNameMapping$g), CNameMapping$h), CNameMapping$i), CNameMapping$j), CNameMapping$k), CNameMapping$l), CNameMapping$m), CNameMapping$n), CNameMapping$o), CNameMapping$p), CNameMapping$q), CNameMapping$r), CNameMapping$s), CNameMapping$t), CNameMapping$u), CNameMapping$v), CNameMapping$w), CNameMapping$x), CNameMapping$y), CNameMapping$z), CNameMapping$A), CNameMapping$B), CNameMapping$C), CNameMapping$D), CNameMapping$E), CNameMapping$F), CNameMapping$G), CNameMapping$H), CNameMapping$I);
|
5474
5432
|
|
5475
5433
|
// from client native integration name to server identified display name
|
5476
5434
|
// add a mapping from Rudder identified key names to Rudder server recognizable names
|
@@ -5561,9 +5519,10 @@
|
|
5561
5519
|
PRODUCT_REVIEWED: "Product Reviewed"
|
5562
5520
|
}; // Enumeration for integrations supported
|
5563
5521
|
|
5564
|
-
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.
|
5522
|
+
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.4.0";
|
5565
5523
|
var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
|
5566
5524
|
var INTEGRATION_LOAD_CHECK_INTERVAL = 1000;
|
5525
|
+
var POLYFILL_URL = "https://polyfill.io/v3/polyfill.min.js?features=Array.prototype.find%2CArray.prototype.includes%2CPromise%2CString.prototype.endsWith%2CString.prototype.includes%2CString.prototype.startsWith%2CObject.entries";
|
5567
5526
|
/* module.exports = {
|
5568
5527
|
MessageType: MessageType,
|
5569
5528
|
ECommerceParamNames: ECommerceParamNames,
|
@@ -8699,7 +8658,7 @@
|
|
8699
8658
|
switch (arguments.length) {
|
8700
8659
|
case 3:
|
8701
8660
|
case 2:
|
8702
|
-
return set
|
8661
|
+
return set(name, value, options);
|
8703
8662
|
|
8704
8663
|
case 1:
|
8705
8664
|
return get(name);
|
@@ -8718,7 +8677,7 @@
|
|
8718
8677
|
*/
|
8719
8678
|
|
8720
8679
|
|
8721
|
-
function set
|
8680
|
+
function set(name, value, options) {
|
8722
8681
|
options = options || {};
|
8723
8682
|
var str = encode$1(name) + '=' + encode$1(value);
|
8724
8683
|
if (null == value) options.maxage = -1;
|
@@ -8914,7 +8873,7 @@
|
|
8914
8873
|
*/
|
8915
8874
|
// TODO: Move to a library
|
8916
8875
|
|
8917
|
-
var isObject
|
8876
|
+
var isObject = function isObject(value) {
|
8918
8877
|
return Boolean(value) && _typeof(value) === 'object';
|
8919
8878
|
};
|
8920
8879
|
/**
|
@@ -8928,7 +8887,7 @@
|
|
8928
8887
|
// TODO: Move to a library
|
8929
8888
|
|
8930
8889
|
|
8931
|
-
var isPlainObject
|
8890
|
+
var isPlainObject = function isPlainObject(value) {
|
8932
8891
|
return Boolean(value) && objToString$1.call(value) === '[object Object]';
|
8933
8892
|
};
|
8934
8893
|
/**
|
@@ -8967,7 +8926,7 @@
|
|
8967
8926
|
|
8968
8927
|
var deepCombiner = function deepCombiner(target, source, value, key) {
|
8969
8928
|
if (has$2.call(source, key)) {
|
8970
|
-
if (isPlainObject
|
8929
|
+
if (isPlainObject(target[key]) && isPlainObject(value)) {
|
8971
8930
|
target[key] = defaultsDeep(target[key], value);
|
8972
8931
|
} else if (target[key] === undefined) {
|
8973
8932
|
target[key] = value;
|
@@ -8991,7 +8950,7 @@
|
|
8991
8950
|
var defaultsWith = function defaultsWith(combiner, target
|
8992
8951
|
/*, ...sources */
|
8993
8952
|
) {
|
8994
|
-
if (!isObject
|
8953
|
+
if (!isObject(target)) {
|
8995
8954
|
return target;
|
8996
8955
|
}
|
8997
8956
|
|
@@ -10890,7 +10849,7 @@
|
|
10890
10849
|
switch (arguments.length) {
|
10891
10850
|
case 3:
|
10892
10851
|
case 2:
|
10893
|
-
return set$
|
10852
|
+
return set$1(name, value, options);
|
10894
10853
|
|
10895
10854
|
case 1:
|
10896
10855
|
return get$1(name);
|
@@ -10909,7 +10868,7 @@
|
|
10909
10868
|
*/
|
10910
10869
|
|
10911
10870
|
|
10912
|
-
function set$
|
10871
|
+
function set$1(name, value, options) {
|
10913
10872
|
options = options || {};
|
10914
10873
|
var str = encode$2(name) + '=' + encode$2(value);
|
10915
10874
|
if (null == value) options.maxage = -1;
|
@@ -12325,7 +12284,13 @@
|
|
12325
12284
|
});
|
12326
12285
|
objKeys.map(function (k) {
|
12327
12286
|
if (!(typeof messageContext[k] === "undefined")) {
|
12328
|
-
|
12287
|
+
if (destination) {
|
12288
|
+
destination[k] = getValue(messageContext, k);
|
12289
|
+
} else {
|
12290
|
+
destination = {
|
12291
|
+
k: getValue(messageContext, k)
|
12292
|
+
};
|
12293
|
+
}
|
12329
12294
|
}
|
12330
12295
|
});
|
12331
12296
|
}
|
@@ -12353,7 +12318,7 @@
|
|
12353
12318
|
};
|
12354
12319
|
|
12355
12320
|
if (!getValue(traitsValue, "name") && getValue(traitsValue, "firstName") && getValue(traitsValue, "lastName")) {
|
12356
|
-
|
12321
|
+
traitsValue.name = "".concat(getValue(traitsValue, "firstName"), " ").concat(getValue(traitsValue, "lastName"));
|
12357
12322
|
}
|
12358
12323
|
|
12359
12324
|
return traitsValue;
|
@@ -12363,7 +12328,7 @@
|
|
12363
12328
|
*/
|
12364
12329
|
|
12365
12330
|
|
12366
|
-
var isObject$
|
12331
|
+
var isObject$1 = function isObject(obj) {
|
12367
12332
|
return type(obj) === "object";
|
12368
12333
|
};
|
12369
12334
|
/**
|
@@ -22908,7 +22873,7 @@
|
|
22908
22873
|
this.proxyNormalUrl = config.proxyNormalUrl;
|
22909
22874
|
this.proxyHeartbeatUrl = config.proxyHeartbeatUrl;
|
22910
22875
|
this.pageName = "";
|
22911
|
-
this.name =
|
22876
|
+
this.name = NAME;
|
22912
22877
|
setConfig(config);
|
22913
22878
|
}
|
22914
22879
|
|
@@ -23190,7 +23155,7 @@
|
|
23190
23155
|
|
23191
23156
|
_classCallCheck(this, Amplitude);
|
23192
23157
|
|
23193
|
-
this.name =
|
23158
|
+
this.name = NAME$1;
|
23194
23159
|
this.analytics = analytics;
|
23195
23160
|
this.apiKey = config.apiKey;
|
23196
23161
|
this.trackAllPages = config.trackAllPages || false;
|
@@ -23617,6 +23582,12 @@
|
|
23617
23582
|
amplitudeRevenue.setProductId(productId);
|
23618
23583
|
}
|
23619
23584
|
|
23585
|
+
if (amplitudeRevenue._properties) {
|
23586
|
+
delete amplitudeRevenue._properties.price;
|
23587
|
+
delete amplitudeRevenue._properties.productId;
|
23588
|
+
delete amplitudeRevenue._properties.quantity;
|
23589
|
+
}
|
23590
|
+
|
23620
23591
|
window.amplitude.getInstance().logRevenueV2(amplitudeRevenue);
|
23621
23592
|
}
|
23622
23593
|
}, {
|
@@ -23653,7 +23624,7 @@
|
|
23653
23624
|
|
23654
23625
|
this.accountId = config.accountId;
|
23655
23626
|
this.apiKey = config.apiKey;
|
23656
|
-
this.name =
|
23627
|
+
this.name = NAME$2; // this.sendToAllDestinations = config.sendToAll;
|
23657
23628
|
}
|
23658
23629
|
|
23659
23630
|
_createClass(Appcues, [{
|
@@ -23801,11 +23772,11 @@
|
|
23801
23772
|
};
|
23802
23773
|
|
23803
23774
|
this.page = function () {
|
23804
|
-
window.uetq.push(
|
23775
|
+
window.uetq.push("pageLoad");
|
23805
23776
|
};
|
23806
23777
|
|
23807
23778
|
this.tagID = config.tagID;
|
23808
|
-
this.name =
|
23779
|
+
this.name = NAME$3;
|
23809
23780
|
});
|
23810
23781
|
|
23811
23782
|
/*
|
@@ -23833,7 +23804,7 @@
|
|
23833
23804
|
}
|
23834
23805
|
}
|
23835
23806
|
|
23836
|
-
this.name =
|
23807
|
+
this.name = NAME$4;
|
23837
23808
|
logger.debug("Config ", config);
|
23838
23809
|
}
|
23839
23810
|
/** https://js.appboycdn.com/web-sdk/latest/doc/ab.User.html#toc4
|
@@ -24012,7 +23983,7 @@
|
|
24012
23983
|
|
24013
23984
|
this.releaseStage = config.releaseStage;
|
24014
23985
|
this.apiKey = config.apiKey;
|
24015
|
-
this.name =
|
23986
|
+
this.name = NAME$5;
|
24016
23987
|
this.setIntervalHandler = undefined;
|
24017
23988
|
}
|
24018
23989
|
|
@@ -24486,7 +24457,7 @@
|
|
24486
24457
|
this.replayEvents = [];
|
24487
24458
|
this.failed = false;
|
24488
24459
|
this.isFirstPageCallMade = false;
|
24489
|
-
this.name =
|
24460
|
+
this.name = NAME$6;
|
24490
24461
|
}
|
24491
24462
|
|
24492
24463
|
_createClass(Chartbeat, [{
|
@@ -24649,7 +24620,7 @@
|
|
24649
24620
|
|
24650
24621
|
this.accountId = config.accountId;
|
24651
24622
|
this.apiKey = config.passcode;
|
24652
|
-
this.name =
|
24623
|
+
this.name = NAME$7;
|
24653
24624
|
this.region = config.region;
|
24654
24625
|
this.keysToExtract = ["context.traits"];
|
24655
24626
|
this.exclusionKeys = ["email", "E-mail", "Email", "phone", "Phone", "name", "Name", "gender", "Gender", "birthday", "Birthday", "anonymousId", "userId", "lastName", "lastname", "last_name", "firstName", "firstname", "first_name", "employed", "education", "married", "customerType"];
|
@@ -24728,7 +24699,7 @@
|
|
24728
24699
|
}
|
24729
24700
|
|
24730
24701
|
Object.keys(payload).map(function (key) {
|
24731
|
-
if (isObject$
|
24702
|
+
if (isObject$1(payload[key])) {
|
24732
24703
|
logger.debug("cannot process, unsupported traits");
|
24733
24704
|
return;
|
24734
24705
|
}
|
@@ -24762,7 +24733,7 @@
|
|
24762
24733
|
window.clevertap.event.push("Charged", ecomProperties);
|
24763
24734
|
} else {
|
24764
24735
|
Object.keys(properties).map(function (key) {
|
24765
|
-
if (isObject$
|
24736
|
+
if (isObject$1(properties[key]) || isArray$1(properties[key])) {
|
24766
24737
|
logger.debug("cannot process, unsupported event");
|
24767
24738
|
return;
|
24768
24739
|
}
|
@@ -24794,7 +24765,7 @@
|
|
24794
24765
|
|
24795
24766
|
if (properties) {
|
24796
24767
|
Object.keys(properties).map(function (key) {
|
24797
|
-
if (isObject$
|
24768
|
+
if (isObject$1(properties[key]) || isArray$1(properties[key])) {
|
24798
24769
|
logger.debug("cannot process, unsupported event");
|
24799
24770
|
return;
|
24800
24771
|
}
|
@@ -24820,7 +24791,7 @@
|
|
24820
24791
|
this.failed = false;
|
24821
24792
|
this.comScoreParams = {};
|
24822
24793
|
this.replayEvents = [];
|
24823
|
-
this.name =
|
24794
|
+
this.name = NAME$8;
|
24824
24795
|
}
|
24825
24796
|
|
24826
24797
|
_createClass(Comscore, [{
|
@@ -25505,7 +25476,7 @@
|
|
25505
25476
|
function Criteo(config) {
|
25506
25477
|
_classCallCheck(this, Criteo);
|
25507
25478
|
|
25508
|
-
this.name =
|
25479
|
+
this.name = NAME$9;
|
25509
25480
|
this.hashMethod = config.hashMethod;
|
25510
25481
|
this.accountId = config.accountId;
|
25511
25482
|
this.url = config.homePageUrl; // eslint-disable-next-line no-nested-ternary
|
@@ -25651,7 +25622,7 @@
|
|
25651
25622
|
|
25652
25623
|
this.siteID = config.siteID;
|
25653
25624
|
this.apiKey = config.apiKey;
|
25654
|
-
this.name =
|
25625
|
+
this.name = NAME$a;
|
25655
25626
|
}
|
25656
25627
|
|
25657
25628
|
_createClass(CustomerIO, [{
|
@@ -25772,7 +25743,7 @@
|
|
25772
25743
|
|
25773
25744
|
this.accountId = config.accountId;
|
25774
25745
|
this.campaignId = config.campaignId;
|
25775
|
-
this.name =
|
25746
|
+
this.name = NAME$b;
|
25776
25747
|
this.exclusionFields = ["email", "new_email", "newEmail", "tags", "remove_tags", "removeTags", "prospect", "eu_consent", "euConsent", "eu_consent_message", "euConsentMessage"];
|
25777
25748
|
}
|
25778
25749
|
|
@@ -26930,7 +26901,7 @@
|
|
26930
26901
|
this.legacyConversionPixelId = config.legacyConversionPixelId;
|
26931
26902
|
this.userIdAsPixelId = config.userIdAsPixelId;
|
26932
26903
|
this.whitelistPiiProperties = config.whitelistPiiProperties;
|
26933
|
-
this.name =
|
26904
|
+
this.name = NAME$c;
|
26934
26905
|
}
|
26935
26906
|
|
26936
26907
|
_createClass(FacebookPixel, [{
|
@@ -27444,114 +27415,50 @@
|
|
27444
27415
|
return FacebookPixel;
|
27445
27416
|
}();
|
27446
27417
|
|
27447
|
-
|
27448
|
-
|
27449
|
-
|
27450
|
-
|
27451
|
-
|
27452
|
-
var LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);
|
27453
|
-
var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');
|
27454
|
-
var NUMBERS_AND_IDENTIFIER = new RegExp('\\d+' + IDENTIFIER.source, 'gu');
|
27455
|
-
|
27456
|
-
var preserveCamelCase = function preserveCamelCase(string, locale) {
|
27457
|
-
var isLastCharLower = false;
|
27458
|
-
var isLastCharUpper = false;
|
27459
|
-
var isLastLastCharUpper = false;
|
27460
|
-
|
27461
|
-
for (var i = 0; i < string.length; i++) {
|
27462
|
-
var character = string[i];
|
27463
|
-
|
27464
|
-
if (isLastCharLower && UPPERCASE.test(character)) {
|
27465
|
-
string = string.slice(0, i) + '-' + string.slice(i);
|
27466
|
-
isLastCharLower = false;
|
27467
|
-
isLastLastCharUpper = isLastCharUpper;
|
27468
|
-
isLastCharUpper = true;
|
27469
|
-
i++;
|
27470
|
-
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
27471
|
-
string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
|
27472
|
-
isLastLastCharUpper = isLastCharUpper;
|
27473
|
-
isLastCharUpper = false;
|
27474
|
-
isLastCharLower = true;
|
27475
|
-
} else {
|
27476
|
-
isLastCharLower = character.toLocaleLowerCase(locale) === character && character.toLocaleUpperCase(locale) !== character;
|
27477
|
-
isLastLastCharUpper = isLastCharUpper;
|
27478
|
-
isLastCharUpper = character.toLocaleUpperCase(locale) === character && character.toLocaleLowerCase(locale) !== character;
|
27418
|
+
// util function to convert the input to string type
|
27419
|
+
function convertToString(input) {
|
27420
|
+
if (input) {
|
27421
|
+
if (typeof input === "string") {
|
27422
|
+
return input;
|
27479
27423
|
}
|
27480
|
-
}
|
27481
27424
|
|
27482
|
-
|
27483
|
-
};
|
27484
|
-
|
27485
|
-
var preserveConsecutiveUppercase = function preserveConsecutiveUppercase(input) {
|
27486
|
-
LEADING_CAPITAL.lastIndex = 0;
|
27487
|
-
return input.replace(LEADING_CAPITAL, function (m1) {
|
27488
|
-
return m1.toLowerCase();
|
27489
|
-
});
|
27490
|
-
};
|
27491
|
-
|
27492
|
-
var postProcess = function postProcess(input, options) {
|
27493
|
-
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
27494
|
-
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
27495
|
-
return input.replace(SEPARATORS_AND_IDENTIFIER, function (_, identifier) {
|
27496
|
-
return identifier.toLocaleUpperCase(options.locale);
|
27497
|
-
}).replace(NUMBERS_AND_IDENTIFIER, function (m) {
|
27498
|
-
return m.toLocaleUpperCase(options.locale);
|
27499
|
-
});
|
27500
|
-
};
|
27501
|
-
|
27502
|
-
var camelCase = function camelCase(input, options) {
|
27503
|
-
if (!(typeof input === 'string' || Array.isArray(input))) {
|
27504
|
-
throw new TypeError('Expected the input to be `string | string[]`');
|
27425
|
+
return String(input);
|
27505
27426
|
}
|
27506
27427
|
|
27507
|
-
|
27508
|
-
|
27509
|
-
preserveConsecutiveUppercase: false
|
27510
|
-
}, options);
|
27428
|
+
return "";
|
27429
|
+
} // convert string to words
|
27511
27430
|
|
27512
|
-
if (Array.isArray(input)) {
|
27513
|
-
input = input.map(function (x) {
|
27514
|
-
return x.trim();
|
27515
|
-
}).filter(function (x) {
|
27516
|
-
return x.length;
|
27517
|
-
}).join('-');
|
27518
|
-
} else {
|
27519
|
-
input = input.trim();
|
27520
|
-
}
|
27521
27431
|
|
27522
|
-
|
27523
|
-
|
27524
|
-
|
27432
|
+
function toWords(input) {
|
27433
|
+
input = convertToString(input);
|
27434
|
+
var regex = /[A-Z\xC0-\xD6\xD8-\xDE]?[a-z\xDF-\xF6\xF8-\xFF]+|[A-Z\xC0-\xD6\xD8-\xDE]+(?![a-z\xDF-\xF6\xF8-\xFF])|\d+/g;
|
27435
|
+
return input.match(regex);
|
27436
|
+
} // convert the input array to camel case
|
27525
27437
|
|
27526
|
-
if (input.length === 1) {
|
27527
|
-
return options.pascalCase ? input.toLocaleUpperCase(options.locale) : input.toLocaleLowerCase(options.locale);
|
27528
|
-
}
|
27529
27438
|
|
27530
|
-
|
27531
|
-
|
27532
|
-
if (hasUpperCase) {
|
27533
|
-
input = preserveCamelCase(input, options.locale);
|
27534
|
-
}
|
27439
|
+
function toCamelCase(inputArray) {
|
27440
|
+
var result = "";
|
27535
27441
|
|
27536
|
-
|
27442
|
+
for (var i = 0, len = inputArray.length; i < len; i++) {
|
27443
|
+
var currentStr = inputArray[i];
|
27444
|
+
var tempStr = currentStr.toLowerCase();
|
27537
27445
|
|
27538
|
-
|
27539
|
-
|
27540
|
-
|
27541
|
-
|
27542
|
-
}
|
27446
|
+
if (i !== 0) {
|
27447
|
+
// convert first letter to upper case (the word is in lowercase)
|
27448
|
+
tempStr = tempStr.substr(0, 1).toUpperCase() + tempStr.substr(1);
|
27449
|
+
}
|
27543
27450
|
|
27544
|
-
|
27545
|
-
input = input.charAt(0).toLocaleUpperCase(options.locale) + input.slice(1);
|
27451
|
+
result += tempStr;
|
27546
27452
|
}
|
27547
27453
|
|
27548
|
-
return
|
27549
|
-
}
|
27454
|
+
return result;
|
27455
|
+
} // this function call all other functions
|
27550
27456
|
|
27551
|
-
var camelcase = camelCase; // TODO: Remove this for the next major release
|
27552
27457
|
|
27553
|
-
|
27554
|
-
|
27458
|
+
function camelcase(input) {
|
27459
|
+
var words = toWords(input);
|
27460
|
+
return toCamelCase(words);
|
27461
|
+
}
|
27555
27462
|
|
27556
27463
|
var Fullstory = /*#__PURE__*/function () {
|
27557
27464
|
function Fullstory(config, analytics) {
|
@@ -27559,7 +27466,7 @@
|
|
27559
27466
|
|
27560
27467
|
this.fs_org = config.fs_org;
|
27561
27468
|
this.fs_debug_mode = config.fs_debug_mode;
|
27562
|
-
this.name =
|
27469
|
+
this.name = NAME$d;
|
27563
27470
|
this.analytics = analytics;
|
27564
27471
|
}
|
27565
27472
|
|
@@ -27829,7 +27736,7 @@
|
|
27829
27736
|
this.resetCustomDimensionsOnPage = config.resetCustomDimensionsOnPage || [];
|
27830
27737
|
this.enhancedEcommerceLoaded = 0;
|
27831
27738
|
this.namedTracker = config.namedTracker || false;
|
27832
|
-
this.name =
|
27739
|
+
this.name = NAME$e;
|
27833
27740
|
this.eventWithCategoryFieldProductScoped = ["product clicked", "product added", "product viewed", "product removed"];
|
27834
27741
|
}
|
27835
27742
|
|
@@ -28972,7 +28879,7 @@
|
|
28972
28879
|
this.blockPageView = config.blockPageViewEvent || false;
|
28973
28880
|
this.extendPageViewParams = config.extendPageViewParams || false;
|
28974
28881
|
this.extendGroupPayload = config.extendGroupPayload || false;
|
28975
|
-
this.name =
|
28882
|
+
this.name = NAME$f;
|
28976
28883
|
}
|
28977
28884
|
|
28978
28885
|
_createClass(GA4, [{
|
@@ -29206,7 +29113,7 @@
|
|
29206
29113
|
this.sendPageView = config.sendPageView || true;
|
29207
29114
|
this.conversionLinker = config.conversionLinker || true;
|
29208
29115
|
this.disableAdPersonalization = config.disableAdPersonalization || false;
|
29209
|
-
this.name =
|
29116
|
+
this.name = NAME$g;
|
29210
29117
|
}
|
29211
29118
|
|
29212
29119
|
_createClass(GoogleAds, [{
|
@@ -29372,7 +29279,7 @@
|
|
29372
29279
|
_classCallCheck(this, GoogleTagManager);
|
29373
29280
|
|
29374
29281
|
this.containerID = config.containerID;
|
29375
|
-
this.name =
|
29282
|
+
this.name = NAME$i;
|
29376
29283
|
this.serverUrl = config.serverUrl;
|
29377
29284
|
}
|
29378
29285
|
|
@@ -29502,7 +29409,7 @@
|
|
29502
29409
|
_classCallCheck(this, Heap);
|
29503
29410
|
|
29504
29411
|
this.appId = config.appId;
|
29505
|
-
this.name =
|
29412
|
+
this.name = NAME$j;
|
29506
29413
|
}
|
29507
29414
|
/**
|
29508
29415
|
* Initialise Heap
|
@@ -29583,7 +29490,7 @@
|
|
29583
29490
|
_classCallCheck(this, Hotjar);
|
29584
29491
|
|
29585
29492
|
this.siteId = config.siteID;
|
29586
|
-
this.name =
|
29493
|
+
this.name = NAME$k;
|
29587
29494
|
this._ready = false;
|
29588
29495
|
}
|
29589
29496
|
|
@@ -29671,7 +29578,7 @@
|
|
29671
29578
|
|
29672
29579
|
this.hubId = config.hubID; // 6405167
|
29673
29580
|
|
29674
|
-
this.name =
|
29581
|
+
this.name = NAME$l;
|
29675
29582
|
}
|
29676
29583
|
|
29677
29584
|
_createClass(HubSpot, [{
|
@@ -29788,7 +29695,7 @@
|
|
29788
29695
|
function INTERCOM(config) {
|
29789
29696
|
_classCallCheck(this, INTERCOM);
|
29790
29697
|
|
29791
|
-
this.
|
29698
|
+
this.name = NAME$m;
|
29792
29699
|
this.API_KEY = config.apiKey;
|
29793
29700
|
this.APP_ID = config.appId;
|
29794
29701
|
this.MOBILE_APP_ID = config.mobileAppId;
|
@@ -29982,7 +29889,7 @@
|
|
29982
29889
|
this.urlAddon = config.urlAddon;
|
29983
29890
|
this.referrerAddon = config.referrerAddon;
|
29984
29891
|
this.client = null;
|
29985
|
-
this.name =
|
29892
|
+
this.name = NAME$n;
|
29986
29893
|
}
|
29987
29894
|
|
29988
29895
|
_createClass(Keen, [{
|
@@ -30166,161 +30073,13 @@
|
|
30166
30073
|
|
30167
30074
|
var extend_1 = extend;
|
30168
30075
|
|
30169
|
-
var objCase = createCommonjsModule(function (module) {
|
30170
|
-
/**
|
30171
|
-
* Module exports, export
|
30172
|
-
*/
|
30173
|
-
|
30174
|
-
|
30175
|
-
module.exports = multiple(find);
|
30176
|
-
module.exports.find = module.exports;
|
30177
|
-
/**
|
30178
|
-
* Export the replacement function, return the modified object
|
30179
|
-
*/
|
30180
|
-
|
30181
|
-
module.exports.replace = function (obj, key, val, options) {
|
30182
|
-
multiple(replace).call(this, obj, key, val, options);
|
30183
|
-
return obj;
|
30184
|
-
};
|
30185
|
-
/**
|
30186
|
-
* Export the delete function, return the modified object
|
30187
|
-
*/
|
30188
|
-
|
30189
|
-
|
30190
|
-
module.exports.del = function (obj, key, options) {
|
30191
|
-
multiple(del).call(this, obj, key, null, options);
|
30192
|
-
return obj;
|
30193
|
-
};
|
30194
|
-
/**
|
30195
|
-
* Compose applying the function to a nested key
|
30196
|
-
*/
|
30197
|
-
|
30198
|
-
|
30199
|
-
function multiple(fn) {
|
30200
|
-
return function (obj, path, val, options) {
|
30201
|
-
var normalize = options && isFunction(options.normalizer) ? options.normalizer : defaultNormalize;
|
30202
|
-
path = normalize(path);
|
30203
|
-
var key;
|
30204
|
-
var finished = false;
|
30205
|
-
|
30206
|
-
while (!finished) {
|
30207
|
-
loop();
|
30208
|
-
}
|
30209
|
-
|
30210
|
-
function loop() {
|
30211
|
-
for (key in obj) {
|
30212
|
-
var normalizedKey = normalize(key);
|
30213
|
-
|
30214
|
-
if (0 === path.indexOf(normalizedKey)) {
|
30215
|
-
var temp = path.substr(normalizedKey.length);
|
30216
|
-
|
30217
|
-
if (temp.charAt(0) === '.' || temp.length === 0) {
|
30218
|
-
path = temp.substr(1);
|
30219
|
-
var child = obj[key]; // we're at the end and there is nothing.
|
30220
|
-
|
30221
|
-
if (null == child) {
|
30222
|
-
finished = true;
|
30223
|
-
return;
|
30224
|
-
} // we're at the end and there is something.
|
30225
|
-
|
30226
|
-
|
30227
|
-
if (!path.length) {
|
30228
|
-
finished = true;
|
30229
|
-
return;
|
30230
|
-
} // step into child
|
30231
|
-
|
30232
|
-
|
30233
|
-
obj = child; // but we're done here
|
30234
|
-
|
30235
|
-
return;
|
30236
|
-
}
|
30237
|
-
}
|
30238
|
-
}
|
30239
|
-
|
30240
|
-
key = undefined; // if we found no matching properties
|
30241
|
-
// on the current object, there's no match.
|
30242
|
-
|
30243
|
-
finished = true;
|
30244
|
-
}
|
30245
|
-
|
30246
|
-
if (!key) return;
|
30247
|
-
if (null == obj) return obj; // the `obj` and `key` is one above the leaf object and key, so
|
30248
|
-
// start object: { a: { 'b.c': 10 } }
|
30249
|
-
// end object: { 'b.c': 10 }
|
30250
|
-
// end key: 'b.c'
|
30251
|
-
// this way, you can do `obj[key]` and get `10`.
|
30252
|
-
|
30253
|
-
return fn(obj, key, val);
|
30254
|
-
};
|
30255
|
-
}
|
30256
|
-
/**
|
30257
|
-
* Find an object by its key
|
30258
|
-
*
|
30259
|
-
* find({ first_name : 'Calvin' }, 'firstName')
|
30260
|
-
*/
|
30261
|
-
|
30262
|
-
|
30263
|
-
function find(obj, key) {
|
30264
|
-
if (obj.hasOwnProperty(key)) return obj[key];
|
30265
|
-
}
|
30266
|
-
/**
|
30267
|
-
* Delete a value for a given key
|
30268
|
-
*
|
30269
|
-
* del({ a : 'b', x : 'y' }, 'X' }) -> { a : 'b' }
|
30270
|
-
*/
|
30271
|
-
|
30272
|
-
|
30273
|
-
function del(obj, key) {
|
30274
|
-
if (obj.hasOwnProperty(key)) delete obj[key];
|
30275
|
-
return obj;
|
30276
|
-
}
|
30277
|
-
/**
|
30278
|
-
* Replace an objects existing value with a new one
|
30279
|
-
*
|
30280
|
-
* replace({ a : 'b' }, 'a', 'c') -> { a : 'c' }
|
30281
|
-
*/
|
30282
|
-
|
30283
|
-
|
30284
|
-
function replace(obj, key, val) {
|
30285
|
-
if (obj.hasOwnProperty(key)) obj[key] = val;
|
30286
|
-
return obj;
|
30287
|
-
}
|
30288
|
-
/**
|
30289
|
-
* Normalize a `dot.separated.path`.
|
30290
|
-
*
|
30291
|
-
* A.HELL(!*&#(!)O_WOR LD.bar => ahelloworldbar
|
30292
|
-
*
|
30293
|
-
* @param {String} path
|
30294
|
-
* @return {String}
|
30295
|
-
*/
|
30296
|
-
|
30297
|
-
|
30298
|
-
function defaultNormalize(path) {
|
30299
|
-
return path.replace(/[^a-zA-Z0-9\.]+/g, '').toLowerCase();
|
30300
|
-
}
|
30301
|
-
/**
|
30302
|
-
* Check if a value is a function.
|
30303
|
-
*
|
30304
|
-
* @param {*} val
|
30305
|
-
* @return {boolean} Returns `true` if `val` is a function, otherwise `false`.
|
30306
|
-
*/
|
30307
|
-
|
30308
|
-
|
30309
|
-
function isFunction(val) {
|
30310
|
-
return typeof val === 'function';
|
30311
|
-
}
|
30312
|
-
});
|
30313
|
-
var objCase_1 = objCase.find;
|
30314
|
-
var objCase_2 = objCase.replace;
|
30315
|
-
var objCase_3 = objCase.del;
|
30316
|
-
|
30317
30076
|
var Kissmetrics = /*#__PURE__*/function () {
|
30318
30077
|
function Kissmetrics(config) {
|
30319
30078
|
_classCallCheck(this, Kissmetrics);
|
30320
30079
|
|
30321
30080
|
this.apiKey = config.apiKey;
|
30322
30081
|
this.prefixProperties = config.prefixProperties;
|
30323
|
-
this.name =
|
30082
|
+
this.name = NAME$o;
|
30324
30083
|
}
|
30325
30084
|
|
30326
30085
|
_createClass(Kissmetrics, [{
|
@@ -30707,7 +30466,7 @@
|
|
30707
30466
|
this.sendPageAsTrack = config.sendPageAsTrack;
|
30708
30467
|
this.additionalPageInfo = config.additionalPageInfo;
|
30709
30468
|
this.enforceEmailAsPrimary = config.enforceEmailAsPrimary;
|
30710
|
-
this.name =
|
30469
|
+
this.name = NAME$p;
|
30711
30470
|
this.keysToExtract = ["context.traits"];
|
30712
30471
|
this.exclusionKeys = ["email", "E-mail", "Email", "firstName", "firstname", "first_name", "lastName", "lastname", "last_name", "phone", "Phone", "title", "organization", "city", "City", "region", "country", "Country", "zip", "image", "timezone", "anonymousId", "userId", "properties"];
|
30713
30472
|
this.ecomExclusionKeys = ["name", "product_id", "sku", "image_url", "url", "brand", "price", "compare_at_price", "quantity", "categories", "products", "product_names", "order_id", "value", "checkout_url", "item_names", "items", "checkout_url"];
|
@@ -30859,7 +30618,7 @@
|
|
30859
30618
|
function LinkedInInsightTag(config) {
|
30860
30619
|
_classCallCheck(this, LinkedInInsightTag);
|
30861
30620
|
|
30862
|
-
this.name =
|
30621
|
+
this.name = NAME$r;
|
30863
30622
|
this.partnerId = config.partnerId;
|
30864
30623
|
}
|
30865
30624
|
|
@@ -30926,7 +30685,7 @@
|
|
30926
30685
|
|
30927
30686
|
_classCallCheck(this, Lotame);
|
30928
30687
|
|
30929
|
-
this.name =
|
30688
|
+
this.name = NAME$s;
|
30930
30689
|
this.analytics = analytics;
|
30931
30690
|
this.storage = lotameStorage;
|
30932
30691
|
this.bcpUrlSettingsPixel = config.bcpUrlSettingsPixel;
|
@@ -31115,7 +30874,7 @@
|
|
31115
30874
|
this.stream = config.stream;
|
31116
30875
|
this.blockload = config.blockload;
|
31117
30876
|
this.loadid = config.loadid;
|
31118
|
-
this.name =
|
30877
|
+
this.name = NAME$t;
|
31119
30878
|
this.forFirstName = ["firstname", "firstName"];
|
31120
30879
|
this.forLastName = ["lastname", "lastName"];
|
31121
30880
|
}
|
@@ -31421,7 +31180,7 @@
|
|
31421
31180
|
function Mixpanel(config) {
|
31422
31181
|
_classCallCheck(this, Mixpanel);
|
31423
31182
|
|
31424
|
-
this.name =
|
31183
|
+
this.name = NAME$u;
|
31425
31184
|
this.accountId = config.accountId;
|
31426
31185
|
this.token = config.token;
|
31427
31186
|
this.people = config.people || false;
|
@@ -31846,7 +31605,7 @@
|
|
31846
31605
|
this.apiId = config.apiId;
|
31847
31606
|
this.debug = config.debug;
|
31848
31607
|
this.region = config.region;
|
31849
|
-
this.name =
|
31608
|
+
this.name = NAME$v;
|
31850
31609
|
this.analyticsinstance = analyticsinstance;
|
31851
31610
|
}
|
31852
31611
|
|
@@ -32103,7 +31862,7 @@
|
|
32103
31862
|
this.trackNamedPages = config.trackNamedPages;
|
32104
31863
|
this.customCampaignProperties = config.customCampaignProperties ? config.customCampaignProperties : [];
|
32105
31864
|
this.customExperimentProperties = config.customExperimentProperties ? config.customExperimentProperties : [];
|
32106
|
-
this.name =
|
31865
|
+
this.name = NAME$w;
|
32107
31866
|
}
|
32108
31867
|
|
32109
31868
|
_createClass(Optimizely, [{
|
@@ -32262,7 +32021,7 @@
|
|
32262
32021
|
|
32263
32022
|
this.analytics = analytics;
|
32264
32023
|
this.apiKey = !config.apiKey ? "" : config.apiKey;
|
32265
|
-
this.name =
|
32024
|
+
this.name = NAME$x;
|
32266
32025
|
logger.debug("Config ", config);
|
32267
32026
|
}
|
32268
32027
|
|
@@ -32463,7 +32222,7 @@
|
|
32463
32222
|
this.enhancedMatch = config.enhancedMatch || false;
|
32464
32223
|
this.customProperties = config.customProperties || [];
|
32465
32224
|
this.userDefinedEventsMapping = config.eventsMapping || [];
|
32466
|
-
this.name =
|
32225
|
+
this.name = NAME$y;
|
32467
32226
|
logger.debug("config", config);
|
32468
32227
|
}
|
32469
32228
|
|
@@ -32712,7 +32471,7 @@
|
|
32712
32471
|
|
32713
32472
|
this.siteId = config.siteID; // 1549611
|
32714
32473
|
|
32715
|
-
this.name =
|
32474
|
+
this.name = NAME$D;
|
32716
32475
|
this._ready = false;
|
32717
32476
|
}
|
32718
32477
|
|
@@ -32771,7 +32530,7 @@
|
|
32771
32530
|
|
32772
32531
|
_classCallCheck(this, Posthog);
|
32773
32532
|
|
32774
|
-
this.name =
|
32533
|
+
this.name = NAME$A;
|
32775
32534
|
this.analytics = analytics;
|
32776
32535
|
this.teamApiKey = config.teamApiKey;
|
32777
32536
|
this.yourInstance = removeTrailingSlashes(config.yourInstance) || "https://app.posthog.com";
|
@@ -32921,7 +32680,7 @@
|
|
32921
32680
|
value: function page(rudderElement) {
|
32922
32681
|
logger.debug("in Posthog page");
|
32923
32682
|
this.processSuperProperties(rudderElement);
|
32924
|
-
posthog.capture(
|
32683
|
+
posthog.capture("$pageview");
|
32925
32684
|
}
|
32926
32685
|
}, {
|
32927
32686
|
key: "isLoaded",
|
@@ -32945,7 +32704,7 @@
|
|
32945
32704
|
|
32946
32705
|
this.publicApiKey = config.publicApiKey;
|
32947
32706
|
this.siteType = config.siteType;
|
32948
|
-
this.name =
|
32707
|
+
this.name = NAME$B;
|
32949
32708
|
}
|
32950
32709
|
|
32951
32710
|
_createClass(ProfitWell, [{
|
@@ -33028,7 +32787,7 @@
|
|
33028
32787
|
function Qualtrics(config) {
|
33029
32788
|
_classCallCheck(this, Qualtrics);
|
33030
32789
|
|
33031
|
-
this.name =
|
32790
|
+
this.name = NAME$C;
|
33032
32791
|
this.projectId = config.projectId;
|
33033
32792
|
this.brandId = config.brandId;
|
33034
32793
|
this.enableGenericPageTitle = config.enableGenericPageTitle;
|
@@ -33070,7 +32829,7 @@
|
|
33070
32829
|
this.set = function (a, c) {
|
33071
32830
|
var b = "",
|
33072
32831
|
b = new Date();
|
33073
|
-
b.setTime(b.getTime() +
|
32832
|
+
b.setTime(b.getTime() + 6048e5);
|
33074
32833
|
b = "; expires=" + b.toGMTString();
|
33075
32834
|
document.cookie = a + "=" + c + b + "; path=/; ";
|
33076
32835
|
};
|
@@ -33192,7 +32951,7 @@
|
|
33192
32951
|
_classCallCheck(this, RedditPixel);
|
33193
32952
|
|
33194
32953
|
this.advertiserId = config.advertiserId;
|
33195
|
-
this.name =
|
32954
|
+
this.name = NAME$E;
|
33196
32955
|
}
|
33197
32956
|
|
33198
32957
|
_createClass(RedditPixel, [{
|
@@ -33377,7 +33136,7 @@
|
|
33377
33136
|
function Sentry(config) {
|
33378
33137
|
_classCallCheck(this, Sentry);
|
33379
33138
|
|
33380
|
-
this.name =
|
33139
|
+
this.name = NAME$F;
|
33381
33140
|
this.dsn = config.dsn;
|
33382
33141
|
this.debugMode = config.debugMode;
|
33383
33142
|
this.environment = config.environment;
|
@@ -33409,7 +33168,7 @@
|
|
33409
33168
|
key: "isLoaded",
|
33410
33169
|
value: function isLoaded() {
|
33411
33170
|
logger.debug("===in Sentry isLoaded===");
|
33412
|
-
return !!(window.Sentry && isObject$
|
33171
|
+
return !!(window.Sentry && isObject$1(window.Sentry) && window.Sentry.setUser && window.Sentry.Integrations.RewriteFrames);
|
33413
33172
|
} // eslint-disable-next-line class-methods-use-this
|
33414
33173
|
|
33415
33174
|
}, {
|
@@ -33417,7 +33176,7 @@
|
|
33417
33176
|
value: function isReady() {
|
33418
33177
|
logger.debug("===in Sentry isReady===");
|
33419
33178
|
|
33420
|
-
if (window.Sentry && isObject$
|
33179
|
+
if (window.Sentry && isObject$1(window.Sentry) && window.Sentry.setUser && window.Sentry.Integrations.RewriteFrames) {
|
33421
33180
|
var sentryConfig = sentryInit(this.allowUrls, this.denyUrls, this.ignoreErrors, this.includePathsArray, this.customVersionProperty, this.release, this.dsn, this.debugMode, this.environment, this.serverName);
|
33422
33181
|
window.Sentry.init(sentryConfig);
|
33423
33182
|
|
@@ -33645,7 +33404,7 @@
|
|
33645
33404
|
|
33646
33405
|
this.pixelId = config.pixelId;
|
33647
33406
|
this.hashMethod = config.hashMethod;
|
33648
|
-
this.name =
|
33407
|
+
this.name = NAME$G;
|
33649
33408
|
this.trackEvents = ["SIGN_UP", "OPEN_APP", "SAVE", "VIEW_CONTENT", "SEARCH", "SUBSCRIBE", "COMPLETE_TUTORIAL", "INVITE", "LOGIN", "SHARE", "RESERVE", "ACHIEVEMENT_UNLOCKED", "SPENT_CREDITS", "RATE", "START_TRIAL", "LIST_VIEW"];
|
33650
33409
|
this.ecomEvents = {
|
33651
33410
|
PURCHASE: "PURCHASE",
|
@@ -33839,7 +33598,7 @@
|
|
33839
33598
|
this.clientId = config.clientId;
|
33840
33599
|
this.eventWhiteList = config.eventWhiteList || [];
|
33841
33600
|
this.customMetrics = config.customMetrics || [];
|
33842
|
-
this.name =
|
33601
|
+
this.name = NAME$H;
|
33843
33602
|
}
|
33844
33603
|
|
33845
33604
|
_createClass(TVSquared, [{
|
@@ -33944,7 +33703,7 @@
|
|
33944
33703
|
this.useExistingJquery = config.useExistingJquery;
|
33945
33704
|
this.sendExperimentTrack = config.sendExperimentTrack;
|
33946
33705
|
this.sendExperimentIdentify = config.sendExperimentIdentify;
|
33947
|
-
this.name =
|
33706
|
+
this.name = NAME$I;
|
33948
33707
|
this.analytics = analytics;
|
33949
33708
|
logger.debug("Config ", config);
|
33950
33709
|
}
|
@@ -34096,7 +33855,7 @@
|
|
34096
33855
|
function GoogleOptimize(config) {
|
34097
33856
|
_classCallCheck(this, GoogleOptimize);
|
34098
33857
|
|
34099
|
-
this.name =
|
33858
|
+
this.name = NAME$h;
|
34100
33859
|
this.ga = config.ga;
|
34101
33860
|
this.trackingId = config.trackingId;
|
34102
33861
|
this.containerId = config.containerId;
|
@@ -34186,7 +33945,7 @@
|
|
34186
33945
|
function PostAffiliatePro(config) {
|
34187
33946
|
_classCallCheck(this, PostAffiliatePro);
|
34188
33947
|
|
34189
|
-
this.name =
|
33948
|
+
this.name = NAME$z;
|
34190
33949
|
this.url = config.url;
|
34191
33950
|
this.mergeProducts = config.mergeProducts;
|
34192
33951
|
this.accountId = config.accountId;
|
@@ -34337,7 +34096,7 @@
|
|
34337
34096
|
function LaunchDarkly(config) {
|
34338
34097
|
_classCallCheck(this, LaunchDarkly);
|
34339
34098
|
|
34340
|
-
this.name =
|
34099
|
+
this.name = NAME$q;
|
34341
34100
|
this.clientSideId = config.clientSideId;
|
34342
34101
|
}
|
34343
34102
|
|
@@ -34462,7 +34221,7 @@
|
|
34462
34221
|
this.build = "1.0.0";
|
34463
34222
|
this.name = "RudderLabs JavaScript SDK";
|
34464
34223
|
this.namespace = "com.rudderlabs.javascript";
|
34465
|
-
this.version = "1.
|
34224
|
+
this.version = "1.4.0";
|
34466
34225
|
});
|
34467
34226
|
|
34468
34227
|
// Library information class
|
@@ -34470,7 +34229,7 @@
|
|
34470
34229
|
_classCallCheck(this, RudderLibraryInfo);
|
34471
34230
|
|
34472
34231
|
this.name = "RudderLabs JavaScript SDK";
|
34473
|
-
this.version = "1.
|
34232
|
+
this.version = "1.4.0";
|
34474
34233
|
}); // Operating System information class
|
34475
34234
|
|
34476
34235
|
|
@@ -38096,20 +37855,19 @@
|
|
38096
37855
|
return true;
|
38097
37856
|
}
|
38098
37857
|
/**
|
38099
|
-
*
|
38100
|
-
*
|
37858
|
+
* Load after polyfills are loaded
|
38101
37859
|
* @param {*} writeKey
|
38102
|
-
* @
|
37860
|
+
* @param {*} serverUrl
|
37861
|
+
* @param {*} options
|
37862
|
+
* @returns
|
38103
37863
|
*/
|
38104
37864
|
|
38105
37865
|
}, {
|
38106
|
-
key: "
|
38107
|
-
value: function
|
37866
|
+
key: "loadAfterPolyfill",
|
37867
|
+
value: function loadAfterPolyfill(writeKey, serverUrl, options) {
|
38108
37868
|
var _this4 = this;
|
38109
37869
|
|
38110
|
-
logger.debug("inside load ");
|
38111
37870
|
if (options && options.cookieConsentManager) this.cookieConsentOptions = lodash_clonedeep(options.cookieConsentManager);
|
38112
|
-
if (this.loaded) return;
|
38113
37871
|
var configUrl = CONFIG_URL;
|
38114
37872
|
|
38115
37873
|
if (!this.isValidWriteKey(writeKey) || !this.isValidServerUrl(serverUrl)) {
|
@@ -38234,6 +37992,37 @@
|
|
38234
37992
|
|
38235
37993
|
processDataInAnalyticsArray(this);
|
38236
37994
|
}
|
37995
|
+
/**
|
37996
|
+
* Call control pane to get client configs
|
37997
|
+
*
|
37998
|
+
* @param {*} writeKey
|
37999
|
+
* @memberof Analytics
|
38000
|
+
*/
|
38001
|
+
|
38002
|
+
}, {
|
38003
|
+
key: "load",
|
38004
|
+
value: function load(writeKey, serverUrl, options) {
|
38005
|
+
// logger.debug("inside load ");
|
38006
|
+
if (this.loaded) return; // check if the below features are available in the browser or not
|
38007
|
+
// If not present dynamically load from the polyfill cdn
|
38008
|
+
|
38009
|
+
if (!String.prototype.endsWith || !String.prototype.startsWith || !String.prototype.includes || !Array.prototype.find || !Array.prototype.includes || !Promise || !Object.entries) {
|
38010
|
+
ScriptLoader("polyfill", POLYFILL_URL);
|
38011
|
+
var self = this;
|
38012
|
+
var interval = setInterval(function () {
|
38013
|
+
// check if the polyfill is loaded
|
38014
|
+
if (window.hasOwnProperty("polyfill")) {
|
38015
|
+
clearInterval(interval);
|
38016
|
+
self.loadAfterPolyfill(writeKey, serverUrl, options);
|
38017
|
+
}
|
38018
|
+
}, 100);
|
38019
|
+
setTimeout(function () {
|
38020
|
+
clearInterval(interval);
|
38021
|
+
}, MAX_WAIT_FOR_INTEGRATION_LOAD);
|
38022
|
+
} else {
|
38023
|
+
this.loadAfterPolyfill(writeKey, serverUrl, options);
|
38024
|
+
}
|
38025
|
+
}
|
38237
38026
|
}, {
|
38238
38027
|
key: "ready",
|
38239
38028
|
value: function ready(callback) {
|