{"_id":"@dollarsign/nestjs-exceptions","_rev":"33-b665a9a8e520d5c0e6fd60077af929d0","name":"@dollarsign/nestjs-exceptions","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.1":{"name":"@dollarsign/nestjs-exceptions","version":"1.0.1","keywords":["nestjs","nestjs-exceptions"],"license":"MIT","_id":"@dollarsign/nestjs-exceptions@1.0.1","maintainers":[{"name":"chagridsada","email":"chagridsada.inbox@gmail.com"},{"name":"jameslifestudio","email":"thanakrit.rsm@gmail.com"},{"name":"khachen","email":"khachen.dev@gmail.com"},{"name":"pratc","email":"pratsbox@gmail.com"},{"name":"swerbillionaire","email":"dev.anuwong@gmail.com"}],"homepage":"https://github.com/dollarsignteam/nestjs-exceptions#readme","bugs":{"url":"https://github.com/dollarsignteam/nestjs-exceptions/issues"},"dist":{"shasum":"38233562dc9d812e16f84477afdac8ea2064e70f","tarball":"https://registry.npmjs.org/@dollarsign/nestjs-exceptions/-/nestjs-exceptions-1.0.1.tgz","fileCount":30,"integrity":"sha512-HP5yDTRG9eZXRk7nqTPIbgNh2+hGFycprzPoQQ3gFff0emkQxSvN5+QqvmDfLFWe3H9MPKMM5es6Kd2L+6byAg==","signatures":[{"sig":"MEUCIEd/QJwd11JiEK2Ztk7/qs2/pcjHNKPsPgvk+V1D41ZcAiEAkbC9kEHaFijyjJgWzYY+kb/J7gTvNCiJa6nnze7KEnQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22594,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVKsbCRA9TVsSAnZWagAAMpsP/0keyktzntEC1yp4o/ud\n485cBrlxwXIe+IW0q73VxAjBhES5FU7ycLd52WbHoIho5nNvSinONdA+4Ls5\n/WqxDRbx/odPua7TI8gJTZTqClW2DChRmYdQXZxh63Y5L/ZXILqPzecIJuz6\nCvHuk6iYmrI8O6oEmvIQmK0PiWneXU6Zh6mquq3Z/xKmDGJxIcE5zZ1YnB+W\nlCsIoi1csibCHPqGqFR75l/guamaMuFzonXSXfgKnQpkduzlBvHRmmfBX0tL\nz/23CXFRAFs4xNCXcvC34+V3YpJQW+wfz+enMZ4ZcyaddMhFCjvYd6OQaGmp\nwPLBHiVZvTpjXUxj8oQsUR0E6/pgDhzTSg8O+Cy+JMFIDg9goLVVdQK9k2/w\n8eGuONfaZcR6tOYXzKn0VDFLOdw0aJutM4WNtKun122cMr/C+VBMRwEdu0tO\n0vmi/K1Opmf7F7IjPfd1ZpUrN+mBNcdLo5yLOK1N43Qs74W6jPiXPlF5Fx0Q\nFOCUqkYzN4AQTrh/+hqs3+f2hUBO1GdHcBbwf5cRpfMkD2XU+4qLxj7qvNVk\n9zBgpSjnWMt+mWcYsFQ8UIfMBD6+x4NTj6uo2XX5xBGN2GyyzogSIFAWEu4y\nS3DJxLWapoZdTMrnl+c1iKpM5LF+6VSgebM/+TzUdP70EiQ4ZQ/sPm6URWK5\nxWZa\r\n=kshZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","coverageDirectory":"../coverage","moduleFileExtensions":["js","json","ts"]},"main":"dist/index","gitHead":"6685bc5df4d533c5909f452827b756b93d0690e3","scripts":{"fix":"yarn format && yarn lint","lint":"eslint '{src,apps,libs,test}/**/*.ts' --fix","test":"jest","build":"nest build","format":"prettier --write 'src/**/*.ts'","prebuild":"rimraf dist","test:cov":"jest --coverage","test:watch":"jest --watchAll","eslint:check":"eslint --print-config src/index.ts | eslint-config-prettier-check"},"_npmUser":{"name":"chagridsada","email":"chagridsada.inbox@gmail.com"},"repository":{"url":"git+https://github.com/dollarsignteam/nestjs-exceptions.git","type":"git"},"_npmVersion":"6.14.6","description":"NestJS powerful exceptions handler","directories":{},"_nodeVersion":"12.18.3","dependencies":{"lodash":"^4.17.20","express":"^4.17.1","graphql":"^15.3.0","@nestjs/microservices":"^7.4.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.2","rxjs":"^6.6.2","eslint":"^7.8.1","ts-jest":"^26.3.0","prettier":"^2.1.1","typescript":"^4.0.2","@types/jest":"^26.0.13","@types/node":"^14.6.4","@nestjs/core":"^7.4.4","@types/lodash":"^4.14.161","@nestjs/common":"^7.4.4","@types/express":"^4.17.8","@nestjs/testing":"^7.4.4","@types/supertest":"^2.0.10","reflect-metadata":"^0.1.13","eslint-plugin-jest":"^24.0.0","eslint-plugin-react":"^7.20.6","eslint-plugin-import":"^2.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","@nestjs/platform-express":"^7.4.4","@typescript-eslint/parser":"^4.0.1","eslint-config-airbnb-typescript":"^10.0.0","@typescript-eslint/eslint-plugin":"^4.0.1","eslint-plugin-typescript-sort-keys":"^1.3.0"},"peerDependencies":{"rxjs":"^6.0.0","typescript":"^4.0.0","@nestjs/core":"^7.0.0","@nestjs/common":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-exceptions_1.0.1_1599384347146_0.8227536694605972","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@dollarsign/nestjs-exceptions","version":"1.0.3","keywords":["nestjs","nestjs-exceptions"],"license":"MIT","_id":"@dollarsign/nestjs-exceptions@1.0.3","maintainers":[{"name":"chagridsada","email":"chagridsada.inbox@gmail.com"},{"name":"swerbillionaire","email":"dev.anuwong@gmail.com"},{"name":"khachen","email":"khachen.dev@gmail.com"}],"homepage":"https://github.com/dollarsignteam/nestjs-exceptions#readme","bugs":{"url":"https://github.com/dollarsignteam/nestjs-exceptions/issues"},"dist":{"shasum":"d0a27d1d05ba674ec4b2f325cb6894eae78a2da7","tarball":"https://registry.npmjs.org/@dollarsign/nestjs-exceptions/-/nestjs-exceptions-1.0.3.tgz","fileCount":4,"integrity":"sha512-6QltfDc0hL14p63s/tEIWvU1xUU3bRimghezVbMHs74aRIjEzYnireOZQk1Tz5oWlNs0SmRpSSRpoW4iMYInmA==","signatures":[{"sig":"MEUCIGvlWu1us6YUx7M0AcJQeQ/7uAj1tcEtWvUJe11Tc43eAiEA48oaGDV8XkYW45dpM15jKiFsEIKfVxbdgHLZwzd6cmE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWbJZCRA9TVsSAnZWagAAx/YP/0RCXVE/DfgfcCz5UPzw\nrEj5H9nLNei7muicnrP40lZJt+1oyayuM6fqUKdyHqUGXNcE2BSHt8MEC+4j\n63hCJ4nvQp9i4KhO9xPcg2T68oiQRgxM61oOP2Tirz0ycIeZ3p48PaI+IV6V\nr/u7g7Wu1N/QgXnROyV1zpxQUVmHkBFISaevffcMsA3fu9BTvVCveT/4vc4j\nrDJm/xr0zPBW7cwg0R9zuepXiRtP7Hwakc7/qbMmuTynKQqQXnwnI3Ld1aX2\nUL+vmuFxCLpO7eLKsPzLdSROcsdDu+g1lCb1bNTySVS3bpBo+o/FCo1VoKgm\nmsmHU1toaF95IpS6A6s2sA9mbzp9a0hhxtMuWwNpcmYYazg6i/9KKk3GpRcb\n8UaCl8QxgXXqMYmyzAlbToMtIS8rNXcalafBomjHadjkt89FKAUvSAXCSktP\nVF6YaX+Swj4ZKcmdGCVACXdipTz3eaj7UzjjXGhGQF9tquJtyXPR5lYqPjei\nreZ56H4+JrU4/52ylDY52v0OZbQuftG4iD3BFFHqCRyXSgB7/BvPR8LJ0GyC\na+Y1AISW1PUC7BbhnHOhic8tdZorlldx9WgSBe0ybM1kg6HktlBl+kzzcNXR\nslui6XCuofePrWglOrRIsLnO6FqDFN/x9mvR/kbm2+u92gOX18GLI93tBPPZ\nGkPX\r\n=uvmW\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","coverageDirectory":"../coverage","moduleFileExtensions":["js","json","ts"]},"main":"dist/index","gitHead":"468b5096913dda88166be3330e97dcccb0a88ffd","scripts":{"fix":"yarn format && yarn lint","lint":"eslint '{src,apps,libs,test}/**/*.ts' --fix","test":"jest","build":"nest build","format":"prettier --write 'src/**/*.ts'","prebuild":"rimraf dist","test:cov":"jest --coverage","test:watch":"jest --watchAll"},"_npmUser":{"name":"chagridsada","email":"chagridsada.inbox@gmail.com"},"repository":{"url":"git+https://github.com/dollarsignteam/nestjs-exceptions.git","type":"git"},"_npmVersion":"6.14.11","description":"NestJS powerful exceptions handler","directories":{},"_nodeVersion":"14.16.0","dependencies":{"lodash":"^4.17.20","express":"^4.17.1","graphql":"^15.3.0","@nestjs/microservices":"^7.4.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.2","rxjs":"^6.6.2","eslint":"^7.8.1","ts-jest":"^26.3.0","prettier":"^2.1.1","typescript":"^4.0.2","@types/jest":"^26.0.13","@types/node":"^14.6.4","@nestjs/core":"^7.4.4","@types/lodash":"^4.14.161","@nestjs/common":"^7.4.4","@types/express":"^4.17.8","@nestjs/testing":"^7.4.4","@types/supertest":"^2.0.10","reflect-metadata":"^0.1.13","eslint-plugin-jest":"^24.0.0","eslint-plugin-react":"^7.20.6","eslint-plugin-import":"^2.22.0","eslint-config-prettier":"^8.1.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","@nestjs/platform-express":"^7.4.4","@typescript-eslint/parser":"^4.0.1","eslint-config-airbnb-typescript":"^12.3.1","@typescript-eslint/eslint-plugin":"^4.0.1","eslint-plugin-typescript-sort-keys":"^1.3.0"},"peerDependencies":{"rxjs":"^6.0.0","typescript":"^4.0.0","@nestjs/core":"^7.0.0","@nestjs/common":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-exceptions_1.0.3_1616491096664_0.8259299700610994","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@dollarsign/nestjs-exceptions","version":"1.0.5","keywords":["nestjs","nestjs-exceptions"],"license":"MIT","_id":"@dollarsign/nestjs-exceptions@1.0.5","maintainers":[{"name":"chagridsada","email":"chagridsada.inbox@gmail.com"},{"name":"swerbillionaire","email":"dev.anuwong@gmail.com"},{"name":"khachen","email":"khachen.dev@gmail.com"}],"homepage":"https://github.com/dollarsignteam/nestjs-exceptions#readme","bugs":{"url":"https://github.com/dollarsignteam/nestjs-exceptions/issues"},"dist":{"shasum":"2f55af950c4a3dddfbb6f0808a7e5322f51462cc","tarball":"https://registry.npmjs.org/@dollarsign/nestjs-exceptions/-/nestjs-exceptions-1.0.5.tgz","fileCount":30,"integrity":"sha512-xyHJVCNABBy2ZXtS9ufHAWq1x9RNcsbn3XAeXCC6o2KhweBPP40j+JOI7H8hxXi3fWZPLCoHTzBGO08nHipo3Q==","signatures":[{"sig":"MEYCIQCN6bHHlR0c4FNfQOFezA8F8qWpwkzv5V1e5sMg7pPK9gIhALdCVSn1wtNHA0Bk9twBIOVTy/npW7MT/Br+RkpjYnMG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWuAOCRA9TVsSAnZWagAAxaQP/jiHHYijEXUbWoFoReo+\nRU6yd2CRUKXo+gTO3vF/v7MQngg2n+WfCdiUYWJZU7sGb7bm0M2QPpAdv7fq\nnYdKChxYM7FUxgAx1911yDSLq13V2sQGUKd3XOCpfx4coIka9YlTFjnGfdRh\nlCgxIlOPQpmktmluK5V++t2w8HuZeTmg+ITtAVKBWLvCV2mF4fC/LE45KLZE\nmlwtMLwEYAl6RTHGhZjX7dwADnSYUWr++e25r3IX7lP8+b6+TVY4OpbrQuzV\nE3oZK0MCv/fS5my5NnF3BUXLsfWwj408supHyG9mB3HUupvMse4jqqYv4Vuf\nnf+7B94kHQUcZHadJKFKHfxINr844IecLuSm1jjVrbjWDiAt7370uSUFxFoq\n2Z5iMM5eolF/vRI/axqBXhebbgW5hNdgJ5ZMe8vEye5rpNwbW6ztfEUnBijz\n7Gc7spQScxHXcGD0c49p6RJLCOn9fWgjGIrU8fQ058VYIV4IsExLseQz7w+l\nELvNsgPsG+MLJ2I+Cp3fZcQg5kPG3aRqbGqqsLnAvm0ZXlgjD/wpVIxZTjKr\nJdjTp1mMyXT8qkypJQxyfaChfltU2lCsmKiTRX+Y5vBg0A4H8rEiNK3xlZd5\ndtA53kgl4epU8FH7GnzXEpQ0GGtbpPBKT1Lw6Yl7q6D31PAnQd37DXAdIVyH\nlGDL\r\n=HOyQ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","coverageDirectory":"../coverage","moduleFileExtensions":["js","json","ts"]},"main":"dist/index","gitHead":"0769dc1ff5f1623e96825bc1beb9f08ba9b40fc5","scripts":{"fix":"yarn format && yarn lint","lint":"eslint '{src,apps,libs,test}/**/*.ts' --fix","test":"jest","build":"nest build","format":"prettier --write 'src/**/*.ts'","prebuild":"rimraf dist","test:cov":"jest --coverage","test:watch":"jest --watchAll"},"_npmUser":{"name":"chagridsada","email":"chagridsada.inbox@gmail.com"},"repository":{"url":"git+https://github.com/dollarsignteam/nestjs-exceptions.git","type":"git"},"_npmVersion":"6.14.11","description":"NestJS powerful exceptions handler","directories":{},"_nodeVersion":"14.16.0","dependencies":{"lodash":"^4.17.20","express":"^4.17.1","graphql":"^15.3.0","@nestjs/microservices":"^7.4.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.2","rxjs":"^6.6.2","eslint":"^7.8.1","ts-jest":"^26.3.0","prettier":"^2.1.1","typescript":"^4.0.2","@nestjs/cli":"^7.5.6","@types/jest":"^26.0.13","@types/node":"^14.6.4","@nestjs/core":"^7.4.4","@types/lodash":"^4.14.161","@nestjs/common":"^7.4.4","@types/express":"^4.17.8","@nestjs/testing":"^7.4.4","@types/supertest":"^2.0.10","reflect-metadata":"^0.1.13","eslint-plugin-jest":"^24.0.0","eslint-plugin-react":"^7.20.6","eslint-plugin-import":"^2.22.0","eslint-config-prettier":"^8.1.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","@nestjs/platform-express":"^7.4.4","@typescript-eslint/parser":"^4.0.1","eslint-config-airbnb-typescript":"^12.3.1","@typescript-eslint/eslint-plugin":"^4.0.1","eslint-plugin-typescript-sort-keys":"^1.3.0"},"peerDependencies":{"rxjs":"^6.0.0","typescript":"^4.0.0","@nestjs/core":"^7.0.0","@nestjs/common":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-exceptions_1.0.5_1616568333834_0.5267923706697635","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-09-01T12:15:56.557Z","modified":"2024-07-16T11:39:28.120Z","0.0.1":"2020-09-01T12:15:56.911Z","0.0.2":"2020-09-01T13:37:11.348Z","0.0.3":"2020-09-01T14:27:00.025Z","0.0.4":"2020-09-01T15:27:59.693Z","0.0.5":"2020-09-01T16:11:54.100Z","0.0.6":"2020-09-01T16:42:05.473Z","0.1.0":"2020-09-01T17:21:29.804Z","1.0.0":"2020-09-06T08:58:18.788Z","1.0.1":"2020-09-06T09:25:47.269Z","1.0.3":"2021-03-23T09:18:16.813Z","1.0.5":"2021-03-24T06:45:34.001Z"},"bugs":{"url":"https://github.com/dollarsignteam/nestjs-exceptions/issues"},"license":"MIT","homepage":"https://github.com/dollarsignteam/nestjs-exceptions#readme","keywords":["nestjs","nestjs-exceptions"],"repository":{"url":"git+https://github.com/dollarsignteam/nestjs-exceptions.git","type":"git"},"description":"NestJS powerful exceptions handler","maintainers":[{"email":"nattaponw.me@gmail.com","name":"mixmatrix"},{"email":"chagridsada.inbox@gmail.com","name":"chagridsada"},{"email":"khachen.dev@gmail.com","name":"khachen"},{"email":"pratsbox@gmail.com","name":"pratc"}],"readme":"<div align=\"center\">\n  <a href=\"http://nestjs.com/\" target=\"_blank\">\n    <img src=\"https://nestjs.com/img/logo_text.svg\" width=\"150\" alt=\"Nest Logo\" />\n  </a>\n</div>\n\n## NestJS Exceptions\n\n### Installation\n\n#### Yarn\n\n```bash\nyarn add @dollarsign/nestjs-exceptions\n```\n\n#### NPM\n\n```bash\nnpm install --save @dollarsign/nestjs-exceptions\n```\n\n### Usage\n\nTo create a global-scoped filter, you would do the following:\n\n```typescript\n// main.ts\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n  app.useGlobalFilters(new GlobalExceptionFilter());\n  await app.listen(3000);\n}\nbootstrap();\n```\n\nTo instantiate a microservice\n\n```typescript\n// main.ts\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n    AppModule,\n    {\n      transport: Transport.TCP,\n    },\n  );\n  app.useGlobalFilters(new GlobalRpcExceptionFilter());\n}\nbootstrap();\n```\n\nThe following example uses a manually instantiated method-scoped filter. Just as with HTTP based applications, you can also use controller-scoped filters (i.e., prefix the controller class with a @UseFilters() decorator).\n\n```typescript\n@UseFilters(new GlobalRpcExceptionFilter())\n@MessagePattern({ cmd: 'sum' })\naccumulate(data: number[]): number {\n  return (data || []).reduce((a, b) => a + b);\n}\n\n```\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\nDollarsign\n\n## License\n\nLicensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}