UNPKG

koa-better-timeout

Version:

Response timeout middleware for Koa and Lad (uses Boom by default)

117 lines (116 loc) 2.5 kB
{ "name": "koa-better-timeout", "description": "Response timeout middleware for Koa and Lad (uses Boom by default)", "version": "0.0.6", "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", "bugs": { "url": "https://github.com/ladjs/koa-better-timeout/issues", "email": "niftylettuce@gmail.com" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "contributors": [ "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)" ], "dependencies": { "@hapi/boom": "^9.1.0" }, "devDependencies": { "@commitlint/cli": "^9.1.1", "@commitlint/config-conventional": "^9.1.1", "ava": "^3.10.1", "codecov": "^3.7.2", "cross-env": "^7.0.2", "eslint": "^7.5.0", "eslint-config-xo-lass": "^1.0.3", "fixpack": "^3.0.6", "husky": "^4.2.5", "lint-staged": "^10.2.11", "nyc": "^15.1.0", "remark-cli": "^8.0.1", "remark-preset-github": "^2.0.2", "xo": "^0.32.1" }, "engines": { "node": ">=8.3" }, "homepage": "https://github.com/ladjs/koa-better-timeout", "husky": { "hooks": { "pre-commit": "lint-staged && npm test", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "keywords": [ "delay", "handler", "koa", "lad", "lag", "lass", "next", "response", "settimeout", "timeout", "v2" ], "license": "MIT", "lint-staged": { "*.js": [ "xo --fix", "git add" ], "*.md": [ "remark . -qfo", "git add" ], "package.json": [ "fixpack", "git add" ] }, "main": "index.js", "nyc": { "check-coverage": true, "lines": 100, "functions": 100, "branches": 100, "reporter": [ "lcov", "html", "text" ] }, "prettier": { "singleQuote": true, "bracketSpacing": true, "trailingComma": "none" }, "remarkConfig": { "plugins": [ "preset-github" ] }, "repository": { "type": "git", "url": "https://github.com/ladjs/koa-better-timeout" }, "scripts": { "ava": "cross-env NODE_ENV=test ava", "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "lint": "xo && remark . -qfo", "nyc": "cross-env NODE_ENV=test nyc ava", "test": "npm run lint && npm run ava", "test-coverage": "npm run lint && npm run nyc" }, "xo": { "prettier": true, "space": true, "extends": [ "xo-lass" ] } }