@posthog/core 1.71.1 → 1.71.2

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.
@@ -37,10 +37,10 @@ const stripLeadingDollar = function(s) {
37
37
  return s.replace(/^\$/, '');
38
38
  };
39
39
  function isDistinctIdStringLike(value) {
40
- return [
40
+ return includes([
41
41
  'distinct_id',
42
42
  'distinctid'
43
- ].includes(value.toLowerCase());
43
+ ], value.toLowerCase());
44
44
  }
45
45
  function safeJsonStringify(value) {
46
46
  const ancestors = [];
@@ -8,10 +8,10 @@ const stripLeadingDollar = function(s) {
8
8
  return s.replace(/^\$/, '');
9
9
  };
10
10
  function isDistinctIdStringLike(value) {
11
- return [
11
+ return includes([
12
12
  'distinct_id',
13
13
  'distinctid'
14
- ].includes(value.toLowerCase());
14
+ ], value.toLowerCase());
15
15
  }
16
16
  function safeJsonStringify(value) {
17
17
  const ancestors = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/core",
3
- "version": "1.71.1",
3
+ "version": "1.71.2",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -21,7 +21,7 @@ export const stripLeadingDollar = function (s: string): string {
21
21
  }
22
22
 
23
23
  export function isDistinctIdStringLike(value: string): boolean {
24
- return ['distinct_id', 'distinctid'].includes(value.toLowerCase())
24
+ return includes(['distinct_id', 'distinctid'], value.toLowerCase())
25
25
  }
26
26
 
27
27
  export function safeJsonStringify(value: unknown): string {