@mparticle/web-sdk
Advanced tools
Comparing version 2.15.0 to 2.15.1
{ | ||
"name": "@mparticle/web-sdk", | ||
"version": "2.15.0", | ||
"version": "2.15.1", | ||
"description": "mParticle core SDK for web applications", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -322,2 +322,16 @@ import Types from './types'; | ||
// If a developer typos the ProductActionType, the event category will be | ||
// null, resulting in kit forwarding errors on the server. | ||
// The check for `ProductAction` is required to denote that these are | ||
// ProductAction events, and not impression or promotions | ||
if ( | ||
commerceEvent.ProductAction && | ||
commerceEvent.EventCategory === null | ||
) { | ||
mpInstance.Logger.error( | ||
'Commerce event not sent. The mParticle.ProductActionType you passed was invalid. Re-check your code.' | ||
); | ||
return; | ||
} | ||
attrs = mpInstance._Helpers.sanitizeAttributes( | ||
@@ -324,0 +338,0 @@ attrs, |
@@ -1343,2 +1343,5 @@ // | ||
mpInstance._SessionManager.initialize(); | ||
mpInstance._Events.logAST(); | ||
// Call mParticle._Store.SDKConfig.identityCallback when identify was not called due to a reload or a sessionId already existing | ||
@@ -1380,5 +1383,2 @@ if ( | ||
} | ||
mpInstance._SessionManager.initialize(); | ||
mpInstance._Events.logAST(); | ||
} | ||
@@ -1385,0 +1385,0 @@ |
@@ -460,4 +460,4 @@ import Constants from './constants'; | ||
parts = cookies[i].split('='); | ||
name = mpInstance._Helpers.decoded(parts.shift()); | ||
cookie = mpInstance._Helpers.decoded(parts.join('=')); | ||
name = parts.shift(); | ||
cookie = parts.join('='); | ||
} catch (e) { | ||
@@ -464,0 +464,0 @@ mpInstance.Logger.verbose( |
@@ -159,2 +159,3 @@ import * as EventsApi from '@mparticle/event-models'; | ||
identifyRequest: { [key: string]: {[key: string]: string} }; | ||
identityCallback: (result) => void; | ||
requestConfig: boolean; | ||
@@ -161,0 +162,0 @@ dataPlanOptions: KitBlockerOptions // when the user provides their own data plan |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1537065
27975