{"_id":"@takeny1998/nestjs-prisma-transactional","_rev":"47-57ec00081aa87b6f06f5e73dd789cd72","time":{"created":"2024-01-02T11:44:47.984Z","0.0.2":"2023-12-30T14:38:42.318Z","modified":"2024-01-29T12:21:18.550Z","0.0.3":"2023-12-30T14:53:08.576Z","0.0.4":"2023-12-30T15:27:38.291Z","0.0.5":"2023-12-30T15:32:15.775Z","0.0.6":"2023-12-30T15:38:59.913Z","0.0.7":"2023-12-30T15:52:57.247Z","0.0.8":"2023-12-30T15:55:00.421Z","0.0.9":"2024-01-01T15:54:21.310Z","0.0.10":"2024-01-01T15:54:48.606Z","0.0.11":"2024-01-01T16:02:53.095Z","0.0.12":"2024-01-02T06:42:16.440Z","0.0.13":"2024-01-02T07:33:05.407Z","0.0.14":"2024-01-02T07:44:14.477Z","0.0.15":"2024-01-02T07:48:28.637Z","0.0.16":"2024-01-02T07:53:41.710Z","0.0.17":"2024-01-02T08:14:02.922Z","0.0.18":"2024-01-02T08:15:27.563Z","0.0.19":"2024-01-02T08:27:11.049Z","0.0.20":"2024-01-02T08:33:38.266Z","0.0.21":"2024-01-02T08:38:17.037Z","0.0.22":"2024-01-02T08:50:55.537Z","0.0.23":"2024-01-02T09:11:38.940Z","0.0.24":"2024-01-02T09:12:56.694Z","0.0.25":"2024-01-02T09:24:17.730Z","0.0.26":"2024-01-02T09:38:54.348Z","0.0.27":"2024-01-02T09:39:45.753Z","0.0.28":"2024-01-02T10:35:24.811Z","0.0.29":"2024-01-02T10:38:53.942Z","0.0.30":"2024-01-02T10:40:00.498Z","0.0.31":"2024-01-02T10:43:31.856Z","0.0.32":"2024-01-02T10:45:55.901Z","0.0.33":"2024-01-02T10:47:29.590Z","0.0.34":"2024-01-02T10:48:41.426Z","0.0.35":"2024-01-02T10:49:29.358Z","0.0.36":"2024-01-02T10:51:36.334Z","0.0.37":"2024-01-02T11:31:17.818Z","0.0.38":"2024-01-02T11:38:00.441Z","0.0.39":"2024-01-02T11:39:27.834Z","0.0.1":"2024-01-02T11:44:48.260Z","1.0.0":"2024-01-02T12:58:41.244Z","1.0.1":"2024-01-03T06:59:58.607Z","1.0.2":"2024-01-11T10:52:02.810Z","1.0.3":"2024-01-11T10:52:28.126Z","1.0.3-1":"2024-01-29T12:17:21.895Z","1.0.4":"2024-01-29T12:18:52.054Z","1.0.5":"2024-01-29T12:21:18.382Z"},"name":"@takeny1998/nestjs-prisma-transactional","dist-tags":{"latest":"1.0.5"},"versions":{"0.0.1":{"name":"@takeny1998/nestjs-prisma-transactional","version":"0.0.1","description":"handling transaction with decorator in the nest.js and PrismaORM environments","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"license":"ISC","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","prisma":"^5.7.1","@types/node":"^20.10.5","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.3.3"},"_id":"@takeny1998/nestjs-prisma-transactional@0.0.1","gitHead":"413139f876df0f8c00887ab910455b33c7be73c2","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-/3600bz60MIlUkCCX5n4Snu0kXW1+ont3DJBfqLU5D5R+RSdJoX67kctKRiAEahEw8Lbi7phAJU3PnMeaXgtkw==","shasum":"b9caef420e99bc641aaa0c8960a837f831c99db1","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-0.0.1.tgz","fileCount":64,"unpackedSize":56500,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6zvtiKJCjVGCkkhPrKkaiJUEW+XfLa79ctgKDh91QWwIgIMN5w6roA9J6eH+cusl6I8NeKiob+qyx+lcCMiOhyuY="}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_0.0.1_1704195888087_0.9286773019599481"},"_hasShrinkwrap":false},"1.0.0":{"name":"@takeny1998/nestjs-prisma-transactional","version":"1.0.0","description":"handling transaction with decorator in the nest.js and PrismaORM environments","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transaction.git"},"author":{"name":"heebeom-yang"},"license":"ISC","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transaction/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transaction#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","prisma":"^5.7.1","@types/node":"^20.10.5","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.3.3"},"_id":"@takeny1998/nestjs-prisma-transactional@1.0.0","gitHead":"fe97dedf466a56afaa0c529416071ffd8a4f830f","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-5zhjPVidwe9mVXgIt+nKer1e63gWmfVsRQDJj5T6ONwL7L0FzVRtTVoaZ3x/obG1eXrH6+TgC2/OH2Dn9+Xv7g==","shasum":"e78c291d860714deb4b3ed23d7626046e129b306","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-1.0.0.tgz","fileCount":65,"unpackedSize":59217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM3ECV7w4NNFU64n86QsxtKahwOx9QmY44c7ebsmExewIhAOGN/Txsi19vmbH6JKYCx5jXrcTRflw2GsTA4t3Ral6X"}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_1.0.0_1704200321028_0.3953607424478067"},"_hasShrinkwrap":false},"1.0.1":{"name":"@takeny1998/nestjs-prisma-transactional","version":"1.0.1","description":"handling transaction with decorator in the nest.js and PrismaORM environments","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"license":"MIT","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","prisma":"^5.7.1","@types/node":"^20.10.5","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.3.3"},"_id":"@takeny1998/nestjs-prisma-transactional@1.0.1","gitHead":"3b37289b9381e20e111c7461ccac7a6a4a944a1e","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Lsqwp+P1ifInN5YCGdj+fiHOUIa80d7TvqIP7fDhqdpjDi8sUbCfXTIFDju4AgSSMFSzOoWTJGkZvy+dvAAmaA==","shasum":"adb4bbb9edcbd1a65be82c879cdb1e382a4a21ee","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-1.0.1.tgz","fileCount":66,"unpackedSize":60606,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDik2uswDig/889rxSZmVFDsU8w+WFVPmyPh3iX17TTgwIhAP9UzatfEY+4G4xks+GOhMKYjCA5xOe8asd+dhSBayen"}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_1.0.1_1704265198447_0.38440736294432987"},"_hasShrinkwrap":false},"1.0.2":{"name":"@takeny1998/nestjs-prisma-transactional","version":"1.0.2","description":"handling transaction with decorator in the nest.js and PrismaORM environments","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"license":"MIT","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","prisma":"^5.7.1","@types/node":"^20.10.5","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.3.3"},"_id":"@takeny1998/nestjs-prisma-transactional@1.0.2","gitHead":"3b37289b9381e20e111c7461ccac7a6a4a944a1e","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-XZS/FPYPTPvs8Pjq4mkCigcG6XWVTKaz/+i4eHGyXHCdT3l0/SMopL9hTtIJvc0AlxZV4/eSJlA0vS84Lcd5dA==","shasum":"caf20d735eed24445cb92c590e020a0778488d53","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-1.0.2.tgz","fileCount":66,"unpackedSize":60593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuRc2NF6E14eoW3CSXUTceJ9mb++Q18uNI7FjzcelnywIhAMDDCJtDZLXKdh+g/R3xnYbuB9CheoOxP54dUNxwtFcS"}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_1.0.2_1704970322644_0.6931921926874045"},"_hasShrinkwrap":false},"1.0.3":{"name":"@takeny1998/nestjs-prisma-transactional","version":"1.0.3","description":"handling transaction with decorator in the nest.js and PrismaORM environments","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"license":"MIT","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","prisma":"^5.7.1","@types/node":"^20.10.5","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.3.3"},"_id":"@takeny1998/nestjs-prisma-transactional@1.0.3","gitHead":"3b37289b9381e20e111c7461ccac7a6a4a944a1e","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-4TnH8VlTubv6bvvvG/NQRoqTvbRP//mTMhJjBkpARhA/QEl6UJbjMDEB+21yXFrMxtBDI44cq+MA1QqwCotomg==","shasum":"00cdfffa78d33389b71142dcc74ba03121b400bf","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-1.0.3.tgz","fileCount":66,"unpackedSize":60537,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBg13cF/LhC/vt72efA/WT508u6AZEDXewjBfSZEFccJAiEAiQTXCFFYiFnmi8rjF6JKBuqtvqDYnWA07RbNYCLsLtU="}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_1.0.3_1704970347895_0.883937414533793"},"_hasShrinkwrap":false},"1.0.3-1":{"name":"@takeny1998/nestjs-prisma-transactional","version":"1.0.3-1","description":"handling transaction with decorator in the nest.js and PrismaORM environments","type":"module","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"license":"MIT","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","@types/jest":"^29.5.11","@types/node":"^20.10.5","jest":"^29.7.0","prisma":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","ts-jest":"^29.1.2","typescript":"^5.3.3"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"test","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"testEnvironment":"node","moduleNameMapper":{"^@/(.*)$":"<rootDir>/$1"}},"licenseText":"MIT License\n\nCopyright (c) 2024 Heebeom Yang(takeny1998)\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":"@takeny1998/nestjs-prisma-transactional@1.0.3-1","dist":{"shasum":"b25c07e871e03ead83a6a9f0657c45ff924d6350","integrity":"sha512-MWOyu54d+xwiFmfFNfFw0vzEwzvHsJBf+aelU9x/MAh+Pz+L8kdGYDtmRciT+2oAo+FzLoCEBX244iq/EnhZRQ==","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-1.0.3-1.tgz","fileCount":82,"unpackedSize":63726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAK86mGPvzV11MSSiBtipP34OKhPnhluxRvTvRRAMTJCAiBiHs6Iq3m8ECXXAYJrh6T8EMeILE7C18VHCOqh22Rt1A=="}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_1.0.3-1_1706530641646_0.4908487159988575"},"_hasShrinkwrap":false},"1.0.4":{"name":"@takeny1998/nestjs-prisma-transactional","version":"1.0.4","description":"handling transaction with decorator in the nest.js and PrismaORM environments","type":"module","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"license":"MIT","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","@types/jest":"^29.5.11","@types/node":"^20.10.5","jest":"^29.7.0","prisma":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","ts-jest":"^29.1.2","typescript":"^5.3.3"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"test","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"testEnvironment":"node","moduleNameMapper":{"^@/(.*)$":"<rootDir>/$1"}},"licenseText":"MIT License\n\nCopyright (c) 2024 Heebeom Yang(takeny1998)\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":"@takeny1998/nestjs-prisma-transactional@1.0.4","dist":{"shasum":"0745e292351d4d4caa72c51b4f41229adfad0698","integrity":"sha512-jKdXlsbQp9dlFz90XTLuk1Dzv8LcIq563I3ZpJ2y2DzkXU6iuwC+YL99jRTT7gYZ0AQ8afHfD05TlvQPDAvc6w==","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-1.0.4.tgz","fileCount":82,"unpackedSize":63724,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtMnqQpB26ER9Lv/XkE2cG60UoYQuJJ0V0C3tlt5i+owIhAP1W43wflnOqRAR9zNQMgGxnLZKfozi5wrfv3feOENZ3"}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_1.0.4_1706530731910_0.4342178343908414"},"_hasShrinkwrap":false},"1.0.5":{"name":"@takeny1998/nestjs-prisma-transactional","version":"1.0.5","description":"handling transaction with decorator in the nest.js and PrismaORM environments","main":"dist/index.js","types":"dist/index.d.ts","module":"esm/index.js","scripts":{"build":"rm -rf dist esm && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"license":"MIT","bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","peerDependencies":{"@nestjs/common":"^10","@nestjs/core":"^10","@prisma/client":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^10.0.0","@nestjs/core":"^10.0.0","@prisma/client":"^5.7.1","@types/jest":"^29.5.11","@types/node":"^20.10.5","jest":"^29.7.0","prisma":"^5.7.1","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","ts-jest":"^29.1.2","typescript":"^5.3.3"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"test","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"testEnvironment":"node","moduleNameMapper":{"^@/(.*)$":"<rootDir>/$1"}},"licenseText":"MIT License\n\nCopyright (c) 2024 Heebeom Yang(takeny1998)\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":"@takeny1998/nestjs-prisma-transactional@1.0.5","dist":{"shasum":"f88b88e443713f04278957dfc3e276773140e9f2","integrity":"sha512-HITFTuQEEhl0WMERjKXwlxnfNe3UG5S2DzH9+N7RnyvnQfV7LzwS2imE3M/QzqApUDXO1DaVPaSM0nruHWl6Fg==","tarball":"https://registry.npmjs.org/@takeny1998/nestjs-prisma-transactional/-/nestjs-prisma-transactional-1.0.5.tgz","fileCount":82,"unpackedSize":63704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1YOtr8z6okT8LU0iMAZPjnH3d3YmDe49MihB6wTzh6QIhAJKHGzn+uSoeYTbmkZ8rRYZ53flOI3f6Ndsg/4QhLFFD"}]},"_npmUser":{"name":"takeny1998","email":"takeny1998@gmail.com"},"directories":{},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-prisma-transactional_1.0.5_1706530878204_0.3664927649866774"},"_hasShrinkwrap":false}},"maintainers":[{"name":"takeny1998","email":"takeny1998@gmail.com"}],"description":"handling transaction with decorator in the nest.js and PrismaORM environments","homepage":"https://github.com/takeny1998/nestjs-prisma-transactional#readme","repository":{"type":"git","url":"git+https://github.com/takeny1998/nestjs-prisma-transactional.git"},"author":{"name":"heebeom-yang"},"bugs":{"url":"https://github.com/takeny1998/nestjs-prisma-transactional/issues"},"license":"MIT","readme":"\n# nestjs-prisma-transactional\n\nManage **PrismaORM transactions** easily by **adding decorator** to your nest.js services.\n\n![npm](https://img.shields.io/npm/v/%40takeny1998%2Fnestjs-prisma-transactional?link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40takeny1998%2Fnestjs-prisma-transactional)  ![npm](https://img.shields.io/npm/dt/%40takeny1998%2Fnestjs-prisma-transactional?link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40takeny1998%2Fnestjs-prisma-transactional%2F)  [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n\n\n\n## Installation\n\nInstall with **npm**\n\n```bash\n  npm install @takeny1998/nestjs-prisma-transactional\n```\n\nOr install via **yarn**\n\n```bash\n  yarn add @takeny1998/nestjs-prisma-transactional\n```\n\n\n## Usage\n\n### Step 1: Import Transaction Module\n\nImport the `TransactionMoudle` to `AppModule` of your nest.js project. Or just add it to the module you want to use.\n\n```typescript\nimport { TransactionModule } from '@takeny1998/nestjs-prisma-transactional';\n\n@Module({\n  imports: [\n    ...\n    TransactionModule, // just import it\n  ],\n  controllers: [...],\n  providers: [...],\n})\nexport class AppModule {}\n\n```\n\n\n\n### Step 2: Extend PrismaClient\n\nI provide the extension so that you can freely extend `PrismaClient`. My extension does not modify the type of the existing `PrismaClient`, so you can simply extend and inject your own Client.\n```typescript\nimport { TransactionModule } from '@takeny1998/nestjs-prisma-transactional';\n\n@Module({\n  imports: [\n    ...\n    TransactionModule,\n  ],\n  controllers: [...],\n  providers: [\n    {\n      provide: 'PrismaService',\n      useValue: new PrismaService().$extends(txExtension),\n    },\n  ],\n  exports: ['PrismaService'],\n})\nexport class AppModule {}\n\n```\n\nOtherwise, a good alternative is to [use the `CustomPrismaModule`](https://nestjs-prisma.dev/docs/prisma-client-extensions/) from the [nestjs-prisma](https://github.com/notiz-dev/nestjs-prisma) package.\n(If you have a great way to extend PrismaClient, please let me know it by opening an issue)\n\n\n\n### Step 3: Add `@Transactional` Decorator whereever you want\n\nAdd the `@Transactional()` decorator **to any method you want to make transactional scope,** and all repositories using the method's child `PrismaClien`t will automatically be merged as one transaction.\n\n```typescript\n\n@Transactional()\nasync writePost(dto: WritePostDto) {\n  const createdPost = await this.postService.createPost(userUuid, { ...post, summary });\n\n  const user = await this.userService.findUserByUniqueInput({ uuid: userUuid });\n\n  if (!user) {\n    throw new NotFoundException(`Cloud not found User with UUID: ${userUuid}`);\n  }\n\n  ...\n}\n```\n\nEven if there are decorators from repositories or domain services under the method, they will be merged into the top-level transaction scope.\n\n\n\n## Contributing\n\nContributions are always welcome!\n\nIf you have any suggestions for improvements or encounter a bug while using this package, please feel free to open an issue.\n\n","readmeFilename":"README.md"}