126 lines
5.2 KiB
JSON
126 lines
5.2 KiB
JSON
{
|
|
"name": "posthog-js",
|
|
"version": "1.298.0",
|
|
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
|
|
"repository": "https://github.com/PostHog/posthog-js",
|
|
"author": "hey@posthog.com",
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"homepage": "https://posthog.com/docs/libraries/js",
|
|
"main": "dist/main.js",
|
|
"module": "dist/module.js",
|
|
"types": "dist/module.d.ts",
|
|
"files": [
|
|
"lib/*",
|
|
"dist/*",
|
|
"react/dist/*",
|
|
"react/package.json"
|
|
],
|
|
"dependencies": {
|
|
"core-js": "^3.38.1",
|
|
"fflate": "^0.4.8",
|
|
"preact": "^10.19.3",
|
|
"web-vitals": "^4.2.4",
|
|
"@posthog/core": "1.6.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.2",
|
|
"@babel/preset-typescript": "^7.27.1",
|
|
"@jest/globals": "^29.7.0",
|
|
"@playwright/test": "^1.52.0",
|
|
"@posthog/rrweb-plugin-console-record": "^0.0.30",
|
|
"@posthog/rrweb-record": "^0.0.30",
|
|
"@posthog/rrweb-types": "^0.0.30",
|
|
"@rollup/plugin-babel": "^6.0.4",
|
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
"@rollup/plugin-json": "^6.1.0",
|
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
"@rollup/plugin-terser": "^0.4.4",
|
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
"@rrweb/record": "2.0.0-alpha.17",
|
|
"@rrweb/rrweb-plugin-console-record": "2.0.0-alpha.17",
|
|
"@rrweb/types": "2.0.0-alpha.17",
|
|
"@sentry/types": "8.7.0",
|
|
"@testing-library/dom": "^9.3.0",
|
|
"@testing-library/jest-dom": "^6.5.0",
|
|
"@testing-library/preact": "^3.2.4",
|
|
"@types/dotenv": "^8.2.3",
|
|
"@types/jest": "^29.5.12",
|
|
"@types/node": "^22.5.0",
|
|
"@types/react-dom": "^18.0.10",
|
|
"@types/sinon": "^17.0.1",
|
|
"@types/web": "^0.0.222",
|
|
"babel-jest": "^29.7.0",
|
|
"browserslist": "^4.24.5",
|
|
"compare-versions": "^6.1.0",
|
|
"cssnano": "^7.0.7",
|
|
"date-fns": "^3.6.0",
|
|
"dotenv": "^17.2.0",
|
|
"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.5.0",
|
|
"jsdom-global": "3.0.2",
|
|
"localStorage": "1.0.4",
|
|
"msw": "^1.3.3",
|
|
"node-fetch": "^2.6.11",
|
|
"postcss": "^8.5.3",
|
|
"postcss-import": "^16.1.0",
|
|
"postcss-nesting": "^13.0.1",
|
|
"posthog-js": "link:",
|
|
"preact-render-to-string": "^6.3.1",
|
|
"rollup": "^4.50.0",
|
|
"rollup-plugin-dts": "^6.2.3",
|
|
"rollup-plugin-postcss": "^4.0.2",
|
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
"sinon": "9.0.2",
|
|
"testcafe": "1.19.0",
|
|
"testcafe-browser-provider-browserstack": "1.14.0",
|
|
"ts-node": "^10.9.2",
|
|
"tslib": "^2.5.0",
|
|
"typescript": "5.8.2",
|
|
"yargs": "^17.7.2",
|
|
"@posthog-tooling/rollup-utils": "1.1.0"
|
|
},
|
|
"browserslist": [
|
|
"> 0.5%, last 2 versions, Firefox ESR, not dead, IE 11"
|
|
],
|
|
"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",
|
|
"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 '.*surveys.*.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: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",
|
|
"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"
|
|
}
|
|
} |