@baukit/analytics-posthog-native 0.18.3 → 0.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baukit/analytics-posthog-native",
3
- "version": "0.18.3",
3
+ "version": "0.19.1",
4
4
  "description": "PostHog React Native transport for @baukit/analytics-core.",
5
5
  "license": "MIT",
6
6
  "author": "Patrick Koss",
@@ -43,7 +43,7 @@
43
43
  "build": "tsc -p tsconfig.json",
44
44
  "prepare": "pnpm run build",
45
45
  "test": "tsc -p tsconfig.test.json && vitest run --config ../../vitest.config.ts && node ../../scripts/test-packed-exports.mjs",
46
- "lint": "eslint src --max-warnings=0",
46
+ "lint": "eslint . --max-warnings=0",
47
47
  "format:check": "prettier --check src package.json tsconfig.json tsconfig.test.json"
48
48
  },
49
49
  "devDependencies": {
@@ -52,7 +52,7 @@
52
52
  "typescript": "6.0.3"
53
53
  },
54
54
  "peerDependencies": {
55
- "@baukit/analytics-core": "^0.18.3",
55
+ "@baukit/analytics-core": "^0.19.1",
56
56
  "posthog-react-native": "^4.78.3"
57
57
  },
58
58
  "peerDependenciesMeta": {
package/src/index.test.ts CHANGED
@@ -329,14 +329,15 @@ describe('native adapter composed with analytics core', () => {
329
329
  expect(posthog.capture).not.toHaveBeenCalled();
330
330
 
331
331
  analytics.setConsent('granted');
332
- analytics.capture({
332
+ const unlisted: ProductEvent & { properties: { unlisted: string } } = {
333
333
  name: 'onboarding_started',
334
334
  properties: {
335
335
  source: 'organic',
336
336
  contact: 'person@example.com',
337
337
  unlisted: 'must not arrive',
338
338
  },
339
- } as ProductEvent);
339
+ };
340
+ analytics.capture(unlisted);
340
341
  await analytics.flush();
341
342
 
342
343
  expect(posthog.capture).toHaveBeenCalledOnce();