UNPKG

@andreasnicolaou/reactive-event-source

Version:

A lightweight reactive wrapper around EventSource using RxJS, providing automatic reconnection and buffering.

131 lines (130 loc) 3.37 kB
{ "name": "@andreasnicolaou/reactive-event-source", "version": "1.5.0", "description": "A lightweight reactive wrapper around EventSource using RxJS, providing automatic reconnection and buffering.", "main": "dist/index.js", "module": "dist/index.js", "browser": "dist/index.umd.min.js", "private": false, "types": "dist/index.d.ts", "type": "module", "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "browser": "./dist/index.umd.min.js", "types": "./dist/index.d.ts" } }, "scripts": { "build": "rollup -c", "format": "prettier --write .", "format:check": "prettier --check .", "lint": "eslint --fix", "test": "jest", "test:ci": "cross-env JEST_JUNIT_CLASSNAME=\"{filepath}\" jest --reporters=default --reporters=jest-junit", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:bundle": "npx bundlewatch" }, "repository": { "type": "git", "url": "https://github.com/andreasnicolaou/reactive-event-source.git" }, "bugs": { "url": "https://github.com/andreasnicolaou/reactive-event-source/issues" }, "author": { "name": "Andreas Nicolaou", "email": "anicolaou66@gmail.com" }, "license": "MIT", "jest": { "transform": { "^.+\\.(ts)$": [ "ts-jest" ] }, "testEnvironment": "jsdom", "testPathIgnorePatterns": [ "/node_modules/", "/dist/" ] }, "bundlewatch": { "files": [ { "path": "dist/index.js", "maxSize": "5kB", "compression": "gzip" }, { "path": "dist/index.cjs.js", "maxSize": "15kB", "compression": "gzip" }, { "path": "dist/index.umd.js", "maxSize": "15kB", "compression": "gzip" }, { "path": "dist/index.umd.min.js", "maxSize": "10kB", "compression": "gzip" } ] }, "devDependencies": { "@codecov/rollup-plugin": "^1.9.1", "@rollup/plugin-commonjs": "^29.0.0", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.3.0", "@types/jest": "^30.0.0", "@types/node": "^24.10.2", "@typescript-eslint/eslint-plugin": "^8.49.0", "@typescript-eslint/parser": "^8.49.0", "bundlewatch": "^0.4.1", "cross-env": "^10.1.0", "eslint": "^9.39.1", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", "globals": "^16.5.0", "jest": "^30.2.0", "jest-environment-jsdom": "^30.2.0", "jest-junit": "^16.0.0", "prettier": "3.7.4", "rollup": "^4.53.3", "rollup-plugin-dts": "^6.3.0", "ts-jest": "^29.4.6", "ts-node": "^10.9.2", "typescript": "^5.9.3" }, "keywords": [ "eventsource", "sse", "server-sent-events", "rxjs", "observable", "reactive", "streaming", "typescript", "reconnect", "auto-reconnect", "browser", "client", "events", "real-time", "realtime", "data-stream", "wrapper", "reactive-event-source", "andreasnicolaou" ], "dependencies": { "rxjs": "^7.8.2" } }