@surfside/surfside-events 3.6.2 → 3.6.4
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.
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Surfside Digital Analytics > Custom Events v3.6.
|
|
2
|
+
* Surfside Digital Analytics > Custom Events v3.6.4 (https://surfside.io)
|
|
3
3
|
* Copyright 2022 Surfside Solutions Inc, Snowplow Analytics Ltd, 2010 Anthon Pang
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -406,11 +406,12 @@
|
|
|
406
406
|
dispatchToTrackersInCollection(trackers, _trackers, function (t) {
|
|
407
407
|
var combinedContexts = _context[t.id].concat(event.context || []);
|
|
408
408
|
_context[t.id].length = 0;
|
|
409
|
+
var action = (event === null || event === void 0 ? void 0 : event.action) ? event.action : event;
|
|
409
410
|
t.core.track(buildSelfDescribingEvent({
|
|
410
411
|
event: {
|
|
411
412
|
schema: 'iglu:io.surfside.commerce/action/jsonschema/1-0-0',
|
|
412
413
|
data: {
|
|
413
|
-
action:
|
|
414
|
+
action: action
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
417
|
}), combinedContexts, event.timestamp);
|
|
@@ -795,7 +796,7 @@
|
|
|
795
796
|
_context[t.id].length = 0;
|
|
796
797
|
t.core.addGlobalContexts([
|
|
797
798
|
{
|
|
798
|
-
schema: 'iglu:io.surfside/uid_context/jsonschema/1-0-0',
|
|
799
|
+
schema: 'iglu:io.surfside.identity/uid_context/jsonschema/1-0-0',
|
|
799
800
|
data: {
|
|
800
801
|
uid2: token
|
|
801
802
|
}
|