{"_id":"@doesrobbiedream/nest-catcher","_rev":"1-09dc2cacc32f1bb8f1efd4c6143793c7","name":"@doesrobbiedream/nest-catcher","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@doesrobbiedream/nest-catcher","version":"0.2.0","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{"@nestjs/common":"^8.0.0","rxjs":"~7.4.0","@nestjs/core":"^8.0.0"},"peerDependencies":{},"gitHead":"3d0d3c643d99b7ec7ffc882a35a65098cab637c3","description":"> Nest Catcher is a nest library to provide a homogeneous exception handling across your entire Nest API.","_id":"@doesrobbiedream/nest-catcher@0.2.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-IDm+P2PFyht1ac5zS7KQV4/mCzwh7djWOm/xioEpJlw4RoaNjkd2JTwhd7vR8bHjiK7q7YQ0AVKCzY27KFtYmg==","shasum":"3201b718cb9132d27ec141c064304eabc643fa1b","tarball":"https://registry.npmjs.org/@doesrobbiedream/nest-catcher/-/nest-catcher-0.2.0.tgz","fileCount":42,"unpackedSize":63822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7YUfCRA9TVsSAnZWagAAhzAP/jXUpNYdfwE0M1RjEkKG\n1McktsCmvTiho/O3sfg6G18mkmo3zYjbOEsK6sJwk/tkjhTGla573EgFyjfY\n0wHZNMj8POmK190PFWFDWjA2oCERDiqb1YaJwFs9sgzqk0ovKDfaVEA/Hufk\nmNpba3m4IpwVm/4drm1rb3fObSI0DGpdP6b+GFEx2+F0n6cx0LT0FzU23f3F\nle8Csb3te6KNDG/HnTqWU2/SjK06Tl0sVDmlW4SSi9H+WzDXDIbhd04p0jM5\ndMpQDXZvlUSnGcoNxk0qnbaSm2N5wMhJ3UcrEVsV59M3VvRxRSdjOsWzHwnE\nq5Nu14zTkJtKtbHGagcwB9L66L2pLIqqVOSvj7b0v+BG3VegjhnfTxXAXpy0\nHX0+zAGuVXz6ZWXQL9lxzzN1mLucmkpOcj19qfvhqHbnrs/VClgw9NW7MxtZ\n/uNnCyWitzEWOmAkftyYdjnneygkOTfmG/BLR1oCfFm6E8z8qs4NL0JXrFQN\nMCHrjQT6ccwqq8HAXVcsmaBv0yNnRQP7JmnFUaBuBxp4j49aZDlVCik8ceo5\nnK79M765EWSQuxrNzYpYxfOiaLwA4NZgVLHghYuo/Svb46JBbnWS3xWy8V7w\nvgZjQRXZkzJAD1NrOyRmgdL0SY5Nxsr9fV6YMgmFg+CIFycOq3UJw/TeZOiZ\nRnFU\r\n=bOK0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/pH+GzCZ2pMPldrhvQq5NNI8mDxbdc3JsTFXqnpriUAiBgJNbNZ1j7Yr4kRTKabHl755pnlovuF+fcFbZdxTgOvQ=="}]},"_npmUser":{"name":"drd-nicolashernandezamor","email":"nicolashernandezamor@doesrobbiedream.com"},"directories":{},"maintainers":[{"name":"drd-nicolashernandezamor","email":"nicolashernandezamor@doesrobbiedream.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nest-catcher_0.2.0_1642956063356_0.8853218343383438"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-23T16:41:03.299Z","0.2.0":"2022-01-23T16:41:03.512Z","modified":"2022-04-05T05:06:06.050Z"},"maintainers":[{"name":"drd-nicolashernandezamor","email":"nicolashernandezamor@doesrobbiedream.com"}],"description":"> Nest Catcher is a nest library to provide a homogeneous exception handling across your entire Nest API.","readme":"# Nest Catcher\n\n> Nest Catcher is a nest library to provide a homogeneous exception handling across your entire Nest API. \n\nIt provides support for both monolithic APIs and distributed architecture.\n\nOn distributed architectures with a logical gateway, the first caught error that handles the exception will prevail and the following layers won't transform the response.\n\nThis allows to have multiple representations of the same error code that respect the domain into where it was fired.\n\n---\n\nFor example:\n\nOn an Authentication Service a 409 error (Conflict) could represent a duplicated user trying to be injected.\n\nOn an Inventory Service could mean a given product is not accessible by the requesting user.\n\nIf a frontal layer has to know both meanings to handle the exception properly, the service isolation will be broken, although, we don't want each service to have their own exception handler, as the gateway has that responsability.\n\nFor that, Nest Catcher, provides an intuitive API to each service to handler their own exceptions and letting the gateway build the response as necessary with the data provided.\n","readmeFilename":"README.md"}