@surfside/surfside-events 3.6.1 → 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.module.js +4 -3
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +6 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +2 -2
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +10 -12
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.2 (https://surfside.io)
|
|
3
3
|
* Copyright 2022 Surfside Solutions Inc, Snowplow Analytics Ltd, 2010 Anthon Pang
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/*!
|
|
76
|
-
* Core functionality for Surfside JavaScript trackers
|
|
76
|
+
* Core functionality for Surfside JavaScript trackers v3.6.0 (https://www.surfside.io)
|
|
77
77
|
* Copyright 2022 Surfside Solutions Inc, Snowplow Analytics Ltd, 2010 Anthon Pang
|
|
78
78
|
*/
|
|
79
79
|
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
/*!
|
|
303
|
-
* Core functionality for Surfside Digital trackers
|
|
303
|
+
* Core functionality for Surfside Digital trackers v3.6.0 ()
|
|
304
304
|
* Copyright 2022 Surfside Solutions Inc, Snowplow Analytics Ltd, 2010 Anthon Pang
|
|
305
305
|
*/
|
|
306
306
|
/**
|
|
@@ -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/
|
|
799
|
+
schema: 'iglu:io.surfside/uid_context/jsonschema/1-0-0',
|
|
799
800
|
data: {
|
|
800
801
|
uid2: token
|
|
801
802
|
}
|