UNPKG

api-concurrency

Version:

Lock API when a request arrives and fail other requests on same API with same payload thereby restricting duplicate requests

55 lines (54 loc) 1.21 kB
{ "name": "api-concurrency", "version": "1.3.0", "description": "Lock API when a request arrives and fail other requests on same API with same payload thereby restricting duplicate requests", "contributors": [ "Aziz Tinwala <aju9316@gmail.com>" ], "main": "index.js", "scripts": { "linter": "./node_modules/.bin/standard", "test": "mocha --reporter spec --bail --check-leaks test.js", "coverage": "nyc npm test" }, "keywords": [ "expressjs", "redis", "redis-lock", "express-lock", "express-middleware", "http", "duplicate request", "Concurrency" ], "author": "Aziz Tinwala", "license": "MIT", "dependencies": { "on-finished": "^2.3.0" }, "files": [ "LICENSE", "README.md", "index.js" ], "engines": { "node": ">= 0.10" }, "nyc": { "extends": "@istanbuljs/nyc-config-typescript", "all": true, "check-coverage": false, "reporter": "html", "exclude": [ "test.js", "coverage" ] }, "repository": "https://github.com/aju9316/api-concurrency", "devDependencies": { "mocha": "^6.0.2", "nyc": "^13.3.0", "redis-mock": "^0.43.0", "standard": "^12.0.1" } }