{"bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"dist":{"shasum":"a5b59c56c392ecc0df9af850ea4682ba62a03d35","tarball":"https://registry.npmjs.org/posthog-js/-/posthog-js-1.438.21.tgz","fileCount":755,"integrity":"sha512-KFrb9SOhyWg65OYOJ6dIxog26AqyD3ETj5pin/dWBcGll3pqa3FnqoJxq5IkHC6dtms/YjRCj6cT06u9j+EkoA==","signatures":[{"sig":"MEUCIG4vkjIsn1Z9t84tkMeY2WkJU0HDq9IVUWCzejcnUZL6AiEA9s68mWcLwY1o+/Lj2H9M6G3VjeoiHQwRJMOBFEVPd20=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFSf85QG8x0ajTVkyy1LGvacpZEZswL0aHptd5jyjpGOAiBxrS66wYA96KQR3uHxcd5p6Z+KqwbHouQWZmYv3CQxzw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/posthog-js@1.438.21","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":26358916},"main":"dist/main.js","name":"posthog-js","types":"dist/module.d.ts","author":"engineering@posthog.com","module":"dist/module.mjs","license":"(Apache-2.0 AND MIT)","scripts":{"dev":"tsc -b && NODE_OPTIONS=\"--max-old-space-size=8192\" pnpm --filter=posthog-js run --parallel \"/^dev:/\"","lint":"oxlint --report-unused-disable-directives-severity error src && oxlint --report-unused-disable-directives-severity error playwright","test":"pnpm test:unit && pnpm test:functional","build":"tsc -b && pnpm build:runtime && pnpm build:types","clean":"rimraf lib dist react/dist","start":"pnpm dev","format":"oxfmt --write src/ functional_tests/ playwright/","package":"pnpm pack --out $PACKAGE_DEST/%s.tgz","lint:fix":"oxlint --report-unused-disable-directives-severity error src --fix && oxlint --report-unused-disable-directives-severity error playwright --fix","dev:types":"pnpm build:types --watch","postbuild":"node scripts/strip-lib-package-json.js && node scripts/check-mangled-property-consistency.js && node scripts/check-sourcemap-ignore-list.js","test:unit":"vitest run src","typecheck":"tsc --noEmit --project tsconfig.json","playwright":"pnpm exec playwright test --project webkit --project firefox --project chromium","test-watch":"vitest src","build:types":"BUILD_TYPES_ONLY=1 rolldown -c rollup.config.mjs","check-react":"[ -d 'react/dist' ] || { echo '@posthog/react has not been built'; exit 1; }","check-types":"pnpm typecheck","dev:compile":"tsc -b --watch","dev:runtime":"pnpm build:runtime --watch","format:check":"oxfmt --check src/ functional_tests/ playwright/","build:runtime":"rolldown -c rollup.config.mjs","playwright-ui":"pnpm exec playwright test --ui --project webkit --project firefox --project chromium","test:typecheck":"cd src/__tests__ && tsc --noEmit --project tsconfig.json","test:functional":"POSTHOG_FUNCTIONAL_TESTS=1 vitest run functional_tests","test:unit:tours":"vitest run tours","benchmark:replay":"node scripts/benchmark-replay.mjs","bundle-size:array":"node scripts/compare-array-bundle-size.mjs","playwright:compat":"pnpm exec playwright test --config playwright.config.compat.ts","test:unit:surveys":"vitest run survey","compatibility:test":"node playwright/compatibility/cli.mjs check","playwright:surveys":"pnpm exec playwright test packages/browser/playwright/mocked/surveys/* --project webkit --project firefox --project chromium","generate-references":"pnpm exec api-extractor run --config ./api-extractor.json --local && node scripts/generate-docs.js","playwright:tours:ui":"pnpm exec playwright test packages/browser/playwright/mocked/product-tours/* --ui --project webkit --project firefox --project chromium","compatibility:update":"node playwright/compatibility/cli.mjs update","playwright-webserver":"npx http-server ./ -p 2345","playwright:surveys:ui":"pnpm exec playwright test packages/browser/playwright/mocked/surveys/* --ui --project webkit --project firefox --project chromium","check-testcafe-results":"ts-node testcafe/check-testcafe-results.js","compatibility:controls":"node playwright/compatibility/negative-control.mjs","deprecate-old-versions":"node scripts/deprecate-old-versions.mjs","playwright:integration":"pnpm exec playwright test --config playwright.config.integration.ts --project webkit --project firefox --project chromium","run-testcafe-localhost":"node scripts/run-testcafe-localhost.mjs","compatibility:self-test":"node --test playwright/compatibility/*.test.mjs","write-mangled-property-names":"WRITE_MANGLED_PROPERTIES=1 pnpm build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"d24f322a-cc71-48a3-9fc8-3dabddddc913"}},"homepage":"https://posthog.com/docs/libraries/js","repository":{"url":"https://github.com/PostHog/posthog-js","type":"git"},"description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","directories":{},"maintainers":[{"name":"fuziontech","email":"fuziontech@gmail.com"},{"name":"mariusandra","email":"marius.andra@gmail.com"},{"name":"ben-posthog","email":"ben@posthog.com"},{"name":"timgl","email":"tim@posthog.com"},{"name":"rafael_posthog","email":"rafael@posthog.com"},{"name":"fraserhopper","email":"fraser@posthog.com"},{"name":"manoelposthog","email":"manoel@posthog.com"},{"name":"robbie-c","email":"robbie.coomber@gmail.com"},{"name":"gustavostrassburger","email":"gustavo@posthog.com"},{"name":"dustinbyrne","email":"dustinsbyrne@gmail.com"},{"name":"feliperalmeida","email":"feliperalmeida@gmail.com"},{"name":"lucasheriques","email":"lucasheriques@gmail.com"},{"name":"frankposthog","email":"frank@posthog.com"},{"name":"tom-posthog","email":"tom.p@posthog.com"},{"name":"adamleithp","email":"adamleithp@gmail.com"},{"name":"rauln","email":"raul@raulnegron.me"},{"name":"cat-ph","email":"catalin.i@posthog.com"},{"name":"sarahxsanders","email":"sasanders26@gmail.com"},{"name":"peterkirkhamposthog","email":"peter@posthog.com"},{"name":"ioannisj","email":"yiannis@posthog.com"},{"name":"huguespouillot","email":"hpouillot@gmail.com"}],"_nodeVersion":"26.0.0","browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead"],"dependencies":{"fflate":"^0.4.8","preact":"^10.29.3","core-js":"^3.49.0","dompurify":"^3.4.13","web-vitals":"^6.2.1","@posthog/core":"^1.60.1","@posthog/types":"^1.416.0","web-vitals-soft-navs":"npm:web-vitals@6.2.1","@posthog/browser-common":"^0.9.11","query-selector-shadow-dom":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^1.3.3","jsdom":"16.7.0","sinon":"9.0.2","tslib":"^2.5.0","yargs":"^17.7.2","dotenv":"^17.4.2","expect":"^29.7.0","terser":"5.48.0","vitest":"^1.6.1","esbuild":"^0.25.0","ts-node":"^10.9.2","date-fns":"^3.6.0","rolldown":"1.2.4","testcafe":"^2.6.2","@types/web":"^0.0.222","fast-check":"^2.17.0","node-fetch":"^2.6.11","posthog-js":"link:","typescript":"5.8.2","@babel/core":"^7.27.1","@types/node":"^22.5.0","http-server":"14.1.1","@types/sinon":"^17.0.1","browserslist":"^4.28.8","jsdom-global":"3.0.2","lightningcss":"^1.33.0","localStorage":"1.0.4","@sentry/types":"8.7.0","@types/dotenv":"^8.2.3","@posthog/rrweb":"0.1.8","@playwright/test":"1.52.0","@types/dompurify":"^3.2.0","compare-versions":"^6.1.1","@babel/preset-env":"^7.27.1","identity-obj-proxy":"^3.0.0","rolldown-plugin-dts":"0.27.14","@posthog/rrweb-types":"0.0.62","@posthog/rrweb-utils":"0.0.65","@rollup/plugin-babel":"^6.0.4","@testing-library/dom":"^10.4.1","@posthog/rrweb-record":"0.0.88","@testing-library/preact":"^3.2.4","preact-render-to-string":"^6.3.1","@babel/preset-typescript":"^7.27.1","rollup-plugin-visualizer":"^6.0.3","@testing-library/jest-dom":"^6.9.1","@jridgewell/sourcemap-codec":"^1.5.5","@posthog-tooling/rollup-utils":"1.1.1","@babel/plugin-syntax-decorators":"^7.27.1","@posthog-tooling/sdk-mock-server":"0.0.0","@types/query-selector-shadow-dom":"^1.0.4","@babel/plugin-transform-react-jsx":"^7.27.1","@posthog/rrweb-plugin-console-record":"1.0.8","testcafe-browser-provider-browserstack":"^1.15.2","@babel/plugin-transform-exponentiation-operator":"^7.27.1","@babel/plugin-transform-nullish-coalescing-operator":"^7.27.1"},"peerDependencies":{"react":">=16.8.0","@types/react":">=16.8.0"},"peerDependenciesMeta":{"react":{"optional":true},"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/posthog-js_1.438.21_1792763422587_0.314116846402817","host":"s3://npm-registry-packages-npm-production"},"_id":"posthog-js@1.438.21","version":"1.438.21"}