@mparticle/web-sdk
Advanced tools
Comparing version 2.26.10 to 2.27.0
{ | ||
"name": "@mparticle/web-sdk", | ||
"version": "2.26.10", | ||
"version": "2.27.0", | ||
"description": "mParticle core SDK for web applications", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -526,3 +526,3 @@ import Types from './types'; | ||
this.createCommerceEventObject = function(customFlags) { | ||
this.createCommerceEventObject = function(customFlags, options) { | ||
var baseEvent; | ||
@@ -537,2 +537,3 @@ | ||
messageType: Types.MessageType.Commerce, | ||
sourceMessageId: options?.sourceMessageId, | ||
}); | ||
@@ -539,0 +540,0 @@ baseEvent.EventName = 'eCommerce - '; |
@@ -132,3 +132,4 @@ import Types from './types'; | ||
var event = mpInstance._Ecommerce.createCommerceEventObject( | ||
customFlags | ||
customFlags, | ||
options | ||
); | ||
@@ -135,0 +136,0 @@ |
@@ -86,2 +86,3 @@ import { Batch, Context } from '@mparticle/event-models'; | ||
v1SecureServiceUrl?: string; | ||
// https://go.mparticle.com/work/SQDSDKS-6618 | ||
v2SecureServiceUrl?: string; | ||
@@ -665,3 +666,3 @@ v3SecureServiceUrl?: string; | ||
// We should reprocess the flags in case they have changed when we request an updated config | ||
// We should reprocess the flags and baseUrls in case they have changed when we request an updated config | ||
// such as if the SDK is being self-hosted and the flags are different on the server config | ||
@@ -671,2 +672,12 @@ // https://go.mparticle.com/work/SQDSDKS-6317 | ||
const baseUrls: Dictionary<string> = processBaseUrls( | ||
config, | ||
this.SDKConfig.flags, | ||
apiKey | ||
); | ||
for (const baseUrlKeys in baseUrls) { | ||
this.SDKConfig[baseUrlKeys] = baseUrls[baseUrlKeys]; | ||
} | ||
if (workspaceToken) { | ||
@@ -673,0 +684,0 @@ this.SDKConfig.workspaceToken = workspaceToken; |
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
1542926
27796