graphql-sse
Version:
Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client
140 lines (139 loc) • 3.95 kB
JSON
{
"name": "graphql-sse",
"version": "2.6.0",
"description": "Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client",
"keywords": [
"graphql",
"client",
"relay",
"express",
"apollo",
"server",
"sse",
"transport",
"server-sent-events",
"observables",
"subscriptions",
"fastify"
],
"author": "Denis Badurina <badurinadenis@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/enisdenjo/graphql-sse#readme",
"repository": {
"type": "git",
"url": "https://github.com/enisdenjo/graphql-sse.git"
},
"engines": {
"node": ">=12"
},
"packageManager": "yarn@4.0.2",
"main": "lib/index.js",
"module": "lib/index.mjs",
"browser": "umd/graphql-sse.js",
"exports": {
".": {
"require": "./lib/index.js",
"import": "./lib/index.mjs",
"types": "./lib/index.d.ts",
"browser": "./umd/graphql-sse.js"
},
"./lib/use/fetch": {
"types": "./lib/use/fetch.d.ts",
"require": "./lib/use/fetch.js",
"import": "./lib/use/fetch.mjs"
},
"./lib/use/http": {
"types": "./lib/use/http.d.ts",
"require": "./lib/use/http.js",
"import": "./lib/use/http.mjs"
},
"./lib/use/http2": {
"types": "./lib/use/http2.d.ts",
"require": "./lib/use/http2.js",
"import": "./lib/use/http2.mjs"
},
"./lib/use/express": {
"types": "./lib/use/express.d.ts",
"require": "./lib/use/express.js",
"import": "./lib/use/express.mjs"
},
"./lib/use/fastify": {
"types": "./lib/use/fastify.d.ts",
"require": "./lib/use/fastify.js",
"import": "./lib/use/fastify.mjs"
},
"./lib/use/koa": {
"types": "./lib/use/koa.d.ts",
"require": "./lib/use/koa.js",
"import": "./lib/use/koa.mjs"
},
"./package.json": "./package.json"
},
"types": "lib/index.d.ts",
"files": [
"lib",
"umd",
"README.md",
"LICENSE.md",
"PROTOCOL.md"
],
"sideEffects": [
"umd/*"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"check:format": "prettier --check .",
"format": "yarn check:format --write",
"check:lint": "eslint 'src'",
"check:type": "tsc --noEmit",
"test": "vitest",
"build:esm": "tsc -b tsconfig.esm.json && node scripts/esm-post-process.mjs",
"build:cjs": "tsc -b tsconfig.cjs.json",
"build:umd": "rollup --configPlugin typescript --config rollup.config.ts",
"build": "yarn build:esm && yarn build:cjs && yarn build:umd",
"prepack": "npm pkg delete workspaces",
"postpack": "npm pkg set 'workspaces[]=website'",
"release": "semantic-release",
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.mjs"
},
"peerDependencies": {
"graphql": ">=0.11 <=16"
},
"devDependencies": {
"@apollo/client": "^3.13.8",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/eslint": "^8.56.2",
"@types/eventsource": "^1.1.15",
"@types/express": "^4.17.21",
"@types/glob": "^8.1.0",
"@types/koa": "^2.14.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-mount": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eventsource": "^2.0.2",
"express": "^4.18.2",
"fastify": "^4.25.2",
"glob": "^10.3.10",
"graphql": "^16.8.1",
"koa": "^2.15.0",
"koa-bodyparser": "^4.4.1",
"koa-mount": "^4.0.0",
"prettier": "^3.2.2",
"rollup": "^4.9.5",
"rollup-plugin-gzip": "^3.1.1",
"semantic-release": "^23.0.0",
"tslib": "^2.6.2",
"typedoc": "^0.25.7",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.3.3",
"vitest": "^1.2.0"
}
}