@mparticle/web-id5-kit 1.0.1 → 1.0.3

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.
@@ -1264,7 +1264,13 @@ IdentityHandler.prototype.onLoginComplete = function(
1264
1264
  var partnerData = this.common.buildPartnerData(mParticleUser);
1265
1265
 
1266
1266
  if (partnerData) {
1267
- var id5Instance = window.ID5.init({partnerId: this.common.partnerId, pd: partnerData});
1267
+ var id5Instance = window.ID5.init({
1268
+ partnerId: this.common.partnerId,
1269
+ pd: partnerData,
1270
+ consentData: {
1271
+ allowedVendors: this.common.allowedVendors
1272
+ }
1273
+ });
1268
1274
  var logId5Id = this.common.logId5Id;
1269
1275
 
1270
1276
  id5Instance.onAvailable(function(status){
@@ -1276,7 +1282,12 @@ IdentityHandler.prototype.onLoginComplete = function(
1276
1282
  //Must re-initialize ID5 without partner identities (pd) in the config to revert to an anonymous ID5 ID
1277
1283
  IdentityHandler.prototype.onLogoutComplete = function(
1278
1284
  ) {
1279
- var id5Instance = window.ID5.init({partnerId: this.common.partnerId});
1285
+ var id5Instance = window.ID5.init({
1286
+ partnerId: this.common.partnerId,
1287
+ consentData: {
1288
+ allowedVendors: this.common.allowedVendors
1289
+ }
1290
+ });
1280
1291
  var logId5Id = this.common.logId5Id;
1281
1292
 
1282
1293
  id5Instance.onAvailable(function(status){
@@ -1296,7 +1307,8 @@ var identityHandler = IdentityHandler;
1296
1307
 
1297
1308
  var initialization = {
1298
1309
  name: 'ID5',
1299
- moduleId: '248',
1310
+ moduleId: 248,
1311
+ vendors: [ '131', 'ID5-1747' ],
1300
1312
  /* ****** Fill out initForwarder to load your SDK ******
1301
1313
  Note that not all arguments may apply to your SDK initialization.
1302
1314
  These are passed from mParticle, but leave them even if they are not being used.
@@ -1310,6 +1322,7 @@ var initialization = {
1310
1322
  common.partnerId = forwarderSettings.partnerId;
1311
1323
  common.id5IdType = forwarderSettings.id5IdType;
1312
1324
  common.moduleId = this.moduleId;
1325
+ common.allowedVendors = this.vendors;
1313
1326
 
1314
1327
  if (!testMode) {
1315
1328
  /* Load your Web SDK here using a variant of your snippet from your readme that your customers would generally put into their <head> tags
@@ -1322,7 +1335,12 @@ var initialization = {
1322
1335
 
1323
1336
  id5Script.onload = function() {
1324
1337
 
1325
- var id5Instance = window.ID5.init({partnerId: common.partnerId});
1338
+ var id5Instance = window.ID5.init({
1339
+ partnerId: common.partnerId,
1340
+ consentData: {
1341
+ allowedVendors: common.allowedVendors
1342
+ }
1343
+ });
1326
1344
 
1327
1345
  id5Instance.onAvailable(function(status){
1328
1346
  common.logId5Id(status.getUserId());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/web-id5-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/ID5Kit.common.js",
5
5
  "files": [
6
6
  "dist/ID5Kit.common.js"