{"name":"posthog-js","version":"1.402.2","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","repository":{"type":"git","url":"https://github.com/PostHog/posthog-js"},"author":"engineering@posthog.com","license":"(Apache-2.0 AND MIT)","homepage":"https://posthog.com/docs/libraries/js","main":"dist/main.js","module":"dist/module.js","types":"dist/module.d.ts","dependencies":{"core-js":"^3.49.0","dompurify":"^3.3.2","fflate":"^0.4.8","preact":"^10.29.3","query-selector-shadow-dom":"^1.0.1","web-vitals":"^5.3.0","@posthog/core":"^1.42.0","@posthog/types":"^1.395.0"},"devDependencies":{"@babel/core":"^7.27.1","@babel/plugin-syntax-decorators":"^7.27.1","@babel/plugin-transform-exponentiation-operator":"^7.27.1","@babel/plugin-transform-nullish-coalescing-operator":"^7.27.1","@babel/plugin-transform-react-jsx":"^7.27.1","@babel/preset-env":"^7.27.1","@babel/preset-typescript":"^7.27.1","@jest/globals":"^29.7.0","@jridgewell/sourcemap-codec":"^1.5.5","@playwright/test":"^1.52.0","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^28.0.6","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.4","@sentry/types":"8.7.0","@testing-library/dom":"^10.4.1","@testing-library/jest-dom":"^6.9.1","@testing-library/preact":"^3.2.4","@types/dompurify":"^3.2.0","@types/dotenv":"^8.2.3","@types/jest":"^29.5.14","@types/node":"^22.5.0","@types/query-selector-shadow-dom":"^1.0.4","@types/sinon":"^17.0.1","@types/web":"^0.0.222","babel-jest":"^29.7.0","browserslist":"^4.28.4","compare-versions":"^6.1.1","cssnano":"^7.0.7","date-fns":"^3.6.0","dotenv":"^17.4.2","expect":"^29.7.0","fast-check":"^2.17.0","http-server":"14.1.1","husky":"^8.0.1","identity-obj-proxy":"^3.0.0","jest":"29.7.0","jest-environment-jsdom":"^29.7.0","jsdom":"16.7.0","jsdom-global":"3.0.2","localStorage":"1.0.4","msw":"^1.3.3","node-fetch":"^2.6.11","postcss":"^8.5.16","postcss-import":"^16.1.1","postcss-nesting":"^13.0.1","posthog-js":"link:","preact-render-to-string":"^6.3.1","rollup":"^4.53.3","rollup-plugin-dts":"^6.2.3","rollup-plugin-postcss":"^4.0.2","rollup-plugin-visualizer":"^6.0.3","sinon":"9.0.2","testcafe":"^2.6.2","testcafe-browser-provider-browserstack":"^1.15.2","ts-node":"^10.9.2","tslib":"^2.5.0","typescript":"5.8.2","yargs":"^17.7.2","@posthog-tooling/rollup-utils":"1.1.1","@posthog/rrweb-record":"0.0.82","@posthog/rrweb-plugin-console-record":"1.0.2","@posthog/rrweb-types":"0.0.62","@posthog/rrweb":"0.1.2"},"browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead"],"scripts":{"clean":"rimraf lib dist react/dist","start":"pnpm build-react && NODE_OPTIONS=\"--max-old-space-size=8192\" pnpm build-rollup -w","dev":"tsc -b && NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -cw","build":"tsc -b && rollup -c","postbuild":"node scripts/strip-lib-package-json.js && node scripts/check-mangled-property-consistency.js && node scripts/copy-rrweb-worker-maps.js","package":"pnpm pack --out $PACKAGE_DEST/%s.tgz","lint":"eslint src && eslint playwright","lint:fix":"eslint src --fix && eslint playwright --fix","prettier":"prettier --write src/ functional_tests/ playwright/","prettier:check":"prettier --check src/ functional_tests/ playwright/","check-react":"[ -d 'react/dist' ] || { echo '@posthog/react has not been built'; exit 1; }","test":"pnpm test:unit && pnpm test:functional","test:unit":"jest src","test:unit:surveys":"jest '.*survey.*.test.'","test:unit:tours":"jest '.*tours.*.test.'","test:functional":"jest functional_tests","test-watch":"jest --watch src","test:typecheck":"cd src/__tests__ && tsc --noEmit --project tsconfig.json","typecheck":"tsc --noEmit --project tsconfig.json","playwright":"pnpm exec playwright test --project webkit --project firefox --project chromium","playwright:compat":"pnpm exec playwright test --config playwright.config.compat.ts","playwright:integration":"pnpm exec playwright test --config playwright.config.integration.ts --project webkit --project firefox --project chromium","playwright-ui":"pnpm exec playwright test --ui --project webkit --project firefox --project chromium","playwright-webserver":"npx http-server ./ -p 2345","playwright:surveys":"pnpm exec playwright test packages/browser/playwright/mocked/surveys/* --project webkit --project firefox --project chromium","playwright:surveys:ui":"pnpm exec playwright test packages/browser/playwright/mocked/surveys/* --ui --project webkit --project firefox --project chromium","playwright:tours:ui":"pnpm exec playwright test packages/browser/playwright/mocked/product-tours/* --ui --project webkit --project firefox --project chromium","deprecate-old-versions":"node scripts/deprecate-old-versions.mjs","check-testcafe-results":"ts-node testcafe/check-testcafe-results.js","run-testcafe-localhost":"node scripts/run-testcafe-localhost.mjs","write-mangled-property-names":"WRITE_MANGLED_PROPERTIES=1 pnpm build","generate-references":"pnpm exec api-extractor run --config ./api-extractor.json --local && node scripts/generate-docs.js"},"_nodeVersion":"26.0.0","_id":"posthog-js@1.402.2","dist":{"integrity":"sha512-meFeMCFuSf2iatxsuCamUCCI078GcPDBIQgFu+MVqyy4A0bmFiuNJykxMSVsvpWjIkMtgZEmB5knv0MpGZG/SQ==","shasum":"db4ffa4745c18256412c7248406e33a19d21d8e7","tarball":"https://registry.npmjs.org/posthog-js/-/posthog-js-1.402.2.tgz","fileCount":795,"unpackedSize":40211154,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/posthog-js@1.402.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC+J/lv1wDM5j8ykWyHVunzmufyHqZaTIyqIRgJ7x2jJgIgI9c0ePLz21VYYJUOemxa6IxtcXT/aGxU7w/IWJ9lX8Y="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d24f322a-cc71-48a3-9fc8-3dabddddc913"}},"directories":{},"maintainers":[{"name":"twixes","email":"dev@twixes.com"},{"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":"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":"joshuasnyder","email":"joshua@timenavi.com"},{"name":"huguespouillot","email":"hpouillot@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/posthog-js_1.402.2_1784132806189_0.6831198440915114"},"_hasShrinkwrap":false}