posthog-js 1.77.2 → 1.77.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/array.full.js +2 -2
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +2 -2
- package/dist/array.js.map +1 -1
- package/dist/es.js +2 -2
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +1 -0
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/posthog-core.js +2 -1
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/types.d.ts +1 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils.d.ts +2 -1
- package/lib/src/utils.js +50 -5
- package/lib/src/utils.js.map +1 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
package/lib/src/posthog-core.js
CHANGED
|
@@ -106,6 +106,7 @@ var defaultConfig = function () {
|
|
|
106
106
|
loaded: __NOOP,
|
|
107
107
|
store_google: true,
|
|
108
108
|
custom_campaign_params: [],
|
|
109
|
+
custom_blocked_useragents: [],
|
|
109
110
|
save_referrer: true,
|
|
110
111
|
test: false,
|
|
111
112
|
verbose: false,
|
|
@@ -730,7 +731,7 @@ var PostHog = /** @class */ (function () {
|
|
|
730
731
|
console.error('No event name provided to posthog.capture');
|
|
731
732
|
return;
|
|
732
733
|
}
|
|
733
|
-
if (_isBlockedUA(userAgent)) {
|
|
734
|
+
if (_isBlockedUA(userAgent, this.get_config('custom_blocked_useragents'))) {
|
|
734
735
|
return;
|
|
735
736
|
}
|
|
736
737
|
// update persistence
|