{"_id":"@amiralblendic/nestjs-addons","_rev":"4-cb34633e9233efb6a5a64f291623bac9","name":"@amiralblendic/nestjs-addons","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.2":{"name":"@amiralblendic/nestjs-addons","version":"0.0.2","description":"NestJS Statistics injectable component","author":{"name":"Camille Briand","email":"camille.briand@gmail.com"},"license":"MIT","main":"dist/test.js","scripts":{"start:dev":"tsc -w","build":"tsc","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json -c tslint.json","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","prebuild":"npm run clean","clean":"rimraf dist/"},"keywords":["nestjs"],"publishConfig":{"access":"public"},"peerDependencies":{"@nestjs/common":"^7.0.0"},"dependencies":{"@nestjs/platform-socket.io":"^7.4.2","@nestjs/websockets":"^7.4.2","rxjs":"^6.6.2"},"devDependencies":{"@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.2","@nestjs/common":"^7.0.0","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/testing":"7.0.0","@types/express":"4.16.1","@types/jest":"24.0.11","@types/node":"11.13.4","@types/socket.io":"^2.1.11","@types/supertest":"2.0.7","husky":"^4.2.5","jest":"24.7.1","prettier":"1.17.0","rimraf":"^3.0.2","supertest":"4.0.2","ts-jest":"24.0.2","ts-node":"8.1.0","tsc-watch":"2.2.1","tsconfig-paths":"3.8.0","tslint":"5.16.0","typescript":"3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"licenseText":"MIT License\n\nCopyright (c) 2019 John Biundo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@amiralblendic/nestjs-addons@0.0.2","dist":{"shasum":"00fde4e421bd3bd87f4b3b8c50aa33283aaa1c14","integrity":"sha512-AWaVBniRURaCcf/pyKf9r033KcnF5qdriKgumFU98D7nf5Ewidaz8xh0GlNK0ldQB2QV2qlnlfIKgyxz4vlpkQ==","tarball":"https://registry.npmjs.org/@amiralblendic/nestjs-addons/-/nestjs-addons-0.0.2.tgz","fileCount":38,"unpackedSize":25718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQUXgCRA9TVsSAnZWagAA22UQAJFgw3jhTl1qbveXAeQL\nh54/IT29a99HfNe+ElfOtNAqsqoXr1fo1vq0zm2adHwhD0b6raBEbv/kfEgR\nCwxEZLQt4zGyczUrn2tbjaekllull9L9bp7YMnGqkpORnCcC70TyMwTaE2ao\nd0GE7wiY7RjqnuAea1huWfLsVRbWNcteMat3yWt9jrb7KTTycsjEQPUz/Ccz\nooMC+9EPR7wdwsGRfD99rC+erHxYlGuRukpcwOA/FT3t1GLT9TMiRG67bmaO\n6ilk55P5YDki11cA3BhnaI52QTu8T13z5UPZJ48W7cMn1A9eaezMsvKn4Gzl\nVeqZwPyc7Hxvovc8OiXXHrRAa4sJXe37hSxHZjoSTGMEoQx9Uq8zS06d1/Vt\nqS3lD1kk09QQddhI2zXVu5T7+E8Yjqo77xvNGD1YjpZqCpEAGUPbWMpfqKlJ\npk5YlK+q3n1Glxuxyq4TJYHU+/+cMCapO7Rj5ePNRI+3W0XOqs7d7ahxpCuy\nlWZVKKLw+yw9CCXNtYIdz/299TsYfKQddpSw2fYkMQpfOlrNbtai1QV5Took\nSEJlIED49KDbl2nOZkVONMshK7s8/Qb9wkEwEdHplKKEsiBngTrJPrPNxg91\npVVlToVtepUOeQhZp8hsIA4h4TGM2P4PDxWzsP+m/sajGtgAjWWXKAgH1VjW\n1Tjw\r\n=DOKL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvrxV08KNOd4qwGjpVqSamv8CtvlK6Q/MqhqTujAHRLgIgfZzLAbytemmsmKf0tKE2cexjA6GE5n5bL4NI5qe1dJA="}]},"maintainers":[{"name":"amiralblendic","email":"camille.briand@gmail.com"}],"_npmUser":{"name":"amiralblendic","email":"camille.briand@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-addons_0.0.2_1598113248047_0.9224252404990836"},"_hasShrinkwrap":false},"0.1.0":{"name":"@amiralblendic/nestjs-addons","version":"0.1.0","description":"NestJS Statistics injectable component","author":{"name":"Camille Briand","email":"camille.briand@gmail.com"},"license":"MIT","main":"dist/test.js","scripts":{"start:dev":"tsc -w","build":"tsc","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json -c tslint.json","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","prebuild":"npm run clean","clean":"rimraf dist/"},"keywords":["nestjs"],"publishConfig":{"access":"public"},"peerDependencies":{"@nestjs/common":"^7.0.0"},"dependencies":{"@nestjs/platform-socket.io":"^7.4.2","@nestjs/websockets":"^7.4.2","rxjs":"^6.6.2"},"devDependencies":{"@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.2","@nestjs/common":"^7.0.0","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/testing":"7.0.0","@types/express":"4.16.1","@types/jest":"24.0.11","@types/node":"11.13.4","@types/socket.io":"^2.1.11","@types/supertest":"2.0.7","husky":"^4.2.5","jest":"24.7.1","prettier":"1.17.0","rimraf":"^3.0.2","supertest":"4.0.2","ts-jest":"24.0.2","ts-node":"8.1.0","tsc-watch":"2.2.1","tsconfig-paths":"3.8.0","tslint":"5.16.0","typescript":"3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"licenseText":"MIT License\n\nCopyright (c) 2019 John Biundo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@amiralblendic/nestjs-addons@0.1.0","dist":{"shasum":"47262345c3fbf0db1069911e115a1a05471dcbc9","integrity":"sha512-mkncADpobBHcItDFjrZB6Fbjdxqv9tpX8fsa28u4g7eO0DnxC1M6mbaLyVpJfvH+3qncQdqzLvCO+x0IkpFzJQ==","tarball":"https://registry.npmjs.org/@amiralblendic/nestjs-addons/-/nestjs-addons-0.1.0.tgz","fileCount":38,"unpackedSize":29131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQU/1CRA9TVsSAnZWagAAQdMP/1ADNryFHoVyLUgDGWEs\nR/vcXOF7QlTjgrVZ+sV4MihFc85dEYLjtBOiMLuTlKj25mcUQAOC/5SrZHTR\nNWxjXrK9oQlc4Ej/kiMX97pRvfh1NtFOqGwu3dv8v72a+8m9BjMdPB2c9gLV\nE1cvLnJnLTMvbp/llLAeSdctFyDSf2e9GNQJo/c35Dr0a7Y3n7eZlaf1/tD3\nCivuqJVtd7TNl2yWlCR24/QEvihtteI9sKy/LBcnW8euq3+sn2cCf2U0XVjB\nO20x9rTBqX7Sht9csM84IAnOwvu3SX4EsJ8FT4e7KmlEUoEPmvS2t4kEbsq4\n2pJDq2nuc3bz0MsRx/9m+I3KkYbCJbN4Q5EYnZFUPhhP/CZZpOK7r07DrNcs\nUUHZb6pNj0okITZMc/TY0ywrofVb3/g6WgBvs+k7AobBG14P/+wTLcp61Se3\ng0w6gcdIuw5aYx11AKqcSk4H5k4ZCFjnPGBJZaI751LAT3+vNtfvN0dVSDBa\nKNAZleFFhbnkwg5nFrbBUDl7Si4ppVzlW730HA1S+fkYyeNGVkdy/EZKoU6w\niEcO5Ccue/NhMCakGr/WEyMH1e3C4YYDxIDlMTD0JuHymdTwLGgIJta0uxs1\njtqPpgyhqfEWWW1mjEMXe9vhppCrl9Ijkp/6RnUvol7tUZ3/n1UOB3Gv6RAL\n6BIZ\r\n=6okg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDavqIETxwqx2DJFIGz81h163+LOklNNpfa1IP/XPA2AAiA0yZt+REi2ZY0OUr0YMxbQRjJ/AyW/YvnZ1n3LrtsnXw=="}]},"maintainers":[{"name":"amiralblendic","email":"camille.briand@gmail.com"}],"_npmUser":{"name":"amiralblendic","email":"camille.briand@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-addons_0.1.0_1598115829338_0.8111568944049097"},"_hasShrinkwrap":false},"0.1.1":{"name":"@amiralblendic/nestjs-addons","version":"0.1.1","description":"NestJS Statistics injectable component","author":{"name":"Camille Briand","email":"camille.briand@gmail.com"},"license":"MIT","main":"dist/test.js","scripts":{"start:dev":"tsc -w","build":"tsc","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json -c tslint.json","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","prebuild":"npm run clean","clean":"rimraf dist/"},"keywords":["nestjs"],"publishConfig":{"access":"public"},"peerDependencies":{"@nestjs/common":"^7.0.0"},"dependencies":{"@nestjs/platform-socket.io":"^7.4.2","@nestjs/websockets":"^7.4.2","rxjs":"^6.6.2"},"devDependencies":{"@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.2","@nestjs/common":"^7.0.0","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/testing":"7.0.0","@types/express":"4.16.1","@types/jest":"24.0.11","@types/node":"11.13.4","@types/socket.io":"^2.1.11","@types/supertest":"2.0.7","husky":"^4.2.5","jest":"24.7.1","prettier":"1.17.0","rimraf":"^3.0.2","supertest":"4.0.2","ts-jest":"24.0.2","ts-node":"8.1.0","tsc-watch":"2.2.1","tsconfig-paths":"3.8.0","tslint":"5.16.0","typescript":"3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"licenseText":"MIT License\n\nCopyright (c) 2019 John Biundo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@amiralblendic/nestjs-addons@0.1.1","dist":{"shasum":"a5dcffce2dd6f149e3df8ed53de44c0332591362","integrity":"sha512-6LK5kRvAs7Dh1DX/seNQPiYPskrHyFkQsKV0Q+gC1bPjanpRhGT76YcOu6FUAI5ygfCpXm8jMqbwnXTKdIlzdg==","tarball":"https://registry.npmjs.org/@amiralblendic/nestjs-addons/-/nestjs-addons-0.1.1.tgz","fileCount":38,"unpackedSize":29133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQVBPCRA9TVsSAnZWagAAsPEP/2u/7NTCHCRBc4Pd76pL\n81M7C9PRD00VkLIfDKPJLx0NdIoHgNbRKWhmCybB74ppiKzm5OrB6G1RToMa\nk+1Vyr8Q/6NNCEXZnaCeqF7QjXz53ZJWxeGbVAlJT/zkuOjZgcdyyYt6ndLf\nJF1mi53HhqWUBOvjbVcMipwo2W0poXN+jda8+C9zHOYhD1bOE0kZZZOkWm+w\n1ROAr08quAmw54xY92RpuWjumNmP7Qg6LF6sqHorvS96X1GFAM86PrwdKziX\nI7kTKINs2gMoyh/GZXc/2ZwH+W4irGkZGkR0JPiE+iRF0SHky5NK7HFKoQXU\nE9AZdMCWnLYsCpvYLeZL24mfkrKdcDUDVxCY2dGE33F6ImJe9FMHpJxGDicK\n1GUX0ZwJv4M0WnZImb8e83S0BA87/2e6ETFROEpxmDz6WrrGBH6XHfQMvWaw\nbIe0kcwn8M5vNf4D0y0tfR7wkfu9cYXE72KP3WGxMrhoIWcHzkP6nrVpOH8t\nj1NKR79qTfdNsjmOxUbm0Pc6S5x6TeaFxhenF1+kv9UW9VKznGqOjDzt2NYp\n3ouijSH5jC9LKongxFWqjFtAY884Iij2vKFIZZQPdSH5qS7ElJTxa4yGAHhr\nHN6xBD3PSiQRnMl2uTA6aO/bd6nMQnrGI5gDcOawaBF0uSiqNvNw1O+EKrpY\nnQzu\r\n=Czxc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkMtKVPC2sVKNxwgkedpEJWdQootAHcOzBU3Tdk/FSeQIgZcTuS+1zEfE4226rvvSg7+40fy302cdDnQ3nFWxawMs="}]},"maintainers":[{"name":"amiralblendic","email":"camille.briand@gmail.com"}],"_npmUser":{"name":"amiralblendic","email":"camille.briand@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-addons_0.1.1_1598115919511_0.309348668665713"},"_hasShrinkwrap":false},"0.1.2":{"name":"@amiralblendic/nestjs-addons","version":"0.1.2","description":"NestJS Statistics injectable component","author":{"name":"Camille Briand","email":"camille.briand@gmail.com"},"license":"MIT","main":"dist/test.js","scripts":{"start:dev":"tsc -w","build":"tsc","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json -c tslint.json","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","prebuild":"npm run clean","clean":"rimraf dist/"},"keywords":["nestjs"],"publishConfig":{"access":"public"},"peerDependencies":{"@nestjs/common":"^7.0.0"},"dependencies":{"@nestjs/platform-socket.io":"^7.4.2","@nestjs/websockets":"^7.4.2","rxjs":"^6.6.2"},"devDependencies":{"@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.2","@nestjs/common":"^7.0.0","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/testing":"7.0.0","@types/express":"4.16.1","@types/jest":"24.0.11","@types/node":"11.13.4","@types/socket.io":"^2.1.11","@types/supertest":"2.0.7","husky":"^4.2.5","jest":"24.7.1","prettier":"1.17.0","rimraf":"^3.0.2","supertest":"4.0.2","ts-jest":"24.0.2","ts-node":"8.1.0","tsc-watch":"2.2.1","tsconfig-paths":"3.8.0","tslint":"5.16.0","typescript":"3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"licenseText":"MIT License\n\nCopyright (c) 2019 John Biundo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@amiralblendic/nestjs-addons@0.1.2","dist":{"shasum":"1541a9c93a173e4874003edba70c0e1ead4ddf4e","integrity":"sha512-QvDres5Or7KXeL7nmB6mDJ0KjHAxLq84UQENZ54BwlYyZmLZdtUQbSJM2KA6ZYnEndUYsb7wp2E3zSr9u6EySQ==","tarball":"https://registry.npmjs.org/@amiralblendic/nestjs-addons/-/nestjs-addons-0.1.2.tgz","fileCount":38,"unpackedSize":29145,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQVCICRA9TVsSAnZWagAAjlIQAI2WGNL5ePPdEfgBhBUy\nVKtkYgCYWGpgwrxDKGVEgIEbv6l5eYYPrdcIer4RNKTz99mPo0daaekTttBx\ngN1JHBpCirro37J4ccieCGrr7AEeiFXGQKHpPdF3fcDhNRCH11i7eTDKWlYG\neBYK0dYf+BX1G6T2rIwtbBaY9GpLbfphmTrTMDescJnC5vEwi33TygXlpv+G\n07dII6Olq886PWWbDYivaZA7+ShVMD9oEb1V0d49LfipI0njEuq/ldrFgeij\nXoZ0lPsQvF7HuUs4V8p9VAfUcQpftNUPYfLLrwxEHgCviSHQcswxF8wIct/9\naE+815BYfVW85WUv+suhSGY2kN4zmhOEmRaCNrp2ITp77dcZ2GHJLLALZIO3\n3lvsJJ7vH4UYkwW72q+Ry0dVJ1hFrZBM4IP7tymXk7lWdrUzD80Zhl48PvBh\n1N+zQTvxD2WNCrBe0vVxri3/42qQ+0P3ToF1RO+5U89bVp5ArKAC40KfddV7\nTjWT65z9DCJPkVDoTUVSxt2z5i8DPmu7221AzZdPMrusRl2vh0ztEvoyGWO0\nFMwW+rKCrTC6UoIlwsy1CDzV1Qyjo6aptl8V0K7VjQatG5H1XL7ofOHiFXIN\n3X1DjguNosW61OVc3IJc1b7j3OAhbH8s5CXHEF2aHGeqgA768c47azkzb1Ak\nCEEk\r\n=Pc3D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnTr5KF98ATI87XMbuNm8igVgTx48qwcjtgVwu3BWS3AiEAyPR7FutfyuDt0OwT5hiVbK5Sn6tnDfBgY0KT0rXc5QY="}]},"maintainers":[{"name":"amiralblendic","email":"camille.briand@gmail.com"}],"_npmUser":{"name":"amiralblendic","email":"camille.briand@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-addons_0.1.2_1598115975531_0.5711221832239302"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-22T16:20:47.992Z","0.0.2":"2020-08-22T16:20:48.212Z","modified":"2022-04-04T13:49:31.259Z","0.1.0":"2020-08-22T17:03:49.498Z","0.1.1":"2020-08-22T17:05:19.609Z","0.1.2":"2020-08-22T17:06:15.674Z"},"maintainers":[{"name":"amiralblendic","email":"camille.briand@gmail.com"}],"description":"NestJS Statistics injectable component","keywords":["nestjs"],"author":{"name":"Camille Briand","email":"camille.briand@gmail.com"},"license":"MIT","readme":"# @amiralblendic/nestjs-addons\n\nThis package contains modules, providers and gateways to quickly extend the functionnalities of your nestjs application.\n\n## LoggingModule - Simple Logging module\n\n_To use this module or any of its components, you must import it as part of one of your module_\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport { LoggingModule } from '@amiralblendic/nestjs-addons/dist/logging';\n\n@Module({\n  imports: [LoggingModule],\n})\nexport class ExampleModule {}\n```\n\n### LoggingInterceptor\n\nDecorate your controllers with the following so that the `LoggingModule` becomes aware of the successful requests dispatched to your controller.\n\n```typescript\nimport { UseInterceptors, Controller, Get } from '@nestjs/common';\nimport { LoggingInterceptor } from '@amiralblendic/nestjs-addons/dist/logging';\n\n@Controller('example')\n@UseInterceptors(LoggingInterceptor)\nexport class ExampleController {\n  @Get()\n  getExample(): string {\n    return 'example';\n  }\n}\n```\n\nThis will allow all requests dispatched to `ExampleController` to be intercepted and logged by the LoggingModule.\n\nA `LoggingInterceptor` alone is not able to catch `HttpExceptions` and hence is not able to log errors or unsucessful requests. To enable this feature, you must use `LoggingExceptionFilter`.\n\n### LoggingExceptionFilter\n\nDecorate your controllers with the following so that the `LoggingModule` becomes aware of the unsuccessful requests dispatched to your controller.\n\n```typescript\nimport {\n  UseInterceptors,\n  UseFilters,\n  Controller,\n  Get,\n  UnauthorizedException,\n} from '@nestjs/common';\nimport {\n  LoggingInterceptor,\n  LoggingExceptionFilter,\n} from '@amiralblendic/nestjs-addons/dist/logging';\n\n@Controller('example')\n@UseInterceptors(LoggingInterceptor)\n@UseFilters()\nexport class ExampleController {\n  @Get()\n  getExample(): string {\n    return 'example';\n  }\n\n  @Get('unauthorized')\n  getUnauthorized(): string {\n    throw new UnauthorizedException();\n  }\n}\n```\n\nNow, whenever a `HTTP GET /example/unauthorized` is issued, the `LoggingModule` will be able to get the `UnauthorizedException` and to log it.\n\n**However there is an even easier way to use this `LoggingModule` and its features**\n\n### GlobalLoggingInterceptor & GlobalLoggingExceptionFilter\n\nYou can import **`GlobalLoggingInterceptor`** and **`GlobalLoggingExceptionFilter`** and directly use them at your own module's level.\n\n**WARNING: this will enable the `LoggingModule` globally, so use at your own risks**\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport {\n  LoggingModule,\n  GlobalLoggingInterceptor,\n  GlobalLoggingExceptionFilter,\n} from '@amiralblendic/nestjs-addons/dist/logging';\n\n@Module({\n  controllers: [\n    /* ... */\n  ],\n  providers: [GlobalLoggingInterceptor, GlobalLoggingExceptionFilter],\n  imports: [LoggingModule],\n})\nexport class ExampleModule {}\n```\n\nWith this setup, all your routes will be taken into account by the `LoggingModule`. This is the recommended way of using this module, but this is not the only one.\n\n## StatsModule - Simple metrics gateway for your NestJS app\n\nThis module is useless if `LoggingModule` is being used since it consumes all its data from it.\n\n### StatsGateway\n\nThis component is a websockets gateway to expose multiple KPIs of your NestJS app, gathered from the `LoggingModule`.\n\n#### Setup\n\nThe setup is fairly simple: you only have to import the `StatsGateway` and pass it in the `providers` array of the module of your choice.\n\nFor this example, we will use the default and recommended `LoggingModule` + `StatsGateway` setup.\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport {\n  LoggingModule,\n  GlobalLoggingInterceptor,\n  GlobalLoggingExceptionFilter,\n} from '@amiralblendic/nestjs-addons/dist/logging';\nimport { StatsGateway } from '@amiralblendic/nestjs-addons/dist/stats';\n\n@Module({\n  controllers: [ExampleController],\n  providers: [\n    GlobalLoggingInterceptor,\n    GlobalLoggingExceptionFilter,\n    StatsGateway,\n  ],\n  imports: [TodosModule, LoggingModule],\n})\nexport class ExampleModule {}\n```\n\nNow you should be able to open a socket-io/ws connection to the `/stats` path _(i.e. if your NestJS app is running on https://example.com/, then you should open a connection to https://example.com/stats)_.\n","readmeFilename":"README.md"}