{"_id":"@apteryxxyz/posthog-js","_rev":"6-39b8a416b7ce3b2907ba155d33f615ab","name":"@apteryxxyz/posthog-js","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","dist-tags":{"latest":"1.139.3"},"versions":{"1.98.3":{"name":"@apteryxxyz/posthog-js","version":"1.98.3","author":{"name":"hey@posthog.com"},"license":"MIT","_id":"@apteryxxyz/posthog-js@1.98.3","maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"homepage":"https://github.com/PostHog/posthog-js#readme","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"dist":{"shasum":"34aef032b69f39c17986fecbd893ed377ac7415e","tarball":"https://registry.npmjs.org/@apteryxxyz/posthog-js/-/posthog-js-1.98.3.tgz","fileCount":205,"integrity":"sha512-B3o/5Z6sFYeZixRT/B3uAor9iYLzS0YsaTdsbx2xsaj8YSEwTapL/SWZgUQ5a9TkERQubpbc1ncaj4d0DqyBwA==","signatures":[{"sig":"MEYCIQCuXTgd5CCg2sJqlYGyBNvGQfpTLs+qlhqqEUo6cRzUPgIhAPDzWTIMes6ccMiggh0KPa0lO0a2xmxBI93k+KP6taLK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5630910},"main":"dist/module.js","types":"dist/module.d.ts","module":"dist/es.js","gitHead":"53468e9a3acedd4dd004d98162dc8b72767df130","scripts":{"lint":"eslint src","test":"yarn test:unit && yarn test:custom-eslint-rules","build":"yarn build-rollup && yarn build-react","start":"yarn build-rollup -w","cypress":"cypress open","prepare":"husky install","prettier":"prettier --write src/ functional_tests/","test:unit":"jest src","test-watch":"jest --watch src","test:react":"cd react && yarn test","build-react":"cd react && yarn && yarn build","build-rollup":"rm -rf lib && tsc -b && rollup -c","prepublishOnly":"yarn lint && yarn test && yarn build && yarn test:react","test:custom-eslint-rules":"jest eslint-rules"},"_npmUser":{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"},"repository":{"url":"git+https://github.com/PostHog/posthog-js.git","type":"git"},"_npmVersion":"10.2.4","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{ts,tsx}":["eslint src --fix"],"*.{ts,tsx,js,json}":"prettier --write"},"_nodeVersion":"21.5.0","browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"],"dependencies":{"fflate":"^0.4.1"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^1.2.1","jest":"^27.5.1","husky":"^8.0.1","jsdom":"16.5.0","rrweb":"2.0.0-alpha.11","sinon":"9.0.2","tslib":"^2.4.0","yargs":"^17.7.2","eslint":"8.20.0","given2":"^2.1.7","rollup":"^2.77.0","cypress":"13.5.1","express":"^4.18.2","prettier":"^2.7.1","rrweb-v1":"npm:rrweb@1.1.3","testcafe":"1.19.0","babel-jest":"^26.6.3","fast-check":"^2.17.0","node-fetch":"^2.6.1","posthog-js":"link:.","typescript":"^4.7.4","@babel/core":"7.18.9","@types/jest":"^29.5.1","@types/uuid":"^9.0.1","lint-staged":"^10.2.11","@rrweb/types":"^2.0.0-alpha.11","@types/sinon":"^17.0.1","babel-eslint":"10.1.0","jsdom-global":"3.0.2","localStorage":"1.0.4","@sentry/types":"7.37.2","@types/eslint":"^8.44.6","rrweb-snapshot":"2.0.0-alpha.11","@types/react-dom":"^18.0.10","@babel/preset-env":"7.18.9","rollup-plugin-dts":"^4.2.2","eslint-plugin-jest":"^27.2.3","@rollup/plugin-json":"^4.1.0","eslint-plugin-react":"^7.30.1","@rollup/plugin-babel":"^5.3.1","@testing-library/dom":"^9.3.0","eslint-plugin-compat":"^4.1.4","@rollup/plugin-terser":"^0.4.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@babel/preset-typescript":"^7.18.6","eslint-config-posthog-js":"link:./eslint-rules","eslint-plugin-posthog-js":"link:./eslint-rules","rollup-plugin-visualizer":"^5.9.0","@rollup/plugin-typescript":"^8.3.3","@typescript-eslint/parser":"^6.4.0","eslint-plugin-react-hooks":"^4.6.0","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^6.4.0","testcafe-browser-provider-browserstack":"1.14.0"},"_npmOperationalInternal":{"tmp":"tmp/posthog-js_1.98.3_1705311828122_0.8475609971470155","host":"s3://npm-registry-packages"}},"1.98.4":{"name":"@apteryxxyz/posthog-js","version":"1.98.4","author":{"name":"hey@posthog.com"},"license":"MIT","_id":"@apteryxxyz/posthog-js@1.98.4","maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"homepage":"https://github.com/PostHog/posthog-js#readme","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"dist":{"shasum":"b82ff9f398dfe76f7bd28ad012d1caaf9b23e801","tarball":"https://registry.npmjs.org/@apteryxxyz/posthog-js/-/posthog-js-1.98.4.tgz","fileCount":205,"integrity":"sha512-Hv11AUJfUje8nndZjcGHVSlh+P6LHemwZ2ExMPFENYH2JZpIR87px/LFIIsew09dRv2hmbDcmF5q+ln2equnFQ==","signatures":[{"sig":"MEYCIQCMB7ODQPufcjXT9RZ1g0DDfiXtGbPjDAW9b0aHgkkdCAIhANRdI5MF9bv0WG9aQhgyJO3IsZC1b4CvpP7uWug2H9uu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5630968},"main":"dist/module.js","types":"dist/module.d.ts","module":"dist/es.js","gitHead":"897350a1c0f603f2f220b62fcf0a42734734a2b3","scripts":{"lint":"eslint src","test":"yarn test:unit && yarn test:custom-eslint-rules","build":"yarn build-rollup && yarn build-react","start":"yarn build-rollup -w","cypress":"cypress open","prepare":"husky install","prettier":"prettier --write src/ functional_tests/","test:unit":"jest src","test-watch":"jest --watch src","test:react":"cd react && yarn test","build-react":"cd react && yarn && yarn build","build-rollup":"rm -rf lib && tsc -b && rollup -c","prepublishOnly":"yarn lint && yarn test && yarn build && yarn test:react","test:custom-eslint-rules":"jest eslint-rules"},"_npmUser":{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"},"repository":{"url":"git+https://github.com/PostHog/posthog-js.git","type":"git"},"_npmVersion":"10.2.4","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{ts,tsx}":["eslint src --fix"],"*.{ts,tsx,js,json}":"prettier --write"},"_nodeVersion":"21.5.0","browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"],"dependencies":{"fflate":"^0.4.1"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^1.2.1","jest":"^27.5.1","husky":"^8.0.1","jsdom":"16.5.0","rrweb":"2.0.0-alpha.11","sinon":"9.0.2","tslib":"^2.4.0","yargs":"^17.7.2","eslint":"8.20.0","given2":"^2.1.7","rollup":"^2.77.0","cypress":"13.5.1","express":"^4.18.2","prettier":"^2.7.1","rrweb-v1":"npm:rrweb@1.1.3","testcafe":"1.19.0","babel-jest":"^26.6.3","fast-check":"^2.17.0","node-fetch":"^2.6.1","posthog-js":"link:.","typescript":"^4.7.4","@babel/core":"7.18.9","@types/jest":"^29.5.1","@types/uuid":"^9.0.1","lint-staged":"^10.2.11","@rrweb/types":"^2.0.0-alpha.11","@types/sinon":"^17.0.1","babel-eslint":"10.1.0","jsdom-global":"3.0.2","localStorage":"1.0.4","@sentry/types":"7.37.2","@types/eslint":"^8.44.6","rrweb-snapshot":"2.0.0-alpha.11","@types/react-dom":"^18.0.10","@babel/preset-env":"7.18.9","rollup-plugin-dts":"^4.2.2","eslint-plugin-jest":"^27.2.3","@rollup/plugin-json":"^4.1.0","eslint-plugin-react":"^7.30.1","@rollup/plugin-babel":"^5.3.1","@testing-library/dom":"^9.3.0","eslint-plugin-compat":"^4.1.4","@rollup/plugin-terser":"^0.4.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@babel/preset-typescript":"^7.18.6","eslint-config-posthog-js":"link:./eslint-rules","eslint-plugin-posthog-js":"link:./eslint-rules","rollup-plugin-visualizer":"^5.9.0","@rollup/plugin-typescript":"^8.3.3","@typescript-eslint/parser":"^6.4.0","eslint-plugin-react-hooks":"^4.6.0","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^6.4.0","testcafe-browser-provider-browserstack":"1.14.0"},"_npmOperationalInternal":{"tmp":"tmp/posthog-js_1.98.4_1705346079651_0.03046908155820849","host":"s3://npm-registry-packages"}},"1.104.4":{"name":"@apteryxxyz/posthog-js","version":"1.104.4","author":{"name":"hey@posthog.com"},"license":"MIT","_id":"@apteryxxyz/posthog-js@1.104.4","maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"homepage":"https://github.com/PostHog/posthog-js#readme","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"dist":{"shasum":"3121ff815b44f6331ae2af6378b9f89695d8cd0a","tarball":"https://registry.npmjs.org/@apteryxxyz/posthog-js/-/posthog-js-1.104.4.tgz","fileCount":257,"integrity":"sha512-ODE7He+Qo6mpyh4lM3iBsE1WXqqEZEYgdvnFr/GiMARxCZmWQ8wWKqHefLrIVN0np9pi75PFxD+sfTIvDvx2Mw==","signatures":[{"sig":"MEQCIGoaXDd0cIirMagF8+I1unGOjLIJvwKhPLLOlICGji6PAiBRBSHYfYJnohsSMN2Amd+/XrbQdbAwfHLIVL7Jyq+uMA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5894232},"main":"dist/module.js","pnpm":{"patchedDependencies":{"rrweb@2.0.0-alpha.11":"patches/rrweb@2.0.0-alpha.11.patch"}},"types":"dist/module.d.ts","module":"dist/es.js","gitHead":"10a9f2b81a7d8f2af8bd0df2e88d8f72fd6981db","scripts":{"lint":"eslint src","test":"pnpm test:unit && pnpm test:custom-eslint-rules","build":"pnpm build-rollup && pnpm build-react","start":"pnpm build-rollup -w","cypress":"cypress open","prepare":"husky install","prettier":"prettier --write src/ functional_tests/","test:unit":"jest src","test-watch":"jest --watch src","test:react":"cd react && pnpm test","build-react":"cd react && pnpm i && pnpm build && cd ..","build-rollup":"rm -rf lib && tsc -b && rollup -c --bundleConfigAsCjs","prepublishOnly":"pnpm lint && pnpm test && pnpm build && pnpm test:react","test:custom-eslint-rules":"jest eslint-rules"},"_npmUser":{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"},"repository":{"url":"git+https://github.com/PostHog/posthog-js.git","type":"git"},"_npmVersion":"10.2.4","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{ts,tsx}":["eslint src --fix"],"*.{ts,tsx,js,json}":"prettier --write"},"_nodeVersion":"21.5.0","browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"],"dependencies":{"fflate":"^0.4.8","preact":"^10.19.3"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^1.2.1","jest":"^27.5.1","husky":"^8.0.1","jsdom":"16.5.0","rrweb":"2.0.0-alpha.11","sinon":"9.0.2","tslib":"^2.5.0","yargs":"^17.7.2","eslint":"8.56.0","given2":"^2.1.7","rollup":"^4.9.6","cypress":"13.6.3","express":"^4.18.2","prettier":"^2.7.1","rrweb-v1":"npm:rrweb@1.1.3","testcafe":"1.19.0","babel-jest":"^26.6.3","fast-check":"^2.17.0","node-fetch":"^2.6.11","posthog-js":"link:","typescript":"^4.9.5","@babel/core":"7.18.9","@types/jest":"^29.5.1","@types/uuid":"^9.0.1","lint-staged":"^10.2.11","@rrweb/types":"2.0.0-alpha.11","@types/sinon":"^17.0.1","babel-eslint":"10.1.0","jsdom-global":"3.0.2","localStorage":"1.0.4","@sentry/types":"7.37.2","@types/eslint":"^8.44.6","rrweb-snapshot":"2.0.0-alpha.11","@types/react-dom":"^18.0.10","@babel/preset-env":"7.18.9","rollup-plugin-dts":"^6.1.0","eslint-plugin-jest":"^27.2.3","@rollup/plugin-json":"^6.1.0","eslint-plugin-react":"^7.30.1","@rollup/plugin-babel":"^6.0.4","@testing-library/dom":"^9.3.0","eslint-plugin-compat":"^4.1.4","@rollup/plugin-terser":"^0.4.4","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@babel/preset-typescript":"^7.18.6","eslint-config-posthog-js":"link:eslint-rules","eslint-plugin-posthog-js":"link:eslint-rules","rollup-plugin-visualizer":"^5.12.0","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"^6.19.0","eslint-plugin-react-hooks":"^4.6.0","@rollup/plugin-node-resolve":"^15.2.3","@babel/plugin-syntax-decorators":"^7.23.3","@typescript-eslint/eslint-plugin":"^6.19.0","@babel/plugin-transform-react-jsx":"^7.23.4","testcafe-browser-provider-browserstack":"1.14.0"},"_npmOperationalInternal":{"tmp":"tmp/posthog-js_1.104.4_1706883747698_0.7594778132614488","host":"s3://npm-registry-packages"}},"1.104.5":{"name":"@apteryxxyz/posthog-js","version":"1.104.5","author":{"name":"hey@posthog.com"},"license":"MIT","_id":"@apteryxxyz/posthog-js@1.104.5","maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"homepage":"https://github.com/PostHog/posthog-js#readme","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"dist":{"shasum":"95156f27458c1bef8c0a869ee71dbeb35f33b9ad","tarball":"https://registry.npmjs.org/@apteryxxyz/posthog-js/-/posthog-js-1.104.5.tgz","fileCount":257,"integrity":"sha512-8OAEKXf9Re3cmfzbIbwEX5pxqFE636t7dz9Zsz06gX5zbqLGksqzA0fx4JQLcZ+MQRqRb+FPyU6PNCreM+9Ufw==","signatures":[{"sig":"MEYCIQC/f9N6zCc8ZQmEB/Rs/ZnIYppFDOGUvgAj3ZLx9s5AkAIhANBDxzrggj8srJamy6+xAgAiyfEELHktUJwS9Yf2Em9t","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5900005},"main":"dist/module.js","pnpm":{"patchedDependencies":{"rrweb@2.0.0-alpha.11":"patches/rrweb@2.0.0-alpha.11.patch"}},"types":"dist/module.d.ts","module":"dist/es.js","gitHead":"ce09ee2e3f322df433f9837f73e1400962d7fe2a","scripts":{"lint":"eslint src","test":"pnpm test:unit && pnpm test:custom-eslint-rules","build":"pnpm build-rollup && pnpm build-react","start":"pnpm build-rollup -w","cypress":"cypress open","prepare":"husky install","prettier":"prettier --write src/ functional_tests/","test:unit":"jest src","test-watch":"jest --watch src","test:react":"cd react && pnpm test","build-react":"cd react && pnpm i && pnpm build && cd ..","build-rollup":"rm -rf lib && tsc -b && rollup -c --bundleConfigAsCjs","prepublishOnly":"pnpm lint && pnpm test && pnpm build && pnpm test:react","test:custom-eslint-rules":"jest eslint-rules"},"_npmUser":{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"},"repository":{"url":"git+https://github.com/PostHog/posthog-js.git","type":"git"},"_npmVersion":"10.2.4","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{ts,tsx}":["eslint src --fix"],"*.{ts,tsx,js,json}":"prettier --write"},"_nodeVersion":"21.5.0","browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"],"dependencies":{"fflate":"^0.4.8","preact":"^10.19.3"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^1.2.1","jest":"^27.5.1","husky":"^8.0.1","jsdom":"16.5.0","rrweb":"2.0.0-alpha.11","sinon":"9.0.2","tslib":"^2.5.0","yargs":"^17.7.2","eslint":"8.56.0","given2":"^2.1.7","rollup":"^4.9.6","cypress":"13.6.3","express":"^4.18.2","prettier":"^2.7.1","rrweb-v1":"npm:rrweb@1.1.3","testcafe":"1.19.0","babel-jest":"^26.6.3","fast-check":"^2.17.0","node-fetch":"^2.6.11","posthog-js":"link:","typescript":"^4.9.5","@babel/core":"7.18.9","@types/jest":"^29.5.1","@types/uuid":"^9.0.1","lint-staged":"^10.2.11","@rrweb/types":"2.0.0-alpha.11","@types/sinon":"^17.0.1","babel-eslint":"10.1.0","jsdom-global":"3.0.2","localStorage":"1.0.4","@sentry/types":"7.37.2","@types/eslint":"^8.44.6","rrweb-snapshot":"2.0.0-alpha.11","@types/react-dom":"^18.0.10","@babel/preset-env":"7.18.9","rollup-plugin-dts":"^6.1.0","eslint-plugin-jest":"^27.2.3","@rollup/plugin-json":"^6.1.0","eslint-plugin-react":"^7.30.1","@rollup/plugin-babel":"^6.0.4","@testing-library/dom":"^9.3.0","eslint-plugin-compat":"^4.1.4","@rollup/plugin-terser":"^0.4.4","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@babel/preset-typescript":"^7.18.6","eslint-config-posthog-js":"link:eslint-rules","eslint-plugin-posthog-js":"link:eslint-rules","rollup-plugin-visualizer":"^5.12.0","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"^6.19.0","eslint-plugin-react-hooks":"^4.6.0","@rollup/plugin-node-resolve":"^15.2.3","@babel/plugin-syntax-decorators":"^7.23.3","@typescript-eslint/eslint-plugin":"^6.19.0","@babel/plugin-transform-react-jsx":"^7.23.4","testcafe-browser-provider-browserstack":"1.14.0"},"_npmOperationalInternal":{"tmp":"tmp/posthog-js_1.104.5_1707196306391_0.6962976547305344","host":"s3://npm-registry-packages"}},"1.104.6":{"name":"@apteryxxyz/posthog-js","version":"1.104.6","author":{"name":"hey@posthog.com"},"license":"MIT","_id":"@apteryxxyz/posthog-js@1.104.6","maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"homepage":"https://github.com/PostHog/posthog-js#readme","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"dist":{"shasum":"2193d7da0e37fe019401645bc1f7062648a78e9a","tarball":"https://registry.npmjs.org/@apteryxxyz/posthog-js/-/posthog-js-1.104.6.tgz","fileCount":256,"integrity":"sha512-ra1pq8gbBPFOmwRmrjB1hBojOObbFJG/DmhSi8EzUJ+9YMTanzzxiJcT+DAT35tc3UiaKwLr2wXUsXuuw78qew==","signatures":[{"sig":"MEQCIGM1xZdhHeey6TenmRkuq12hE6WIQpZluxBLr7vRnEUvAiBr43iJh2Tl/zZCLXs1w79UD56odPozUbnpODtun5c4WA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5900210},"main":"dist/module.js","_from":"file:apteryxxyz-posthog-js-1.104.6.tgz","types":"dist/module.d.ts","module":"dist/es.js","scripts":{"lint":"eslint src","test":"pnpm test:unit && pnpm test:custom-eslint-rules","build":"pnpm build-rollup && pnpm build-react","start":"pnpm build-rollup -w","cypress":"cypress open","prettier":"prettier --write src/ functional_tests/","test:unit":"jest src","test-watch":"jest --watch src","test:react":"cd react && pnpm test","build-react":"cd react && pnpm i && pnpm build && cd ..","build-rollup":"rm -rf lib && tsc -b && rollup -c --bundleConfigAsCjs","test:custom-eslint-rules":"jest eslint-rules"},"_npmUser":{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"},"_resolved":"C:\\Users\\Me\\AppData\\Local\\Temp\\052cd902dd5d5fb1740afb0fbd8a6553\\apteryxxyz-posthog-js-1.104.6.tgz","_integrity":"sha512-ra1pq8gbBPFOmwRmrjB1hBojOObbFJG/DmhSi8EzUJ+9YMTanzzxiJcT+DAT35tc3UiaKwLr2wXUsXuuw78qew==","repository":{"url":"git+https://github.com/PostHog/posthog-js.git","type":"git"},"_npmVersion":"10.2.4","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{ts,tsx}":["eslint src --fix"],"*.{ts,tsx,js,json}":"prettier --write"},"_nodeVersion":"21.5.0","browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"],"dependencies":{"fflate":"^0.4.8","preact":"^10.19.3"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^1.2.1","jest":"^27.5.1","husky":"^8.0.1","jsdom":"16.5.0","rrweb":"2.0.0-alpha.11","sinon":"9.0.2","tslib":"^2.5.0","yargs":"^17.7.2","eslint":"8.56.0","given2":"^2.1.7","rollup":"^4.9.6","cypress":"13.6.3","express":"^4.18.2","prettier":"^2.7.1","rrweb-v1":"npm:rrweb@1.1.3","testcafe":"1.19.0","babel-jest":"^26.6.3","fast-check":"^2.17.0","node-fetch":"^2.6.11","posthog-js":"link:","typescript":"^4.9.5","@babel/core":"7.18.9","@types/jest":"^29.5.1","@types/uuid":"^9.0.1","lint-staged":"^10.2.11","@rrweb/types":"2.0.0-alpha.11","@types/sinon":"^17.0.1","babel-eslint":"10.1.0","jsdom-global":"3.0.2","localStorage":"1.0.4","@sentry/types":"7.37.2","@types/eslint":"^8.44.6","rrweb-snapshot":"2.0.0-alpha.11","@types/react-dom":"^18.0.10","@babel/preset-env":"7.18.9","rollup-plugin-dts":"^6.1.0","eslint-plugin-jest":"^27.2.3","@rollup/plugin-json":"^6.1.0","eslint-plugin-react":"^7.30.1","@rollup/plugin-babel":"^6.0.4","@testing-library/dom":"^9.3.0","eslint-plugin-compat":"^4.1.4","@rollup/plugin-terser":"^0.4.4","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@babel/preset-typescript":"^7.18.6","eslint-config-posthog-js":"link:eslint-rules","eslint-plugin-posthog-js":"link:eslint-rules","rollup-plugin-visualizer":"^5.12.0","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"^6.19.0","eslint-plugin-react-hooks":"^4.6.0","@rollup/plugin-node-resolve":"^15.2.3","@babel/plugin-syntax-decorators":"^7.23.3","@typescript-eslint/eslint-plugin":"^6.19.0","@babel/plugin-transform-react-jsx":"^7.23.4","testcafe-browser-provider-browserstack":"1.14.0"},"_npmOperationalInternal":{"tmp":"tmp/posthog-js_1.104.6_1707257446643_0.401317778655536","host":"s3://npm-registry-packages"}},"1.105.9":{"name":"@apteryxxyz/posthog-js","version":"1.105.9","author":{"name":"hey@posthog.com"},"license":"MIT","_id":"@apteryxxyz/posthog-js@1.105.9","maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"homepage":"https://github.com/PostHog/posthog-js#readme","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"dist":{"shasum":"d6059a1c415d58a363940e4c29b80dc6b66047c8","tarball":"https://registry.npmjs.org/@apteryxxyz/posthog-js/-/posthog-js-1.105.9.tgz","fileCount":257,"integrity":"sha512-Rm1nI7dnhUz5e3Qd3PK7856DTKLQDOU5MLwVxBIWI/bINe5XpW+SpsTEyX6nKYp6otte9uHwqPLwGh1jbO78cA==","signatures":[{"sig":"MEYCIQC7b1icvunIPPBhWHRH2HPV8J8IjvTGgjsnhhu22+ULywIhALdhn0psBHNVSMZCMc7wN/ujzZKsEMl/WNZUimE23Ipu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5962043},"main":"dist/module.js","pnpm":{"patchedDependencies":{"rrweb@2.0.0-alpha.11":"patches/rrweb@2.0.0-alpha.11.patch"}},"types":"dist/module.d.ts","module":"dist/es.js","gitHead":"7f2e5b056791f84f73c5e3d8f93e9bf188801799","scripts":{"lint":"eslint src","test":"pnpm test:unit && pnpm test:custom-eslint-rules && pnpm test:functional","build":"pnpm build-rollup && pnpm build-react","start":"pnpm build-rollup -w","cypress":"cypress open","prepare":"husky install","prettier":"prettier --write src/ functional_tests/","test:unit":"jest src","test-watch":"jest --watch src","test:react":"cd react && pnpm test","build-react":"cd react && pnpm i && pnpm build && cd ..","build-rollup":"rm -rf lib && tsc -b && rollup -c --bundleConfigAsCjs","test:functional":"jest functional_tests","//prepublishOnly":"pnpm lint && pnpm test && pnpm build && pnpm test:react","test:custom-eslint-rules":"jest eslint-rules"},"_npmUser":{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"},"repository":{"url":"git+https://github.com/PostHog/posthog-js.git","type":"git"},"_npmVersion":"10.2.4","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{ts,tsx}":["eslint src --fix"],"*.{ts,tsx,js,json}":"prettier --write"},"_nodeVersion":"21.5.0","browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"],"dependencies":{"fflate":"^0.4.8","preact":"^10.19.3"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^1.2.1","jest":"^27.5.1","husky":"^8.0.1","jsdom":"16.5.0","rrweb":"2.0.0-alpha.11","sinon":"9.0.2","tslib":"^2.5.0","yargs":"^17.7.2","eslint":"8.56.0","given2":"^2.1.7","rollup":"^4.9.6","cypress":"13.6.3","express":"^4.18.2","prettier":"^2.7.1","rrweb-v1":"npm:rrweb@1.1.3","testcafe":"1.19.0","babel-jest":"^26.6.3","fast-check":"^2.17.0","node-fetch":"^2.6.11","posthog-js":"link:","typescript":"^4.9.5","@babel/core":"7.18.9","@types/jest":"^29.5.1","@types/uuid":"^9.0.1","lint-staged":"^10.2.11","@rrweb/types":"2.0.0-alpha.11","@types/sinon":"^17.0.1","babel-eslint":"10.1.0","jsdom-global":"3.0.2","localStorage":"1.0.4","@sentry/types":"7.37.2","@types/eslint":"^8.44.6","rrweb-snapshot":"2.0.0-alpha.11","@types/react-dom":"^18.0.10","@babel/preset-env":"7.18.9","rollup-plugin-dts":"^6.1.0","eslint-plugin-jest":"^27.2.3","@rollup/plugin-json":"^6.1.0","eslint-plugin-react":"^7.30.1","@rollup/plugin-babel":"^6.0.4","@testing-library/dom":"^9.3.0","eslint-plugin-compat":"^4.1.4","@rollup/plugin-terser":"^0.4.4","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@babel/preset-typescript":"^7.18.6","eslint-config-posthog-js":"link:eslint-rules","eslint-plugin-posthog-js":"link:eslint-rules","rollup-plugin-visualizer":"^5.12.0","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"^6.19.0","eslint-plugin-react-hooks":"^4.6.0","@rollup/plugin-node-resolve":"^15.2.3","@babel/plugin-syntax-decorators":"^7.23.3","@typescript-eslint/eslint-plugin":"^6.19.0","@babel/plugin-transform-react-jsx":"^7.23.4","testcafe-browser-provider-browserstack":"1.14.0"},"_npmOperationalInternal":{"tmp":"tmp/posthog-js_1.105.9_1707994292750_0.11560916881177574","host":"s3://npm-registry-packages"}},"1.139.3":{"name":"@apteryxxyz/posthog-js","version":"1.139.3","description":"Posthog-js allows you to automatically capture usage and send events to PostHog.","repository":{"type":"git","url":"git+https://github.com/PostHog/posthog-js.git"},"author":{"name":"hey@posthog.com"},"license":"MIT","scripts":{"start":"pnpm build-react && pnpm build-rollup -w","build":"pnpm build-rollup && pnpm build-react","build-rollup":"rm -rf lib && tsc -b && rollup -c --bundleConfigAsCjs","build-react":"cd react && pnpm i && pnpm build && cd ..","lint":"eslint src","prettier":"prettier --write src/ functional_tests/","/prepublishOnly":"pnpm lint && pnpm test && pnpm build && pnpm test:react","test":"pnpm test:unit && pnpm test:custom-eslint-rules && pnpm test:functional","test:unit":"jest src","test:custom-eslint-rules":"jest eslint-rules","test:react":"cd react && pnpm test","test:functional":"jest functional_tests","test-watch":"jest --watch src","cypress":"cypress open","prepare":"husky install","deprecate-old-versions":"node scripts/deprecate-old-versions.mjs"},"main":"dist/module.js","module":"dist/es.js","types":"dist/module.d.ts","dependencies":{"fflate":"^0.4.8","preact":"^10.19.3"},"devDependencies":{"@babel/core":"7.18.9","@babel/plugin-syntax-decorators":"^7.23.3","@babel/plugin-transform-react-jsx":"^7.23.4","@babel/preset-env":"7.18.9","@babel/preset-typescript":"^7.18.6","@jest/globals":"^27.5.1","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6","@rrweb/types":"2.0.0-alpha.13","@sentry/types":"8.7.0","@testing-library/dom":"^9.3.0","@types/eslint":"^8.44.6","@types/jest":"^29.5.1","@types/react-dom":"^18.0.10","@types/sinon":"^17.0.1","@types/uuid":"^9.0.1","@typescript-eslint/eslint-plugin":"^6.19.0","@typescript-eslint/parser":"^6.19.0","babel-eslint":"10.1.0","babel-jest":"^26.6.3","compare-versions":"^6.1.0","cypress":"13.6.3","cypress-localstorage-commands":"^2.2.5","date-fns":"^3.6.0","eslint":"8.56.0","eslint-config-posthog-js":"link:eslint-rules","eslint-config-prettier":"^8.5.0","eslint-plugin-compat":"^4.1.4","eslint-plugin-jest":"^27.2.3","eslint-plugin-no-only-tests":"^3.1.0","eslint-plugin-posthog-js":"link:eslint-rules","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","express":"^4.18.2","fast-check":"^2.17.0","given2":"^2.1.7","husky":"^8.0.1","jest":"^27.5.1","jsdom":"16.5.0","jsdom-global":"3.0.2","lint-staged":"^10.2.11","localStorage":"1.0.4","msw":"^1.2.1","node-fetch":"^2.6.11","posthog-js":"link:","preact-render-to-string":"^6.3.1","prettier":"^2.7.1","rollup":"^4.9.6","rollup-plugin-dts":"^6.1.0","rollup-plugin-visualizer":"^5.12.0","rrweb":"2.0.0-alpha.13","rrweb-snapshot":"2.0.0-alpha.13","sinon":"9.0.2","testcafe":"1.19.0","testcafe-browser-provider-browserstack":"1.14.0","tslib":"^2.5.0","typescript":"^4.9.5","yargs":"^17.7.2"},"lint-staged":{"*.{ts,tsx,js,json}":"prettier --write","*.js":"eslint --cache --fix","*.{ts,tsx}":["eslint src --fix","eslint cypress --fix"]},"browserslist":["> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"],"pnpm":{"patchedDependencies":{"rrweb@2.0.0-alpha.13":"patches/rrweb@2.0.0-alpha.13.patch"}},"_id":"@apteryxxyz/posthog-js@1.139.3","gitHead":"7f34b6dfedec528d747facc81bd45337973248f7","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"homepage":"https://github.com/PostHog/posthog-js#readme","_nodeVersion":"21.5.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-0bcrwNqC91lKDMoTwLHaiu+E9v6BAlj8x4wNKg76ZJDHVvhGm4Rfa9cIgbu8KQIU+S2TS4AQtOIraAgPkT8FuA==","shasum":"9032a220dce597bad648a2f10502eb08b2a99594","tarball":"https://registry.npmjs.org/@apteryxxyz/posthog-js/-/posthog-js-1.139.3.tgz","fileCount":317,"unpackedSize":6996770,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDam2KNB7mHCPBPlJnxx3u/DnALMVXEx1Q/NkgHPc8q1AIhALNiibHVjI4WI5VNqlL7Q3PBvuHq6XjLkAqbc3qX697s"}]},"_npmUser":{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"},"directories":{},"maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthog-js_1.139.3_1718767495151_0.7981340425659293"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-15T09:43:47.981Z","modified":"2024-06-19T03:24:55.677Z","1.98.3":"2024-01-15T09:43:48.349Z","1.98.4":"2024-01-15T19:14:39.903Z","1.104.4":"2024-02-02T14:22:27.935Z","1.104.5":"2024-02-06T05:11:46.656Z","1.104.6":"2024-02-06T22:10:47.012Z","1.105.9":"2024-02-15T10:51:33.115Z","1.139.3":"2024-06-19T03:24:55.513Z"},"maintainers":[{"name":"apteryxxyz","email":"apteryx.xyz@gmail.com"}],"author":{"name":"hey@posthog.com"},"repository":{"type":"git","url":"git+https://github.com/PostHog/posthog-js.git"},"license":"MIT","homepage":"https://github.com/PostHog/posthog-js#readme","bugs":{"url":"https://github.com/PostHog/posthog-js/issues"},"readme":"# PostHog Browser JS Library\n\n[![npm package](https://img.shields.io/npm/v/posthog-js?style=flat-square)](https://www.npmjs.com/package/posthog-js)\n[![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n\nFor information on using this library in your app, [see PostHog Docs](https://posthog.com/docs/libraries/js).  \nThis README is intended for developing the library itself.\n\n## Testing\n\nUnit tests: run `pnpm test`.\nCypress: run `pnpm start` to have a test server running and separately `pnpm cypress` to launch Cypress test engine.\n\n### Running TestCafe E2E tests with BrowserStack\n\nTesting on IE11 requires a bit more setup. TestCafe tests will use the\nplayground application to test the locally built array.full.js bundle. It will\nalso verify that the events emitted during the testing of playground are loaded\ninto the PostHog app. By default it uses https://us.i.posthog.com and the\nproject with ID 11213. See the testcafe tests to see how to override these if\nneeded. For PostHog internal users ask @benjackwhite or @hazzadous to invite you\nto the Project. You'll need to set `POSTHOG_API_KEY` to your personal API key, and\n`POSTHOG_PROJECT_KEY` to the key for the project you are using.\n\nYou'll also need to sign up to [BrowserStack](https://www.browserstack.com/).\nNote that if you are using CodeSpaces, these variables will already be available\nin your shell env variables.\n\nAfter all this, you'll be able to run through the below steps:\n\n1. Optional: rebuild array.js on changes: `nodemon -w src/ --exec bash -c \"pnpm build-rollup\"`.\n1. Export browserstack credentials: `export BROWSERSTACK_USERNAME=xxx BROWSERSTACK_ACCESS_KEY=xxx`.\n1. Run tests: `npx testcafe \"browserstack:ie\" testcafe/e2e.spec.js`.\n\n### Running local create react app example\n\nYou can use the create react app setup in `playground/nextjs` to test posthog-js as an npm module in a Nextjs application.\n\n1. Run `posthog` locally on port 8000 (`DEBUG=1 TEST=1 ./bin/start`).\n2. Run `python manage.py setup_dev --no-data` on posthog repo, which sets up a demo account.\n3. Copy posthog token found in `http://localhost:8000/project/settings` and then\n4. `cd playground/nextjs`and run `NEXT_PUBLIC_POSTHOG_KEY='<your-local-api-key>' pnpm dev`\n\n### Tiers of testing\n\n1. Unit tests - this verifies the behavior of the library in bite-sized chunks. Keep this coverage close to 100%, test corner cases and internal behavior here\n2. Cypress tests - integrates with a real chrome browser and is capable of testing timing, browser requests, etc. Useful for testing high-level library behavior, ordering and verifying requests. We shouldn't aim for 100% coverage here as it's impossible to test all possible combinations.\n3. TestCafe E2E tests - integrates with a real posthog instance sends data to it. Hardest to write and maintain - keep these very high level\n\n## Developing together with another project\n\nInstall pnpm to link a local version of `posthog-js` in another JS project: `npm install -g pnpm`\n\n### Run this to link the local version\n\nWe have 2 options for linking this project to your local version: via [pnpm link](https://docs.npmjs.com/cli/v8/commands/npm-link) or via [local paths](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#local-paths)\n\n#### local paths (preferred)\n\n- from whichever repo needs to require `posthog-js`, go to the `package.json` of that file, and replace the `posthog-js` dependency version number with `file:<relative_or_absolute_path_to_local_module>`\n- e.g. from the `package.json` within `posthog`, replace `\"posthog-js\": \"1.131.4\"` with `\"posthog-js\": \"file:../posthog-js\"`\n- run `pnpm install` from the root of the project in which you just created a local path\n\nThen, once this link has been created, any time you need to make a change to `posthog-js`, you can run `pnpm build` from the `posthog-js` root and the changes will appear in the other repo.  \n\n#### `pnpm link`\n\n- In the `posthog-js` directory: `pnpm link --global`\n- (for `posthog` this means: `pnpm link --global posthog-js && pnpm i && pnpm copy-scripts`)\n- You can then remove the link by, e.g., running `pnpm link --global posthog-js` from within `posthog`\n\n## Releasing a new version\n\nJust put a `bump patch/minor/major` label on your PR! Once the PR is merged, a new version with the appropriate version bump will be released, and the dependency will be updated in [posthog/PostHog](https://github.com/posthog/PostHog) – automatically.\n  \nIf you forget to add the label, don't try to update the version locally as you won't be able to push that commit to the main branch. Instead, just make a new PR.\n\n### Prereleases\n\nTo release an alpha or beta version, you'll need to use the CLI locally:\n\n1. Make sure you're a collaborator on `posthog-js` in npm ([check here](https://www.npmjs.com/package/posthog-js)).\n2. Make sure you're logged into the npm CLI (`npm login`).\n3. Check out your work-in-progress branch (do not release an alpha/beta from `main`).\n4. Run the following commands, using the same bump level (major/minor/patch) as your PR:\n\n    ```bash\n    npm version [premajor | preminor | prepatch] --preid=beta\n    npm publish --tag beta\n    git push --tags\n    ```\n\n5. Enjoy the new prerelease version. You can now use it locally, in a dummy app, or in the [main repo](https://github.com/posthog/PostHog).\n","readmeFilename":"README.md"}