@@ -26,7 +26,6 @@ var RoktKit = (function (exports) {
2626 } ;
2727
2828 var EMAIL_SHA256_KEY = 'emailsha256' ;
29- var EMAIL_KEY = 'email' ;
3029
3130 // Dynamic identity type for Rokt's emailsha256 identity value which MP doesn't natively support - will be set during initialization
3231 var mappedEmailSha256Key ;
@@ -188,24 +187,15 @@ var RoktKit = (function (exports) {
188187
189188 function replaceOtherIdentityWithEmailsha256 ( userIdentities ) {
190189 var newUserIdentities = mergeObjects ( { } , userIdentities || { } ) ;
191- if ( userIdentities . hasOwnProperty ( mappedEmailSha256Key ) ) {
190+ if ( userIdentities [ mappedEmailSha256Key ] ) {
192191 newUserIdentities [ EMAIL_SHA256_KEY ] =
193192 userIdentities [ mappedEmailSha256Key ] ;
194- delete newUserIdentities [ mappedEmailSha256Key ] ;
195193 }
194+ delete newUserIdentities [ mappedEmailSha256Key ] ;
196195
197196 return newUserIdentities ;
198197 }
199198
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-
209199 /**
210200 * Selects placements for Rokt Web SDK with merged attributes, filters, and experimentation options
211201 * @see https://docs.rokt.com/developers/integration-guides/web/library/select-placements-options/
@@ -265,7 +255,7 @@ var RoktKit = (function (exports) {
265255 ) ;
266256
267257 var selectPlacementsOptions = mergeObjects ( options , {
268- attributes : sanitizeEmailIdentities ( selectPlacementsAttributes ) ,
258+ attributes : selectPlacementsAttributes ,
269259 } ) ;
270260
271261 return self . launcher . selectPlacements ( selectPlacementsOptions ) ;
@@ -487,7 +477,7 @@ var RoktKit = (function (exports) {
487477
488478 function generateIntegrationName ( customIntegrationName ) {
489479 var coreSdkVersion = window . mParticle . getVersion ( ) ;
490- var kitVersion = "1.13.0 " ;
480+ var kitVersion = "1.13.1 " ;
491481 var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion ;
492482
493483 if ( customIntegrationName ) {
0 commit comments