Skip to content

Commit 20b2502

Browse files
chore(build): Generate latest bundle [skip ci]
1 parent 3a13833 commit 20b2502

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

dist/Rokt-Kit.common.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var constructor = function () {
6262
* hashed attributes from the launcher, or `null` if the kit is not initialized
6363
*/
6464
function hashAttributes(attributes) {
65-
if (!isInitialized()) {
65+
if (!isKitReady()) {
6666
console.error('Rokt Kit: Not initialized');
6767
return null;
6868
}
@@ -227,7 +227,7 @@ var constructor = function () {
227227
* @returns {void} Nothing is returned
228228
*/
229229
function setExtensionData(partnerExtensionData) {
230-
if (!isInitialized()) {
230+
if (!isKitReady()) {
231231
console.error('Rokt Kit: Not initialized');
232232
return;
233233
}
@@ -275,10 +275,11 @@ var constructor = function () {
275275
);
276276
}
277277
}
278-
// Attaches the kit to the Rokt manager
279-
window.mParticle.Rokt.attachKit(self);
280278

279+
// Kit must be initialized before attaching to the Rokt manager
281280
self.isInitialized = true;
281+
// Attaches the kit to the Rokt manager
282+
window.mParticle.Rokt.attachKit(self);
282283
})
283284
.catch(function (err) {
284285
console.error('Error creating Rokt launcher:', err);
@@ -339,20 +340,20 @@ var constructor = function () {
339340
this.removeUserAttribute = removeUserAttribute;
340341

341342
/**
342-
* Checks if the kit is properly initialized and ready for use.
343+
* Checks if the Rokt kit is ready to use.
343344
* Both conditions must be true:
344345
* 1. self.isInitialized - Set after successful initialization of the kit
345346
* 2. self.launcher - The Rokt launcher instance must be available
346-
* @returns {boolean} Whether the kit is fully initialized
347+
* @returns {boolean} Whether the kit is ready for use
347348
*/
348-
function isInitialized() {
349+
function isKitReady() {
349350
return !!(self.isInitialized && self.launcher);
350351
}
351352
};
352353

353354
function generateIntegrationName(customIntegrationName) {
354355
var coreSdkVersion = window.mParticle.getVersion();
355-
var kitVersion = "1.6.2";
356+
var kitVersion = "1.6.3";
356357
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
357358

358359
if (customIntegrationName) {

dist/Rokt-Kit.iife.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var RoktKit = (function (exports) {
6161
* hashed attributes from the launcher, or `null` if the kit is not initialized
6262
*/
6363
function hashAttributes(attributes) {
64-
if (!isInitialized()) {
64+
if (!isKitReady()) {
6565
console.error('Rokt Kit: Not initialized');
6666
return null;
6767
}
@@ -226,7 +226,7 @@ var RoktKit = (function (exports) {
226226
* @returns {void} Nothing is returned
227227
*/
228228
function setExtensionData(partnerExtensionData) {
229-
if (!isInitialized()) {
229+
if (!isKitReady()) {
230230
console.error('Rokt Kit: Not initialized');
231231
return;
232232
}
@@ -274,10 +274,11 @@ var RoktKit = (function (exports) {
274274
);
275275
}
276276
}
277-
// Attaches the kit to the Rokt manager
278-
window.mParticle.Rokt.attachKit(self);
279277

278+
// Kit must be initialized before attaching to the Rokt manager
280279
self.isInitialized = true;
280+
// Attaches the kit to the Rokt manager
281+
window.mParticle.Rokt.attachKit(self);
281282
})
282283
.catch(function (err) {
283284
console.error('Error creating Rokt launcher:', err);
@@ -338,20 +339,20 @@ var RoktKit = (function (exports) {
338339
this.removeUserAttribute = removeUserAttribute;
339340

340341
/**
341-
* Checks if the kit is properly initialized and ready for use.
342+
* Checks if the Rokt kit is ready to use.
342343
* Both conditions must be true:
343344
* 1. self.isInitialized - Set after successful initialization of the kit
344345
* 2. self.launcher - The Rokt launcher instance must be available
345-
* @returns {boolean} Whether the kit is fully initialized
346+
* @returns {boolean} Whether the kit is ready for use
346347
*/
347-
function isInitialized() {
348+
function isKitReady() {
348349
return !!(self.isInitialized && self.launcher);
349350
}
350351
};
351352

352353
function generateIntegrationName(customIntegrationName) {
353354
var coreSdkVersion = window.mParticle.getVersion();
354-
var kitVersion = "1.6.2";
355+
var kitVersion = "1.6.3";
355356
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
356357

357358
if (customIntegrationName) {

0 commit comments

Comments
 (0)