{"_id":"@beautinique/backend-mongoose","_rev":"12-2000b12623cdc28fb6d7b46ba428aac1","name":"@beautinique/backend-mongoose","dist-tags":{"latest":"1.0.11"},"versions":{"1.0.0":{"name":"@beautinique/backend-mongoose","version":"1.0.0","keywords":["backend","mongoose","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.0","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"6b1bf7d75cc25dd52153566699c8c82832249f5d","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.0.tgz","fileCount":8,"integrity":"sha512-vg28Vj4N/ooew7FXwidz4yFR0YGQRE1Hwyhx4O9cAuTARBtwohsqnVH8peHmWI7h5EG9P5JVr3gM7uTXu+456w==","signatures":[{"sig":"MEUCIQD6umzZhvdGZZavsJbxegpH6/Z49xMV7Oa+sPkw42ATJQIgebCHOmln+kiAwnxiTA33pDfkdMg9zFGzgh86r+1gqIo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43297},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"bdc391af55e491eebb392d5b31daa0185a23c610","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.8.0","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.0_1783103644852_0.2323644937822813","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@beautinique/backend-mongoose","version":"1.0.1","keywords":["backend","mongoose","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.1","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"b3f240807c93146b2e4db8fb948c17ee2a79f1f2","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.1.tgz","fileCount":8,"integrity":"sha512-kb7AOhr7eJhiDZdQbB7YMDcus/FDf3ZS9Rkq7lwJ0GAQn7WLls4P1hK4j2hcmwaV/0hRad71R9cMw8crN+dE3Q==","signatures":[{"sig":"MEYCIQDeVRjdK7Ynl7Fs9bzSumrqCvxIogWNAsNGbwXrkHakigIhAIZYM/TZLyWLMAe0hfPP7WlXfO+9Y//xsyrwCI0Rn1NI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43789},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"bdc391af55e491eebb392d5b31daa0185a23c610","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.8.0","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.1_1783145737468_0.24567978196821172","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@beautinique/backend-mongoose","version":"1.0.2","keywords":["backend","mongoose","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.2","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"bf554e98fafe5ecdea254ab679ce5c5d46c0cc4f","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.2.tgz","fileCount":8,"integrity":"sha512-fz6Upz0CszJId7T03gtYFbSCEfCrimIIYEVnl278TCN7KEa7Eu1AepiEWpUi162T0oTDrxXINqNcf/ZPGC+kLw==","signatures":[{"sig":"MEQCIEUu2hA067MWg8ua0NlJyWXzVst4ttyH4jd2mc2G0+AvAiBLiBpvBE8Ve1s8I6zEMaJadmoydk5KHKDPd13xo50M+Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43585},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"bdc391af55e491eebb392d5b31daa0185a23c610","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.8.0","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.2_1783146389959_0.4042707692119947","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@beautinique/backend-mongoose","version":"1.0.3","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.3","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"444c209ae0f27f9a32d10751601b2900eda09277","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.3.tgz","fileCount":8,"integrity":"sha512-zeX9RaY8f/D0rtZczAEEUIMctwlEGdV4ZdjqWUMvoQdMYzy5RH8KJ01swHyxPTyFhMwrfGdfGbzbXUJpLJuDFg==","signatures":[{"sig":"MEUCIAdKn7Tmtj6Os9bLqIynTp86CU2jQLJbhzKlq7UVnhAdAiEA7GsaQldcuzibWXd3/m5Y/uIyrhFIMlN6ZMO6uo0gpXk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71635},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"af40a43a436e355a163a6fb3f6fc057e83d132c0","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.10.1","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.0","@beautinique/backend-classes":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.3_1783685000484_0.15878367254543901","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@beautinique/backend-mongoose","version":"1.0.4","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.4","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"c5290a58ff925674315eb33f9300a95c5f6d43a7","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.4.tgz","fileCount":8,"integrity":"sha512-rSrBnCffkV83Nhmza+/+aZI/Hs6VIF4tkBPoMwxIui0DrO9kyqeCOimIWlGqB5yofz5BkQmKPKJzZt96sQ9lyA==","signatures":[{"sig":"MEQCIA2FaRXt0n7bsurOfpU6lAOnFWG0201iTdZK/PdOhJENAiAH/S937T9A7wmmuHvluRiVbtK+ywch5gdXIMFiuCuK1A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71658},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"3117311af555e0351e594e797a77c82f23cbc489","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.10.1","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":["./src/globals.ts"],"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.0","@beautinique/backend-classes":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.4_1783686228476_0.5361153190168306","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@beautinique/backend-mongoose","version":"1.0.5","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.5","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"012833d5a8591cbb2abcff587434fcdcae7240f1","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.5.tgz","fileCount":8,"integrity":"sha512-ClfwonlG+BSQTUEDPEMxHVS0CK0wSKwQVkIl97ea4lxBIKuRnNGSQH6bf5cN9qQyiLU/cgEz+nHZ90158fVMmQ==","signatures":[{"sig":"MEUCIB+QzRQbUkvQrxbHYvibAaZDcD7KHu/ZJPQCGjPp5qLIAiEAh6Zj6kvhEHwn84UqG2yxtP/RNn/0Kd09IohNBKyKxYY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71656},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"2aefc5229ad24f8c4b0721c171c04ad661beb831","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.10.1","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":["./src/globals.ts"],"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.0","@beautinique/backend-classes":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.5_1783793200216_0.9890292609696545","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@beautinique/backend-mongoose","version":"1.0.6","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.6","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"4f7a78141e43278881a904837f14ec5ed5fb0417","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.6.tgz","fileCount":70,"integrity":"sha512-v2MrhL8VWRHoxfgow6rE6t/hADub/fsFZ/U2fDxbE2CH24BIuw+siJoTIq08DqNrvw+c0b+DgoVlGDzxHGIdpQ==","signatures":[{"sig":"MEQCIGbXcp07q8R++DQ/Sw6cGvJbj+TDrHrCDGPttlSIkX4CAiALCOwOQy0nfBL63VFqYXGZYp3MCAcSD6SGKWxIID52QA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89616},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"337d6773eebd389c5605ccd50fa2bb9e92636fce","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","postbuild":"node ../../../scripts/build-types/index.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.8.0","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":["./src/globals.ts"],"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.0","@beautinique/backend-classes":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.6_1783929895200_0.47146695547461226","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@beautinique/backend-mongoose","version":"1.0.7","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.7","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"73353e44bbb26141ff72620be6c944aa13e8ea2d","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.7.tgz","fileCount":70,"integrity":"sha512-cvH7aQR0tmrbxgpS75aol4hb78cHGLOnNzC/o7S6YdUS8MyHERZ57VwtdDTjF22c/6zGXV7xRcUJ0oLWTE1uAA==","signatures":[{"sig":"MEYCIQCKEcIKPWZ3Whr6xEyuKI93ktpf7xgExT4H8ql5dAzi+gIhAJl+xo2G9rqQkWEiFmzHvwaHN6Jv+OMeFB9rn6d/ODhG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89616},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"309063216b8eafe33d6f8bb794e6ee6b96aedb9d","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","postbuild":"node ../../../scripts/build-types/index.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.8.0","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":["./src/globals.ts"],"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.4","@beautinique/backend-classes":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.7_1784656533392_0.509058984998664","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@beautinique/backend-mongoose","version":"1.0.8","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.8","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"833a5a7ace17ac940ea1910ff486b000c2836b88","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.8.tgz","fileCount":70,"integrity":"sha512-phqJA+oTmCfLtcBFrNlhIQyrnS19+kRJydzQpXFTxd7w5pt9GcjxkJytFAQ3un70EbN4X2YPuBXlAVCGaTb5dA==","signatures":[{"sig":"MEUCIQDsfL14EmNiIrBlSvk9D68C2QrgYKG5PP4tbFjINDxoIQIgS6ABzWtMLJXzCL2TnrXzILNk12JYS2SjsDtjhTWGSqI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89616},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"e30737149d6d3916e61a909d2a30954882a1ce7e","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","postbuild":"node ../../../scripts/build-types/index.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.8.0","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":["./src/globals.ts"],"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.6","@beautinique/backend-classes":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.8_1785442799309_0.1003995512129161","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@beautinique/backend-mongoose","version":"1.0.9","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.9","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"fca891599b3180f732fc6d9f4e6ceef8e459bf25","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.9.tgz","fileCount":70,"integrity":"sha512-Qcropi8mQm6hW7Bmhw/KfmdlYE9+L0Qe8EU92yYI1+t9pliw8RF2+UdKq2YUyrZ4COd/hqz8OOAQ1kIfb31z9g==","signatures":[{"sig":"MEYCIQC9eO7oXRYVyQ01SuD8CdTsNJAgtcEswtyFNoWjGXflpgIhAPh+WsBXa2WW2LaWQG1M4kMkogwqr2V7mc0RDE/W1QJ1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90182},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"b026a3b9693c94e58dcd163010dbf39b6b79e7ea","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","postbuild":"node ../../../scripts/build-types/index.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.8.0","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":["./src/globals.ts"],"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.7","@beautinique/backend-classes":"^1.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.9_1787039169697_0.808864983088962","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@beautinique/backend-mongoose","version":"1.0.10","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","_id":"@beautinique/backend-mongoose@1.0.10","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"dist":{"shasum":"1ab81b59b97531232b0a50feef58b2433ba5c0cc","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.10.tgz","fileCount":70,"integrity":"sha512-j8BEikiTZ2y/Ax7rYOqR2HNv1LzFQ6rZ+TY05u3Qukv+xabt5CRQ82d5Ln1ehdOnw3V7a2Benb7dQ23szJ/Pig==","signatures":[{"sig":"MEUCIGKPZXYgwy9DAisceFtZqgCm6pE1UKBzWDJhKPmwJeKZAiEAshErs7qPrXy+GJbW9rkt9cbVZXcjR0+i3LIrpFDPagM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90183},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"2807c53a8d389b6f0a36770b416bcc2026e40ca2","scripts":{"dev":"tsup --watch","lint":"eslint .","build":"tsup","postbuild":"node ../../../scripts/build-types/index.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"repository":{"url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","type":"git","directory":"packages/backend/mongoose"},"_npmVersion":"11.10.1","description":"Backend mongoose for Beautinique project.","directories":{},"sideEffects":["./src/globals.ts"],"_nodeVersion":"24.13.1","dependencies":{"mongoose":"^9.7.3","@beautinique/backend-utils":"^1.0.8","@beautinique/backend-classes":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/express":"^5.0.6"},"peerDependencies":{"express":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/backend-mongoose_1.0.10_1787219439366_0.6196243057278199","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"@beautinique/backend-mongoose","version":"1.0.11","description":"Backend mongoose for Beautinique project.","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"author":{"name":"Nageshwar Pawar"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","directory":"packages/backend/mongoose"},"bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":["./src/globals.ts"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","postbuild":"node ../../../scripts/build-types/index.mjs","dev":"tsup --watch","lint":"eslint .","typecheck":"tsc --noEmit"},"publishConfig":{"access":"public"},"engines":{"node":">=24"},"devDependencies":{"@types/express":"^5.0.6","typescript":"^6.0.3"},"dependencies":{"@beautinique/backend-classes":"^1.0.7","@beautinique/backend-utils":"^1.0.9","mongoose":"^9.7.3"},"peerDependencies":{"express":"^5.2.1"},"gitHead":"3a5103fb9030969e849b1e69b02bbe7d1cab5fbe","_id":"@beautinique/backend-mongoose@1.0.11","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-KlA0Op5z3wiMIaDznMo2isYVMDNyokDkwioII1hxsTeUgyJe+Xr8Iy6c7TzDv9zo1z/lJMhxdBFFYzttQb0O8A==","shasum":"c7bfe00269a480b093814ce2d76e7e9595e969dd","tarball":"https://registry.npmjs.org/@beautinique/backend-mongoose/-/backend-mongoose-1.0.11.tgz","fileCount":70,"unpackedSize":90183,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAQPqB1DgIbDKCDVC9D/0G8NA977aKg4Zv3oB3EERILTAiBdZGTYsytyU/cp82AiQnFFyXa84CJD0LAEaZaaewdYqg=="}]},"_npmUser":{"name":"beautinique","email":"beautinique.bq@gmail.com"},"directories":{},"maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/backend-mongoose_1.0.11_1787576759060_0.2298073172181534"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-03T18:34:04.725Z","modified":"2026-08-24T13:05:59.360Z","1.0.0":"2026-07-03T18:34:04.991Z","1.0.1":"2026-07-04T06:15:37.600Z","1.0.2":"2026-07-04T06:26:30.096Z","1.0.3":"2026-07-10T12:03:20.623Z","1.0.4":"2026-07-10T12:23:48.619Z","1.0.5":"2026-07-11T18:06:40.373Z","1.0.6":"2026-07-13T08:04:55.346Z","1.0.7":"2026-07-21T17:55:33.530Z","1.0.8":"2026-07-30T20:19:59.460Z","1.0.9":"2026-08-18T07:46:09.839Z","1.0.10":"2026-08-20T09:50:39.500Z","1.0.11":"2026-08-24T13:05:59.182Z"},"bugs":{"url":"https://github.com/Nageshwar1997/BQ-Packages/issues"},"author":{"name":"Nageshwar Pawar"},"license":"MIT","homepage":"https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/backend/mongoose#readme","keywords":["backend","mongoose","express","middleware","transaction","beautinique"],"repository":{"type":"git","url":"git+https://github.com/Nageshwar1997/BQ-Packages.git","directory":"packages/backend/mongoose"},"description":"Backend mongoose for Beautinique project.","maintainers":[{"name":"beautinique","email":"beautinique.bq@gmail.com"}],"readme":"# @beautinique/backend-mongoose\r\n\r\nMongoose connection management, health/state reporting, and transaction-aware Express middleware for Beautinique backend services.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @beautinique/backend-mongoose\r\n```\r\n\r\n`express` is a peer dependency - only required for `checkDbConnection`/`tryCatchSession`. Install whichever version your service already uses.\r\n\r\n## Connection\r\n\r\n```ts\r\nimport { connectDb, disconnectDB } from '@beautinique/backend-mongoose';\r\n\r\nawait connectDb({ uri: process.env.MONGO_URI!, enableGlobalCache: true });\r\n\r\n// on shutdown\r\nawait disconnectDB();\r\n```\r\n\r\n## Health & state\r\n\r\n```ts\r\nimport { connectionState, getConnectionHealth, mongoEvents } from '@beautinique/backend-mongoose';\r\n\r\nif (connectionState.isConnected()) {\r\n  /* ... */\r\n}\r\n\r\napp.get('/health', (_req, res) => res.json(getConnectionHealth()));\r\n\r\nmongoEvents.on('error', (error) => logger.error({ err: error }, 'MongoDB error'));\r\n```\r\n\r\n## `checkDbConnection`\r\n\r\nRejects requests with a `ServiceUnavailableError` (503) if the MongoDB connection isn't ready yet, instead of letting the request sit in mongoose's own query buffer (`bufferCommands`, ~10s timeout by default) only to fail later with an opaque, generic 500.\r\n\r\n```ts\r\nimport { checkDbConnection } from '@beautinique/backend-mongoose';\r\n\r\nawait connectDb({ uri: process.env.MONGO_URI! });\r\n\r\napp.use(checkDbConnection());\r\napp.use('/api', routes); // only reached once the DB is connected\r\n```\r\n\r\n| Option    | Default                              | Description                                     |\r\n| --------- | -------------------------------------- | -------------------------------------------------- |\r\n| `message` | `Database connection is not ready.`  | Overrides the `ServiceUnavailableError` message. |\r\n\r\nRegister it after `connectDb()` has been called, but before any route that touches the database - **not** in front of a health/readiness endpoint, which needs to report \"not ready\" rather than fail outright while the DB is still connecting.\r\n\r\n## `tryCatchSession`\r\n\r\nWraps an async Express route handler in a mongoose transaction, plus a deferred-lifecycle-hook pattern via `res.locals` - the database-backed counterpart to `tryCatchResponse` from [`@beautinique/backend-response`](https://www.npmjs.com/package/@beautinique/backend-response).\r\n\r\n```ts\r\nimport { tryCatchSession } from '@beautinique/backend-mongoose';\r\n\r\napp.post(\r\n  '/orders',\r\n  tryCatchSession(async (req, res, next, session) => {\r\n    const order = await orderService.create(req.body, { session });\r\n\r\n    res.locals.afterCommit?.push(async () => {\r\n      await notifyWarehouse(order.id);\r\n    });\r\n\r\n    res.success({ data: order, statusCode: 201 });\r\n  }),\r\n);\r\n```\r\n\r\n- Starts a session and transaction before calling the handler, which receives the active `ClientSession` as its 4th argument.\r\n- Commits the transaction if the handler resolves, aborts it if the handler throws/rejects - the abort itself is guarded, so a failure aborting never masks the original error.\r\n- Always ends the session afterwards, success or failure.\r\n- `res.locals.afterCommit` - run after the transaction commits.\r\n- `res.locals.afterRollback` - run after the transaction is aborted.\r\n- `res.locals.afterResponse` - also run after the transaction commits (in addition to `afterCommit`), for hooks that don't care specifically about the database.\r\n- `res.locals.afterFinish` - always run once the HTTP response has fully finished sending.\r\n\r\nAny thrown/rejected error is forwarded to `next(error)`, so it flows through `errorResponse` from `@beautinique/backend-response` the same way as everywhere else. For database-less services, use `tryCatchResponse` instead.\r\n\r\n## Repository\r\n\r\nhttps://github.com/Nageshwar1997/BQ-Packages\r\n\r\n## Homepage\r\n\r\nhttps://github.com/Nageshwar1997/BQ-Packages\r\n\r\n## Issues\r\n\r\nhttps://github.com/Nageshwar1997/BQ-Packages/issues\r\n\r\n## Author\r\n\r\nNageshwar Pawar\r\n\r\n## License\r\n\r\nThis package is licensed under the MIT License. See the root `LICENSE` file for details.\r\n","readmeFilename":"README.md"}