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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-js",
3
- "version": "1.77.2",
3
+ "version": "1.77.3",
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",
@@ -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