Skip to content

Commit

Permalink
chore(build): Generate latest bundle [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mparticle-automation committed Feb 3, 2025
1 parent f988d80 commit 5819ebf
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 8 deletions.
26 changes: 22 additions & 4 deletions dist/ID5Kit.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,13 @@ IdentityHandler.prototype.onLoginComplete = function(
var partnerData = this.common.buildPartnerData(mParticleUser);

if (partnerData) {
var id5Instance = window.ID5.init({partnerId: this.common.partnerId, pd: partnerData});
var id5Instance = window.ID5.init({
partnerId: this.common.partnerId,
pd: partnerData,
consentData: {
allowedVendors: this.common.allowedVendors
}
});
var logId5Id = this.common.logId5Id;

id5Instance.onAvailable(function(status){
Expand All @@ -1276,7 +1282,12 @@ IdentityHandler.prototype.onLoginComplete = function(
//Must re-initialize ID5 without partner identities (pd) in the config to revert to an anonymous ID5 ID
IdentityHandler.prototype.onLogoutComplete = function(
) {
var id5Instance = window.ID5.init({partnerId: this.common.partnerId});
var id5Instance = window.ID5.init({
partnerId: this.common.partnerId,
consentData: {
allowedVendors: this.common.allowedVendors
}
});
var logId5Id = this.common.logId5Id;

id5Instance.onAvailable(function(status){
Expand All @@ -1296,7 +1307,8 @@ var identityHandler = IdentityHandler;

var initialization = {
name: 'ID5',
moduleId: '248',
moduleId: 248,
vendors: [ '131', 'ID5-1747' ],
/* ****** Fill out initForwarder to load your SDK ******
Note that not all arguments may apply to your SDK initialization.
These are passed from mParticle, but leave them even if they are not being used.
Expand All @@ -1310,6 +1322,7 @@ var initialization = {
common.partnerId = forwarderSettings.partnerId;
common.id5IdType = forwarderSettings.id5IdType;
common.moduleId = this.moduleId;
common.allowedVendors = this.vendors;

if (!testMode) {
/* Load your Web SDK here using a variant of your snippet from your readme that your customers would generally put into their <head> tags
Expand All @@ -1322,7 +1335,12 @@ var initialization = {

id5Script.onload = function() {

var id5Instance = window.ID5.init({partnerId: common.partnerId});
var id5Instance = window.ID5.init({
partnerId: common.partnerId,
consentData: {
allowedVendors: common.allowedVendors
}
});

id5Instance.onAvailable(function(status){
common.logId5Id(status.getUserId());
Expand Down
26 changes: 22 additions & 4 deletions dist/ID5Kit.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,13 @@ var ID5Kit = (function (exports) {
var partnerData = this.common.buildPartnerData(mParticleUser);

if (partnerData) {
var id5Instance = window.ID5.init({partnerId: this.common.partnerId, pd: partnerData});
var id5Instance = window.ID5.init({
partnerId: this.common.partnerId,
pd: partnerData,
consentData: {
allowedVendors: this.common.allowedVendors
}
});
var logId5Id = this.common.logId5Id;

id5Instance.onAvailable(function(status){
Expand All @@ -1275,7 +1281,12 @@ var ID5Kit = (function (exports) {
//Must re-initialize ID5 without partner identities (pd) in the config to revert to an anonymous ID5 ID
IdentityHandler.prototype.onLogoutComplete = function(
) {
var id5Instance = window.ID5.init({partnerId: this.common.partnerId});
var id5Instance = window.ID5.init({
partnerId: this.common.partnerId,
consentData: {
allowedVendors: this.common.allowedVendors
}
});
var logId5Id = this.common.logId5Id;

id5Instance.onAvailable(function(status){
Expand All @@ -1295,7 +1306,8 @@ var ID5Kit = (function (exports) {

var initialization = {
name: 'ID5',
moduleId: '248',
moduleId: 248,
vendors: [ '131', 'ID5-1747' ],
/* ****** Fill out initForwarder to load your SDK ******
Note that not all arguments may apply to your SDK initialization.
These are passed from mParticle, but leave them even if they are not being used.
Expand All @@ -1309,6 +1321,7 @@ var ID5Kit = (function (exports) {
common.partnerId = forwarderSettings.partnerId;
common.id5IdType = forwarderSettings.id5IdType;
common.moduleId = this.moduleId;
common.allowedVendors = this.vendors;

if (!testMode) {
/* Load your Web SDK here using a variant of your snippet from your readme that your customers would generally put into their <head> tags
Expand All @@ -1321,7 +1334,12 @@ var ID5Kit = (function (exports) {

id5Script.onload = function() {

var id5Instance = window.ID5.init({partnerId: common.partnerId});
var id5Instance = window.ID5.init({
partnerId: common.partnerId,
consentData: {
allowedVendors: common.allowedVendors
}
});

id5Instance.onAvailable(function(status){
common.logId5Id(status.getUserId());
Expand Down

0 comments on commit 5819ebf

Please sign in to comment.