{"_id":"koa-requestid","_rev":"15-d32cb145d5d8422203176ad50a29f743","name":"koa-requestid","dist-tags":{"latest":"2.3.0"},"versions":{"1.0.0":{"name":"koa-requestid","version":"1.0.0","keywords":["koa","request","requestId","request-id"],"author":{"url":"http://seegno.com","name":"Rui Marinho","email":"rui.marinho@seegno.com"},"license":"MIT","_id":"koa-requestid@1.0.0","maintainers":[{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"homepage":"https://github.com/seegno/koa-requestid/","bugs":{"url":"https://github.com/seegno/koa-requestid/issues"},"dist":{"shasum":"671c6ef3c38178ef7ac6bed4d9bf9e162d2077da","tarball":"https://registry.npmjs.org/koa-requestid/-/koa-requestid-1.0.0.tgz","integrity":"sha512-PApwEi6+xIyIal3OEtyebPcoss0AEPab0RNfQPL/GxyL2WoVMo0w+XdyTVCSSt1G+LDvXHXeRRr2/VsgPtMDJA==","signatures":[{"sig":"MEYCIQD8YPEjYlw8GOS8exnUC+EVE+Z22pKPDzIzYq7eEphsSwIhAIkRfi4TdkwU/QkCwh38R+7fwmbGnEW7/6anNo6VqyLw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./dist/index.js","_from":".","_shasum":"671c6ef3c38178ef7ac6bed4d9bf9e162d2077da","engines":{"iojs":">= 1.0.0","node":">= 0.12"},"gitHead":"94a34bb59ad0c543a00ab6c9b77d9e52c9c5df11","options":{"mocha":"--compilers js:babel/register --require should test"},"scripts":{"lint":"eslint src test","test":"mocha --harmony $npm_package_options_mocha","build":"rm -rf dist/* && ./node_modules/.bin/babel src/ --loose --plugins object-assign --optional asyncToGenerator --out-dir dist/","cover":"babel-node node_modules/.bin/isparta cover --report html node_modules/.bin/_mocha -- $npm_package_options_mocha","changelog":"github_changelog_generator --no-issues","coveralls":"babel-node node_modules/.bin/isparta cover --report html node_modules/.bin/_mocha --report lcovonly -- $npm_package_options_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","prepublish":"npm test && npm run build"},"_npmUser":{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},"repository":{"url":"https://github.com/seegno/koa-requestid.git","type":"git"},"_npmVersion":"2.11.3","description":"A middleware that adds a request id to a koa application","directories":{},"_nodeVersion":"2.3.3","dependencies":{"node-uuid":"^1.4.3"},"devDependencies":{"koa":"^0.21.0","babel":"^5.6.14","mocha":"^2.0.1","eslint":"^0.24.1","should":"^7.0.1","isparta":"^3.0.3","coveralls":"^2.11.2","supertest":"^1.0.1","babel-core":"^5.7.4","babel-eslint":"^3.1.23","eslint-plugin-babel":"^1.1.0","babel-plugin-object-assign":"^1.2.0"}},"2.0.0":{"name":"koa-requestid","version":"2.0.0","keywords":["koa","request","request-id","requestId"],"author":{"url":"https://github.com/ruimarinho","name":"Rui Marinho","email":"ruipmarinho@gmail.com"},"license":"MIT","_id":"koa-requestid@2.0.0","maintainers":[{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"contributors":[{"url":"https://github.com/kurayama","name":"Miguel Martins","email":"me@kurayama.net"},{"url":"https://github.com/nunofgs","name":"Nuno Sousa","email":"nunofgs@gmail.com"}],"homepage":"https://github.com/seegno/koa-requestid/","bugs":{"url":"https://github.com/seegno/koa-requestid/issues"},"dist":{"shasum":"87cddf97253f1eb3f0ebeb2cf39b405863a5b728","tarball":"https://registry.npmjs.org/koa-requestid/-/koa-requestid-2.0.0.tgz","integrity":"sha512-qX7Qtlzl7TtQmqB6wlTcD2QNO5ss5qBPtGCXrq7vU3aJhTtiMmimqgD0Oabd+Slon6ajPOOxqE0dzF/Mdr2vYw==","signatures":[{"sig":"MEUCIHSBnvwqSgrxlyYL9UicN8mAw3Tp8NFOkSmnFIvQxPeTAiEAtrRdGsOWbyV3fa/hEBwPW3BY+M/ENf7GHytOfE7WuHo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"87cddf97253f1eb3f0ebeb2cf39b405863a5b728","engines":{"node":">= 7.6"},"gitHead":"03c5e0bfcc109e586a3a692e679be798c11fa58c","scripts":{"lint":"eslint src test","test":"jest --coverage","version":"npm run changelog --future-release=$npm_package_version && git add -A CHANGELOG.md","changelog":"github_changelog_generator --no-issues --header-label='# Changelog' --future-release=v$npm_config_future_release && sed -i '' -e :a -e '$d;N;2,3ba' -e 'P;D' CHANGELOG.md"},"_npmUser":{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},"repository":{"url":"git+https://github.com/seegno/koa-requestid.git","type":"git"},"_npmVersion":"4.1.2","description":"A middleware that adds a request id to a koa application","directories":{},"_nodeVersion":"7.7.3","dependencies":{"uuid":"^3.0.1"},"devDependencies":{"koa":"^2.0.1","jest":"^19.0.2","eslint":"^3.16.1","supertest":"^3.0.0","eslint-config-seegno":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-requestid-2.0.0.tgz_1489767552589_0.23666720045730472","host":"packages-12-west.internal.npmjs.com"}},"2.0.1":{"name":"koa-requestid","version":"2.0.1","keywords":["koa","request","request-id","requestId"],"author":{"url":"https://github.com/ruimarinho","name":"Rui Marinho","email":"ruipmarinho@gmail.com"},"license":"MIT","_id":"koa-requestid@2.0.1","maintainers":[{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"contributors":[{"url":"https://github.com/kurayama","name":"Miguel Martins","email":"me@kurayama.net"},{"url":"https://github.com/nunofgs","name":"Nuno Sousa","email":"nunofgs@gmail.com"}],"homepage":"https://github.com/seegno/koa-requestid/","bugs":{"url":"https://github.com/seegno/koa-requestid/issues"},"dist":{"shasum":"aabfd268ba22c70ed8d28112a02d5a5b9423818c","tarball":"https://registry.npmjs.org/koa-requestid/-/koa-requestid-2.0.1.tgz","integrity":"sha512-Z2axNV7z1QrYNtIZMuBKZtE3gveu4OOlOYQ1uu135LXutlGsCiany4GaT36OOSzoS/BELzW/oO3gSRGehxshjg==","signatures":[{"sig":"MEQCIDjLsHBet6ymYN2igfPUGRtYjxpwHUOigLO9i608+wutAiBpiKM8bJbv9PtmQ7uYDADkjZhzSzOJyHYuDBt+/qFSAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"aabfd268ba22c70ed8d28112a02d5a5b9423818c","engines":{"node":">= 7.6"},"gitHead":"e50d79577a1ec85fcebaea66c597852efee60f53","scripts":{"lint":"eslint src test","test":"jest --coverage","version":"npm run changelog --future-release=$npm_package_version && git add -A CHANGELOG.md","changelog":"github_changelog_generator --no-issues --header-label='# Changelog' --future-release=v$npm_config_future_release && sed -i '' -e :a -e '$d;N;2,3ba' -e 'P;D' CHANGELOG.md"},"_npmUser":{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},"repository":{"url":"git+https://github.com/seegno/koa-requestid.git","type":"git"},"_npmVersion":"4.1.2","description":"A middleware that adds a request id to a koa application","directories":{},"_nodeVersion":"7.7.3","dependencies":{"uuid":"^3.0.1"},"devDependencies":{"koa":"^2.0.1","jest":"^19.0.2","eslint":"^3.16.1","supertest":"^3.0.0","eslint-config-seegno":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-requestid-2.0.1.tgz_1490098240377_0.22202385449782014","host":"packages-18-east.internal.npmjs.com"}},"2.0.2":{"name":"koa-requestid","version":"2.0.2","keywords":["koa","request","request-id","requestId"],"author":{"url":"https://github.com/ruimarinho","name":"Rui Marinho","email":"ruipmarinho@gmail.com"},"license":"MIT","_id":"koa-requestid@2.0.2","maintainers":[{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"contributors":[{"url":"https://github.com/kurayama","name":"Miguel Martins","email":"me@kurayama.net"},{"url":"https://github.com/nunofgs","name":"Nuno Sousa","email":"nunofgs@gmail.com"}],"homepage":"https://github.com/seegno/koa-requestid/","bugs":{"url":"https://github.com/seegno/koa-requestid/issues"},"dist":{"shasum":"bce180ca64cf7ead8910b0bc82114c4471346a91","tarball":"https://registry.npmjs.org/koa-requestid/-/koa-requestid-2.0.2.tgz","fileCount":6,"integrity":"sha512-eYfsokzG/ECm//ET+sR1XCsP1Sru8D5cJ1/NGrZQBs1qVyXCDJBrv6SFoTkAfu/DF3v/GHL23LyQBf4jbPlQvA==","signatures":[{"sig":"MEYCIQDoHUtSjYmVpypdEVBN5ZBMeg0SxQXFYVYclHb9jQYQ/AIhAOmDzKHtHC8ea4uuI2uVmOm2mSCVymz2LOr/KFR/0w5T","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoROJCRA9TVsSAnZWagAAbt0QAIOAyFwGFKCxupvbmNit\n3Bd+kKAkqXi78hR29Jq9Z4u0aLsp9DNL+3afILr24lK02FKaOq1T2YO+ocUh\ntWzuM6/MXzDUE0uE432XtTQBPlQ0PvbGAzyx146tz5WKFkyhDC3yx6Si9t9b\njRZRQT2U+Duj7S2EFQuXWkBU+Zr39bWu2B1ZjXaOAthpkmD0h5NlMJwyWUIJ\nezA6SrFVKC6W7R8HygvyhUlbK+mm6HGdFJZ0ZOy0HhF1GNmA2E84PVrzvc6x\nZ94xI4PUzUSOV5Q87Udw+DA0k6zSJTcMfhhRCdDIvIb+13qcm5ebB2MPYZBL\n3bZqPMj+NBSVgUEUzGlF7vL5FKuDSGB7Eiv+7ZNhF8AjTbmabwb/f917uX1D\nEUVYs6i+4uOJg/i7gnOTkU52Ff9Dpk00a8+mjqjGwbSgNZjBthPkfy3Iyk2c\nzUe3ksQsI1kr7bxC3RpRFdCRgLpgP7PGUqY+6VJfl5ulII+aDI/sfTBA72hC\nwftkodfXruXW8XcHyqBavB8imIdM29ZJP/fWM22umJVVMaknPW6/XuENjECT\nO5XTw6pbLZwWjTINbb2Ohvxlf48NnaP2TWTUSHvn1SJfuhnPch5eVqCt+tgV\nmnBxCOS9tF3vyLnmbmG/8rZXSYqit5gFjB9r7Pu/hiaaDTHSBI/G4taxXPV/\nspvz\r\n=RNia\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","engines":{"node":">=7.6"},"gitHead":"15de67f8382d7f361039efa0d99070c637b65488","scripts":{"lint":"eslint index.js test","test":"jest --coverage --env=node","version":"npm run changelog && git add -A CHANGELOG.md","changelog":"github-changelog-generator -f v$npm_package_version  > CHANGELOG.md"},"_npmUser":{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},"repository":{"url":"git+https://github.com/seegno/koa-requestid.git","type":"git"},"_npmVersion":"5.6.0","description":"A middleware that adds a request id to a koa application","directories":{},"_nodeVersion":"9.11.2","dependencies":{"uuid":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"koa":"^2.0.1","jest":"^19.0.2","eslint":"^3.16.1","supertest":"^3.0.0","eslint-config-seegno":"^8.0.1","@uphold/github-changelog-generator":"^0.8.0"},"_npmOperationalInternal":{"tmp":"tmp/koa-requestid_2.0.2_1570837384507_0.5261015766071182","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"koa-requestid","version":"2.1.0","keywords":["koa","request","request-id","requestId"],"author":{"url":"https://github.com/ruimarinho","name":"Rui Marinho","email":"ruipmarinho@gmail.com"},"license":"MIT","_id":"koa-requestid@2.1.0","maintainers":[{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"contributors":[{"url":"https://github.com/kurayama","name":"Miguel Martins","email":"me@kurayama.net"},{"url":"https://github.com/nunofgs","name":"Nuno Sousa","email":"nunofgs@gmail.com"}],"homepage":"https://github.com/uphold/koa-requestid/","bugs":{"url":"https://github.com/uphold/koa-requestid/issues"},"dist":{"shasum":"8b64c3ee6f33b00583e085e75a2f698b8e8f989d","tarball":"https://registry.npmjs.org/koa-requestid/-/koa-requestid-2.1.0.tgz","fileCount":6,"integrity":"sha512-nGcfLPOoSNb41ZNHLf7E05J+oHSGUeEmpuqLngn375OKGXbVHeEhrZnKhfrzefFz/3MFO1dE6FKwWSTApQObYw==","signatures":[{"sig":"MEQCIGvB5KbkNRXucqOChYjzIcLI/EKHBi83HRp7WFHxORDxAiB2lanU/EHyqXN2YbEX4gWEsYITl79eMr5MaIkbpqgmgg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9561,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoROWCRA9TVsSAnZWagAAjeEP/3IEDEKlVG61arJMtxZb\npbRb2KJyU/pOMjgpF6hlSz9HYlLGZh8vQMOEiKrXXUHrutDKDkezUiUnHXNg\nUl94CSuzaq210aRvfxAnKc5yB23Jgilq+3EoSsJtBguSRTruKQDrHuHEAK5O\nvzD4DWl4ojH7HU10KZPF7YtCkzBE/CYXJtThDtHrmR5VHj4toca4zVwQFvhO\nL8Qgdho6zhgbzF5nIrKDJYZ3QqngKhG2xpygKymvDa9EIeFZBb8Fi1b++LsY\nhrML0ukMA+8MyOyzbImsoz70HORVcI98+y3PZoA63LoeLLmsz0mgat7xSpZ/\nO9fyISFOHmS6qXgrXCkTQFl2T2NbOiCm6NwaxR30R+39syi0Fssg+qQ/FFja\nr9knft1fLjEKTXZHzHERXUxGLYsk3WBYpigLVriJZ5sMRO3XP2l/Tfpk++Qc\nfw1mTTl0gdSBraffBWKm/FVqUAuISBkcpF7aTfhmP8IM8Ylgwiw/ec31YsNd\nkGMbfuAvWXn5C03bfU50LlH/CAFUeM0JEpIYymgYIfOWqICQGVV8mSrIyo5E\ng+lxzFOLvPCLWqcOH5NNdHkr93uWzqy2wFEqrbyQeMY7C3quwAQOI8rlwyLR\nzANulThzQgj65uj9Oa2CjkmrPQenSK4eypquK0NhWmlCC5PH5RZFRpfgGr9v\n3eiM\r\n=QLU4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","engines":{"node":">=8"},"gitHead":"72c4046e62ea5529fdb194ffdcb2c59fe70d04c4","scripts":{"lint":"eslint index.js test","test":"jest --coverage --env=node","version":"npm run changelog && git add -A CHANGELOG.md","changelog":"github-changelog-generator -f v$npm_package_version  > CHANGELOG.md"},"_npmUser":{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/uphold/koa-requestid.git","type":"git"},"_npmVersion":"5.6.0","description":"A middleware that adds a request id to a koa application","directories":{},"_nodeVersion":"9.11.2","dependencies":{"uuid":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"koa":"^2.8.2","jest":"^24.9.0","eslint":"^6.5.1","supertest":"^4.0.2","pre-commit":"^1.2.2","eslint-config-uphold":"^0.2.0","@uphold/github-changelog-generator":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-requestid_2.1.0_1570837397824_0.7352492498268599","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"koa-requestid","version":"2.2.1","keywords":["koa","request","request-id","requestId"],"author":{"url":"https://github.com/ruimarinho","name":"Rui Marinho","email":"ruipmarinho@gmail.com"},"license":"MIT","_id":"koa-requestid@2.2.1","maintainers":[{"name":"botatuphold","email":"bot@uphold.com"},{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"contributors":[{"url":"https://github.com/kurayama","name":"Miguel Martins","email":"me@kurayama.net"},{"url":"https://github.com/nunofgs","name":"Nuno Sousa","email":"nunofgs@gmail.com"}],"homepage":"https://github.com/uphold/koa-requestid/","bugs":{"url":"https://github.com/uphold/koa-requestid/issues"},"dist":{"shasum":"959a25be68352593bafdc1421df09919c683e178","tarball":"https://registry.npmjs.org/koa-requestid/-/koa-requestid-2.2.1.tgz","fileCount":7,"integrity":"sha512-XI/a9rXIGlMvB/v3Jusp18oO5/FFZpJUCYz9cQ7cpWzKRBZyRxtC1Mqa31toKczob8tDaRi7brdNVD3yStxhaQ==","signatures":[{"sig":"MEQCIBrFrTMxJLLukbqAd7exc30tzZqyNBiyODy6541DdaIKAiAMbitIp8VZtbW7ySQaEVAB3jYN39qhi+b9QS7IrrvNaQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8304},"main":"./index.js","types":"./index.d.ts","engines":{"node":">=8"},"gitHead":"f956d014894c2c238add3119d8abee0af947448b","scripts":{"lint":"eslint index.js test","test":"jest --coverage --env=node","release":"release-it","version":"npm run changelog && git add -A CHANGELOG.md","changelog":"echo \"$(github-changelog-generator --future-release=v$npm_package_version)\n$(tail -n +2 CHANGELOG.md)\" > CHANGELOG.md"},"_npmUser":{"name":"botatuphold","email":"bot@uphold.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/uphold/koa-requestid.git","type":"git"},"_npmVersion":"10.1.0","description":"A middleware that adds a request id to a koa application","directories":{},"_nodeVersion":"20.9.0","dependencies":{"uuid":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"koa":"^2.13.4","jest":"^29.0.2","eslint":"~8.20.0","supertest":"^6.2.4","pre-commit":"^1.2.2","release-it":"^17.0.0","eslint-config-uphold":"^4.0.0","@uphold/github-changelog-generator":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/koa-requestid_2.2.1_1700581151276_0.5545455095143663","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"koa-requestid","version":"2.3.0","description":"A middleware that adds a request id to a koa application","main":"./index.js","types":"./index.d.ts","keywords":["koa","request","request-id","requestId"],"homepage":"https://github.com/uphold/koa-requestid/","bugs":{"url":"https://github.com/uphold/koa-requestid/issues"},"license":"MIT","author":{"name":"Rui Marinho","email":"ruipmarinho@gmail.com","url":"https://github.com/ruimarinho"},"contributors":[{"name":"Miguel Martins","email":"me@kurayama.net","url":"https://github.com/kurayama"},{"name":"Nuno Sousa","email":"nunofgs@gmail.com","url":"https://github.com/nunofgs"}],"repository":{"type":"git","url":"git+https://github.com/uphold/koa-requestid.git"},"scripts":{"lint":"eslint","lint:fix":"eslint --fix","release":"release-it","test":"jest --coverage --env=node"},"dependencies":{},"devDependencies":{"@fastify/pre-commit":"^2.2.1","@uphold/github-changelog-generator":"4.0.2","eslint":"~9.39.2","eslint-config-uphold":"^6.7.2","jest":"^30.2.0","koa":"^3.1.1","prettier":"^3.7.4","release-it":"^19.2.2","supertest":"^7.1.4"},"engines":{"node":">=20"},"devEngines":{"runtime":{"name":"node","version":">=20"},"packageManager":{"name":"yarn","version":"^1.22.22","onFail":"warn"}},"pre-commit":["lint"],"gitHead":"cbed8198449709c8f84b415cd8028065b06a4ad4","_id":"koa-requestid@2.3.0","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-5e+PkLz77gFvTgzBpaEYAEVSPEVr78sqJgkvGNn0GXzT9BW3UTsixfdMctujsHlXcT6cLBYoVt8+/EZ0QAoD2A==","shasum":"8d9028ec43940564950f6fd5624ec53af1055bbe","tarball":"https://registry.npmjs.org/koa-requestid/-/koa-requestid-2.3.0.tgz","fileCount":10,"unpackedSize":9581,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/koa-requestid@2.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDDCoPH+8MOJjUx/aF4f375aG2V5ZBfmglORvXsxGH0XQIgFdrm7t7DJyjYfzjHfc1oVCQ2gtVPf0+5fKI0/VZmDfc="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:36942716-eda7-4032-bee9-8dd728ce05d7"}},"directories":{},"maintainers":[{"name":"botatuphold","email":"bot@uphold.com"},{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},{"name":"fixe","email":"tiago.ribeiro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/koa-requestid_2.3.0_1767625611947_0.3237578464875186"},"_hasShrinkwrap":false}},"time":{"created":"2015-07-24T01:32:57.409Z","modified":"2026-01-05T15:06:52.570Z","1.0.0":"2015-07-24T01:32:57.409Z","2.0.0":"2017-03-17T16:19:14.435Z","2.0.1":"2017-03-21T12:10:41.170Z","2.0.2":"2019-10-11T23:43:04.670Z","2.1.0":"2019-10-11T23:43:17.952Z","2.2.1":"2023-11-21T15:39:11.436Z","2.3.0":"2026-01-05T15:06:52.087Z"},"bugs":{"url":"https://github.com/uphold/koa-requestid/issues"},"author":{"name":"Rui Marinho","email":"ruipmarinho@gmail.com","url":"https://github.com/ruimarinho"},"license":"MIT","homepage":"https://github.com/uphold/koa-requestid/","keywords":["koa","request","request-id","requestId"],"repository":{"type":"git","url":"git+https://github.com/uphold/koa-requestid.git"},"description":"A middleware that adds a request id to a koa application","contributors":[{"name":"Miguel Martins","email":"me@kurayama.net","url":"https://github.com/kurayama"},{"name":"Nuno Sousa","email":"nunofgs@gmail.com","url":"https://github.com/nunofgs"}],"maintainers":[{"name":"botatuphold","email":"bot@uphold.com"},{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},{"name":"fixe","email":"tiago.ribeiro@gmail.com"}],"readme":"# koa-requestid\n\n## Status\n\n[![npm version][npm-image]][npm-url]\n[![CI][ci-image]][ci-url]\n\n## Installation\n\nInstall the package via `yarn`:\n\n```sh\n❯ yarn add koa-requestid\n```\n\nor via `npm`:\n\n```sh\n❯ npm install koa-requestid --save\n```\n\n## Usage\n\nUse `koa-requestid` as a middleware for a [koa](https://github.com/koajs/koa) app. By default, it generates a unique uuid (v4) and exposes it on the response via the `Request-Id` header. The id is also saved as part of the request *state*.\n\nIn the following example, the generated uuid is manually exposed on the body for debugging purposes:\n\n```js\nconst Koa = require('koa');\nconst requestId = require('koa-requestid');\nconst app = new Koa();\n\napp.use(requestId());\napp.use(async ctx => {\n  ctx.body = ctx.state.id;\n});\n\napp.listen(3000);\n```\n\nExecute a request to the running app:\n\n```bash\n❯ curl -v http://localhost:3000\n\n< HTTP/1.1 200 OK\n< Request-Id: cc0f12c7-f3b6-4c86-94c2-8c4ce7751651\n\ncc0f12c7-f3b6-4c86-94c2-8c4ce7751651\n```\n\nSometimes it is also useful to pass a custom id via a request header or query string, specifically in debugging sessions. Please note that the input id is not sanitized, so the usual precautions apply.\n\nUsing the above snippet to send a custom via the default `Request-Id` header:\n\n```bash\n❯ curl -v -H 'Request-Id: foobar' http://localhost:3000\n\n< HTTP/1.1 200 OK\n< Request-Id: foobar\n\nfoobar\n```\n\nor using a query string parameter (default is `requestId`):\n\n```bash\n❯ curl -v http://localhost:3000?requestId=foobar\n\n< HTTP/1.1 200 OK\n< Request-Id: foobar\n\nfoobar\n```\n\n## Configuration\n\n#### Arguments\n1. `options` *(object)*: A dictionary of options.\n\n#### Options\n1. `expose` *(string|false)*: The name of the header to expose the id on the response, or `false` to disable.\n2. `header` *(string|false)*: The name of the header to read the id on the request, or `false` to disable.\n3. `query` *(string|false)*: The name of the header to read the id on the query string, or `false` to disable.\n\nExample:\n\n```js\nconst Koa = require('koa');\nconst requestId = require('koa-requestid');\nconst app = new Koa();\n\napp.use(requestId({\n  expose: 'X-Request-Id',\n  header: 'X-Req-Id',\n  query: 'request-id'\n}));\n```\n\nThis configuration would expose every generated request id via the `X-Request-Id` response header and accept a custom id via the `X-Req-Id` header or `request-id` query string parameter.\n\n## Tests\n\n```\n❯ yarn test\n```\n\n## Release\n\n```sh\nnpm version [<new version> | major | minor | patch] -m \"Release %s\"\n```\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/koa-requestid.svg\n[npm-url]: https://www.npmjs.com/package/koa-requestid\n[ci-image]: https://github.com/uphold/koa-requestid/actions/workflows/ci.yaml/badge.svg\n[ci-url]: https://github.com/uphold/koa-requestid/actions/workflows/ci.yaml\n","readmeFilename":"README.md"}