UNPKG

graphql-rate-limit-directive

Version:

Fixed window rate-limiting directive for GraphQL. Use to limit repeated requests to queries and mutations.

64 lines (63 loc) 1.71 kB
{ "name": "graphql-rate-limit-directive", "description": "Fixed window rate-limiting directive for GraphQL. Use to limit repeated requests to queries and mutations.", "version": "2.0.6", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", "typescript": { "definition": "dist/index.d.ts" }, "scripts": { "build": "rm -rf dist && tsc -d", "format": "eslint --fix 'src/**'", "ci:format": "eslint 'src/**'", "typecheck": "tsc", "lint": "npm run typecheck; npm run format", "test": "jest" }, "peerDependencies": { "@graphql-tools/utils": "^8.0.0 || ^9.0.0 || ^10.0.0", "graphql": "^16.0.0", "rate-limiter-flexible": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" }, "devDependencies": { "@eslint/js": "9.16.0", "@graphql-tools/schema": "10.0.10", "@types/jest": "29.5.14", "@types/node": "22.10.1", "eslint": "9.16.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-prettier": "5.2.1", "jest": "29.7.0", "jest-junit": "16.0.0", "prettier": "3.4.1", "ts-jest": "29.1.2", "typescript": "5.7.2", "typescript-eslint": "8.17.0" }, "homepage": "https://github.com/ravangen/graphql-rate-limit#readme", "author": "Rob Van Gennip <ravangen@gmail.com>", "repository": { "type": "git", "url": "git+https://github.com/ravangen/graphql-rate-limit.git" }, "bugs": { "url": "https://github.com/ravangen/graphql-rate-limit/issues" }, "keywords": [ "graphql", "graphql-js", "directive", "middleware", "schema", "resolvers", "rate", "limit", "ratelimit", "rate-limit", "graphql-rate-limit", "cost", "security" ] }