Skip to content

Commit f4fb633

Browse files
chore(build): Generate latest bundle [skip ci]
1 parent 6cf2344 commit f4fb633

2 files changed

Lines changed: 30 additions & 38 deletions

File tree

dist/Rokt-Kit.common.js

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,22 @@ var constructor = function () {
5454
_service,
5555
testMode,
5656
_trackerId,
57-
filteredUserAttributes,
58-
filteredUserIdentities,
59-
appVersion,
60-
appName,
61-
customFlags
57+
filteredUserAttributes
6258
) {
6359
var accountId = settings.accountId;
6460
self.userAttributes = filteredUserAttributes;
6561
self.onboardingExpProvider = settings.onboardingExpProvider;
6662

67-
var integrationName =
68-
customFlags && customFlags['Rokt.integrationName'];
69-
var noFunctional = customFlags && customFlags['Rokt.noFunctional'];
70-
var noTargeting = customFlags && customFlags['Rokt.noTargeting'];
63+
var managerOptions = window.mParticle.Rokt.managerOptions || {};
64+
var sandbox = managerOptions.sandbox || false;
7165

72-
var launcherOptions = {
73-
integrationName: generateIntegrationName(integrationName),
74-
noFunctional: noFunctional,
75-
noTargeting: noTargeting,
76-
};
66+
var launcherOptions = window.mParticle.Rokt.launcherOptions || {};
67+
launcherOptions.integrationName = generateIntegrationName(
68+
launcherOptions.integrationName
69+
);
7770

7871
if (testMode) {
79-
attachLauncher(accountId, launcherOptions);
72+
attachLauncher(accountId, sandbox, launcherOptions);
8073
return;
8174
}
8275

@@ -97,7 +90,7 @@ var constructor = function () {
9790
typeof window.Rokt.createLauncher === 'function' &&
9891
window.Rokt.currentLauncher === undefined
9992
) {
100-
attachLauncher(accountId, launcherOptions);
93+
attachLauncher(accountId, sandbox, launcherOptions);
10194
} else {
10295
console.error(
10396
'Rokt object is not available after script load.'
@@ -187,9 +180,12 @@ var constructor = function () {
187180
delete self.userAttributes[key];
188181
}
189182

190-
function attachLauncher(accountId, launcherOptions) {
183+
function attachLauncher(accountId, sandbox, launcherOptions) {
191184
var options = mergeObjects(
192-
{ accountId: accountId },
185+
{
186+
accountId: accountId,
187+
sandbox: sandbox,
188+
},
193189
launcherOptions || {}
194190
);
195191

@@ -292,7 +288,7 @@ var constructor = function () {
292288

293289
function generateIntegrationName(customIntegrationName) {
294290
var coreSdkVersion = window.mParticle.getVersion();
295-
var kitVersion = "1.3.2";
291+
var kitVersion = "1.4.0";
296292
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
297293

298294
if (customIntegrationName) {

dist/Rokt-Kit.iife.js

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,22 @@ var RoktKit = (function (exports) {
5353
_service,
5454
testMode,
5555
_trackerId,
56-
filteredUserAttributes,
57-
filteredUserIdentities,
58-
appVersion,
59-
appName,
60-
customFlags
56+
filteredUserAttributes
6157
) {
6258
var accountId = settings.accountId;
6359
self.userAttributes = filteredUserAttributes;
6460
self.onboardingExpProvider = settings.onboardingExpProvider;
6561

66-
var integrationName =
67-
customFlags && customFlags['Rokt.integrationName'];
68-
var noFunctional = customFlags && customFlags['Rokt.noFunctional'];
69-
var noTargeting = customFlags && customFlags['Rokt.noTargeting'];
62+
var managerOptions = window.mParticle.Rokt.managerOptions || {};
63+
var sandbox = managerOptions.sandbox || false;
7064

71-
var launcherOptions = {
72-
integrationName: generateIntegrationName(integrationName),
73-
noFunctional: noFunctional,
74-
noTargeting: noTargeting,
75-
};
65+
var launcherOptions = window.mParticle.Rokt.launcherOptions || {};
66+
launcherOptions.integrationName = generateIntegrationName(
67+
launcherOptions.integrationName
68+
);
7669

7770
if (testMode) {
78-
attachLauncher(accountId, launcherOptions);
71+
attachLauncher(accountId, sandbox, launcherOptions);
7972
return;
8073
}
8174

@@ -96,7 +89,7 @@ var RoktKit = (function (exports) {
9689
typeof window.Rokt.createLauncher === 'function' &&
9790
window.Rokt.currentLauncher === undefined
9891
) {
99-
attachLauncher(accountId, launcherOptions);
92+
attachLauncher(accountId, sandbox, launcherOptions);
10093
} else {
10194
console.error(
10295
'Rokt object is not available after script load.'
@@ -186,9 +179,12 @@ var RoktKit = (function (exports) {
186179
delete self.userAttributes[key];
187180
}
188181

189-
function attachLauncher(accountId, launcherOptions) {
182+
function attachLauncher(accountId, sandbox, launcherOptions) {
190183
var options = mergeObjects(
191-
{ accountId: accountId },
184+
{
185+
accountId: accountId,
186+
sandbox: sandbox,
187+
},
192188
launcherOptions || {}
193189
);
194190

@@ -291,7 +287,7 @@ var RoktKit = (function (exports) {
291287

292288
function generateIntegrationName(customIntegrationName) {
293289
var coreSdkVersion = window.mParticle.getVersion();
294-
var kitVersion = "1.3.2";
290+
var kitVersion = "1.4.0";
295291
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
296292

297293
if (customIntegrationName) {

0 commit comments

Comments
 (0)