@mparticle/web-rokt-kit 1.6.1 → 1.6.2
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 +17 -3
- package/dist/Rokt-Kit.iife.js +17 -3
- package/package.json +1 -1
package/dist/Rokt-Kit.common.js
CHANGED
|
@@ -22,6 +22,8 @@ var moduleId = 181;
|
|
|
22
22
|
|
|
23
23
|
var constructor = function () {
|
|
24
24
|
var self = this;
|
|
25
|
+
var EMAIL_SHA256_IDENTITY = 'emailsha256';
|
|
26
|
+
var OTHER_IDENTITY = 'other';
|
|
25
27
|
|
|
26
28
|
self.name = name;
|
|
27
29
|
self.moduleId = moduleId;
|
|
@@ -140,7 +142,19 @@ var constructor = function () {
|
|
|
140
142
|
return {};
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
|
|
145
|
+
var userIdentities = filteredUser.getUserIdentities().userIdentities;
|
|
146
|
+
|
|
147
|
+
return replaceOtherWithEmailsha256(userIdentities);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function replaceOtherWithEmailsha256(_data) {
|
|
151
|
+
var data = mergeObjects({}, _data || {});
|
|
152
|
+
if (_data.hasOwnProperty(OTHER_IDENTITY)) {
|
|
153
|
+
data[EMAIL_SHA256_IDENTITY] = _data[OTHER_IDENTITY];
|
|
154
|
+
delete data[OTHER_IDENTITY];
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return data;
|
|
144
158
|
}
|
|
145
159
|
|
|
146
160
|
/**
|
|
@@ -190,8 +204,8 @@ var constructor = function () {
|
|
|
190
204
|
var filteredUserIdentities = returnUserIdentities(filteredUser);
|
|
191
205
|
|
|
192
206
|
var selectPlacementsAttributes = mergeObjects(
|
|
193
|
-
filteredAttributes,
|
|
194
207
|
filteredUserIdentities,
|
|
208
|
+
replaceOtherWithEmailsha256(filteredAttributes),
|
|
195
209
|
optimizelyAttributes,
|
|
196
210
|
{
|
|
197
211
|
mpid: mpid,
|
|
@@ -338,7 +352,7 @@ var constructor = function () {
|
|
|
338
352
|
|
|
339
353
|
function generateIntegrationName(customIntegrationName) {
|
|
340
354
|
var coreSdkVersion = window.mParticle.getVersion();
|
|
341
|
-
var kitVersion = "1.6.
|
|
355
|
+
var kitVersion = "1.6.2";
|
|
342
356
|
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
|
|
343
357
|
|
|
344
358
|
if (customIntegrationName) {
|
package/dist/Rokt-Kit.iife.js
CHANGED
|
@@ -21,6 +21,8 @@ var RoktKit = (function (exports) {
|
|
|
21
21
|
|
|
22
22
|
var constructor = function () {
|
|
23
23
|
var self = this;
|
|
24
|
+
var EMAIL_SHA256_IDENTITY = 'emailsha256';
|
|
25
|
+
var OTHER_IDENTITY = 'other';
|
|
24
26
|
|
|
25
27
|
self.name = name;
|
|
26
28
|
self.moduleId = moduleId;
|
|
@@ -139,7 +141,19 @@ var RoktKit = (function (exports) {
|
|
|
139
141
|
return {};
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
|
|
144
|
+
var userIdentities = filteredUser.getUserIdentities().userIdentities;
|
|
145
|
+
|
|
146
|
+
return replaceOtherWithEmailsha256(userIdentities);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function replaceOtherWithEmailsha256(_data) {
|
|
150
|
+
var data = mergeObjects({}, _data || {});
|
|
151
|
+
if (_data.hasOwnProperty(OTHER_IDENTITY)) {
|
|
152
|
+
data[EMAIL_SHA256_IDENTITY] = _data[OTHER_IDENTITY];
|
|
153
|
+
delete data[OTHER_IDENTITY];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return data;
|
|
143
157
|
}
|
|
144
158
|
|
|
145
159
|
/**
|
|
@@ -189,8 +203,8 @@ var RoktKit = (function (exports) {
|
|
|
189
203
|
var filteredUserIdentities = returnUserIdentities(filteredUser);
|
|
190
204
|
|
|
191
205
|
var selectPlacementsAttributes = mergeObjects(
|
|
192
|
-
filteredAttributes,
|
|
193
206
|
filteredUserIdentities,
|
|
207
|
+
replaceOtherWithEmailsha256(filteredAttributes),
|
|
194
208
|
optimizelyAttributes,
|
|
195
209
|
{
|
|
196
210
|
mpid: mpid,
|
|
@@ -337,7 +351,7 @@ var RoktKit = (function (exports) {
|
|
|
337
351
|
|
|
338
352
|
function generateIntegrationName(customIntegrationName) {
|
|
339
353
|
var coreSdkVersion = window.mParticle.getVersion();
|
|
340
|
-
var kitVersion = "1.6.
|
|
354
|
+
var kitVersion = "1.6.2";
|
|
341
355
|
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
|
|
342
356
|
|
|
343
357
|
if (customIntegrationName) {
|