UNPKG

request-received

Version:

Route middleware for Koa and Express that adds a request received high-resolution timer and Date to the request object using easily accessible Symbols to prevent request object pollution. Made for Cabin.

152 lines (151 loc) 3.38 kB
{ "name": "request-received", "description": "Route middleware for Koa and Express that adds a request received high-resolution timer and Date to the request object using easily accessible Symbols to prevent request object pollution. Made for Cabin.", "version": "0.0.3", "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", "ava": { "failFast": true, "verbose": true }, "bugs": { "url": "https://github.com/cabinjs/request-received/issues", "email": "niftylettuce@gmail.com" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "contributors": [ "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)" ], "dependencies": {}, "devDependencies": { "@babel/cli": "^7.6.0", "@babel/core": "^7.6.0", "@babel/preset-env": "^7.6.0", "@commitlint/cli": "^8.2.0", "@commitlint/config-conventional": "^8.2.0", "ava": "^2.4.0", "codecov": "^3.5.0", "cross-env": "^6.0.0", "eslint": "^6.4.0", "eslint-config-xo-lass": "^1.0.3", "eslint-plugin-node": "^10.0.0", "express": "^4.17.1", "fixpack": "^2.3.1", "husky": "^3.0.5", "koa": "^2.8.1", "lint-staged": "^9.2.5", "nyc": "^14.1.1", "remark-cli": "^7.0.0", "remark-preset-github": "^0.0.16", "rimraf": "^3.0.0", "supertest": "^4.0.2", "xo": "^0.24.0" }, "engines": { "node": ">=6.4.0" }, "files": [ "lib" ], "homepage": "https://github.com/cabinjs/request-received", "husky": { "hooks": { "pre-commit": "lint-staged && npm test", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "keywords": [ "Symbol", "airbrake", "bunyan", "cabin", "connect", "date", "diff", "difference", "express", "for", "high", "hrtime", "http", "koa", "log", "logger", "logging", "loggly", "morgan", "morgan", "ms", "pino", "process", "process.hrtime", "received", "request", "resolution", "sentry", "service", "signale", "start", "started", "timber", "time", "timer", "timestamp", "timing", "tool", "utility", "winston", "x-response-time" ], "license": "MIT", "lint-staged": { "*.js": [ "xo --fix", "git add" ], "*.md": [ "remark . -qfo", "git add" ], "package.json": [ "fixpack", "git add" ] }, "main": "lib/index.js", "prettier": { "singleQuote": true, "bracketSpacing": true, "trailingComma": "none" }, "remarkConfig": { "plugins": [ "preset-github" ] }, "repository": { "type": "git", "url": "https://github.com/cabinjs/request-received" }, "scripts": { "ava": "cross-env NODE_ENV=test ava", "build": "npm run build:clean && npm run build:lib", "build:clean": "rimraf lib", "build:lib": "babel src --out-dir lib", "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "lint": "xo && remark . -qfo && eslint lib", "nyc": "cross-env NODE_ENV=test nyc ava", "test": "npm run build && npm run lint && npm run ava", "test-coverage": "npm run build && npm run lint && npm run nyc" }, "xo": { "prettier": true, "space": true, "extends": [ "xo-lass" ] } }