UNPKG

graphql-api-koa

Version:

GraphQL execution and error handling middleware written from scratch for Koa.

72 lines (71 loc) 1.99 kB
{ "name": "graphql-api-koa", "version": "9.1.3", "description": "GraphQL execution and error handling middleware written from scratch for Koa.", "license": "MIT", "author": { "name": "Jayden Seric", "email": "me@jaydenseric.com", "url": "https://jaydenseric.com" }, "repository": "github:jaydenseric/graphql-api-koa", "homepage": "https://github.com/jaydenseric/graphql-api-koa#readme", "bugs": "https://github.com/jaydenseric/graphql-api-koa/issues", "funding": "https://github.com/sponsors/jaydenseric", "keywords": [ "graphql", "api", "koa", "esm", "mjs" ], "files": [ "assertKoaContextRequestGraphQL.mjs", "checkGraphQLSchema.mjs", "checkGraphQLValidationRules.mjs", "checkOptions.mjs", "errorHandler.mjs", "execute.mjs", "GraphQLAggregateError.mjs" ], "sideEffects": false, "exports": { "./errorHandler.mjs": "./errorHandler.mjs", "./execute.mjs": "./execute.mjs", "./GraphQLAggregateError.mjs": "./GraphQLAggregateError.mjs", "./package.json": "./package.json" }, "engines": { "node": "^14.17.0 || ^16.0.0 || >= 18.0.0" }, "peerDependencies": { "graphql": "^16.0.0" }, "dependencies": { "@types/http-errors": "^2.0.1", "@types/koa": "^2.13.5", "http-errors": "^2.0.0" }, "devDependencies": { "@types/koa-bodyparser": "^4.3.10", "@types/node": "^18.11.9", "coverage-node": "^8.0.0", "eslint": "^8.27.0", "eslint-plugin-simple-import-sort": "^8.0.0", "graphql": "^16.6.0", "koa": "^2.13.4", "koa-bodyparser": "^4.3.0", "node-fetch": "^3.2.10", "prettier": "^2.7.1", "test-director": "^10.0.0", "typescript": "^4.8.4" }, "scripts": { "eslint": "eslint .", "prettier": "prettier -c .", "types": "tsc -p jsconfig.json", "tests": "coverage-node test.mjs", "test": "npm run eslint && npm run prettier && npm run types && npm run tests", "prepublishOnly": "npm test" } }