@servicelabsco/nestjs-utility-services 3.0.19 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/CHANGELOG.md +219 -1
  2. package/README.md +2 -0
  3. package/dist/app.module.js +10 -43
  4. package/dist/app.module.js.map +1 -1
  5. package/dist/auth/auth.module.js +1 -4
  6. package/dist/auth/auth.module.js.map +1 -1
  7. package/dist/auth/middlewares/internal.middleware.js +4 -36
  8. package/dist/auth/middlewares/internal.middleware.js.map +1 -1
  9. package/dist/auth/services/auth.service.js.map +1 -1
  10. package/dist/auth/services/device.token.service.js +4 -3
  11. package/dist/auth/services/device.token.service.js.map +1 -1
  12. package/dist/auth/services/refresh.token.service.js +1 -34
  13. package/dist/auth/services/refresh.token.service.js.map +1 -1
  14. package/dist/common/adapters/redis.io.adapter.d.ts +1 -3
  15. package/dist/common/adapters/redis.io.adapter.js +3 -7
  16. package/dist/common/adapters/redis.io.adapter.js.map +1 -1
  17. package/dist/common/libraries/auth.js +1 -34
  18. package/dist/common/libraries/auth.js.map +1 -1
  19. package/dist/common/libraries/common.subscriber.js +15 -15
  20. package/dist/common/libraries/common.subscriber.js.map +1 -1
  21. package/dist/common/libraries/custom.crypt.js +13 -46
  22. package/dist/common/libraries/custom.crypt.js.map +1 -1
  23. package/dist/common/libraries/custom.logger.js +1 -1
  24. package/dist/common/libraries/custom.logger.js.map +1 -1
  25. package/dist/common/libraries/date.util.js +3 -3
  26. package/dist/common/libraries/date.util.js.map +1 -1
  27. package/dist/common/libraries/hash.js +3 -36
  28. package/dist/common/libraries/hash.js.map +1 -1
  29. package/dist/common/libraries/json.evaluator.js +26 -26
  30. package/dist/common/libraries/json.evaluator.js.map +1 -1
  31. package/dist/common/libraries/log.redactor.js +14 -14
  32. package/dist/common/libraries/log.redactor.js.map +1 -1
  33. package/dist/common/libraries/money.js +4 -4
  34. package/dist/common/libraries/money.js.map +1 -1
  35. package/dist/common/libraries/platform.utility.js +1 -4
  36. package/dist/common/libraries/platform.utility.js.map +1 -1
  37. package/dist/common/libraries/record.manager.js.map +1 -1
  38. package/dist/common/libraries/sentry.sdk.d.ts +1 -1
  39. package/dist/common/libraries/sentry.sdk.js +1 -1
  40. package/dist/common/libraries/sentry.sdk.js.map +1 -1
  41. package/dist/config/jwt.config.js.map +1 -1
  42. package/dist/config/orm.config.js +0 -3
  43. package/dist/config/orm.config.js.map +1 -1
  44. package/dist/config/read.typeorm.config.js +6 -35
  45. package/dist/config/read.typeorm.config.js.map +1 -1
  46. package/dist/config/sentry.options.js +14 -1
  47. package/dist/config/sentry.options.js.map +1 -1
  48. package/dist/config/typeorm.config.js +6 -37
  49. package/dist/config/typeorm.config.js.map +1 -1
  50. package/dist/health.check.controller.js +18 -0
  51. package/dist/health.check.controller.js.map +1 -1
  52. package/dist/main.d.ts +0 -1
  53. package/dist/main.js +6 -45
  54. package/dist/main.js.map +1 -1
  55. package/dist/migrations/1619296224563-AddMasterSeedersDataSeederTable.js +2 -35
  56. package/dist/migrations/1619296224563-AddMasterSeedersDataSeederTable.js.map +1 -1
  57. package/dist/migrations/1779607111923-AddUniqueIndexSysPropertiesName.js +2 -2
  58. package/dist/migrations/1779607111923-AddUniqueIndexSysPropertiesName.js.map +1 -1
  59. package/dist/migrations/1779607111924-AddUniqueIndexSysDocumentsFileHash.js +2 -2
  60. package/dist/migrations/1779607111924-AddUniqueIndexSysDocumentsFileHash.js.map +1 -1
  61. package/dist/migrations/1779690975270-AddUniqueIndexSysSessionIdentifiers.js +1 -1
  62. package/dist/migrations/1779690975270-AddUniqueIndexSysSessionIdentifiers.js.map +1 -1
  63. package/dist/migrations/1779773659655-AddIdempotencyIndexesForJobs.js +3 -3
  64. package/dist/migrations/1779773659655-AddIdempotencyIndexesForJobs.js.map +1 -1
  65. package/dist/migrations/1780002352495-MigrateJsonColumnsToJsonb.js +20 -20
  66. package/dist/migrations/1780002352495-MigrateJsonColumnsToJsonb.js.map +1 -1
  67. package/dist/migrations/1788287350858-ReplaceUniqueIndexesWithSoftDeleteAware.js +4 -4
  68. package/dist/migrations/1788287350858-ReplaceUniqueIndexesWithSoftDeleteAware.js.map +1 -1
  69. package/dist/migrations/1788287350859-NormalizeSocialIdentitiesUuidDefault.js +1 -1
  70. package/dist/migrations/1788287350859-NormalizeSocialIdentitiesUuidDefault.js.map +1 -1
  71. package/dist/migrations/1793302598724-CreateUploadSessionTable.d.ts +5 -0
  72. package/dist/migrations/1793302598724-CreateUploadSessionTable.js +33 -0
  73. package/dist/migrations/1793302598724-CreateUploadSessionTable.js.map +1 -0
  74. package/dist/platformUtility/constants/index.d.ts +1 -0
  75. package/dist/platformUtility/constants/index.js +1 -0
  76. package/dist/platformUtility/constants/index.js.map +1 -1
  77. package/dist/platformUtility/constants/servicelabs.constants.d.ts +30 -0
  78. package/dist/platformUtility/constants/servicelabs.constants.js +34 -0
  79. package/dist/platformUtility/constants/servicelabs.constants.js.map +1 -0
  80. package/dist/platformUtility/consumers/job.consumer.d.ts +2 -1
  81. package/dist/platformUtility/consumers/job.consumer.js +8 -8
  82. package/dist/platformUtility/consumers/job.consumer.js.map +1 -1
  83. package/dist/platformUtility/es6.classes.d.ts +36 -4
  84. package/dist/platformUtility/es6.classes.js +8 -1
  85. package/dist/platformUtility/es6.classes.js.map +1 -1
  86. package/dist/platformUtility/filters/sentry.reporting.filter.js +2 -1
  87. package/dist/platformUtility/filters/sentry.reporting.filter.js.map +1 -1
  88. package/dist/platformUtility/interfaces/index.d.ts +19 -0
  89. package/dist/platformUtility/interfaces/index.js +19 -0
  90. package/dist/platformUtility/interfaces/index.js.map +1 -1
  91. package/dist/platformUtility/interfaces/servicelabs.call.options.interface.d.ts +8 -0
  92. package/dist/platformUtility/interfaces/servicelabs.call.options.interface.js +3 -0
  93. package/dist/platformUtility/interfaces/servicelabs.call.options.interface.js.map +1 -0
  94. package/dist/platformUtility/interfaces/servicelabs.callback.event.interface.d.ts +6 -0
  95. package/dist/platformUtility/interfaces/servicelabs.callback.event.interface.js +3 -0
  96. package/dist/platformUtility/interfaces/servicelabs.callback.event.interface.js.map +1 -0
  97. package/dist/platformUtility/interfaces/servicelabs.error.interface.d.ts +10 -0
  98. package/dist/platformUtility/interfaces/servicelabs.error.interface.js +3 -0
  99. package/dist/platformUtility/interfaces/servicelabs.error.interface.js.map +1 -0
  100. package/dist/platformUtility/interfaces/servicelabs.html.pdf.input.interface.d.ts +5 -0
  101. package/dist/platformUtility/interfaces/servicelabs.html.pdf.input.interface.js +3 -0
  102. package/dist/platformUtility/interfaces/servicelabs.html.pdf.input.interface.js.map +1 -0
  103. package/dist/platformUtility/interfaces/servicelabs.job.file.interface.d.ts +10 -0
  104. package/dist/platformUtility/interfaces/servicelabs.job.file.interface.js +3 -0
  105. package/dist/platformUtility/interfaces/servicelabs.job.file.interface.js.map +1 -0
  106. package/dist/platformUtility/interfaces/servicelabs.job.interface.d.ts +31 -0
  107. package/dist/platformUtility/interfaces/servicelabs.job.interface.js +3 -0
  108. package/dist/platformUtility/interfaces/servicelabs.job.interface.js.map +1 -0
  109. package/dist/platformUtility/interfaces/servicelabs.job.list.interface.d.ts +5 -0
  110. package/dist/platformUtility/interfaces/servicelabs.job.list.interface.js +3 -0
  111. package/dist/platformUtility/interfaces/servicelabs.job.list.interface.js.map +1 -0
  112. package/dist/platformUtility/interfaces/servicelabs.job.list.options.interface.d.ts +6 -0
  113. package/dist/platformUtility/interfaces/servicelabs.job.list.options.interface.js +3 -0
  114. package/dist/platformUtility/interfaces/servicelabs.job.list.options.interface.js.map +1 -0
  115. package/dist/platformUtility/interfaces/servicelabs.job.summary.interface.d.ts +15 -0
  116. package/dist/platformUtility/interfaces/servicelabs.job.summary.interface.js +3 -0
  117. package/dist/platformUtility/interfaces/servicelabs.job.summary.interface.js.map +1 -0
  118. package/dist/platformUtility/interfaces/servicelabs.request.interface.d.ts +5 -0
  119. package/dist/platformUtility/interfaces/servicelabs.request.interface.js +3 -0
  120. package/dist/platformUtility/interfaces/servicelabs.request.interface.js.map +1 -0
  121. package/dist/platformUtility/interfaces/servicelabs.response.interface.d.ts +6 -0
  122. package/dist/platformUtility/interfaces/servicelabs.response.interface.js +3 -0
  123. package/dist/platformUtility/interfaces/servicelabs.response.interface.js.map +1 -0
  124. package/dist/platformUtility/interfaces/servicelabs.run.options.interface.d.ts +8 -0
  125. package/dist/platformUtility/interfaces/servicelabs.run.options.interface.js +3 -0
  126. package/dist/platformUtility/interfaces/servicelabs.run.options.interface.js.map +1 -0
  127. package/dist/platformUtility/interfaces/servicelabs.store.options.interface.d.ts +5 -0
  128. package/dist/platformUtility/interfaces/servicelabs.store.options.interface.js +3 -0
  129. package/dist/platformUtility/interfaces/servicelabs.store.options.interface.js.map +1 -0
  130. package/dist/platformUtility/interfaces/servicelabs.stored.file.interface.d.ts +6 -0
  131. package/dist/platformUtility/interfaces/servicelabs.stored.file.interface.js +3 -0
  132. package/dist/platformUtility/interfaces/servicelabs.stored.file.interface.js.map +1 -0
  133. package/dist/platformUtility/interfaces/servicelabs.url.input.interface.d.ts +3 -0
  134. package/dist/platformUtility/interfaces/servicelabs.url.input.interface.js +3 -0
  135. package/dist/platformUtility/interfaces/servicelabs.url.input.interface.js.map +1 -0
  136. package/dist/platformUtility/interfaces/servicelabs.utility.interface.d.ts +12 -0
  137. package/dist/platformUtility/interfaces/servicelabs.utility.interface.js +3 -0
  138. package/dist/platformUtility/interfaces/servicelabs.utility.interface.js.map +1 -0
  139. package/dist/platformUtility/interfaces/servicelabs.zip.entry.interface.d.ts +4 -0
  140. package/dist/platformUtility/interfaces/servicelabs.zip.entry.interface.js +3 -0
  141. package/dist/platformUtility/interfaces/servicelabs.zip.entry.interface.js.map +1 -0
  142. package/dist/platformUtility/interfaces/servicelabs.zip.files.input.interface.d.ts +4 -0
  143. package/dist/platformUtility/interfaces/servicelabs.zip.files.input.interface.js +3 -0
  144. package/dist/platformUtility/interfaces/servicelabs.zip.files.input.interface.js.map +1 -0
  145. package/dist/platformUtility/interfaces/unzip.file.interface.d.ts +6 -0
  146. package/dist/platformUtility/interfaces/unzip.file.interface.js +3 -0
  147. package/dist/platformUtility/interfaces/unzip.file.interface.js.map +1 -0
  148. package/dist/platformUtility/libraries/common.servicelabs.callback.controller.d.ts +11 -0
  149. package/dist/platformUtility/libraries/common.servicelabs.callback.controller.js +43 -0
  150. package/dist/platformUtility/libraries/common.servicelabs.callback.controller.js.map +1 -0
  151. package/dist/platformUtility/libraries/create.entity.constants.file.js +1 -34
  152. package/dist/platformUtility/libraries/create.entity.constants.file.js.map +1 -1
  153. package/dist/platformUtility/libraries/create.es6.classes.file.js +1 -34
  154. package/dist/platformUtility/libraries/create.es6.classes.file.js.map +1 -1
  155. package/dist/platformUtility/libraries/create.es6.jobs.file.js +1 -34
  156. package/dist/platformUtility/libraries/create.es6.jobs.file.js.map +1 -1
  157. package/dist/platformUtility/libraries/create.es6.service.file.js +1 -34
  158. package/dist/platformUtility/libraries/create.es6.service.file.js.map +1 -1
  159. package/dist/platformUtility/libraries/create.index.file.js +1 -34
  160. package/dist/platformUtility/libraries/create.index.file.js.map +1 -1
  161. package/dist/platformUtility/libraries/file.system.utility.js +1 -34
  162. package/dist/platformUtility/libraries/file.system.utility.js.map +1 -1
  163. package/dist/platformUtility/libraries/index.d.ts +1 -0
  164. package/dist/platformUtility/libraries/index.js +1 -0
  165. package/dist/platformUtility/libraries/index.js.map +1 -1
  166. package/dist/platformUtility/libraries/process.common.mail.js +4 -7
  167. package/dist/platformUtility/libraries/process.common.mail.js.map +1 -1
  168. package/dist/platformUtility/libraries/process.kaleyra.sms.d.ts +1 -0
  169. package/dist/platformUtility/libraries/process.kaleyra.sms.js +11 -37
  170. package/dist/platformUtility/libraries/process.kaleyra.sms.js.map +1 -1
  171. package/dist/platformUtility/libraries/process.smtp.mail.js +1 -34
  172. package/dist/platformUtility/libraries/process.smtp.mail.js.map +1 -1
  173. package/dist/platformUtility/libraries/sentry.bootstrap.js +5 -5
  174. package/dist/platformUtility/libraries/sentry.bootstrap.js.map +1 -1
  175. package/dist/platformUtility/libraries/sentry.context.d.ts +1 -1
  176. package/dist/platformUtility/libraries/sentry.context.js +1 -2
  177. package/dist/platformUtility/libraries/sentry.context.js.map +1 -1
  178. package/dist/platformUtility/middlewares/trim.pipe.js +13 -12
  179. package/dist/platformUtility/middlewares/trim.pipe.js.map +1 -1
  180. package/dist/platformUtility/platform.utility.module.js +9 -5
  181. package/dist/platformUtility/platform.utility.module.js.map +1 -1
  182. package/dist/platformUtility/services/aws.client.factory.js +3 -2
  183. package/dist/platformUtility/services/aws.client.factory.js.map +1 -1
  184. package/dist/platformUtility/services/aws.config.service.js +3 -2
  185. package/dist/platformUtility/services/aws.config.service.js.map +1 -1
  186. package/dist/platformUtility/services/cache.service.js +4 -2
  187. package/dist/platformUtility/services/cache.service.js.map +1 -1
  188. package/dist/platformUtility/services/dynamo.service.js +4 -3
  189. package/dist/platformUtility/services/dynamo.service.js.map +1 -1
  190. package/dist/platformUtility/services/index.d.ts +2 -0
  191. package/dist/platformUtility/services/index.js +2 -0
  192. package/dist/platformUtility/services/index.js.map +1 -1
  193. package/dist/platformUtility/services/local.property.service.js +1 -4
  194. package/dist/platformUtility/services/local.property.service.js.map +1 -1
  195. package/dist/platformUtility/services/maintenance.service.js +2 -35
  196. package/dist/platformUtility/services/maintenance.service.js.map +1 -1
  197. package/dist/platformUtility/services/pdf.service.d.ts +4 -1
  198. package/dist/platformUtility/services/pdf.service.js +16 -2
  199. package/dist/platformUtility/services/pdf.service.js.map +1 -1
  200. package/dist/platformUtility/services/queue.service.d.ts +5 -3
  201. package/dist/platformUtility/services/queue.service.js +14 -3
  202. package/dist/platformUtility/services/queue.service.js.map +1 -1
  203. package/dist/platformUtility/services/redis.service.d.ts +1 -0
  204. package/dist/platformUtility/services/redis.service.js +10 -8
  205. package/dist/platformUtility/services/redis.service.js.map +1 -1
  206. package/dist/platformUtility/services/remote.request.service.js +1 -4
  207. package/dist/platformUtility/services/remote.request.service.js.map +1 -1
  208. package/dist/platformUtility/services/s3.service.js +1 -34
  209. package/dist/platformUtility/services/s3.service.js.map +1 -1
  210. package/dist/platformUtility/services/servicelabs.dev.service.d.ts +49 -0
  211. package/dist/platformUtility/services/servicelabs.dev.service.js +181 -0
  212. package/dist/platformUtility/services/servicelabs.dev.service.js.map +1 -0
  213. package/dist/platformUtility/services/servicelabs.utility.service.d.ts +51 -0
  214. package/dist/platformUtility/services/servicelabs.utility.service.js +193 -0
  215. package/dist/platformUtility/services/servicelabs.utility.service.js.map +1 -0
  216. package/dist/platformUtility/services/shutdown.service.js.map +1 -1
  217. package/dist/platformUtility/services/split.pdf.service.d.ts +3 -1
  218. package/dist/platformUtility/services/split.pdf.service.js +9 -2
  219. package/dist/platformUtility/services/split.pdf.service.js.map +1 -1
  220. package/dist/platformUtility/services/zip.service.d.ts +7 -2
  221. package/dist/platformUtility/services/zip.service.js +41 -5
  222. package/dist/platformUtility/services/zip.service.js.map +1 -1
  223. package/dist/security/security.module.js +1 -4
  224. package/dist/security/security.module.js.map +1 -1
  225. package/dist/system/constants/index.d.ts +1 -0
  226. package/dist/system/constants/index.js +1 -0
  227. package/dist/system/constants/index.js.map +1 -1
  228. package/dist/system/constants/upload.session.constants.d.ts +21 -0
  229. package/dist/system/constants/upload.session.constants.js +25 -0
  230. package/dist/system/constants/upload.session.constants.js.map +1 -0
  231. package/dist/system/controllers/upload.controller.js +2 -2
  232. package/dist/system/controllers/upload.controller.js.map +1 -1
  233. package/dist/system/dtos/direct.upload.file.dto.d.ts +5 -0
  234. package/dist/system/dtos/direct.upload.file.dto.js +37 -0
  235. package/dist/system/dtos/direct.upload.file.dto.js.map +1 -0
  236. package/dist/system/dtos/direct.upload.initiate.dto.d.ts +4 -0
  237. package/dist/system/dtos/direct.upload.initiate.dto.js +27 -0
  238. package/dist/system/dtos/direct.upload.initiate.dto.js.map +1 -0
  239. package/dist/system/dtos/direct.upload.options.dto.d.ts +8 -0
  240. package/dist/system/dtos/direct.upload.options.dto.js +54 -0
  241. package/dist/system/dtos/direct.upload.options.dto.js.map +1 -0
  242. package/dist/system/dtos/direct.upload.parts.dto.d.ts +3 -0
  243. package/dist/system/dtos/direct.upload.parts.dto.js +26 -0
  244. package/dist/system/dtos/direct.upload.parts.dto.js.map +1 -0
  245. package/dist/system/dtos/index.d.ts +5 -0
  246. package/dist/system/dtos/index.js +5 -0
  247. package/dist/system/dtos/index.js.map +1 -1
  248. package/dist/system/dtos/upload.session.attributes.dto.d.ts +5 -0
  249. package/dist/system/dtos/upload.session.attributes.dto.js +7 -0
  250. package/dist/system/dtos/upload.session.attributes.dto.js.map +1 -0
  251. package/dist/system/entities/index.d.ts +1 -0
  252. package/dist/system/entities/index.js +1 -0
  253. package/dist/system/entities/index.js.map +1 -1
  254. package/dist/system/entities/upload.session.entity.d.ts +20 -0
  255. package/dist/system/entities/upload.session.entity.js +86 -0
  256. package/dist/system/entities/upload.session.entity.js.map +1 -0
  257. package/dist/system/es6.classes.d.ts +34 -5
  258. package/dist/system/es6.classes.js +20 -1
  259. package/dist/system/es6.classes.js.map +1 -1
  260. package/dist/system/interfaces/direct.upload.part.url.interface.d.ts +6 -0
  261. package/dist/system/interfaces/direct.upload.part.url.interface.js +3 -0
  262. package/dist/system/interfaces/direct.upload.part.url.interface.js.map +1 -0
  263. package/dist/system/interfaces/direct.upload.result.interface.d.ts +10 -0
  264. package/dist/system/interfaces/direct.upload.result.interface.js +3 -0
  265. package/dist/system/interfaces/direct.upload.result.interface.js.map +1 -0
  266. package/dist/system/interfaces/direct.upload.session.interface.d.ts +16 -0
  267. package/dist/system/interfaces/direct.upload.session.interface.js +3 -0
  268. package/dist/system/interfaces/direct.upload.session.interface.js.map +1 -0
  269. package/dist/system/interfaces/direct.upload.status.interface.d.ts +12 -0
  270. package/dist/system/interfaces/direct.upload.status.interface.js +3 -0
  271. package/dist/system/interfaces/direct.upload.status.interface.js.map +1 -0
  272. package/dist/system/interfaces/index.d.ts +5 -0
  273. package/dist/system/interfaces/index.js +5 -0
  274. package/dist/system/interfaces/index.js.map +1 -1
  275. package/dist/system/interfaces/uploaded.part.interface.d.ts +5 -0
  276. package/dist/system/interfaces/uploaded.part.interface.js +3 -0
  277. package/dist/system/interfaces/uploaded.part.interface.js.map +1 -0
  278. package/dist/system/jobs/expire.upload.session.job.d.ts +13 -0
  279. package/dist/system/jobs/expire.upload.session.job.js +38 -0
  280. package/dist/system/jobs/expire.upload.session.job.js.map +1 -0
  281. package/dist/system/jobs/index.d.ts +1 -0
  282. package/dist/system/jobs/index.js +1 -0
  283. package/dist/system/jobs/index.js.map +1 -1
  284. package/dist/system/jobs/orphan.sweeper.job.js +3 -2
  285. package/dist/system/jobs/orphan.sweeper.job.js.map +1 -1
  286. package/dist/system/jobs/set.event.queue.job.js +3 -2
  287. package/dist/system/jobs/set.event.queue.job.js.map +1 -1
  288. package/dist/system/jobs/sqs.polling.job.js.map +1 -1
  289. package/dist/system/libraries/code.evaluator.d.ts +13 -0
  290. package/dist/system/libraries/code.evaluator.js +41 -1
  291. package/dist/system/libraries/code.evaluator.js.map +1 -1
  292. package/dist/system/libraries/common.direct.upload.controller.d.ts +19 -0
  293. package/dist/system/libraries/common.direct.upload.controller.js +84 -0
  294. package/dist/system/libraries/common.direct.upload.controller.js.map +1 -0
  295. package/dist/system/libraries/common.storage.service.d.ts +13 -0
  296. package/dist/system/libraries/common.storage.service.js +78 -1
  297. package/dist/system/libraries/common.storage.service.js.map +1 -1
  298. package/dist/system/libraries/crypt.re.encrypt.processor.js +2 -2
  299. package/dist/system/libraries/crypt.re.encrypt.processor.js.map +1 -1
  300. package/dist/system/libraries/file.type.detector.d.ts +2 -0
  301. package/dist/system/libraries/file.type.detector.js +88 -75
  302. package/dist/system/libraries/file.type.detector.js.map +1 -1
  303. package/dist/system/libraries/generate.downloadable.report.file.js +2 -35
  304. package/dist/system/libraries/generate.downloadable.report.file.js.map +1 -1
  305. package/dist/system/libraries/index.d.ts +1 -0
  306. package/dist/system/libraries/index.js +1 -0
  307. package/dist/system/libraries/index.js.map +1 -1
  308. package/dist/system/libraries/model.sync.js +2 -2
  309. package/dist/system/libraries/model.sync.js.map +1 -1
  310. package/dist/system/libraries/sandboxed.script.executor.js +17 -17
  311. package/dist/system/libraries/sandboxed.script.executor.js.map +1 -1
  312. package/dist/system/services/aws.s3.service.js +6 -5
  313. package/dist/system/services/aws.s3.service.js.map +1 -1
  314. package/dist/system/services/base.service.js.map +1 -1
  315. package/dist/system/services/direct.upload.service.d.ts +41 -0
  316. package/dist/system/services/direct.upload.service.js +385 -0
  317. package/dist/system/services/direct.upload.service.js.map +1 -0
  318. package/dist/system/services/document.service.js +2 -38
  319. package/dist/system/services/document.service.js.map +1 -1
  320. package/dist/system/services/event.detail.service.js.map +1 -1
  321. package/dist/system/services/event.queue.service.js +3 -2
  322. package/dist/system/services/event.queue.service.js.map +1 -1
  323. package/dist/system/services/index.d.ts +1 -0
  324. package/dist/system/services/index.js +1 -0
  325. package/dist/system/services/index.js.map +1 -1
  326. package/dist/system/services/storage.service.d.ts +20 -0
  327. package/dist/system/services/storage.service.js +62 -7
  328. package/dist/system/services/storage.service.js.map +1 -1
  329. package/dist/system/services/upload.service.js +3 -5
  330. package/dist/system/services/upload.service.js.map +1 -1
  331. package/dist/system/system.module.js +1 -4
  332. package/dist/system/system.module.js.map +1 -1
  333. package/dist/worker.d.ts +1 -1
  334. package/dist/worker.js +2 -1
  335. package/dist/worker.js.map +1 -1
  336. package/docs/sentry-reporting.md +26 -20
  337. package/docs/servicelabs-utilities.md +174 -0
  338. package/docs/upgrade-4.0.md +215 -0
  339. package/package.json +70 -74
