UNPKG

@goodwaygroup/lib-hapi-good-tracer

Version:

Hapi plugin for injecting tracer info into response headers and logs

99 lines (98 loc) 2.49 kB
{ "name": "@goodwaygroup/lib-hapi-good-tracer", "version": "0.5.2", "description": "Hapi plugin for injecting tracer info into response headers and logs", "main": "index.js", "scripts": { "test": "npm run test:jest -- --coverage", "test:jest": "cross-env NODE_ENV=test jest ", "test:watch": "npm run test:jest -- --watch", "test:results": "open ./coverage/lcov-report/index.html", "lint": "eslint .", "lint:fix": "eslint --fix .", "version": "git-chglog -o CHANGELOG.md --next-tag v$(grep '\\\"version\\\":' package.json | grep -v git-chglog | awk -F '\\\"' '{print $4}') && git add CHANGELOG.md" }, "repository": { "type": "git", "url": "git+https://github.com/GoodwayGroup/lib-hapi-good-tracer.git" }, "author": "https://www.npmjs.com/~clok", "license": "MIT", "bugs": { "url": "https://github.com/GoodwayGroup/lib-hapi-good-tracer/issues" }, "homepage": "https://github.com/GoodwayGroup/lib-hapi-good-tracer#readme", "keywords": [ "hapi", "metrics", "plugin", "request", "trace", "heaeders", "instrumentation", "monitoring" ], "husky": { "hooks": { "pre-commit": "npm run lint", "pre-push": "npm run lint && npm test" } }, "jest": { "clearMocks": true, "coverageDirectory": "<rootDir>/coverage", "coverageReporters": [ "lcov", "text", "text-summary", "json" ], "collectCoverageFrom": [ "lib/**/*.{js,jsx,mjs}", "lib/index.js" ], "setupFiles": [], "testMatch": [ "<rootDir>/spec/**/?(*.)(spec|test).{js,jsx,mjs}" ], "testEnvironment": "node", "transform": {}, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$" ], "moduleNameMapper": {}, "modulePaths": [ "<rootDir>/lib" ], "moduleFileExtensions": [ "web.js", "mjs", "js", "json", "web.jsx", "jsx", "node" ] }, "devDependencies": { "@hapi/good": "9.0.1", "@hapi/good-squeeze": "6.0.0", "@hapi/hapi": "20.1.0", "cross-env": "7.0.3", "eslint": "7.21.0", "eslint-config-goodway": "3.1.1", "eslint-plugin-import": "2.22.1", "husky": "4.3.8", "jest": "26.6.3", "nock": "13.0.11" }, "dependencies": { "@hapi/boom": "9.1.1", "@hapi/hoek": "9.1.1", "axios": "0.21.1", "debug": "4.3.1", "lodash": "4.17.21", "node-cache": "5.1.2", "uuid": "8.3.2" } }