posthog-js 1.166.2 → 1.167.1

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-js",
3
- "version": "1.166.2",
3
+ "version": "1.167.1",
4
4
  "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
5
5
  "repository": "https://github.com/PostHog/posthog-js",
6
6
  "author": "hey@posthog.com",
@@ -807,6 +807,10 @@ var PostHog = /** @class */ (function () {
807
807
  }
808
808
  // if we're an identified person, send initial params with every event
809
809
  var setOnceProperties = extend({}, this.persistence.get_initial_props(), dataSetOnce || {});
810
+ var sanitize_properties = this.config.sanitize_properties;
811
+ if (sanitize_properties) {
812
+ setOnceProperties = sanitize_properties(setOnceProperties, '$set_once');
813
+ }
810
814
  if (isEmptyObject(setOnceProperties)) {
811
815
  return undefined;
812
816
  }