@@ -0,0 +1,215 @@
1
+ # Upgrading to 4.x — NestJS 12
2
+
3
+ `@servicelabsco/nestjs-utility-services` **4.0.0** moves the package to NestJS 12, Node 24.15+, Sentry 11,
4
+ BullMQ 6 and ioredis 6. TypeORM stays on 0.3, so entities, queries and migrations do not change.
5
+
6
+ It is a major release because `@nestjs/*` are regular dependencies of this package, not peers: an app that
7
+ installs 4.x while it is still on NestJS 11 ends up with two copies of `@nestjs/core` and fails at runtime
8
+ (DI tokens and `instanceof HttpException` stop matching). Apps on `^3` never pick up 4.x by themselves.
9
+
10
+ The full list of changes is in [CHANGELOG.md](../CHANGELOG.md). This guide covers only what a consuming
11
+ app has to do, and was checked against every repo on `^3` (October 2026).
12
+
13
+ ---
14
+
15
+ ## Upgrade order
16
+
17
+ 1. **`@servicelabsco/nestjs-utility-services` 4.0.0** is published.
18
+ 2. **`@servicelabsco/slabs-access-manager`** and **`@servicelabsco/slabs-utility-services`** release a
19
+ new major on nu 4 and NestJS 12, following this guide.
20
+ 3. **Apps.** An app that depends on `slabs-access-manager` must take its new major in the same change
21
+ as nu 4, or it gets two copies of NestJS.
22
+
23
+ | Repo | Depends on slabs-access-manager | Can upgrade |
24
+ | --- | --- | --- |
25
+ | fn-kms-services | no | after step 1 |
26
+ | fn-ar-services, fn-arc-services, fn-expense-services, fn-expense-services-processors, fn-meta-services, fn-pay-services | yes | after step 2 |
27
+
28
+ Repos still on nu `^1.x` (fn-banking-services, fn-webhook-services, icici-demo-services,
29
+ sl-webhook-consumer, sl-communication-services) are not affected.
30
+
31
+ ---
32
+
33
+ ## Required changes
34
+
35
+ Without these the app fails to install, build, test or boot.
36
+
37
+ ### 1. NestJS 12 everywhere
38
+
39
+ Move every `@nestjs/*` dependency to `^12` in the same commit as nu 4:
40
+
41
+ ```jsonc
42
+ "@nestjs/common": "^12.3.2",
43
+ "@nestjs/core": "^12.3.2",
44
+ "@nestjs/testing": "^12.3.2", // devDependency
45
+ "@nestjs/cli": "^12.0.11", // devDependency
46
+ "@nestjs/schematics": "^12.0.12", // devDependency
47
+ "@nestjs/typeorm": "^12.0.2", // if listed
48
+ "@nestjs/websockets": "^12.3.2", // if listed
49
+ "@nestjs/axios": "^12.0.1", // 4.x does not support NestJS 12
50
+ "@nestjs/cache-manager": "^12.0.2" // 3.x does not support NestJS 12
51
+ ```
52
+
53
+ Check that nothing pulls in a second copy:
54
+
55
+ ```bash
56
+ npm ls @nestjs/core @nestjs/common # every entry should be 12.x and deduped
57
+ ```
58
+
59
+ Do not import from inside a package (`@nestjs/common/dist/...`); NestJS 12 packages only expose their
60
+ public entry points.
61
+
62
+ ### 2. Jest runs with `--experimental-vm-modules`
63
+
64
+ NestJS 12 packages are ES modules. Jest can only load them with this flag; without it every test file
65
+ that imports `@nestjs/*` fails with `Must use import to load ES Module`.
66
+
67
+ ```jsonc
68
+ "test": "node --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js",
69
+ "test:cov": "node --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js --coverage"
70
+ ```
71
+
72
+ Keep any existing flags (`--ci`, `--runInBand`, `--forceExit`).
73
+
74
+ ### 3. Remove `source-map-support`
75
+
76
+ `main.ts` / `worker.ts` import `source-map-support`, but apps never listed it: it came with nu, and nu 4
77
+ no longer depends on it. Delete these lines:
78
+
79
+ ```ts
80
+ import 'source-map-support/register';
81
+ require('source-map-support').install();
82
+ ```
83
+
84
+ and let Node map stack traces instead:
85
+
86
+ ```jsonc
87
+ "start:prod": "node --enable-source-maps dist/main",
88
+ "start:worker": "node --enable-source-maps dist/worker"
89
+ ```
90
+
91
+ In a Dockerfile, put the flag in `CMD` (or set `NODE_OPTIONS=--enable-source-maps`).
92
+
93
+ ### 4. Replace the `redis` socket.io adapter (fn-expense-services, fn-expense-services-processors)
94
+
95
+ `src/common/adapters/redis.io.adapter.ts` imports `createClient` from `redis`, which also only came with
96
+ nu. Delete the file and use nu's adapter, which has the same methods and connects with ioredis using the
97
+ app's `REDIS_*` settings:
98
+
99
+ ```ts
100
+ import { RedisIoAdapter } from '@servicelabsco/nestjs-utility-services';
101
+
102
+ const redisIoAdapter = new RedisIoAdapter(app);
103
+ await redisIoAdapter.connectToRedis();
104
+ app.useWebSocketAdapter(redisIoAdapter);
105
+ ```
106
+
107
+ ### 5. Node `^24.15`
108
+
109
+ ```jsonc
110
+ "engines": { "node": "^24.15.0" }
111
+ ```
112
+
113
+ The Docker images already qualify (`node:24.19.0-alpine`, `node:24.16.0-alpine`). Update `.nvmrc` and
114
+ local machines: yarn refuses to install nu 4 on an older Node.
115
+
116
+ ---
117
+
118
+ ## Recommended changes
119
+
120
+ These do not break the app, but it does not behave as intended until they are made.
121
+
122
+ ### Sentry: initialise before anything else loads
123
+
124
+ Every app has an `src/instrument.ts` that imports `initSentry` from the package. Importing the package
125
+ loads NestJS, Postgres, ioredis and BullMQ before Sentry starts, so none of them are instrumented. Make
126
+ this the **first line** of `main.ts` and `worker.ts`, and delete `src/instrument.ts`:
127
+
128
+ ```ts
129
+ import '@servicelabsco/nestjs-utility-services/dist/instrument';
130
+ ```
131
+
132
+ Do not preload Sentry with `node --require`; Sentry 11 does not support it. Apps that call
133
+ `Sentry.init` themselves must set `dataCollection` as nu does; see
134
+ [sentry-reporting.md](sentry-reporting.md).
135
+
136
+ ### Middleware routes: Express 5 wildcards
137
+
138
+ `forRoutes({ path: 'api/*' })` still works but logs a deprecation warning per route. Use the named
139
+ wildcard:
140
+
141
+ ```ts
142
+ consumer.apply(RestrictedMiddleware).forRoutes({ path: 'api/{*path}', method: RequestMethod.ALL });
143
+ consumer.apply(InternalMiddleware).forRoutes({ path: 'internal/{*path}', method: RequestMethod.ALL });
144
+ ```
145
+
146
+ Applies to slabs-access-manager, slabs-utility-services, fn-arc, fn-expense, fn-expense-processors,
147
+ fn-kms and fn-meta (`api/*`, `internal/*`, `vendor/*`, `tally/*`).
148
+
149
+ ---
150
+
151
+ ## Behaviour changes to know about
152
+
153
+ | Change | Effect | Action |
154
+ | --- | --- | --- |
155
+ | BullMQ 6 counts paused jobs as `waiting` | `QueueService.getQueueStats()` no longer returns `paused`, so the `queue` endpoints in each `app.controller.ts` lose that field | Only matters if a dashboard reads it |
156
+ | `QueueService.pause()` returns without waiting for running jobs | The worker stops taking new jobs at once; running jobs carry on and still finish on shutdown | Call `pause(true)` to wait, never from inside a job |
157
+ | BullMQ 6 removes legacy repeatable jobs | A `repeat` option on a job silently creates a one-off job | None found in the apps; use job schedulers if one is added |
158
+ | ioredis 6 speaks RESP3 by default | A managed Redis or proxy that mishandles `HELLO` refuses the connection | Try each environment once, or set `protocol: 2` |
159
+ | ioredis 6 reconnect timing | Cache calls fail after about 0.35–1 s of Redis outage | Set `retryStrategy` if the old timing is needed |
160
+ | nodemailer 9+ verifies TLS when fetching attachment URLs | Attachments on self-signed or internal hosts fail to send; S3 / R2 are fine | Send file content instead of a URL |
161
+ | dotenv 18 drops `.env.vault` and `dotenv_config_*` CLI arguments | Deployments that relied on either lose those values silently | Check deploy scripts |
162
+ | NestJS 12 lifecycle hooks | Hooks in one module run one dependency level at a time instead of all at once | Only matters if a hook relied on another finishing first |
163
+ | NestJS 12 errors | A plain `Error` with a `statusCode` property is now a 500 | Throw nu's exceptions (`OperationException`, …) |
164
+
165
+ New in 4.0 and optional: `CommonDirectUploadController` / `DirectUploadService` for direct S3 / R2
166
+ uploads (needs the `sys_upload_sessions` migration, which runs with the others),
167
+ `BULL_QUEUE_CONCURRENCY`, and `ServicelabsUtilityService` / `CommonServicelabsCallbackController` for the
168
+ ServiceLabs utilities API. Setting `servicelabs.api.key` moves `PdfService`, `SplitPdfService` and
169
+ `ZipService` off the Lambda URLs with no code change; see
170
+ [servicelabs-utilities.md](servicelabs-utilities.md).
171
+
172
+ ---
173
+
174
+ ## No change needed
175
+
176
+ - **TypeScript and tsconfig.** nu 4 compiles in the apps' current setup — TypeScript 5.9,
177
+ `module: commonjs`, `moduleResolution: node`, target ES2021 — including NestJS 12, dotenv 18 and
178
+ BullMQ 6. If you raise `target` to ES2022 or later, also set `useDefineForClassFields: false`, or
179
+ TypeORM columns and injected properties break.
180
+ - **TypeORM.** Still 0.3; no entity, query or migration changes.
181
+ - **Database.** One new table, `sys_upload_sessions`, from nu's migrations.
182
+ - **APIs the apps do not use.** `Queue#client`, repeatable jobs, `JobConsumer.setWorker`,
183
+ `SentryContext.enrichHttpScope`, `getSignedUploadUrl` and deep `@nestjs/*` imports changed, but no
184
+ app uses them.
185
+
186
+ ---
187
+
188
+ ## Per-repo checklist
189
+
190
+ | Repo | NestJS 12 | Jest flag | source-map-support | redis adapter | engines | Sentry import | Wildcards |
191
+ | --- | --- | --- | --- | --- | --- | --- | --- |
192
+ | slabs-access-manager | ✔ (+ `@nestjs/typeorm`) | ✔ | ✔ | — | ✔ | ✔ | ✔ |
193
+ | slabs-utility-services | ✔ (+ `@nestjs/typeorm`) | ✔ | ✔ | — | ✔ | ✔ | ✔ |
194
+ | fn-kms-services | ✔ | ✔ | ✔ | — | ✔ | ✔ | ✔ |
195
+ | fn-ar-services | ✔ (+ axios, cache-manager) | ✔ | ✔ | — | ✔ | ✔ | — |
196
+ | fn-arc-services | ✔ | ✔ | ✔ | — | ✔ | ✔ | ✔ |
197
+ | fn-expense-services | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
198
+ | fn-expense-services-processors | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
199
+ | fn-meta-services | ✔ | ✔ | ✔ | — | ✔ | ✔ | ✔ |
200
+ | fn-pay-services | ✔ (+ axios, cache-manager) | ✔ | ✔ | — | ✔ | ✔ | — |
201
+
202
+ ✔ = change needed, — = not applicable.
203
+
204
+ ## Verify after upgrading
205
+
206
+ ```bash
207
+ npm ls @nestjs/core # one copy, 12.x
208
+ yarn build
209
+ yarn test
210
+ yarn start:prod # boots, routes map, no "Nest can't resolve dependencies"
211
+ curl localhost:$PORT/health # postgres, read replica and redis "up"
212
+ ```
213
+
214
+ Then start the worker (`BULL_QUEUE_WORKER=true`), dispatch a job and confirm it is processed, and
215
+ confirm Sentry receives a test error from both the API and the worker.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/nestjs-utility-services",
3
- "version": "3.0.19",
3
+ "version": "4.0.0",
4
4
  "description": "NestJS generic packages to support development",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",
