{"_id":"@simpleview/express-async-handler","_rev":"26-7a79e9fc9cee58c592b73e4d3be5ecdf","name":"@simpleview/express-async-handler","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@simpleview/express-async-handler","version":"1.0.0","author":{"name":"owenallenaz@gmail.com"},"license":"ISC","_id":"@simpleview/express-async-handler@1.0.0","maintainers":[{"name":"mauriciodeleonc","email":"mauricio.deleon@globant.com"},{"name":"mpcarolin","email":"mpcarolin.dev@gmail.com"},{"name":"csarantidessv","email":"Chris.Sarantides@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"}],"dist":{"shasum":"28e04ce6bc80ae00005cc9a2a13a3bb5b6b5e07a","tarball":"https://registry.npmjs.org/@simpleview/express-async-handler/-/express-async-handler-1.0.0.tgz","fileCount":1,"integrity":"sha512-lcE2ie3afrcrvUA3Nq2rhpu17My3/5UMboQaAZvGiBJ1ueMi/GqezwQpl/g1rquaqAe5I23nh2XSTqH7M5goIw==","signatures":[{"sig":"MEUCIEuEOahmxFCSNTjDvn+Zfl+eBwUEKsnXqby3w2MPTEDJAiEAsQYptixQ4ZEt2THi5UDwMlX4inp0OUztFfk9+iabI1M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixKvVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq24BAAj0hnx1JhL8i9NByq0qLz+TDr7oAN7vexI+5luyI8wIMs0PN2\r\nVpWTiwJOUFn2bvuN7Up1uW/ShsZPVngGHqIgEkn9LxaEnRtRlM62xFGUClLw\r\nUfNQhyHLSK5Jq+dMC4/c2UVkJIgyilVF03ziuDyubVl2pHl+UlTGxizrzahl\r\nB2ZbW7N9KU0kJalGMbX54KF+dLCszjGjhGztw+ewKbe0R3us8VYT7kLt7Fnf\r\nE/VKI0gv5oVcTq5phmLdQ9Q3E/gljq9QQWnwyjzTMsU3J2/f+Ime7GG4qKjH\r\nVyzGQO33ODk6w9haliXZY+VFciwRlp5M4ktV7D5YjGI4t/rOPkyIgAilPy1/\r\nBoYtFgiX1dXIQARx3zyohwHhX0iCsOkk5WS7r7hei7oLiPdu8crt4iTI9BMk\r\nRElHGbHM8JaZk3/hmjIcSksY/l3ldVLTjjXDE4sO9E64aOdwtXUAxSzgp8/W\r\nruqWm3AvWHsbv1zFFUmKCZ68C2UPnkOc5LCZMX4fSEH6jyon3U7Mc4MjLiTl\r\n5Mh18tG4fo2l67QrgeNMQGpLKRLP3Ert09zNIW6dGnBo0Cxeknn8E6rWmpbL\r\nKyPNLl5vX4/L7ZedIP2pbOhPNLAo/iOmUk7slRe4lklE9YH2QhCIahH4g2ck\r\nmnZmkzutkemS9mD83NnjAs+9uvSpeDfhAcg=\r\n=UFIo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"types/index.d.ts","gitHead":"19503f91b12c27e64ffe599c3d9560414d26ca62","scripts":{"test":"ts-mocha --paths 'src/**/*.test.ts'","build":"tsc","docker":"./scripts/build && ./scripts/run || true","sync-state":"./scripts/sync-state","test:types":"tsc --noEmit","conditional-publish":"./scripts/conditional-publish"},"_npmUser":{"name":"owenallenaz","email":"owenallenaz@gmail.com"},"_npmVersion":"6.13.4","description":"TypeScript compliant express route handler","directories":{},"_nodeVersion":"12.14.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"10.0.0","sinon":"14.0.0","express":"4.18.1","ts-mocha":"10.0.0","supertest":"6.2.3","typescript":"4.7.4","@types/node":"18.0.0","expect-type":"0.13.0","@types/mocha":"9.1.1","@types/express":"4.17.13","@tsconfig/node16":"1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/express-async-handler_1.0.0_1657056213283_0.8385067988395729","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@simpleview/express-async-handler","version":"1.0.1","author":{"name":"owenallenaz@gmail.com"},"license":"ISC","_id":"@simpleview/express-async-handler@1.0.1","maintainers":[{"name":"mauriciodeleonc","email":"mauricio.deleon@globant.com"},{"name":"mpcarolin","email":"mpcarolin.dev@gmail.com"},{"name":"csarantidessv","email":"Chris.Sarantides@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"}],"dist":{"shasum":"65bd20551f73a8ab2a8cdd00f59a791b6459e955","tarball":"https://registry.npmjs.org/@simpleview/express-async-handler/-/express-async-handler-1.0.1.tgz","fileCount":13,"integrity":"sha512-fq+Yv9IuT7Yg7qUz++AvxbPRnbaMo5msp+0QYuPp3xIgjmqwFEo+3DU/j9j4qMFiE1VQHOFoYNA72iwsNW7t+Q==","signatures":[{"sig":"MEUCIFbqqwLr+pivWRRnByMDcGRFEbP1yXrZe6fnaERJufnOAiEA2/WunRchrlrtEdGfu0Vir9fLQGKfPmLmm4F4lpHtHtA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixKwGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSbBAAgnayKmIuTTmNg9K4mGI9fdgy8X4rlbEX8s595YULKVqQOCFq\r\nH2M1HbCsceJTR2A63U+HXxfVxylbtEHX+aewYx5MrH0seyx4GhDC1kBk3KxP\r\nQjgFLq/4q2h8dObTvUG17IcSOS4tLzlUD5sSQ1DQCDDwnikIXTFKaAbg3X31\r\nyNKAlm6fetq4CfEXsPDtS9Hfd/3Zz7RAxYOQIWxxiVbuV70GKL4fsEJyhzSp\r\ngQHolxPjsqF8iob8BVOWvQ8Kdrj5rA7eC9YyrPTqy31CjQab818J3ibyij5I\r\nn/BS4mp57qfyQ2GL0/Yi1abQnn8xgnt3R5frm1ksFXGAitz/8Q0Z8+viz6Pl\r\nvxSHzFK4aMP21KNKA7+kIyVx0xTynji63M6u0O69cxZ6XvwPcsM40z50OJA8\r\namte9eIcdK32V+qrGi99Y6wxaCHJ7PrIeo9hYU1RfokL2MCs66yCaQ4YHWXc\r\nJ7paOD8mMbGRWR6Tqw5odmBRLdGaOr/TBaDzcDPemeEEBw1fctpAhUGZ2zEP\r\nqTGbUcsC9uQpdkoQ2hpJqDYzW08rZOiDYpRYiCG4HGiTW8wmJylv8FmSv7bW\r\nL2FHhgh/h3roDWu6lOQZ7AlY2G9ATB79+I0WrAvnoTzuuwO2J0m48DHfhIci\r\npRSMDvS7xBnwrlf1+Fr6ypBdc24kUjFASG4=\r\n=nkqR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"types/index.d.ts","gitHead":"d57b4ab4f147223b66f16ed640e2340a9ccaa343","scripts":{"test":"ts-mocha --paths 'src/**/*.test.ts'","build":"tsc","docker":"./scripts/build && ./scripts/run || true","sync-state":"./scripts/sync-state","test:types":"tsc --noEmit","conditional-publish":"./scripts/conditional-publish"},"_npmUser":{"name":"owenallenaz","email":"owenallenaz@gmail.com"},"_npmVersion":"8.11.0","description":"TypeScript compliant express route handler","directories":{},"_nodeVersion":"16.15.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"10.0.0","sinon":"14.0.0","express":"4.18.1","ts-mocha":"10.0.0","supertest":"6.2.3","typescript":"4.7.4","@types/node":"18.0.0","expect-type":"0.13.0","@types/mocha":"9.1.1","@types/express":"4.17.13","@tsconfig/node16":"1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/express-async-handler_1.0.1_1657056262551_0.4517205250705709","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@simpleview/express-async-handler","version":"1.0.2","author":{"name":"owenallenaz@gmail.com"},"license":"ISC","_id":"@simpleview/express-async-handler@1.0.2","maintainers":[{"name":"mauriciodeleonc","email":"mauricio.deleon@globant.com"},{"name":"mpcarolin","email":"mpcarolin.dev@gmail.com"},{"name":"csarantidessv","email":"Chris.Sarantides@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"}],"dist":{"shasum":"e0fd94f9d00ce485f2de7b7272ee72537425e7af","tarball":"https://registry.npmjs.org/@simpleview/express-async-handler/-/express-async-handler-1.0.2.tgz","fileCount":14,"integrity":"sha512-gTtg070HBhPLSAw07KQZo2W48kR+1rAcJt5N3FhJo7tdpbT4Gn3ZqUeXD5xVVXXZqiXPH5Z0hRrw+2tQ4xVGeQ==","signatures":[{"sig":"MEYCIQCeo41fvXnXNlaAzkrBvwv8b98xjL8eCtCGPTgVnjHTVgIhAMDXw79iz3X/gYNf/Rugn/Yin4Y6P12T3RZ0ROQ46tEb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12538,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixLegACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4Bw//VRoCykc4ZZ706VO4YUKHll90gg9U9FjRXZK1/BeuR63uwk5H\r\nokxGc9t7/RYLlwoSl7ujcBtROC/UvZnbhyKeWOuE9J94sk71XdyqJcRI5tAO\r\nqscXOqHC6a1MMI4oo08U02Bo63CSHRJ3ytNwtraCCPoTtQZv1zyKD635z5d3\r\nQb8heo0zoCDBXbGikTrTUu00Z2wCyYKgKe3JUCEzbxA6TZmLdlay5tFnZGqg\r\nkRSJSRHZabcR8+6YrGv3mG220QpGUggBhC/FR2h3pGsQna1Q0WFzhFEkgOSI\r\n96NDSu/TZpn8tVZe6WttTSNRCDt1hohuXVi/oPOBozEzdRbPDt+VSW3WVrm3\r\nN3mgSyiNFDBjWZK0ZyZDym39NUe0OeptTnesiRcVIUNtKSg3Segoct6iUN76\r\n6apLmSDsf0Db1GOz3ArM43nMlPWaMsLe4F4/kt+jDIplK4xgkhUwQn/qh6Ti\r\ngqx/G7K9d283nZUvOxmpjkk70icMTmgLLbeE2qAvj53OvvjuUp0Ta5750TDX\r\nPHGXsSXJaqEg73rpVBebpQfOeh5J60h8r8tzxvVfl18Qd7eBdAH16xZL/Nhz\r\njKS72Iu30lDD2MPCNSQrFM+DIZMLyc2A+tvI8BNXj8bPDbQDi0k0RPHQGTQF\r\nWD73FKEXBSVTinBCJuKZ+10U65RSnxvJGjI=\r\n=1FFy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"types/index.d.ts","gitHead":"df0ee646c856dc8e982ddaa3868b2a966568b302","scripts":{"test":"ts-mocha --paths 'src/**/*.test.ts'","build":"tsc","docker":"./scripts/build && ./scripts/run || true","sync-state":"./scripts/sync-state","test:types":"tsc --noEmit","conditional-publish":"./scripts/conditional-publish"},"_npmUser":{"name":"owenallenaz","email":"owenallenaz@gmail.com"},"_npmVersion":"8.11.0","description":"TypeScript compliant express route handler","directories":{},"_nodeVersion":"16.15.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"10.0.0","sinon":"14.0.0","express":"4.18.1","ts-mocha":"10.0.0","supertest":"6.2.3","typescript":"4.7.4","@types/node":"18.0.0","expect-type":"0.13.0","@types/mocha":"9.1.1","@types/express":"4.17.13","@tsconfig/node16":"1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/express-async-handler_1.0.2_1657059231974_0.3196565068919355","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-07-05T21:23:33.227Z","modified":"2025-10-16T19:54:42.755Z","1.0.0":"2022-07-05T21:23:33.411Z","1.0.1":"2022-07-05T21:24:22.690Z","1.0.2":"2022-07-05T22:13:52.147Z"},"author":{"name":"owenallenaz@gmail.com"},"license":"ISC","description":"TypeScript compliant express route handler","maintainers":[{"email":"owenallenaz@gmail.com","name":"owenallenaz"},{"email":"gotshogi@gmail.com","name":"qman33"},{"email":"jmoor@simpleviewinc.com","name":"svjoshua"},{"email":"george.batt@simpleviewinc.com","name":"georgeyb-sv"},{"email":"mike@formativewebsolutions.com","name":"mkes99"},{"email":"colin.booen@simpleviewinc.com","name":"colin.booen"},{"email":"sean.smith@simpleviewinc.com","name":"ssmith_sv"},{"email":"aglazebrook@simpleviewinc.com","name":"aglazebrook"},{"email":"rmaynes@simpleviewinc.com","name":"rmaynes"},{"email":"Michael.Harrington@simpleviewinc.com","name":"mikesan789"},{"email":"Kristian.Gonzalez@simpleviewinc.com","name":"kristian.gonzalez"},{"email":"paul.riding@simpleviewinc.com","name":"paul.riding"},{"email":"amir.muntasser@simpleviewinc.com","name":"arkmuntasser"},{"email":"ed.downard@simpleviewinc.com","name":"actionawesome"},{"email":"mcutshall0@gmail.com","name":"mcutshall"},{"email":"mikael.ramirez@simpleviewinc.com","name":"sv-mikael"},{"email":"kory.chinn@simpleviewinc.com","name":"korychinn_sv"},{"email":"dan-npmjs@dlford.io","name":"dlford"},{"email":"s.loutrel@gmail.com","name":"sloutrel"}],"readme":"# @simpleview/express-async-handler\n\nWrap an express handler to properly handle async errors. Same as `npm express-async-handler` but with better typing.\n\n# Installation\n\n```\nnpm install @simpleview/express-async-handler\n```\n\n# Use\n\n### Basic Example\n\n```typescript\nimport express from \"express\";\nimport { asyncWrap } from \"@simpleview/express-async-handler\";\n\nconst app = express();\napp.get(\"/\", asyncWrap(async function(req, res, next) {\n    // any errors thrown will be passed on to next() automatically\n});\n```\n\n### With custom typing\n\nIn order to get rich typing you'll want to setup some helper types. There are two primary needs for custom typing.\n\n* Customization of the Application locals (`req.app.locals`, `res.app.locals`).\n* Customization of the Request (`req.query`, `req.body`, `req.session`).\n\nThere is a full example in [examples/custom_typing](examples/custom_typing).\n","readmeFilename":"README.md"}