{"_id":"trpc-koa-adapter","_rev":"15-f686570890c18035badef9adc61b0a60","name":"trpc-koa-adapter","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"name":"trpc-koa-adapter","version":"1.0.0","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.0.0","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"dist":{"shasum":"a914dc2767643e7fb33c4f1f74489d47ce866d95","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.0.0.tgz","fileCount":4,"integrity":"sha512-3IC8a6zPncy0+ITTcwWcSuB2+MnGxCxlkVybTExfzWoqdXKopYGMM9OIVD1qjm5mjWgLq8cK62TLJ1cNFcalAg==","signatures":[{"sig":"MEUCIBbxWPq1ZqJmZXtdYk272DvA9W36QSCtdq8X2cHoFKG7AiEA/Xc5ANWG/ypq9EJlK+oSqNsVH6vEujIJmmEygEXZ2FY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4588,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR1oaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx/Q//e/iDTSWsaF+f5EsgssSJdOuN8F19/vWh2/jkPlhLcBg2Ocfa\r\nq4DbdeO+J0ADw2Tvi9xIeqyAtCdEEYnY7xHjkLCPxV6Qi/5+WMRyoBvolwDT\r\nVQFY+EetoNuX33MSA4KtitQfE5nTlQTZhfvEQl/UbTEXFr9OsB0Y9MkVtwcR\r\nr4l38wqIPbP42dAm0FF5y0PFx/2HugOmRCwRA2tP/b76UomvdFsPSXY/x3sr\r\naz+2aTHTlwh/HGhI+edi6PoqEa87jQ6rKjG6XAynJcLIJ/pnYc+Rt9dk74WI\r\npjEtnocd0LMA8EpXNDmVaiG4JsnUza9d4TTPvJ+b7NoTmHtM2xxgjc454Wkm\r\nPgadHghnvEHu6VxlUY97SK0e5goOxHxoYnR7qLvaV3pk7uJDhzq8mOEQZpVY\r\ngTmQClXgPfkP1FNaLOldnEECoNuo8VIwZvJqQjNmc98QOhyeL7bqO9lzM0s9\r\nsFXWdd5CrHNhNwbLQCnuzOmhQBQPghmmVHNItmnyCUMvtvIC/46lW7YjibIn\r\n9c0BmLO0JSXu0D/665v99CA9MAj4C8TVX3JqBSI7EAKYwAzWRFBGTm142iwv\r\nriHltHTqOgC3j+fulKIqPe/rqJdNB0HEXS8nnh3hwn5k/OEVlc916nVpAJys\r\nc6JnoNEuG2Dji3rKWG5vEtfXqyqWoiBn2m8=\r\n=jr+H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"678a5479e1486124f91f00d933c310864a5ea39d","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm ./dist/* && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"_npmVersion":"8.12.1","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.4.0","_hasShrinkwrap":false,"devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^9.27.0","@types/supertest":"^2.0.12","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@typescript-eslint/eslint-plugin":"^5.38.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":">=9.27.0"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.0.0_1665620506161_0.4369975527877168","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"trpc-koa-adapter","version":"1.0.1","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.0.1","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"2fc8e54963008d92e5b0940f03051188d6c0c3b4","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.0.1.tgz","fileCount":4,"integrity":"sha512-LVXX/Cmnd88XF7SesOZIa1AQMEZwCzxgCRm0yKNMxxDPBxUDQr8C8toKQZPJDw44lt73eZcW1A7xJExdz3lnGA==","signatures":[{"sig":"MEQCIE/0JuDvBFKIwORB9XAOTVkn/AulS1aOGtY80UNfneUGAiAOw3h45KHaUyzrYzWPC9MWxY6aDh04KXOGxN8ZyMPLBw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR1yDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Nw/+KxmVL/H/Wprh1rQcyA87A6ORAmMP5938K1xKcmVxjYljLzUj\r\nMJBABIb25RFr6rzSBJ/IRnWyW0d11Dv2R4PMbo7fvq9sHF8qJk4dyEB5LYKb\r\nc3AVlOi+BHzrXg8ZRDT5a4UFVtCtAI4goJABEit4LUlThSWQNy42iURltT5b\r\ns6UXWy3doP4jALlepBESpOeY0SV/YD6esKZA6dnk6hozaSGmLQpFU7V0ubOk\r\n8f5dAYg8EqqqFnYt7rgBHJRjHaWpw9un6+b1I+V9UJl0m/E26i1Dc4uY5RcO\r\nren3Qczt3pKJSNDSSWRiyI78Cj7TvaAyjiDpTGC26Z+s//vGj3lgyjOOmMA/\r\ncAvuSXYGYSpnp070JC70k3J20vtJYvmT0Owm7CIqhce8vXUceuh8+Tpdba+5\r\nL3hv8cSJLh3ZRj/NFKI/OVvRyW88RPX0pe/6PAXSpqWJULnklTHCSkETZ4E9\r\nkNXIVpUXqJxcmfaqMRpsxzaoOFoX78NtEA9eHoxcoErMoZFDrgXZiVWmTx8z\r\nabDOdGib4kP1kjHBdCHilNyqj5yQq470PJb97LiqRXIOZbxYSk/lthu4B597\r\nZgoisZl/xUw7ZOrTdx/yaqm6bd7njohSZe3ZR5Q5dNAyFwx9t6pzGpWlVwl8\r\nyQNPj4EBKgk4IYAd2uM1seaLalyMAAk4rEE=\r\n=oAHV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"18cdf6efbbbdffefdbd6fb15b6d30655065d4b94","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm ./dist/* && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.12.1","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.4.0","_hasShrinkwrap":false,"devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^9.27.0","@types/supertest":"^2.0.12","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@typescript-eslint/eslint-plugin":"^5.38.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":">=9.27.0"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.0.1_1665621123509_0.3667162039774725","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"trpc-koa-adapter","version":"1.0.2","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.0.2","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"8186a15a85c95d099b7a3531a3ac31de8011a7f1","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.0.2.tgz","fileCount":6,"integrity":"sha512-YrPML57wPKNn6VmfSD14TaBGvaj0pxQrg/oxJaGhf6yaSfM10+PaPFKDE81jnRba/WEKzN+TfAnQSWozYXo+fQ==","signatures":[{"sig":"MEQCIDnL7lTEhReGIGuNdBCL1ee4p2+91FJru8l7GmOvzn8pAiBiBwwjYwewgjqTKLRigtTuQGUdR+mp5hJjhENBKFlwOg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZemCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKEw//fT2lD9MMgVOqrTrsm3583qSRtaKk00tuaUXuweWWU+89lZWM\r\nSoo3CoKwyFGFsCT1Bo2ihF0ymHFWQoRgVZjmD1EIsq91QN8E5vpBy+rFuFBQ\r\nC2CMuHXMfdYRqhwQH0FWzPEid98hMWbquIh/6TPpMObToUxgtRDnP8oxCGbK\r\nIs4vyY26oAY04mvD8A2KRL95yi3xw6ucxlPyTHlVXI/DljZwoUt/vKt1XseY\r\nKAn4IeZ9u9Iwy4PnAx7nDSv2HrRFukG3lfX+xoUzNU4uI3uBAvGxFP2pIXNm\r\nunUQ/KZjgiiSGKDpLJPHy9QzH3q4UP9LYO39+DfpbXm2KW3z2WFnD2EGhHN1\r\nHgInUb8A9oFH/lhLD9yFzZP/TjOM5WYHOSMVMPT3X8Yb08uZiZ8xW0Forpgy\r\np7eKuJDnUDiCgnqH1SUg1A+dJ5tJ1jFQL2SKaSLCW1NHZuIj7H3tq/AJznn8\r\nzeDz7TyHQeUwMEMMmUybi2aZq1CKJhN0A7ZiidZGdInBZr8RzxLa1xg7nDOx\r\nn/Jmy5VmwLBBMKdATl2rRBKG8rGFdYnr+DrvecHcoPsuUOTwuqvgOJYxWBTL\r\nxtQ3eNhcOpeeNPxAyco5pVTHKl0iA7sSH9Io+8h5+hN+T44dnlr+EStwoXWg\r\nYH4MS0PN/Vr0Qq3hg1eCqV+nZLKw5/8nYVM=\r\n=F7Op\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"8cdf4fd08c3ffc21e7c968a79dfeab0163242a23","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm ./dist/* && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.12.1","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.4.0","_hasShrinkwrap":false,"devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^9.27.0","@types/supertest":"^2.0.12","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@typescript-eslint/eslint-plugin":"^5.38.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":">=9.27.0"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.0.2_1667623298613_0.15162337795765324","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"trpc-koa-adapter","version":"1.0.3","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.0.3","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"92f5c6831001953b364f0c1df4c5a69261a0a70d","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.0.3.tgz","fileCount":4,"integrity":"sha512-XXldlOh8AdV0N7663Ky2HFzxev4LH2TBOOs/BXxD3TTv86cRf6rF2NYFXKUpEZ98eLil0y/OZSO8gAp20zgp8A==","signatures":[{"sig":"MEQCIGAGFo8vKqTnzZKQgocPRo6rhk3xeXRN8sRSL++mqFH1AiALoomUHCGgP56IjMbE+D5livCBy1mAkwVZOtCKmyPy5A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZfSHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo55g/7Bl59Pv68zqNVSAXR9QjHDI+hJLgWmZSILkJA/RGwzEYgKgw4\r\n3il2++lciuCRiF/941I9hOHp+/QneQBqUZSGOADjfNVVMa6kmzP5VkcFhKWM\r\nr5+M0LAR85vGpBzwbiA+XVSQaRUZVW47tYSWgghiSPVyTxCtGkS3Nu/ibWq4\r\nrnnlK1KrEO9ZkT2KxkzSjfN3Df1/XWBHda9jAf/B+RJlzd4qS12r+7HT3kay\r\n651GQoSLqcx/co8FZM4Rpu4e49yQhiQvOXrQfyrmlhmPf9O3Bs+KbBVnzxrX\r\nqzeeg3o701+AtsVzHYlLf4JNswzompJZdNhRsrBOTuppL6EaMroci9+MkXfg\r\nJGF4MyJ8VHWfKRPItGUGcBCplMSt7EIP4IQ8yXNmk66unbSTGIl3NIBAzThU\r\n6Y7HsdL5Ivn3sxAO649tkkGEmDkNzafQbfXf0ZZs7HWLK18T1ElZH6s746sb\r\nDmtPamcMu67gHyVKgAblgxT9Lfk+e003ye5ZCMzJh4db2GJql92n+4CxRUsj\r\n0JOGpznHvl9SGQDcOsNIi/ERJvYydDKkoVpVQ2eXboTw1WBJN/tN+q92GEFg\r\nZoaB/TMBP6Ohf12c0o5qMm2b95lJ0P4y3Fiqyr7PVK45M97KCje1qGLJyFaX\r\naB8AjGSNtbYjMBQVfQ2TIEY85vK5IMmIic0=\r\n=BYXd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:trpc-koa-adapter-1.0.3.tgz","husky":{"hooks":{"pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"_resolved":"/private/var/folders/6f/pghz54f52jldmk57cz3gvy640000gn/T/c7f80104ed8b299b2f9714c27e64f6c0/trpc-koa-adapter-1.0.3.tgz","_integrity":"sha512-XXldlOh8AdV0N7663Ky2HFzxev4LH2TBOOs/BXxD3TTv86cRf6rF2NYFXKUpEZ98eLil0y/OZSO8gAp20zgp8A==","repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.12.1","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.4.0","_hasShrinkwrap":false,"devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^9.27.0","@types/supertest":"^2.0.12","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@typescript-eslint/eslint-plugin":"^5.38.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":">=9.27.0"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.0.3_1667626119157_0.6262523334306147","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"trpc-koa-adapter","version":"1.0.4","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.0.4","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"9995a4ecae0b56c3fe3368c5fc74775871743ff7","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.0.4.tgz","fileCount":4,"integrity":"sha512-WXb5tSiHSZPDEeR/UsIZPM8zplKM6zFYwkjeTAVqzoVPjiO/cReDaiCuWPOxvkM9FnbydHcNfZGYAFvmmr+8+Q==","signatures":[{"sig":"MEUCIDPCHM/qFRCaEkBEtKF3axcVf5J74S09BsxFmerhz7LJAiEA2PhnLCKjgkRtosjkSz8v/E65fo0AfKCJNIF4PUnB8/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZu6LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEGA/+PNdjtoSSEASfuj1OK3JXC1U2XuRyOJb85Afw6teIaBabNmax\r\n+hwMOmIEsNLLNk7KfCgC9xguS3igHPvzBf1+6BuOrDsyoY3+gdheIwAfcGo4\r\nPxKJWpCderXalJhe2zCv8CtMX/a2vVl6vQRI+e2PLSGSgcZwVTmScEAUyRz0\r\neG8eMEzifFJkyRPVJdfwI4O1KQTwfRGng/jS5UO2GpIguyOtlYh1C9Qc2mHb\r\nlE2RSMT29v6t3BaT8IUVLjFgl/uYjg6D91QXa3FSn1E5Ke+N/JxW5ly4ZGsn\r\nq4K1+lYosz5jYXcjP2rEmCQZeGD9t9oOfRdsCWZGY6WbEGjFieGl3X6bcKFd\r\n9XMXeGRNNqZYjHVFjBdSIRmfOpSB+ivEcUiMAYMI1/sH6PybfYXYkZ0ZS27F\r\nBHWmRFY3QbQXY+i9OpcHrrtEhvsZJv/Vhp6MwoAG0STtLa//aCvBgr3oZYbL\r\nVIfnF08uwiRUQp6P9nwEdTaZ+E0bDhGjNdQTjTzwDK6Q7LdLryUncWlX7BrK\r\nLtg9JsiZElicRVpy9HqhdRvkknhLjceK+hLX3QQ+m0Ts5wxRQpEpJpKWxogc\r\nUEi3heKYaCE53C+b4wSLh7pYTSrvsV82XGnb8/CTMe8qWw8MxxhhObKwHm4j\r\n8Ep/0tMf1COAyrcQNzg0WUvQ7uEGwzfwvVY=\r\n=U9t/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:trpc-koa-adapter-1.0.4.tgz","husky":{"hooks":{"pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"_resolved":"/private/var/folders/6f/pghz54f52jldmk57cz3gvy640000gn/T/e7aba3e27682db8fb5a2cb82effab6a6/trpc-koa-adapter-1.0.4.tgz","_integrity":"sha512-WXb5tSiHSZPDEeR/UsIZPM8zplKM6zFYwkjeTAVqzoVPjiO/cReDaiCuWPOxvkM9FnbydHcNfZGYAFvmmr+8+Q==","repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.12.1","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.4.0","_hasShrinkwrap":false,"devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^10.0.0-rc.4","@types/supertest":"^2.0.12","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@typescript-eslint/eslint-plugin":"^5.38.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.0.4_1667690122874_0.4780173076494807","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"trpc-koa-adapter","version":"1.0.5","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.0.5","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"4722561e69d4ac045b6e1c758d8b1b63a3b5a035","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.0.5.tgz","fileCount":4,"integrity":"sha512-K+y/i7CXzJxsywsHPuGmbdsWugL/1EEZWnEQi+Wmkz4rc7DcjLlKmp1Hd6FuYxGzEmagg3q3B9R4P+3tnNEzmQ==","signatures":[{"sig":"MEQCIHBDFXhIH7ENbtY6poKbrx+AOOtaG9PmJChc/j4I6IXgAiAXF2wU9hkxDVpWgh+Fb5V9FmiFE9b3pCxHh+Kp1eFvWQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjm+ZDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoN1w/9F9t/AcQcTydjOeX9a+RGLE5qVSxAgDkIZttXbss/LmQCWmGb\r\nhd+zLQLRTgU7/Q1rO/kqaXyp6sP/zac0O9/QA90yIp/RCvdOs8f8Je/jKDh/\r\npfiXsvhz1rLFdhcKbqHrhWfn6o0/AscrLojdxBgnzY63wJ/14gM5XCUzAjjd\r\nBqKJBHjzCvn45mHHgjjkW3rNTvdzD1rVZB3clSa3445h63cWHpkY42d1quxs\r\nCx5FLPFdsj/MkcOV4u4YmR+Dz18HcbuD1hAoykLx690e21VKbWT1QtsbRyuZ\r\nzFSgSJhv+aK7ZGOI7z8pkB7aEgSaxjWRUVG1KSwBr8vP4UG8mlTHgN36XFOe\r\nlqbhlgH3I9UjRrIzTYgOlH4lrOwrMyykKYVip2AyrnMJBOOZdt3y0iHWrqpr\r\nEVQlv1n21p2W9YxZrmm95MsojnZAMtQwHExgDf/3RH1lo0EdcxYgaGeoiJkX\r\n+uDb+dH4YWDfZPMHwqi87E/wnSGH1MyW0BtctkvkyVD8eUAe1/8lev+yFkgs\r\n/8v3t01HFf561c0eGhnoGj9qE2a/S9ZfSiOGvHOTolxgZAxajZgBR9cn/vBv\r\nZh/T6NTi6ttV22d3yrMa0iwhFmqb+Nyv6yvGXUq+MqMUov2vwzujFu+pnDFS\r\npZ+v0/lgJEm+qZC4aJMbIHLfYlE8bK9DCKM=\r\n=Cy57\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:trpc-koa-adapter-1.0.5.tgz","husky":{"hooks":{"pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"_resolved":"/private/var/folders/6f/pghz54f52jldmk57cz3gvy640000gn/T/4b07bb94e25dd9eae3a73e1b367109ea/trpc-koa-adapter-1.0.5.tgz","_integrity":"sha512-K+y/i7CXzJxsywsHPuGmbdsWugL/1EEZWnEQi+Wmkz4rc7DcjLlKmp1Hd6FuYxGzEmagg3q3B9R4P+3tnNEzmQ==","repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.12.1","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.4.0","_hasShrinkwrap":false,"devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^10.0.0-rc.4","@types/supertest":"^2.0.12","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@typescript-eslint/eslint-plugin":"^5.38.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.0.5_1671161411442_0.5038822040698276","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"trpc-koa-adapter","version":"1.1.0","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.1.0","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"946b3ceb51a9d49107e5b1b20de2254caad7b24f","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.1.0.tgz","fileCount":4,"integrity":"sha512-hgBhEuvtpuWdC9oJYMjv/WvGWpAa3TnyOAApYdtORD0xxwNDvQn+0eGYDqmJ71Ri8rnCqzZR2m4efvZ6OhM5dA==","signatures":[{"sig":"MEQCIGwE6+nguaOFaCxZ1uluUsgjdLD9utf/puxIRGCVzLUUAiAdUuXjMIPMfwz3gAzT2jqitjOm83bGpTdoSR5I9BCALg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5420,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqucAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNOQ//QD4tWyCk3sTXeYifOr95NrBy39TEwKvOvHcey6iAtiYwgSPV\r\nrOATopKVbfuVHUENDEulL8LTy2wyJkWOGQEck1GkWH7x7uGu5+LlYYXkPl0/\r\nVUhtIgaXgqXmOjZDW4dmuCsKBphxJDmRtIk19a3T9OFiHyY6wFD2sJYU8RcD\r\neQ7JjeZ2Mo8yQ36DGAOu5htXKdOa4YcylmjjxRYUBHsMFNxNfrxNIlSoDs77\r\nj5rA5uwbxhE7G0w+P1ocHT4sbGBxGbMnRu9LHAwWHwcxB28DoJoomKoJhjRA\r\n5EuNfMxTIH2QhJfDTz0u+3FFMBwB4c08oeSt9RmdNA2dcRwm34kdk7PKREkI\r\n4VY+fV0Xt1NmGD5KOckhmmR8kGnQ5Bd84/ncyWVk4d/YFtOx2JymbaUMUIF4\r\nmA1Y0jDzt82TPlOuNVIHzlQVSStW1cVF2kHJIUrsKu0mty5WSTsIHJNNaaMS\r\nbSIYoZed44YB7oqM7CmxDBlAgiXtNGZ+fKMyYSQiHPvqy6KK8K98xiVI1OWi\r\nuWpVE0KmwtZTjKK11LIcoAmzaacL55GfyZ3qp1p01Jz0ZEoYOA8XFU88kJCH\r\nGEKfONjk8VEzplznXt5OPX425R/vuukPyvQ7Zp80TnV7aDS3YcrM9Xp4+fGE\r\naau8bIEUQEqhlcGxyr7TYqzu+1PJvWn7SV8=\r\n=DNnB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"9e48ce2c8ccfbd429ce9868845b88ef42c410a01","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install","semantic-release":"semantic-release"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.19.2","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"packageManager":"pnpm@7.19.0","devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^10.0.0-rc.4","@commitlint/cli":"^17.3.0","@types/supertest":"^2.0.12","semantic-release":"^19.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@commitlint/config-angular":"^17.3.0","@semantic-release/changelog":"^6.0.2","@typescript-eslint/eslint-plugin":"^5.38.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.1.0_1672144640765_0.9590029384210559","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"trpc-koa-adapter","version":"1.1.1","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.1.1","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"da33191ba80ef3a0a5abffa4757fe70a419b587f","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.1.1.tgz","fileCount":4,"integrity":"sha512-er1/g3rtjvP78KidIcvA84VwbNFtR0j+e9RyWupIx8M6Zv2ZkyqHy1nIXBBgej0QaSyofXl7eJfTVlsbNtbnmw==","signatures":[{"sig":"MEYCIQD0F8/wpbJoSfgh/3mfbcxEjoQ63eCkFZJu7R+SIDlhTgIhALp05xCli5Sqb4UWgvX86weGGKYpK5NOhHyJnDuE3y0V","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrLZyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOWQ/9GWvS4BIpyjOgUAVqBI6dEqhTenNqSk3QSv/oiLbgrV+KYv6X\r\nI5Dxh/X1VUeA3dP/LFvBcfxj+HzLIbGlo6pvfFZKxM2AKrkB19zfDBO7Zw6H\r\nvFEoUz4mo5L/T76K/JfX05ig1Ihuu/2Q+Y+QWrBzMpJPb7yREkT40MxRUOuP\r\n3I40apZa1znyl7ecxCOrOma0W/xJWntyN9dviqM3u6hmRM9SLUN1GcWtQFyj\r\nKByUymkdJps+baXNDaqBwylXfYgOYVI/tDuLg0T1OfQVvWq4CFvC6McN8pgt\r\nSO4FX0d2XrZUzaV/ygNUY3yIQaimjj1CDHLZc5BdGw7WYeVgDa0fsn71V3IK\r\ngRaHiCYd/oZQB6MmwG6HMmaHndoACS0/ZY3VbdqEjYpONSygMdTnQmcqMYvA\r\ncTN1UE+DGtWyRqQxjhaeFf2f6coxVq1MSveY+iWXqnvBqU7U5RnLhAPQytTN\r\nWePUvi5dfUlRoInJdrJ1vH8RR5qqxFkpVXNmmWewWAQbezEf66WH+C5Jx4U1\r\nx/jq1kwPotxpbUDT902+5wcqcJtC1Sgi96v+JICpSeQDUbSem21F0gGt/w55\r\n4djnQ0PtsPQjO5vJ6nK8fKiXy8yUELpvVbsjWdENd/aIPOd4RcLt0s+5/TZY\r\nT+WjzGcQDXEepRAndgDdzrI9IWQJZFIn1mk=\r\n=3mhI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"8d4880fc44129d583a1542adeee675199ccf68f2","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install","ci-install":"HUSKY=0 pnpm install","semantic-release":"semantic-release"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.19.2","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"packageManager":"pnpm@7.19.0","devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^10.0.0-rc.4","@commitlint/cli":"^17.3.0","@types/supertest":"^2.0.12","semantic-release":"^19.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@semantic-release/changelog":"^6.0.2","@commitlint/config-conventional":"^17.3.0","@typescript-eslint/eslint-plugin":"^5.38.1","conventional-changelog-conventionalcommits":"^5.0.0"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.1.1_1672263282435_0.598088216449211","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"trpc-koa-adapter","version":"1.1.2","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.1.2","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"027217707024811c0b0738ab50b90ae8a04a902b","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.1.2.tgz","fileCount":4,"integrity":"sha512-34JYpyzaVTBa1gSJcIti0VDSvT2Dkvh70RvTXNtgZ9jMPOBgz0s3nEk0hct9yI384dw2K3S0jl0i642dXwo3Ug==","signatures":[{"sig":"MEQCIHNOMqW/+8qVRKS80P/yFCVFTiMpXJVBhxsjfo/V8OyBAiBvcmOlMViYTu0E+OrCzhKfXbn9Xknx/D9zawyaDW+SbA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrLfSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpVRAAnmxJ4rWvCWyFR5NiYPAKglA7HYa6cYryyNYwx+g3CeuL66l4\r\n0FqJN0qy4rYZICyRlCsD8C/PDhuJOIrtEPduOynZo4oEHrcLOk/6kxrpRehI\r\nEFcu+AJzmBKxdxSFe6v/DRUnBx5g5JHqd6gV/Tfv9hV0FxMthrWfOwjwQJQh\r\nrKVUsSps/zxBJH7Y359BShCNLjBF943ZGFB9FHRQIv4q/s1oDWFVUUZhEEhQ\r\n+FpxqwjQFrnnkK46GJiWa45Mt5url52H8UcZrEsoERugNzKy+YMrc5sPwo5e\r\nEuI+AGxK1D0iWgGOlpK2X8ohTwV508SAPErkYYDbEkqDJg8e0BTAB8mF26NP\r\n62WiXaHh9ZujatnCNToXZ6qksUIwOA9ovG3RA1CBEctAhvCHV05bKDfxTbkl\r\nx3RKtl7pNzViBi5ItrIsFokw664kpO1RlMPnuvY707vKlmwOGYoSS1tvKBj3\r\nooURx5EFNNs5n6Hmz8+X8EBFK51bACxdnkXPV9q+BT9xe1Hird23Bs2x5snX\r\nGgE48ntjbhC2GmCfgGRkZc9gMFT0uO6U+6z+Z7HEgSBxkC66R6elMTctZ+sG\r\nn9nEgYxgsKVW9T7Sl7NcZahuUUeyrGoTF3GkTGpAloOlCQ2gIAXwJgloG0su\r\nVRnUt8qnCtH+V5BEkYb46tdYVntutAWW4LI=\r\n=dhA1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"ff219415fbdf34e7e06821d8c787611f17c76b84","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install","ci-install":"HUSKY=0 pnpm install","semantic-release":"semantic-release"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"8.19.2","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"packageManager":"pnpm@7.19.0","devDependencies":{"koa":"^2.13.0","jest":"^29.0.3","husky":"^8.0.0","eslint":"^8.24.0","ts-jest":"^29.0.2","prettier":"^2.7.1","supertest":"^6.2.4","@types/koa":"^2.13.5","typescript":"^4.8.3","@types/jest":"^29.0.3","lint-staged":"^13.0.3","@trpc/server":"^10.0.0-rc.4","@commitlint/cli":"^17.3.0","@types/supertest":"^2.0.12","semantic-release":"^19.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.38.1","@semantic-release/changelog":"^6.0.2","@commitlint/config-conventional":"^17.3.0","@typescript-eslint/eslint-plugin":"^5.38.1","conventional-changelog-conventionalcommits":"^5.0.0"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.1.2_1672263634018_0.9794005765954144","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"trpc-koa-adapter","version":"1.1.3","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.1.3","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"14534601a158f127b1f6454da1709e6fe7011582","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.1.3.tgz","fileCount":5,"integrity":"sha512-2rdmVuuFGLMyrUtW6ktroAzBsp2fc8oFuOEhNAcroJBei3DPF/UISr9qAeQX4MUEi9FCT2+bi4pBPcm8HKj8PA==","signatures":[{"sig":"MEQCIHKtFz7K27PICDutTq/gJTdpQ64IkkytM3o2WhojYPMEAiAKA6kdANEKuCFhc7eraE14C5UyVggOK40tlT5Qxr1LDQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8666},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"23abe6ba844d7353209ed51fb5bac65887c9b4fc","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install","ci-install":"HUSKY=0 pnpm install","semantic-release":"semantic-release"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"9.5.1","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"packageManager":"pnpm@7.19.0","devDependencies":{"koa":"^2.14.2","jest":"^29.5.0","husky":"^8.0.3","eslint":"^8.44.0","ts-jest":"^29.1.1","prettier":"^2.8.8","supertest":"^6.3.3","@types/koa":"^2.13.6","typescript":"^5.1.6","@types/jest":"^29.5.2","lint-staged":"^13.2.3","@trpc/server":"^10.33.0","@commitlint/cli":"^17.6.6","@types/supertest":"^2.0.12","semantic-release":"^21.0.6","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.60.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.6.6","@typescript-eslint/eslint-plugin":"^5.60.1","conventional-changelog-conventionalcommits":"^6.1.0"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.1.3_1688355500149_0.9776700232504203","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"trpc-koa-adapter","version":"1.2.0","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.2.0","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"108d38d9e2c9b1f2209c550a08f0e263ad2b3ba3","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.2.0.tgz","fileCount":5,"integrity":"sha512-NkWCnN0jIFKznjPVIo6tIPdKHhMCjGouPbNmRNzRIUb6fSAdMvhEXuKXtcQHayh7vbyJTI9v3lFiTGSZUlaYoQ==","signatures":[{"sig":"MEUCIQCydDv2z7j/+x9hbDDiIJhJKkccbmxlcAIymbAqaQ5jSwIgJliB8xoCpkpau9ajznzEW85blhqXRYcn/k4mRzbGQ6g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8623},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"6e64a5c69b99084a9ce2447891031d0bd2448d43","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install","ci-install":"HUSKY=0 pnpm install","semantic-release":"semantic-release"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"10.2.4","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"packageManager":"pnpm@7.19.0","devDependencies":{"koa":"^2.14.2","jest":"^29.5.0","husky":"^8.0.3","eslint":"^8.44.0","ts-jest":"^29.1.1","prettier":"^2.8.8","supertest":"^6.3.3","@types/koa":"^2.13.6","typescript":"^5.1.6","@types/jest":"^29.5.2","lint-staged":"^13.2.3","@trpc/server":"^10.33.0","@commitlint/cli":"^17.6.6","@types/supertest":"^2.0.12","semantic-release":"^21.0.6","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.60.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.6.6","@typescript-eslint/eslint-plugin":"^5.60.1","conventional-changelog-conventionalcommits":"^6.1.0"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.2.0_1709784690834_0.46101037768636277","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"trpc-koa-adapter","version":"1.2.1","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.2.1","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"c519d2cba10b3fbb4e70aaa6478bec8e6184ceb2","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.2.1.tgz","fileCount":5,"integrity":"sha512-0VyNPJmjYgKN7+z5S4ydJQuIUfbaGqJ7dHjqXJ4H0y+EKFvf2TJv3Nma3mKHNQTJ/RS0cuXtIQ9sHc/5azPzcQ==","signatures":[{"sig":"MEYCIQCEp+A9EGtHzJuOzv9ZuzkjqXpjZ81b7pgi5OBkw5z3sQIhAJoYHzYV4J30uH/AzAYf3Pdllcc4KOMEZhjw+EOBnmDu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11387},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"pnpm lint-staged && pnpm test"}},"types":"dist/index.d.ts","gitHead":"84e4f97d3103d35487f8b509e6ec35ca3cfdc5a4","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"rm -rf ./dist && tsc","format":"prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"","prepare":"husky install","ci-install":"HUSKY=0 pnpm install","semantic-release":"semantic-release"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"10.2.4","description":"Koa adapter for tRPC","directories":{},"lint-staged":{"*.{ts,js}":["prettier --write --config ./.prettierrc","eslint --fix --max-warnings=0"]},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"packageManager":"pnpm@8.15.4","devDependencies":{"koa":"^2.14.2","jest":"^29.5.0","husky":"^8.0.3","eslint":"^8.44.0","ts-jest":"^29.1.1","prettier":"^2.8.8","supertest":"^6.3.3","@types/koa":"^2.13.6","typescript":"^5.1.6","@types/jest":"^29.5.2","lint-staged":"^13.2.3","@trpc/server":"^10.33.0","koa-bodyparser":"^4.4.1","@commitlint/cli":"^17.6.6","@koa/bodyparser":"^5.0.0","@types/supertest":"^2.0.12","semantic-release":"^21.0.6","@semantic-release/git":"^10.0.1","@types/koa-bodyparser":"^4.3.12","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.60.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.6.6","@typescript-eslint/eslint-plugin":"^5.60.1","conventional-changelog-conventionalcommits":"^6.1.0"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.2.1_1710386016227_0.2753111962333854","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"trpc-koa-adapter","version":"1.2.2","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.2.2","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"53d3b8621e2333b1b5e55ac7c55632a896a74d89","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.2.2.tgz","fileCount":5,"integrity":"sha512-8kzRE8XU9X0PxL4fvCdIrPjGy/Fsd6v/GY0u1jv9D45W0mv+o+KiikR7s23wnfSutU8MIuxvXNqmSDYARqg93g==","signatures":[{"sig":"MEQCIFSjqZyF87aBZm3t2AGTMeKVyngLnaAbbvVJAHB05gbmAiB0j7TFgb7HJRETkMVq6oXRCwLMiTiLDkxeqkNAYvk7jg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11259},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"76dec842ca3a92410cad5af72f536f9ef04c5180","scripts":{"lint":"eslint --fix --max-warnings=0 src/**/*.ts test/**/*.ts","test":"jest","build":"rm -rf ./dist && tsc","format":"pnpm prettier && pnpm lint","prettier":"prettier --write --config --ignore-path .gitignore \"**/*.+(js|ts|json)\"","check:lint":"eslint --max-warnings=0 src/**/*.ts test/**/*.ts","check:format":"pnpm prettier && pnpm lint","check:prettier":"prettier --check --config --ignore-path .gitignore \"**/*.+(js|ts|json)\"","semantic-release":"semantic-release"},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"10.5.0","description":"Koa adapter for tRPC","directories":{},"_nodeVersion":"18.20.2","_hasShrinkwrap":false,"packageManager":"pnpm@8.15.4","devDependencies":{"koa":"^2.14.2","jest":"^29.5.0","eslint":"^8.44.0","ts-jest":"^29.1.1","prettier":"^2.8.8","supertest":"^6.3.3","@types/koa":"^2.13.6","typescript":"^5.1.6","@types/jest":"^29.5.2","@trpc/server":"^10.33.0","koa-bodyparser":"^4.4.1","@koa/bodyparser":"^5.0.0","@types/supertest":"^2.0.12","semantic-release":"^21.0.6","@semantic-release/git":"^10.0.1","@types/koa-bodyparser":"^4.3.12","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.60.1","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^5.60.1","conventional-changelog-conventionalcommits":"^6.1.0"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.2.2_1716254215456_0.10302154930066765","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"trpc-koa-adapter","version":"1.3.0","keywords":["trpc","koa","adapter","middleware","typescript"],"author":{"name":"Blair Currey"},"_id":"trpc-koa-adapter@1.3.0","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"dist":{"shasum":"74cd6156623f882b9dc06d091473177a36ab7b8f","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.3.0.tgz","fileCount":5,"integrity":"sha512-fmjxozTLztaQaq1k2Y/YaMEVZbMOcAE1aFsSQm8kMeBllnhHNaPZhfMGXiKo+Ovj8F/6BVSGkiKks6liLavdhA==","signatures":[{"sig":"MEUCIQDL3UGCYLRM8pOqZQg6bFLLjJqeh34YpmhcsmS9nb4NegIgUDzHgGkXzpIUkDvBPdbj1zfqgd3Ld3PZZ34UzujAgqc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10562},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4b7899e16a367cf8bad7fe298dee7e9eaa661d46","scripts":{"lint":"eslint --fix --max-warnings=0 src/**/*.ts test/**/*.ts","test":"jest","build":"rm -rf ./dist && tsc","format":"pnpm prettier && pnpm lint","release":"pnpm build && pnpm test && npm publish","prettier":"prettier --write --config --ignore-path .gitignore \"**/*.+(js|ts|json)\"","check:lint":"eslint --max-warnings=0 src/**/*.ts test/**/*.ts","check:format":"pnpm prettier && pnpm lint","check:prettier":"prettier --check --config --ignore-path .gitignore \"**/*.+(js|ts|json)\""},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"repository":{"url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git","type":"git"},"_npmVersion":"10.5.0","description":"Koa adapter for tRPC","directories":{},"_nodeVersion":"20.12.1","_hasShrinkwrap":false,"packageManager":"pnpm@8.15.4","devDependencies":{"koa":"^2.14.2","jest":"^29.5.0","eslint":"^8.44.0","ts-jest":"^29.1.1","prettier":"^2.8.8","supertest":"^6.3.3","@types/koa":"^2.13.6","typescript":"^5.7.2","@types/jest":"^29.5.2","@trpc/server":"^11.0.0","koa-bodyparser":"^4.4.1","@koa/bodyparser":"^5.0.0","@types/supertest":"^2.0.12","@types/koa-bodyparser":"^4.3.12","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"peerDependencies":{"koa":">=2.13.0","@trpc/server":"^10.0.0-rc.4 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/trpc-koa-adapter_1.3.0_1769224275297_0.5385219809755406","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"trpc-koa-adapter","version":"1.4.0","author":{"name":"Blair Currey"},"description":"Koa adapter for tRPC","license":"MIT","repository":{"type":"git","url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git"},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"build":"rm -rf ./dist && tsc -p tsconfig.build.json","test":"jest","prettier":"prettier --write .","check:prettier":"prettier --check .","lint":"eslint --fix --max-warnings=0 .","check:lint":"eslint --max-warnings=0 .","format":"pnpm prettier && pnpm lint","check:format":"pnpm check:prettier && pnpm check:lint","release":"pnpm build && pnpm test && npm publish"},"keywords":["trpc","koa","adapter","middleware","typescript"],"packageManager":"pnpm@10.27.0","pnpm":{"onlyBuiltDependencies":["unrs-resolver"]},"devDependencies":{"@eslint/js":"^10.0.1","@koa/bodyparser":"^6.1.0","@trpc/server":"^11.18.0","@types/jest":"^30.0.0","@types/koa":"^3.0.3","@types/koa-bodyparser":"^4.3.12","@types/node":"^26.2.0","@types/supertest":"^7.2.1","eslint":"^10.8.1","eslint-config-prettier":"^10.1.8","globals":"^17.9.0","jest":"^30.4.2","koa":"^3.2.1","koa-bodyparser":"^4.4.1","prettier":"^3.9.6","supertest":"^7.2.2","ts-jest":"^29.4.12","typescript":"^5.9.3","typescript-eslint":"^8.67.0"},"peerDependencies":{"@trpc/server":"^10.0.0-rc.4 || ^11.0.0","koa":">=2.13.0"},"gitHead":"51cb7c55e1855396eb832aecced140bc1d74529d","_id":"trpc-koa-adapter@1.4.0","bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-QnBgguEJMcSQ7DWSZFpCRbcqQ3Q2dP5KAQgclIO+Z/4T33EkwahvkFnWb8SwRMyAY4b1QhdFfu5gbTm29JUyBA==","shasum":"11ef88f2bf9adea0d8df3d1219c7707c44b755e3","tarball":"https://registry.npmjs.org/trpc-koa-adapter/-/trpc-koa-adapter-1.4.0.tgz","fileCount":5,"unpackedSize":15173,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDtPgKdWPwO/2opjrNh/oY3iJysJX9o9uE0D5D4/d6K5QIhALY9JNX5zDo4T95hVvR18/pdiycmJUw3MLtQdTfh3bY0"}]},"_npmUser":{"name":"blaircurrey","email":"curreyb88@gmail.com"},"directories":{},"maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/trpc-koa-adapter_1.4.0_1786424004026_0.7577710680982124"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-13T00:21:46.160Z","modified":"2026-08-11T04:53:24.333Z","1.0.0":"2022-10-13T00:21:46.400Z","1.0.1":"2022-10-13T00:32:03.732Z","1.0.2":"2022-11-05T04:41:38.798Z","1.0.3":"2022-11-05T05:28:39.337Z","1.0.4":"2022-11-05T23:15:23.020Z","1.0.5":"2022-12-16T03:30:11.703Z","1.1.0":"2022-12-27T12:37:20.946Z","1.1.1":"2022-12-28T21:34:42.593Z","1.1.2":"2022-12-28T21:40:34.202Z","1.1.3":"2023-07-03T03:38:20.303Z","1.2.0":"2024-03-07T04:11:30.975Z","1.2.1":"2024-03-14T03:13:36.523Z","1.2.2":"2024-05-21T01:16:55.610Z","1.3.0":"2026-01-24T03:11:15.456Z","1.4.0":"2026-08-11T04:53:24.157Z"},"bugs":{"url":"https://github.com/BlairCurrey/trpc-koa-adapter/issues"},"author":{"name":"Blair Currey"},"homepage":"https://github.com/BlairCurrey/trpc-koa-adapter#readme","keywords":["trpc","koa","adapter","middleware","typescript"],"repository":{"type":"git","url":"git+https://github.com/BlairCurrey/trpc-koa-adapter.git"},"description":"Koa adapter for tRPC","maintainers":[{"name":"blaircurrey","email":"curreyb88@gmail.com"}],"readme":"# trpc-koa-adapter\n\n[![npm version](https://img.shields.io/npm/v/trpc-koa-adapter.svg)](https://www.npmjs.com/package/trpc-koa-adapter)\n[![CI](https://github.com/BlairCurrey/trpc-koa-adapter/actions/workflows/ci.yaml/badge.svg)](https://github.com/BlairCurrey/trpc-koa-adapter/actions/workflows/ci.yaml)\n[![license](https://img.shields.io/npm/l/trpc-koa-adapter.svg)](https://github.com/BlairCurrey/trpc-koa-adapter/blob/master/LICENSE)\n\nThis is an adapter which allows you to mount [tRPC](https://github.com/trpc/trpc) onto a [Koa](https://github.com/koajs/koa) server. This is similar to the [trpc/packages/server/src/adapters/express.ts](https://github.com/trpc/trpc/blob/next/packages/server/src/adapters/express.ts) adapter.\n\n## Compatibility\n\nEvery combination below is covered by CI:\n\n| Dependency | Supported versions |\n| ---------- | ------------------ |\n| Koa        | 2 and 3            |\n| tRPC       | 10 and 11          |\n| Node       | 22, 24, and 26     |\n\n# How to Add tRPC to a Koa Server\n\nInitialize a tRPC router and pass into `createKoaMiddleware` (along with other desired [options](#arguments)). Here is a minimal example:\n\n```ts\nimport Koa from 'koa';\nimport { createKoaMiddleware } from 'trpc-koa-adapter';\nimport { initTRPC } from '@trpc/server';\n\nconst ALL_USERS = [\n  { id: 1, name: 'bob' },\n  { id: 2, name: 'alice' },\n];\n\nconst trpc = initTRPC.create();\nconst trpcRouter = trpc.router({\n  user: trpc.procedure\n    .input(Number)\n    .output(Object)\n    .query((req) => {\n      return ALL_USERS.find((user) => req.input === user.id);\n    }),\n});\n\nconst app = new Koa();\nconst adapter = createKoaMiddleware({\n  router: trpcRouter,\n  prefix: '/trpc',\n});\napp.use(adapter);\napp.listen(4000);\n```\n\nYou can now reach the endpoint with:\n\n```sh\ncurl -X GET \"http://localhost:4000/trpc/user?input=1\" -H 'content-type: application/json'\n```\n\nReturns:\n\n```json\n{ \"id\": 1, \"name\": \"bob\" }\n```\n\n# createKoaMiddleware Arguments <a name=\"arguments\"></a>\n\nThe middleware takes a configuration object with the following properties:\n\n| Option                           | Required | Description                                                                                                                                                                                                              |\n| -------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| router                           | Required | The tRPC router to mount                                                                                                                                                                                                 |\n| createContext                    | Optional | A function returning the tRPC context. If defined, the type should be registered on tRPC initialization as shown in an example below and the tRPC docs: https://trpc.io/docs/context                                     |\n| prefix                           | Optional | The prefix for tRPC routes, such as `/trpc`                                                                                                                                                                              |\n| `nodeHTTPRequestHandler` options | Optional | Any of the options used by the underlying request handler. See tRPC's [nodeHTTPRequestHandler](https://github.com/trpc/trpc/blob/next/packages/server/src/adapters/node-http/nodeHTTPRequestHandler.ts) for more details |\n\n# More examples\n\nIn addition to these examples, see `/example` and the implementations in [`/test/createKoaMiddleware.test.ts`](https://github.com/BlairCurrey/trpc-koa-adapter/blob/master/test/createKoaMiddleware.test.ts).\n\n## Using the Context:\n\n```ts\nconst createContext = async ({ req, res }: CreateTrpcKoaContextOptions) => {\n  return {\n    req,\n    res,\n    isAuthed: () => req.headers.authorization === 'trustme',\n  };\n};\n\ntype TrpcContext = Awaited<ReturnType<typeof createContext>>;\n\nconst trpc = initTRPC.context<TrpcContext>().create();\n\nconst trpcRouter = trpc.router({\n  createUser: trpc.procedure.input(Object).mutation(({ input, ctx }) => {\n    // ctx should be fully typed here\n    if (!ctx.isAuthed()) {\n      ctx.res.statusCode = 401;\n      return;\n    }\n\n    const newUser = { id: Math.random(), name: input.name };\n    ALL_USERS.push(newUser);\n\n    return newUser;\n  }),\n});\n\nconst adapter = createKoaMiddleware({\n  router: trpcRouter,\n  createContext,\n  prefix: '/trpc',\n});\n```\n\n## Accessing Koa Context:\n\n`createContext` receives `koaCtx` alongside `req` and `res`:\n\n> [!NOTE]\n> While these examples show state access, `koaCtx` is the full Koa context, including session, cookies, and any custom properties added by your middleware.\n\n```ts\n// Auth middleware sets user data\napp.use(async (ctx, next) => {\n  const user = await authenticateRequest(ctx.headers.authorization);\n  ctx.state.user = user;\n  await next();\n});\n\n// Access in createContext\nconst createContext = ({ req, res, koaCtx }: CreateTrpcKoaContextOptions) => ({\n  req,\n  res,\n  user: koaCtx.state.user,\n});\n```\n\n### Reading and Setting Cookies\n\nCookies are handled through the Koa context, so pass it along in `createContext` to read and write cookies from your procedures ([discussion](https://github.com/BlairCurrey/trpc-koa-adapter/issues/21)):\n\n```ts\nconst createContext = ({ koaCtx }: CreateTrpcKoaContextOptions) => ({ koaCtx });\n\nconst trpcRouter = trpc.router({\n  login: trpc.procedure.mutation(({ ctx }) => {\n    ctx.koaCtx.cookies.set('session', 'abc123', { httpOnly: true });\n    return { loggedIn: true };\n  }),\n  whoami: trpc.procedure.query(({ ctx }) => ({\n    session: ctx.koaCtx.cookies.get('session') ?? null,\n  })),\n});\n```\n\n### Type Safety\n\nBy default, `koaCtx.state` properties are typed as `any`. For stricter type safety, declare your state interface:\n\n```ts\ndeclare module 'koa' {\n  interface DefaultState {\n    user?: { id: string; name: string };\n  }\n}\n```\n\n# Note About Using With a Body Parser:\n\nUsing a bodyparser such as [`@koa/bodyparser`](https://github.com/koajs/bodyparser), [`koa-bodyparser`](https://www.npmjs.com/package/koa-bodyparser), or otherwise parsing the body will consume the data stream on the incoming request. To ensure that tRPC can handle the request, this library looks for the parsed body on `ctx.request.body`, which is where `@koa/bodyparser` and `koa-bodyparser` store the parsed body. If for some reason the parsed body is being stored somewhere else, and you need to parse the body before this middleware, the body will not be available to tRPC and mutations will fail as detailed [in this github issue](https://github.com/BlairCurrey/trpc-koa-adapter/issues/24).\n\n# Development\n\nThe project uses `pnpm` for package management.\n\nTo get started clone the repo, install packages, build, and ensure tests pass:\n\n    git clone https://github.com/BlairCurrey/trpc-koa-adapter.git\n    cd trpc-koa-adapter\n    pnpm i\n    pnpm build\n    pnpm test\n\nBefore pushing, verify formatting and lint the same way CI does:\n\n    pnpm check:format\n\nTo apply formatting and auto-fixable lint rules instead:\n\n    pnpm format\n\nThe `/example` directory contains a runnable client and server wired up to the\nlocal build. See [`example/README.md`](./example/README.md).\n","readmeFilename":"README.md","license":"MIT"}