@@ -12,7 +12,9 @@
12
12
  "CHANGELOG.md",
13
13
  "LICENSE",
14
14
  "docs/sentry-reporting.md",
15
+ "docs/servicelabs-utilities.md",
15
16
  "docs/upgrade-3.0-backward-compatibility.md",
17
+ "docs/upgrade-4.0.md",
16
18
  "docs/subscribe-for.md"
17
19
  ],
18
20
  "types": "dist/index.d.ts",
@@ -22,19 +24,20 @@
22
24
  "start": "nest start",
23
25
  "start:dev": "nest start --watch",
24
26
  "start:debug": "nest start --debug --watch",
25
- "start:prod": "node dist/main",
27
+ "start:prod": "node --enable-source-maps dist/main",
26
28
  "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
29
+ "typecheck": "tsc -p tsconfig.json --noEmit",
27
30
  "lint:codebase": "ts-node --project scripts/tsconfig.json scripts/lint-codebase.ts",
28
- "test": "jest",
29
- "test:watch": "jest --watch",
30
- "test:cov": "jest --coverage",
31
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
32
- "test:e2e": "jest --config ./test/jest-e2e.json",
31
+ "test": "node --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js",
32
+ "test:watch": "node --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js --watch",
33
+ "test:cov": "node --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js --coverage",
34
+ "test:debug": "node --inspect-brk --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js --runInBand",
35
+ "test:e2e": "node --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js --config ./test/jest-e2e.json",
33
36
  "typeorm": "typeorm-ts-node-commonjs --config src/config/orm.config.ts",
