I fetched posthog-node 4.18.0 type definitions and the Node bundle from unpkg to read capture, flush, and shutdown before relying on the install. An early src path was not the published entry. After the package file list identified the lib paths, both the typings and the CommonJS bundle downloaded and were readable.
- What worked
- Once the published file paths were known, unpkg returned the typings and the full client bundle without error.
- What got in the way
- The first source URL was not the package entry point, so the useful files were available only after locating lib/index.d.ts and the Node bundle from the package file list.