@posthog/core 1.49.0 → 1.49.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.
@@ -1 +1 @@
1
- {"version":3,"file":"bot-detection.d.ts","sourceRoot":"","sources":["../../src/utils/bot-detection.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,UA+FnC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,GAAa,IAAI,MAAM,GAAG,SAAS,EAAE,0BAAyB,MAAM,EAAO,KAAG,OAWrG,CAAA"}
1
+ {"version":3,"file":"bot-detection.d.ts","sourceRoot":"","sources":["../../src/utils/bot-detection.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,UAmGnC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,GAAa,IAAI,MAAM,GAAG,SAAS,EAAE,0BAAyB,MAAM,EAAO,KAAG,OAWrG,CAAA"}
@@ -54,7 +54,7 @@ const DEFAULT_BLOCKED_UA_STRS = [
54
54
  'msnbot',
55
55
  'nessus',
56
56
  'petalbot',
57
- 'pinterest',
57
+ 'pinterestbot',
58
58
  'prerender',
59
59
  'rogerbot',
60
60
  'screaming frog',
@@ -25,7 +25,7 @@ const DEFAULT_BLOCKED_UA_STRS = [
25
25
  'msnbot',
26
26
  'nessus',
27
27
  'petalbot',
28
- 'pinterest',
28
+ 'pinterestbot',
29
29
  'prerender',
30
30
  'rogerbot',
31
31
  'screaming frog',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/core",
3
- "version": "1.49.0",
3
+ "version": "1.49.1",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -28,7 +28,11 @@ export const DEFAULT_BLOCKED_UA_STRS = [
28
28
  'msnbot',
29
29
  'nessus',
30
30
  'petalbot',
31
- 'pinterest',
31
+ // not the bare 'pinterest' -- that also matches the Pinterest app's own in-app
32
+ // browser UA (e.g. "...Mobile/15D100 [Pinterest/iOS]"), which is a real user,
33
+ // not the crawler. The crawler's other UA variant ("...pinterest.com/bot.html")
34
+ // is still covered by the generic 'bot.htm' entry below.
35
+ 'pinterestbot',
32
36
  'prerender',
33
37
  'rogerbot',
34
38
  'screaming frog',