{
  "name": "centrifuge",
  "version": "5.6.0",
  "description": "JavaScript client SDK for bidirectional communication with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native",
  "main": "build/index.js",
  "types": "build/index.d.ts",
  "module": "build/index.mjs",
  "exports": {
    ".": {
      "types": "./build/index.d.ts",
      "import": "./build/index.mjs",
      "require": "./build/index.js"
    },
    "./build/protobuf": {
      "types": "./build/protobuf/index.d.ts",
      "import": "./build/protobuf/index.mjs",
      "require": "./build/protobuf/index.js"
    }
  },
  "files": [
    "dist/**",
    "build/**"
  ],
  "browser": {
    "events": "events"
  },
  "scripts": {
    "build": "rollup -c && ./fixup.sh",
    "prepare": "npm run build-all",
    "lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
    "test": "jest --detectOpenHandles --verbose",
    "bench": "jest src/codec.bench.test.ts",
    "clean": "rm -rf dist build package",
    "ts-node": "ts-node",
    "docs": "typedoc --exclude '**/transport_*.ts' --exclude '**/*.test.ts' --exclude '**/*+(utils|json|protobuf.codec|codes|browser).ts' --excludePrivate --excludeInternal --entryPoints src/*.ts",
    "build-all": "yarn clean && yarn build && yarn build-browser && yarn build-browser-protobuf",
    "build-browser": "esbuild src/browser.ts --bundle --minify --sourcemap --outfile=dist/centrifuge.js",
    "dev": "esbuild src/browser.ts --bundle --outfile=dist/centrifuge.js --servedir=dist/ --serve=2000",
    "build-browser-protobuf": "esbuild src/browser.protobuf.ts --bundle --minify --sourcemap --outfile=dist/centrifuge.protobuf.js",
    "dev-protobuf": "esbuild src/browser.protobuf.ts --bundle --outfile=dist/centrifuge.protobuf.js --servedir=dist/ --serve=2000",
    "proto": "./make-proto"
  },
  "devDependencies": {
    "@rollup/plugin-commonjs": "^29.0.2",
    "@rollup/plugin-json": "^6.1.0",
    "@rollup/plugin-node-resolve": "^16.0.3",
    "@rollup/plugin-typescript": "^12.3.0",
    "@types/jest": "^29.5.14",
    "@types/node": "^20.19.41",
    "@typescript-eslint/eslint-plugin": "6.7.0",
    "@typescript-eslint/parser": "6.7.0",
    "esbuild": "^0.27.7",
    "eslint": "^8.57.1",
    "eventsource": "^2.0.2",
    "jest": "^29.7.0",
    "protobufjs-cli": "^1.3.0",
    "rollup": "^4.60.4",
    "rollup-plugin-delete": "^2.2.0",
    "ts-jest": "^29.4.11",
    "ts-node": "^10.9.2",
    "tslib": "^2.8.1",
    "typedoc": "^0.25.13",
    "typescript": "^5.9.3",
    "undici": "^6.25.0",
    "ws": "^8.20.1"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/centrifugal/centrifuge-js.git"
  },
  "keywords": [
    "websocket",
    "webtransport",
    "eventsource",
    "streaming",
    "sockjs",
    "centrifugo",
    "centrifuge",
    "pub/sub",
    "real-time"
  ],
  "author": "Alexander Emelin",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/centrifugal/centrifuge-js/issues"
  },
  "homepage": "https://github.com/centrifugal/centrifuge-js",
  "dependencies": {
    "events": "^3.3.0",
    "protobufjs": "^7.6.0"
  }
}
