@surfside/surfside-events 3.6.2 → 3.6.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.
package/dist/index.umd.js
CHANGED
|
@@ -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);
|