caelum0x dbef356e6e feat(analytics-sdk): @railyard/analytics-js (web + Expo) and @railyard/analytics-node wrappers, tested with the unmodified SDKs (A1)
- analytics-js wraps posthog-js 1.435.1 and posthog-react-native 4.78.2:
  reads NEXT_PUBLIC_/EXPO_PUBLIC_/VITE_ANALYTICS_SITE and _HOST, waits for
  consent (no client, no storage, no request before it), masks all inputs,
  [data-private]/.ph-mask text, blocks [data-block], no canvas, headers or
  bodies; Expo entry keeps the queue on the device and sends $screen per
  route change (screenTracker).
- analytics-node wraps posthog-node 5.54.1.
- test/a1: posthog-node (gzip), posthog-js under jsdom, one Chromium run
  (cached 1243, full build in new headless mode), React Native offline for
  10 minutes plus a restart and a lost response: every event stored once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 03:58:53 +03:00

43 lines
1003 B
YAML

lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
dependencies:
posthog-node:
specifier: 5.54.1
version: 5.54.1
packages:
'@posthog/core@1.55.2':
resolution: {integrity: sha512-2mYxGbDmTLUs096VbcZqSWo0lrI48/BrX65r54NynxxFq409BOx9w73HxOAtOKZ1vblkdV6/GxQTe7KDcIQidg==}
'@posthog/types@1.412.4':
resolution: {integrity: sha512-Q7lV9O9TbLngjOYw1ucm3bS3tn48xb1B4ZQdDy8gv7yfKe99hCTeWYG4xZ36nJM80VxpTF9TriiJt5hngDOkBg==}
posthog-node@5.54.1:
resolution: {integrity: sha512-3+tg86gLKRaR+MjQOdALGUJQDAXHWVyDUJI2h3EJa0c4GWTQu3+R62C3t49dz1T3QWyJq1msq5Qa+B55/ZEHxg==}
engines: {node: ^20.20.0 || >=22.22.0}
peerDependencies:
rxjs: ^7.0.0
peerDependenciesMeta:
rxjs:
optional: true
snapshots:
'@posthog/core@1.55.2':
dependencies:
'@posthog/types': 1.412.4
'@posthog/types@1.412.4': {}
posthog-node@5.54.1:
dependencies:
'@posthog/core': 1.55.2