@funnelsgrove/runtime 0.7.21 → 0.7.22

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.
@@ -102,6 +102,12 @@ export const bootstrapPostHog = (config) => {
102
102
  capture_heatmaps: false,
103
103
  capture_performance: false,
104
104
  disable_session_recording: !sessionReplayEnabled,
105
+ before_send: (event) => {
106
+ if (!event || Object.keys(scopeProperties).length === 0) {
107
+ return event;
108
+ }
109
+ return Object.assign(Object.assign({}, event), { properties: Object.assign(Object.assign({}, event.properties), scopeProperties) });
110
+ },
105
111
  session_recording: {
106
112
  maskAllInputs: true,
107
113
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/runtime",
3
- "version": "0.7.21",
3
+ "version": "0.7.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",