34
37
  "m:g": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:generate -d src/config/orm.config.ts",
35
38
  "m:r": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:run -d src/config/orm.config.ts",
36
39
  "m:rd": "./node_modules/.bin/typeorm migration:run -d dist/config/orm.config.js",
37
- "m:c": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:create -d src/config/orm.config.ts",
40
+ "m:c": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:create",
38
41
  "m:rev": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:revert -d src/config/orm.config.ts",
39
42
  "runtime-check": "curl -s http://localhost:${SERVER_PORT:-4000}/health/runtime-check | jq . 2>/dev/null || curl -s http://localhost:${SERVER_PORT:-4000}/health/runtime-check",
40
43
  "verify:publish": "node scripts/verify-publish-artifacts.js",
@@ -48,7 +51,7 @@
48
51
  "nestjs"
49
52
  ],
50
53
  "engines": {
51
- "node": "^24.11.0"
54
+ "node": "^24.15.0"
52
55
  },
53
56
  "publishConfig": {
54
57
  "access": "public"
@@ -59,81 +62,72 @@
59
62
  },
60
63
  "bugs": "https://github.com/servicelabsco/nestjs-utility-services",
61
64
  "dependencies": {
62
- "@aws-sdk/client-dynamodb": "^3.971.0",
63
- "@aws-sdk/client-s3": "^3.971.0",
64
- "@aws-sdk/client-secrets-manager": "^3.971.0",
65
- "@aws-sdk/client-ses": "^3.971.0",
66
- "@aws-sdk/client-sqs": "^3.971.0",
67
- "@aws-sdk/lib-storage": "^3.971.0",
68
- "@aws-sdk/s3-request-presigner": "^3.971.0",
69
- "@aws-sdk/util-dynamodb": "^3.971.0",
70
- "@nestjs-modules/ioredis": "^2.0.2",
71
- "@nestjs/bullmq": "^11.0.0",
72
- "@nestjs/common": "^11.0.0",
73
- "@nestjs/config": "^4.0.2",
74
- "@nestjs/core": "^11.0.0",
75
- "@nestjs/jwt": "^11.0.0",
76
- "@nestjs/platform-express": "^11.0.0",
77
- "@nestjs/platform-socket.io": "^11.0.0",
78
- "@nestjs/terminus": "^11.0.0",
79
- "@nestjs/typeorm": "^11.0.0",
80
- "@nestjs/websockets": "^11.0.0",
81
- "@sentry/core": "^10.34.0",
82
- "@sentry/nestjs": "^10.34.0",
83
- "@sentry/node": "^10.34.0",
84
- "@socket.io/redis-adapter": "^8.2.1",
85
- "axios": "^1.7.9",
65
+ "@aws-sdk/client-dynamodb": "^3.1160.0",
66
+ "@aws-sdk/client-s3": "^3.1160.0",
67
+ "@aws-sdk/client-secrets-manager": "^3.1160.0",
68
+ "@aws-sdk/client-ses": "^3.1160.0",
69
+ "@aws-sdk/client-sqs": "^3.1160.0",
70
+ "@aws-sdk/lib-storage": "^3.1160.0",
71
+ "@aws-sdk/s3-request-presigner": "^3.1160.0",
72
+ "@aws-sdk/util-dynamodb": "^3.996.9",
73
+ "@nestjs-modules/ioredis": "^2.3.1",
74
+ "@nestjs/bullmq": "^12.0.0",
75
+ "@nestjs/common": "^12.3.2",
76
+ "@nestjs/config": "^12.0.1",
77
+ "@nestjs/core": "^12.3.2",
78
+ "@nestjs/jwt": "^12.0.3",
79
+ "@nestjs/platform-express": "^12.3.2",
80
+ "@nestjs/platform-socket.io": "^12.3.2",
81
+ "@nestjs/terminus": "^12.1.0",
82
+ "@nestjs/typeorm": "^12.0.2",
83
+ "@nestjs/websockets": "^12.3.2",
84
+ "@sentry/nestjs": "^11.10.0",
85
+ "@socket.io/redis-adapter": "^8.3.0",
86
+ "axios": "^1.21.0",
86
87
  "bcryptjs": "^3.0.3",
87
- "bullmq": "^5.66.5",
88
+ "bullmq": "^6.5.1",
88
89
  "class-transformer": "^0.5.1",
89
90
  "class-validator": "^0.15.1",
90
- "cron-parser": "^5.5.0",
91
- "date-fns": "^4.1.0",
91
+ "cron-parser": "^5.10.2",
92
+ "date-fns": "^4.4.0",
92
93
  "decimal.js": "^10.6.0",
93
- "dotenv": "^17.2.3",
94
+ "dotenv": "^18.0.9",
94
95
  "exceljs": "^4.4.0",
96
+ "express": "^5.2.1",
95
97
  "express-http-context2": "^1.0.0",
96
- "express-rate-limit": "^8.2.1",
97
- "handlebars": "^4.7.8",
98
- "helmet": "^8.1.0",
99
- "html-to-text": "^10.0.0",
100
- "ioredis": "^5.9.2",
101
- "mongodb": "^7.1.0",
102
- "nodemailer": "^8.0.2",
103
- "pg": "^8.17.1",
104
- "redis": "^5.10.0",
98
+ "express-rate-limit": "^8.7.2",
99
+ "handlebars": "^4.7.10",
100
+ "helmet": "^8.3.0",
101
+ "html-to-text": "^10.0.1",
102
+ "ioredis": "^6.0.0",
103
+ "mongodb": "^7.7.0",
104
+ "nodemailer": "^10.3.1",
105
+ "pg": "^8.23.1",
105
106
  "reflect-metadata": "^0.2.2",
106
- "rxjs": "^7.8.1",
107
- "socket.io": "^4.8.3",
108
- "source-map-support": "^0.5.21",
109
- "typeorm": "^0.3.28",
107
+ "rxjs": "^7.8.2",
108
+ "socket.io-adapter": "~2.5.8",
109
+ "typeorm": "^0.3.31",
110
110
  "typeorm-naming-strategies": "^4.1.0",
111
111
  "xxhash-wasm": "^1.1.0"
112
112
  },
