UNPKG

eventsource

Version:

WhatWG/W3C compliant EventSource client for Node.js and browsers

102 lines (101 loc) 3.07 kB
{ "name": "eventsource", "version": "5.1.1", "description": "WhatWG/W3C compliant EventSource client for Node.js and browsers", "keywords": [ "eventsource", "server-sent-events", "sse" ], "homepage": "https://github.com/EventSource/eventsource#readme", "bugs": { "url": "https://github.com/EventSource/eventsource/issues" }, "license": "MIT", "author": "Espen Hovlandsdal <espen@hovlandsdal.com>", "contributors": [ "Aslak Hellesøy <aslak.hellesoy@gmail.com>", "Einar Otto Stangvik <einaro.s@gmail.com>" ], "repository": { "type": "git", "url": "git://git@github.com/EventSource/eventsource.git" }, "files": [ "dist", "src", "!dist/stats.html" ], "type": "module", "sideEffects": false, "types": "./dist/index.d.ts", "exports": { ".": { "source": "./src/index.ts", "default": "./dist/index.js" }, "./package.json": "./package.json" }, "publishConfig": { "exports": { ".": { "default": "./dist/index.js" }, "./package.json": "./package.json" }, "provenance": true }, "scripts": { "build": "tsc -p tsconfig.dist.json", "build:watch": "tsc -p tsconfig.dist.json --watch", "changeset": "changeset", "changeset:status": "changeset status --since=origin/main", "clean": "node scripts/clean.ts", "format": "oxfmt --write .", "lint": "oxlint . && tsc --noEmit && tsc --noEmit -p tsconfig.test.json", "prebuild": "npm run clean", "prepare": "npm run build", "release": "changeset publish", "test": "vitest run", "test:browser": "vitest run --config ./vitest.browser.config.ts", "test:bun": "bun run vitest run", "test:deno": "deno run -A --node-modules-dir npm:vitest run", "test:types": "npm run build && tsc -p tsconfig.types.json", "version:packages": "changeset version && npm install --package-lock-only --no-audit --no-fund", "test:all": "npm run test:types && npm run test && npm run test:browser && npm run test:bun && npm run test:deno && npm run test:happy-dom && npm run test:workerd", "test:happy-dom": "vitest run --config ./vitest.happy-dom.config.ts", "test:workerd": "vitest run --config ./vitest.workerd.config.ts", "posttest": "npm run lint" }, "dependencies": { "eventsource-parser": "^4.1.0" }, "devDependencies": { "@changesets/changelog-github": "^1.0.0", "@changesets/cli": "^3.0.0", "@cloudflare/vitest-pool-workers": "^0.21.3", "@tsconfig/strictest": "^2.0.8", "@types/node": "^22.19.19", "@vitest/browser": "^4.1.10", "@vitest/browser-playwright": "^4.1.10", "eventsource-encoder": "^1.0.2", "happy-dom": "^20.11.2", "oxfmt": "^0.52.0", "oxlint": "^1.67.0", "playwright": "^1.60.0", "typescript": "^7.0.0", "vitest": "^4.1.10" }, "browserslist": [ "node >= 22.12.0", ">0.3%", "chrome >= 84", "safari >= 15", "firefox >= 105", "edge >= 84" ], "engines": { "node": ">=22.12.0" }, "packageManager": "npm@12.0.1" }