posthog-js 1.32.0 → 1.32.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/CHANGELOG.md +4 -0
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/es.js +3 -2
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +1 -0
- package/dist/module.js +3 -2
- package/dist/module.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
|
@@ -166,6 +166,7 @@ interface PostHogConfig {
|
|
|
166
166
|
opt_out_persistence_by_default: boolean;
|
|
167
167
|
opt_out_capturing_persistence_type: 'localStorage' | 'cookie';
|
|
168
168
|
opt_out_capturing_cookie_prefix: string | null;
|
|
169
|
+
opt_in_web_app_injection: boolean;
|
|
169
170
|
respect_dnt: boolean;
|
|
170
171
|
property_blacklist: string[];
|
|
171
172
|
xhr_headers: {
|
package/dist/module.js
CHANGED
|
@@ -885,7 +885,7 @@ var LZString = {
|
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
|
|
888
|
-
var version = "1.32.
|
|
888
|
+
var version = "1.32.1";
|
|
889
889
|
|
|
890
890
|
// e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
|
|
891
891
|
|
|
@@ -4060,7 +4060,7 @@ var Decide = /*#__PURE__*/function () {
|
|
|
4060
4060
|
this.instance['compression'] = {};
|
|
4061
4061
|
}
|
|
4062
4062
|
|
|
4063
|
-
if (response['inject']) {
|
|
4063
|
+
if (response['inject'] && this.instance.get_config('opt_in_web_app_injection')) {
|
|
4064
4064
|
var _iterator2 = _createForOfIteratorHelper(response['inject']),
|
|
4065
4065
|
_step2;
|
|
4066
4066
|
|
|
@@ -6004,6 +6004,7 @@ var defaultConfig = function defaultConfig() {
|
|
|
6004
6004
|
opt_out_persistence_by_default: false,
|
|
6005
6005
|
opt_out_capturing_persistence_type: 'localStorage',
|
|
6006
6006
|
opt_out_capturing_cookie_prefix: null,
|
|
6007
|
+
opt_in_web_app_injection: false,
|
|
6007
6008
|
property_blacklist: [],
|
|
6008
6009
|
respect_dnt: false,
|
|
6009
6010
|
sanitize_properties: null,
|