{ "name": "@posthog/plugin-server", "version": "1.10.5", "description": "PostHog Plugin Server", "types": "dist/index.d.ts", "main": "dist/index.js", "scripts": { "test": "jest --runInBand --forceExit tests/**/*.test.ts", "test:postgres:1": "jest --runInBand --forceExit tests/ --testPathIgnorePatterns tests/clickhouse/ --testPathIgnorePatterns tests/postgres/", "test:postgres:2": "jest --runInBand --forceExit tests/postgres/", "test:clickhouse:1": "jest --runInBand --forceExit tests/clickhouse/ --testPathIgnorePatterns tests/clickhouse/process-event.test.ts", "test:clickhouse:2": "jest --runInBand --forceExit tests/clickhouse/process-event.test.ts", "benchmark": "yarn run benchmarks:clickhouse && yarn run benchmark:postgres && yarn run benchmarks:vm", "benchmark:clickhouse": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/clickhouse/", "benchmark:postgres": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/postgres/", "benchmark:vm:memory": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/vm/memory.benchmark.ts", "benchmark:vm:worker": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/vm/worker.benchmark.ts", "start": "yarn start:dist", "start:dist": "BASE_DIR=.. node dist/index.js", "start:dev": "NODE_ENV=dev BASE_DIR=.. ts-node-dev --debug --exit-child src/index.ts", "start:dev:ee": "KAFKA_ENABLED=true KAFKA_HOSTS=localhost:9092 yarn start:dev", "build": "yarn clean && yarn compile", "clean": "rimraf dist/*", "protobuf:compile": "cd src/config/idl/ && rimraf protos.* && pbjs -t static-module -w commonjs -o protos.js *.proto --keep-case && pbts -o protos.d.ts protos.js && eslint --fix . && prettier --write .", "typescript:compile": "tsc -b", "typescript:check": "tsc --noEmit -p .", "compile": "yarn protobuf:compile && yarn typescript:compile", "lint": "eslint .", "lint:fix": "eslint --fix .", "prettier": "prettier --write .", "prettier:check": "prettier --check .", "prepare": "yarn protobuf:compile", "prepublishOnly": "yarn build", "setup:dev:clickhouse": "cd .. && DEBUG=1 python manage.py migrate_clickhouse", "setup:test": "cd .. && TEST=1 python manage.py setup_test_environment", "services:start": "cd .. && docker-compose -f docker-compose.dev.yml up zookeeper kafka clickhouse", "services:stop": "cd .. && docker-compose -f docker-compose.dev.yml down", "services:clean": "cd .. && docker-compose -f docker-compose.dev.yml rm -v zookeeper kafka clickhouse", "services": "yarn services:stop && yarn services:clean && yarn services:start" }, "bin": { "posthog-plugin-server": "bin/posthog-plugin-server" }, "author": "PostHog ", "repository": "https://github.com/PostHog/posthog-plugin-server", "license": "MIT", "dependencies": { "@babel/core": "^7.13.1", "@babel/preset-env": "^7.13.5", "@babel/preset-typescript": "^7.13.0", "@babel/standalone": "^7.13.7", "@google-cloud/bigquery": "^5.6.0", "@google-cloud/pubsub": "^2.16.0", "@google-cloud/storage": "^5.8.5", "@maxmind/geoip2-node": "^3.0.0", "@posthog/clickhouse": "^1.7.0", "@posthog/piscina": "^3.2.0-posthog", "@posthog/plugin-contrib": "^0.0.5", "@posthog/plugin-scaffold": "^1.0.0", "@sentry/node": "^6.7.0", "@sentry/tracing": "^6.7.0", "@types/lru-cache": "^5.1.0", "adm-zip": "0.5.3", "aws-sdk": "^2.927.0", "escape-string-regexp": "^4.0.0", "ethers": "^5.5.2", "faker": "^5.5.3", "fast-deep-equal": "^3.1.3", "generic-pool": "^3.7.1", "graphile-worker": "^0.11.1", "hot-shots": "^8.3.2", "ioredis": "^4.27.6", "jsonwebtoken": "^8.5.1", "kafkajs": "^1.15.0", "lru-cache": "^6.0.0", "luxon": "^1.27.0", "node-fetch": "^2.6.1", "node-schedule": "^2.0.0", "pg": "^8.6.0", "posthog-js-lite": "^0.0.5", "pretty-bytes": "^5.6.0", "protobufjs": "^6.11.2", "re2": "^1.16.0", "redlock": "^4.2.0", "snowflake-sdk": "^1.6.1", "structlog": "^1.0.2", "tar-stream": "^2.2.0", "uuid": "^8.3.2", "vm2": "3.9.6" }, "devDependencies": { "@babel/cli": "^7.13.0", "@types/adm-zip": "^0.4.34", "@types/babel__standalone": "^7.1.3", "@types/faker": "^5.5.7", "@types/generic-pool": "^3.1.9", "@types/ioredis": "^4.26.4", "@types/jest": "^26.0.23", "@types/jsonwebtoken": "^8.5.5", "@types/luxon": "^1.27.0", "@types/node": "^16.0.0", "@types/node-fetch": "^2.5.10", "@types/node-schedule": "^1.3.1", "@types/pg": "^8.6.0", "@types/redlock": "^4.0.1", "@types/snowflake-sdk": "^1.5.1", "@types/tar-stream": "^2.2.0", "@types/uuid": "^8.3.0", "@typescript-eslint/eslint-plugin": "^4.31.2", "@typescript-eslint/parser": "^4.31.2", "babel-eslint": "^10.1.0", "eslint": "^7.28.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.23.4", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^5.1.0", "eslint-plugin-react": "^7.24.0", "eslint-plugin-simple-import-sort": "^7.0.0", "jest": "^27.0.4", "prettier": "^2.3.1", "rimraf": "^3.0.2", "ts-jest": "^27.0.3", "ts-node": "^10.0.0", "ts-node-dev": "^1.1.6", "typescript": "^4.4.0" } }