UNPKG

centrifuge

Version:

JavaScript client SDK for bidirectional communication with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native

92 lines (91 loc) 3.06 kB
{ "name": "centrifuge", "version": "5.5.3", "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": "^25.0.4", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.2.1", "@types/jest": "^29.5.4", "@types/node": "^20.6.0", "@typescript-eslint/eslint-plugin": "6.7.0", "@typescript-eslint/parser": "6.7.0", "esbuild": "^0.27.1", "eslint": "^8.49.0", "eventsource": "^2.0.2", "jest": "^29.7.0", "protobufjs-cli": "^1.1.2", "rollup": "^3.29.1", "rollup-plugin-delete": "^2.0.0", "rollup-plugin-typescript2": "^0.35.0", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typedoc": "^0.25.1", "typescript": "^5.2.2", "undici": "^5.24.0", "ws": "^8.14.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.2.5" } }