@mparticle/web-rokt-kit 1.13.0 → 1.13.1
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/dist/Rokt-Kit.common.js +4 -14
- package/dist/Rokt-Kit.iife.js +4 -14
- package/package.json +1 -1
package/dist/Rokt-Kit.common.js
CHANGED
|
@@ -27,7 +27,6 @@ var constructor = function () {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
var EMAIL_SHA256_KEY = 'emailsha256';
|
|
30
|
-
var EMAIL_KEY = 'email';
|
|
31
30
|
|
|
32
31
|
// Dynamic identity type for Rokt's emailsha256 identity value which MP doesn't natively support - will be set during initialization
|
|
33
32
|
var mappedEmailSha256Key;
|
|
@@ -189,24 +188,15 @@ var constructor = function () {
|
|
|
189
188
|
|
|
190
189
|
function replaceOtherIdentityWithEmailsha256(userIdentities) {
|
|
191
190
|
var newUserIdentities = mergeObjects({}, userIdentities || {});
|
|
192
|
-
if (userIdentities
|
|
191
|
+
if (userIdentities[mappedEmailSha256Key]) {
|
|
193
192
|
newUserIdentities[EMAIL_SHA256_KEY] =
|
|
194
193
|
userIdentities[mappedEmailSha256Key];
|
|
195
|
-
delete newUserIdentities[mappedEmailSha256Key];
|
|
196
194
|
}
|
|
195
|
+
delete newUserIdentities[mappedEmailSha256Key];
|
|
197
196
|
|
|
198
197
|
return newUserIdentities;
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
function sanitizeEmailIdentities(_data) {
|
|
202
|
-
var data = mergeObjects({}, _data || {});
|
|
203
|
-
if (_data.hasOwnProperty(EMAIL_SHA256_KEY)) {
|
|
204
|
-
delete data[EMAIL_KEY];
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
return data;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
200
|
/**
|
|
211
201
|
* Selects placements for Rokt Web SDK with merged attributes, filters, and experimentation options
|
|
212
202
|
* @see https://docs.rokt.com/developers/integration-guides/web/library/select-placements-options/
|
|
@@ -266,7 +256,7 @@ var constructor = function () {
|
|
|
266
256
|
);
|
|
267
257
|
|
|
268
258
|
var selectPlacementsOptions = mergeObjects(options, {
|
|
269
|
-
attributes:
|
|
259
|
+
attributes: selectPlacementsAttributes,
|
|
270
260
|
});
|
|
271
261
|
|
|
272
262
|
return self.launcher.selectPlacements(selectPlacementsOptions);
|
|
@@ -488,7 +478,7 @@ var constructor = function () {
|
|
|
488
478
|
|
|
489
479
|
function generateIntegrationName(customIntegrationName) {
|
|
490
480
|
var coreSdkVersion = window.mParticle.getVersion();
|
|
491
|
-
var kitVersion = "1.13.
|
|
481
|
+
var kitVersion = "1.13.1";
|
|
492
482
|
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
|
|
493
483
|
|
|
494
484
|
if (customIntegrationName) {
|
package/dist/Rokt-Kit.iife.js
CHANGED
|
@@ -26,7 +26,6 @@ var RoktKit = (function (exports) {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
var EMAIL_SHA256_KEY = 'emailsha256';
|
|
29
|
-
var EMAIL_KEY = 'email';
|
|
30
29
|
|
|
31
30
|
// Dynamic identity type for Rokt's emailsha256 identity value which MP doesn't natively support - will be set during initialization
|
|
32
31
|
var mappedEmailSha256Key;
|
|
@@ -188,24 +187,15 @@ var RoktKit = (function (exports) {
|
|
|
188
187
|
|
|
189
188
|
function replaceOtherIdentityWithEmailsha256(userIdentities) {
|
|
190
189
|
var newUserIdentities = mergeObjects({}, userIdentities || {});
|
|
191
|
-
if (userIdentities
|
|
190
|
+
if (userIdentities[mappedEmailSha256Key]) {
|
|
192
191
|
newUserIdentities[EMAIL_SHA256_KEY] =
|
|
193
192
|
userIdentities[mappedEmailSha256Key];
|
|
194
|
-
delete newUserIdentities[mappedEmailSha256Key];
|
|
195
193
|
}
|
|
194
|
+
delete newUserIdentities[mappedEmailSha256Key];
|
|
196
195
|
|
|
197
196
|
return newUserIdentities;
|
|
198
197
|
}
|
|
199
198
|
|
|
200
|
-
function sanitizeEmailIdentities(_data) {
|
|
201
|
-
var data = mergeObjects({}, _data || {});
|
|
202
|
-
if (_data.hasOwnProperty(EMAIL_SHA256_KEY)) {
|
|
203
|
-
delete data[EMAIL_KEY];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return data;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
199
|
/**
|
|
210
200
|
* Selects placements for Rokt Web SDK with merged attributes, filters, and experimentation options
|
|
211
201
|
* @see https://docs.rokt.com/developers/integration-guides/web/library/select-placements-options/
|
|
@@ -265,7 +255,7 @@ var RoktKit = (function (exports) {
|
|
|
265
255
|
);
|
|
266
256
|
|
|
267
257
|
var selectPlacementsOptions = mergeObjects(options, {
|
|
268
|
-
attributes:
|
|
258
|
+
attributes: selectPlacementsAttributes,
|
|
269
259
|
});
|
|
270
260
|
|
|
271
261
|
return self.launcher.selectPlacements(selectPlacementsOptions);
|
|
@@ -487,7 +477,7 @@ var RoktKit = (function (exports) {
|
|
|
487
477
|
|
|
488
478
|
function generateIntegrationName(customIntegrationName) {
|
|
489
479
|
var coreSdkVersion = window.mParticle.getVersion();
|
|
490
|
-
var kitVersion = "1.13.
|
|
480
|
+
var kitVersion = "1.13.1";
|
|
491
481
|
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
|
|
492
482
|
|
|
493
483
|
if (customIntegrationName) {
|