113
113
  "devDependencies": {
114
- "@nestjs/cli": "^11.0.0",
115
- "@nestjs/schematics": "^11.0.0",
116
- "@nestjs/testing": "^11.0.0",
117
- "@types/express": "^5.0.0",
114
+ "@nestjs/cli": "^12.0.11",
115
+ "@nestjs/schematics": "^12.0.12",
116
+ "@nestjs/testing": "^12.3.2",
117
+ "@types/express": "^5.0.6",
118
118
  "@types/html-to-text": "^9.0.4",
119
119
  "@types/jest": "^30.0.0",
120
- "@types/multer": "^2.0.0",
121
- "@types/node": "^24.11.0",
122
- "@types/supertest": "^7.2.0",
123
- "@typescript-eslint/eslint-plugin": "^8.53.0",
124
- "@typescript-eslint/parser": "^8.53.0",
125
- "eslint": "^10.4.0",
120
+ "@types/node": "^24.19.2",
121
+ "@typescript-eslint/eslint-plugin": "^8.72.1",
122
+ "@typescript-eslint/parser": "^8.72.1",
123
+ "eslint": "^10.13.0",
126
124
  "eslint-config-prettier": "^10.1.8",
127
- "eslint-plugin-prettier": "^5.5.5",
128
- "jest": "^30.2.0",
129
- "js-yaml": "^4.1.1",
130
- "prettier": "^3.8.0",
131
- "supertest": "^7.2.2",
132
- "ts-jest": "^29.4.6",
133
- "ts-loader": "^9.4.3",
134
- "ts-node": "^10.9.1",
135
- "tsconfig-paths": "^4.2.0",
136
- "typescript": "^6.0.3"
125
+ "eslint-plugin-prettier": "^5.5.7",
126
+ "jest": "^30.5.2",
127
+ "prettier": "^3.9.10",
128
+ "ts-jest": "^29.4.15",
129
+ "ts-node": "^10.9.2",
130
+ "typescript": "~6.0.3"
137
131
  },
138
132
  "jest": {
139
133
  "moduleFileExtensions": [
@@ -144,15 +138,17 @@
144
138
  "rootDir": "src",
145
139
  "testRegex": ".*\\.spec\\.ts$",
146
140
  "transform": {
147
- "^.+\\.(t|j)s$": "ts-jest"
141
+ "^.+\\.(t|j)s$": [
142
+ "ts-jest",
143
+ {
144
+ "tsconfig": "<rootDir>/../tsconfig.spec.json"
145
+ }
146
+ ]
148
147
  },
149
148
  "collectCoverageFrom": [
150
149
  "**/*.(t|j)s"
151
150
  ],
152
151
  "coverageDirectory": "../coverage",
153
152
  "testEnvironment": "node"
154
- },
155
- "resolutions": {
156
- "js-yaml": "^4.1.1"
157
153
  }
158
154
  }