UNPKG

nest-ratelimiter

Version:

Distributed consistent flexible NestJS rate limiter based on Redis

93 lines (92 loc) 2.55 kB
{ "name": "nest-ratelimiter", "version": "0.4.0", "description": "Distributed consistent flexible NestJS rate limiter based on Redis", "main": "index.js", "types": "index.d.ts", "scripts": { "test": "jest --verbose -i --detectOpenHandles", "lint": "tsc --noemit && eslint \"{src,__tests__}/**/*.ts\" --fix", "prebuild": "rimraf dist", "build": "tsc -p tsconfig.build.json", "prepublishOnly": "npm run build && cp -r ./dist/* .", "postpublish": "git clean -fd" }, "files": [ "**/*.{js,d.ts}", "!dist/**/*", "!jest.config.js", "!.eslintrc.js" ], "engineStrict": true, "engines": { "node": ">=18.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/iamolegga/nestjs-ratelimiter.git" }, "keywords": [ "nest", "nestjs", "nest.js", "rate", "ratelimit", "ratelimiter", "limit", "limiter", "redis" ], "author": "iamolegga <iamolegga@gmail.com> (http://github.com/iamolegga)", "license": "MIT", "bugs": { "url": "https://github.com/iamolegga/nestjs-ratelimiter/issues" }, "homepage": "https://github.com/iamolegga/nestjs-ratelimiter#readme", "peerDependencies": { "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0", "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0", "@types/ratelimiter": "^3.4.2", "ms": "^2.0.0", "ratelimiter": "^3.4.1" }, "peerDependenciesMeta": { "ms": { "optional": true } }, "devDependencies": { "@eslint/compat": "^1.2.5", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.18.0", "@nestjs/common": "^11.0.5", "@nestjs/core": "^11.0.5", "@nestjs/platform-express": "^11.0.5", "@nestjs/platform-fastify": "^11.0.5", "@types/express": "^5.0.0", "@types/jest": "^29.5.14", "@types/node": "^22.10.10", "@types/ratelimiter": "^3.4.6", "@types/redis-mock": "^0.17.3", "@types/supertest": "^6.0.2", "@typescript-eslint/eslint-plugin": "^8.21.0", "@typescript-eslint/parser": "^8.21.0", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.3", "jest": "29.7.0", "ms": "^2.1.3", "prettier": "^3.4.2", "ratelimiter": "^3.4.1", "redis-mock": "^0.56.3", "reflect-metadata": "^0.1.14", "rimraf": "^6.0.1", "rxjs": "^7.8.1", "supertest": "^7.0.0", "ts-jest": "^29.2.5", "ts-loader": "^9.5.2", "ts-node": "^10.9.2", "typescript": "^5.7.3" } }