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/dist/array.full.js +2 -2
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/lib/src/web-experiments-types.d.ts +1 -1
- package/dist/lib/src/web-experiments.d.ts +5 -2
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +6 -3
- package/dist/module.full.d.ts +6 -3
- package/dist/module.full.js +2 -2
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +6 -3
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +6 -3
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/posthog-core.js +4 -0
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/web-experiments-types.d.ts +1 -1
- package/lib/src/web-experiments-types.js.map +1 -1
- package/lib/src/web-experiments.d.ts +5 -2
- package/lib/src/web-experiments.js +83 -12
- package/lib/src/web-experiments.js.map +1 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
package/lib/src/posthog-core.js
CHANGED
|
@@ -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
|
}
|