Skip to content

Commit e0e9382

Browse files
chore(build): Generate latest bundle [skip ci]
1 parent a181f54 commit e0e9382

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

dist/Rokt-Kit.common.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ var constructor = function () {
2424
var self = this;
2525
var EMAIL_SHA256_IDENTITY = 'emailsha256';
2626
var OTHER_IDENTITY = 'other';
27+
var PerformanceMarks = {
28+
RoktScriptAppended: 'mp:RoktScriptAppended',
29+
};
2730

2831
self.name = name;
2932
self.moduleId = moduleId;
@@ -141,6 +144,7 @@ var constructor = function () {
141144
};
142145

143146
target.appendChild(script);
147+
captureTiming(PerformanceMarks.RoktScriptAppended);
144148
} else {
145149
console.warn('Unable to find Rokt on the page');
146150
}
@@ -448,11 +452,22 @@ var constructor = function () {
448452
var LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD = 0.5;
449453
return Math.random() > LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD;
450454
}
455+
456+
function captureTiming(metricName) {
457+
if (
458+
window &&
459+
window.mParticle &&
460+
window.mParticle.captureTiming &&
461+
metricName
462+
) {
463+
window.mParticle.captureTiming(metricName);
464+
}
465+
}
451466
};
452467

453468
function generateIntegrationName(customIntegrationName) {
454469
var coreSdkVersion = window.mParticle.getVersion();
455-
var kitVersion = "1.10.0";
470+
var kitVersion = "1.12.0";
456471
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
457472

458473
if (customIntegrationName) {

dist/Rokt-Kit.iife.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ var RoktKit = (function (exports) {
2323
var self = this;
2424
var EMAIL_SHA256_IDENTITY = 'emailsha256';
2525
var OTHER_IDENTITY = 'other';
26+
var PerformanceMarks = {
27+
RoktScriptAppended: 'mp:RoktScriptAppended',
28+
};
2629

2730
self.name = name;
2831
self.moduleId = moduleId;
@@ -140,6 +143,7 @@ var RoktKit = (function (exports) {
140143
};
141144

142145
target.appendChild(script);
146+
captureTiming(PerformanceMarks.RoktScriptAppended);
143147
} else {
144148
console.warn('Unable to find Rokt on the page');
145149
}
@@ -447,11 +451,22 @@ var RoktKit = (function (exports) {
447451
var LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD = 0.5;
448452
return Math.random() > LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD;
449453
}
454+
455+
function captureTiming(metricName) {
456+
if (
457+
window &&
458+
window.mParticle &&
459+
window.mParticle.captureTiming &&
460+
metricName
461+
) {
462+
window.mParticle.captureTiming(metricName);
463+
}
464+
}
450465
};
451466

452467
function generateIntegrationName(customIntegrationName) {
453468
var coreSdkVersion = window.mParticle.getVersion();
454-
var kitVersion = "1.10.0";
469+
var kitVersion = "1.12.0";
455470
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
456471

457472
if (customIntegrationName) {

0 commit comments

Comments
 (0)