@alanszp/express-common-fn 12.0.2 → 13.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 (954) hide show
  1. package/dist/commonErrorsHandler.d.ts +3 -0
  2. package/dist/commonErrorsHandler.js +3 -0
  3. package/dist/commonErrorsHandler.js.map +1 -1
  4. package/package.json +6 -9
  5. package/.gitignore +0 -3
  6. package/.npmignore +0 -3
  7. package/node_modules/@alanszp/audit/.gitignore +0 -3
  8. package/node_modules/@alanszp/audit/.npmignore +0 -3
  9. package/node_modules/@alanszp/audit/LICENSE +0 -21
  10. package/node_modules/@alanszp/audit/dist/audit.d.ts +0 -9
  11. package/node_modules/@alanszp/audit/dist/audit.js +0 -25
  12. package/node_modules/@alanszp/audit/dist/audit.js.map +0 -1
  13. package/node_modules/@alanszp/audit/dist/auditWithState.d.ts +0 -10
  14. package/node_modules/@alanszp/audit/dist/auditWithState.js +0 -22
  15. package/node_modules/@alanszp/audit/dist/auditWithState.js.map +0 -1
  16. package/node_modules/@alanszp/audit/dist/errors/AuditError.d.ts +0 -3
  17. package/node_modules/@alanszp/audit/dist/errors/AuditError.js +0 -8
  18. package/node_modules/@alanszp/audit/dist/errors/AuditError.js.map +0 -1
  19. package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.d.ts +0 -9
  20. package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.js +0 -23
  21. package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.js.map +0 -1
  22. package/node_modules/@alanszp/audit/dist/errors/index.d.ts +0 -2
  23. package/node_modules/@alanszp/audit/dist/errors/index.js +0 -19
  24. package/node_modules/@alanszp/audit/dist/errors/index.js.map +0 -1
  25. package/node_modules/@alanszp/audit/dist/factory.d.ts +0 -4
  26. package/node_modules/@alanszp/audit/dist/factory.js +0 -16
  27. package/node_modules/@alanszp/audit/dist/factory.js.map +0 -1
  28. package/node_modules/@alanszp/audit/dist/index.d.ts +0 -5
  29. package/node_modules/@alanszp/audit/dist/index.js +0 -22
  30. package/node_modules/@alanszp/audit/dist/index.js.map +0 -1
  31. package/node_modules/@alanszp/audit/dist/interfaces.d.ts +0 -22
  32. package/node_modules/@alanszp/audit/dist/interfaces.js +0 -18
  33. package/node_modules/@alanszp/audit/dist/interfaces.js.map +0 -1
  34. package/node_modules/@alanszp/audit/node_modules/@types/node/LICENSE +0 -21
  35. package/node_modules/@alanszp/audit/node_modules/@types/node/README.md +0 -15
  36. package/node_modules/@alanszp/audit/node_modules/@types/node/assert/strict.d.ts +0 -8
  37. package/node_modules/@alanszp/audit/node_modules/@types/node/assert.d.ts +0 -996
  38. package/node_modules/@alanszp/audit/node_modules/@types/node/async_hooks.d.ts +0 -539
  39. package/node_modules/@alanszp/audit/node_modules/@types/node/buffer.d.ts +0 -2362
  40. package/node_modules/@alanszp/audit/node_modules/@types/node/child_process.d.ts +0 -1540
  41. package/node_modules/@alanszp/audit/node_modules/@types/node/cluster.d.ts +0 -432
  42. package/node_modules/@alanszp/audit/node_modules/@types/node/console.d.ts +0 -415
  43. package/node_modules/@alanszp/audit/node_modules/@types/node/constants.d.ts +0 -19
  44. package/node_modules/@alanszp/audit/node_modules/@types/node/crypto.d.ts +0 -4487
  45. package/node_modules/@alanszp/audit/node_modules/@types/node/dgram.d.ts +0 -596
  46. package/node_modules/@alanszp/audit/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  47. package/node_modules/@alanszp/audit/node_modules/@types/node/dns/promises.d.ts +0 -425
  48. package/node_modules/@alanszp/audit/node_modules/@types/node/dns.d.ts +0 -809
  49. package/node_modules/@alanszp/audit/node_modules/@types/node/dom-events.d.ts +0 -122
  50. package/node_modules/@alanszp/audit/node_modules/@types/node/domain.d.ts +0 -170
  51. package/node_modules/@alanszp/audit/node_modules/@types/node/events.d.ts +0 -879
  52. package/node_modules/@alanszp/audit/node_modules/@types/node/fs/promises.d.ts +0 -1239
  53. package/node_modules/@alanszp/audit/node_modules/@types/node/fs.d.ts +0 -4311
  54. package/node_modules/@alanszp/audit/node_modules/@types/node/globals.d.ts +0 -411
  55. package/node_modules/@alanszp/audit/node_modules/@types/node/globals.global.d.ts +0 -1
  56. package/node_modules/@alanszp/audit/node_modules/@types/node/http.d.ts +0 -1887
  57. package/node_modules/@alanszp/audit/node_modules/@types/node/http2.d.ts +0 -2382
  58. package/node_modules/@alanszp/audit/node_modules/@types/node/https.d.ts +0 -550
  59. package/node_modules/@alanszp/audit/node_modules/@types/node/index.d.ts +0 -88
  60. package/node_modules/@alanszp/audit/node_modules/@types/node/inspector.d.ts +0 -2747
  61. package/node_modules/@alanszp/audit/node_modules/@types/node/module.d.ts +0 -315
  62. package/node_modules/@alanszp/audit/node_modules/@types/node/net.d.ts +0 -949
  63. package/node_modules/@alanszp/audit/node_modules/@types/node/os.d.ts +0 -478
  64. package/node_modules/@alanszp/audit/node_modules/@types/node/package.json +0 -229
  65. package/node_modules/@alanszp/audit/node_modules/@types/node/path.d.ts +0 -191
  66. package/node_modules/@alanszp/audit/node_modules/@types/node/perf_hooks.d.ts +0 -645
  67. package/node_modules/@alanszp/audit/node_modules/@types/node/process.d.ts +0 -1561
  68. package/node_modules/@alanszp/audit/node_modules/@types/node/punycode.d.ts +0 -117
  69. package/node_modules/@alanszp/audit/node_modules/@types/node/querystring.d.ts +0 -141
  70. package/node_modules/@alanszp/audit/node_modules/@types/node/readline/promises.d.ts +0 -150
  71. package/node_modules/@alanszp/audit/node_modules/@types/node/readline.d.ts +0 -539
  72. package/node_modules/@alanszp/audit/node_modules/@types/node/repl.d.ts +0 -430
  73. package/node_modules/@alanszp/audit/node_modules/@types/node/stream/consumers.d.ts +0 -12
  74. package/node_modules/@alanszp/audit/node_modules/@types/node/stream/promises.d.ts +0 -83
  75. package/node_modules/@alanszp/audit/node_modules/@types/node/stream/web.d.ts +0 -366
  76. package/node_modules/@alanszp/audit/node_modules/@types/node/stream.d.ts +0 -1701
  77. package/node_modules/@alanszp/audit/node_modules/@types/node/string_decoder.d.ts +0 -67
  78. package/node_modules/@alanszp/audit/node_modules/@types/node/test.d.ts +0 -1465
  79. package/node_modules/@alanszp/audit/node_modules/@types/node/timers/promises.d.ts +0 -93
  80. package/node_modules/@alanszp/audit/node_modules/@types/node/timers.d.ts +0 -240
  81. package/node_modules/@alanszp/audit/node_modules/@types/node/tls.d.ts +0 -1210
  82. package/node_modules/@alanszp/audit/node_modules/@types/node/trace_events.d.ts +0 -182
  83. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  84. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  85. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  86. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  87. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  88. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  89. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  90. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  91. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  92. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  93. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  94. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  95. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  96. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  97. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  98. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  99. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  100. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  101. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  102. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  103. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  104. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  105. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  106. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  107. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  108. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  109. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  110. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  111. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  112. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  113. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  114. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  115. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  116. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  117. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  118. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  119. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  120. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  121. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  122. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  123. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  124. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  125. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  126. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  127. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  128. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  129. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  130. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  131. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  132. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  133. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  134. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  135. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  136. package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  137. package/node_modules/@alanszp/audit/node_modules/@types/node/tty.d.ts +0 -208
  138. package/node_modules/@alanszp/audit/node_modules/@types/node/url.d.ts +0 -927
  139. package/node_modules/@alanszp/audit/node_modules/@types/node/util.d.ts +0 -2183
  140. package/node_modules/@alanszp/audit/node_modules/@types/node/v8.d.ts +0 -764
  141. package/node_modules/@alanszp/audit/node_modules/@types/node/vm.d.ts +0 -903
  142. package/node_modules/@alanszp/audit/node_modules/@types/node/wasi.d.ts +0 -179
  143. package/node_modules/@alanszp/audit/node_modules/@types/node/worker_threads.d.ts +0 -691
  144. package/node_modules/@alanszp/audit/node_modules/@types/node/zlib.d.ts +0 -517
  145. package/node_modules/@alanszp/audit/package.json +0 -32
  146. package/node_modules/@alanszp/audit/src/audit.ts +0 -31
  147. package/node_modules/@alanszp/audit/src/auditWithState.ts +0 -27
  148. package/node_modules/@alanszp/audit/src/errors/AuditError.ts +0 -3
  149. package/node_modules/@alanszp/audit/src/errors/MissingAuditFieldsError.ts +0 -25
  150. package/node_modules/@alanszp/audit/src/errors/index.ts +0 -2
  151. package/node_modules/@alanszp/audit/src/factory.ts +0 -16
  152. package/node_modules/@alanszp/audit/src/index.ts +0 -5
  153. package/node_modules/@alanszp/audit/src/interfaces.ts +0 -38
  154. package/node_modules/@alanszp/audit/tsconfig.json +0 -15
  155. package/node_modules/@alanszp/errors/.gitignore +0 -3
  156. package/node_modules/@alanszp/errors/.npmignore +0 -3
  157. package/node_modules/@alanszp/errors/LICENSE +0 -21
  158. package/node_modules/@alanszp/errors/dist/BaseError.d.ts +0 -3
  159. package/node_modules/@alanszp/errors/dist/BaseError.js +0 -18
  160. package/node_modules/@alanszp/errors/dist/BaseError.js.map +0 -1
  161. package/node_modules/@alanszp/errors/dist/HttpRenderableError.d.ts +0 -4
  162. package/node_modules/@alanszp/errors/dist/HttpRenderableError.js +0 -8
  163. package/node_modules/@alanszp/errors/dist/HttpRenderableError.js.map +0 -1
  164. package/node_modules/@alanszp/errors/dist/InternalServerError.d.ts +0 -8
  165. package/node_modules/@alanszp/errors/dist/InternalServerError.js +0 -24
  166. package/node_modules/@alanszp/errors/dist/InternalServerError.js.map +0 -1
  167. package/node_modules/@alanszp/errors/dist/RenderableError.d.ts +0 -15
  168. package/node_modules/@alanszp/errors/dist/RenderableError.js +0 -27
  169. package/node_modules/@alanszp/errors/dist/RenderableError.js.map +0 -1
  170. package/node_modules/@alanszp/errors/dist/index.d.ts +0 -4
  171. package/node_modules/@alanszp/errors/dist/index.js +0 -17
  172. package/node_modules/@alanszp/errors/dist/index.js.map +0 -1
  173. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/.gitignore +0 -3
  174. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/.npmignore +0 -3
  175. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/LICENSE +0 -21
  176. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/appIdentifier.d.ts +0 -1
  177. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/appIdentifier.js +0 -10
  178. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/appIdentifier.js.map +0 -1
  179. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/index.d.ts +0 -1
  180. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/index.js +0 -18
  181. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/index.js.map +0 -1
  182. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/assignKey.d.ts +0 -2
  183. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/assignKey.js +0 -20
  184. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/assignKey.js.map +0 -1
  185. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/index.d.ts +0 -2
  186. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/index.js +0 -19
  187. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/index.js.map +0 -1
  188. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/keepOrUpdate.d.ts +0 -3
  189. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/keepOrUpdate.js +0 -26
  190. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/keepOrUpdate.js.map +0 -1
  191. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/types.d.ts +0 -6
  192. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/types.js +0 -3
  193. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/types.js.map +0 -1
  194. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/index.d.ts +0 -4
  195. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/index.js +0 -21
  196. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/index.js.map +0 -1
  197. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/ListResult.d.ts +0 -7
  198. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/ListResult.js +0 -8
  199. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/ListResult.js.map +0 -1
  200. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Orderable.d.ts +0 -11
  201. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Orderable.js +0 -13
  202. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Orderable.js.map +0 -1
  203. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Paginable.d.ts +0 -14
  204. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Paginable.js +0 -22
  205. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Paginable.js.map +0 -1
  206. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/index.d.ts +0 -3
  207. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/index.js +0 -20
  208. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/index.js.map +0 -1
  209. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/package.json +0 -25
  210. package/node_modules/@alanszp/errors/node_modules/@alanszp/core/tsconfig.json +0 -15
  211. package/node_modules/@alanszp/errors/node_modules/@types/node/LICENSE +0 -21
  212. package/node_modules/@alanszp/errors/node_modules/@types/node/README.md +0 -15
  213. package/node_modules/@alanszp/errors/node_modules/@types/node/assert/strict.d.ts +0 -8
  214. package/node_modules/@alanszp/errors/node_modules/@types/node/assert.d.ts +0 -996
  215. package/node_modules/@alanszp/errors/node_modules/@types/node/async_hooks.d.ts +0 -539
  216. package/node_modules/@alanszp/errors/node_modules/@types/node/buffer.d.ts +0 -2362
  217. package/node_modules/@alanszp/errors/node_modules/@types/node/child_process.d.ts +0 -1540
  218. package/node_modules/@alanszp/errors/node_modules/@types/node/cluster.d.ts +0 -432
  219. package/node_modules/@alanszp/errors/node_modules/@types/node/console.d.ts +0 -415
  220. package/node_modules/@alanszp/errors/node_modules/@types/node/constants.d.ts +0 -19
  221. package/node_modules/@alanszp/errors/node_modules/@types/node/crypto.d.ts +0 -4487
  222. package/node_modules/@alanszp/errors/node_modules/@types/node/dgram.d.ts +0 -596
  223. package/node_modules/@alanszp/errors/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  224. package/node_modules/@alanszp/errors/node_modules/@types/node/dns/promises.d.ts +0 -425
  225. package/node_modules/@alanszp/errors/node_modules/@types/node/dns.d.ts +0 -809
  226. package/node_modules/@alanszp/errors/node_modules/@types/node/dom-events.d.ts +0 -122
  227. package/node_modules/@alanszp/errors/node_modules/@types/node/domain.d.ts +0 -170
  228. package/node_modules/@alanszp/errors/node_modules/@types/node/events.d.ts +0 -879
  229. package/node_modules/@alanszp/errors/node_modules/@types/node/fs/promises.d.ts +0 -1239
  230. package/node_modules/@alanszp/errors/node_modules/@types/node/fs.d.ts +0 -4311
  231. package/node_modules/@alanszp/errors/node_modules/@types/node/globals.d.ts +0 -411
  232. package/node_modules/@alanszp/errors/node_modules/@types/node/globals.global.d.ts +0 -1
  233. package/node_modules/@alanszp/errors/node_modules/@types/node/http.d.ts +0 -1887
  234. package/node_modules/@alanszp/errors/node_modules/@types/node/http2.d.ts +0 -2382
  235. package/node_modules/@alanszp/errors/node_modules/@types/node/https.d.ts +0 -550
  236. package/node_modules/@alanszp/errors/node_modules/@types/node/index.d.ts +0 -88
  237. package/node_modules/@alanszp/errors/node_modules/@types/node/inspector.d.ts +0 -2747
  238. package/node_modules/@alanszp/errors/node_modules/@types/node/module.d.ts +0 -315
  239. package/node_modules/@alanszp/errors/node_modules/@types/node/net.d.ts +0 -949
  240. package/node_modules/@alanszp/errors/node_modules/@types/node/os.d.ts +0 -478
  241. package/node_modules/@alanszp/errors/node_modules/@types/node/package.json +0 -229
  242. package/node_modules/@alanszp/errors/node_modules/@types/node/path.d.ts +0 -191
  243. package/node_modules/@alanszp/errors/node_modules/@types/node/perf_hooks.d.ts +0 -645
  244. package/node_modules/@alanszp/errors/node_modules/@types/node/process.d.ts +0 -1561
  245. package/node_modules/@alanszp/errors/node_modules/@types/node/punycode.d.ts +0 -117
  246. package/node_modules/@alanszp/errors/node_modules/@types/node/querystring.d.ts +0 -141
  247. package/node_modules/@alanszp/errors/node_modules/@types/node/readline/promises.d.ts +0 -150
  248. package/node_modules/@alanszp/errors/node_modules/@types/node/readline.d.ts +0 -539
  249. package/node_modules/@alanszp/errors/node_modules/@types/node/repl.d.ts +0 -430
  250. package/node_modules/@alanszp/errors/node_modules/@types/node/stream/consumers.d.ts +0 -12
  251. package/node_modules/@alanszp/errors/node_modules/@types/node/stream/promises.d.ts +0 -83
  252. package/node_modules/@alanszp/errors/node_modules/@types/node/stream/web.d.ts +0 -366
  253. package/node_modules/@alanszp/errors/node_modules/@types/node/stream.d.ts +0 -1701
  254. package/node_modules/@alanszp/errors/node_modules/@types/node/string_decoder.d.ts +0 -67
  255. package/node_modules/@alanszp/errors/node_modules/@types/node/test.d.ts +0 -1465
  256. package/node_modules/@alanszp/errors/node_modules/@types/node/timers/promises.d.ts +0 -93
  257. package/node_modules/@alanszp/errors/node_modules/@types/node/timers.d.ts +0 -240
  258. package/node_modules/@alanszp/errors/node_modules/@types/node/tls.d.ts +0 -1210
  259. package/node_modules/@alanszp/errors/node_modules/@types/node/trace_events.d.ts +0 -182
  260. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  261. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  262. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  263. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  264. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  265. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  266. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  267. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  268. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  269. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  270. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  271. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  272. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  273. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  274. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  275. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  276. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  277. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  278. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  279. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  280. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  281. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  282. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  283. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  284. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  285. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  286. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  287. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  288. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  289. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  290. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  291. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  292. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  293. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  294. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  295. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  296. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  297. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  298. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  299. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  300. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  301. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  302. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  303. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  304. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  305. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  306. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  307. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  308. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  309. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  310. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  311. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  312. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  313. package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  314. package/node_modules/@alanszp/errors/node_modules/@types/node/tty.d.ts +0 -208
  315. package/node_modules/@alanszp/errors/node_modules/@types/node/url.d.ts +0 -927
  316. package/node_modules/@alanszp/errors/node_modules/@types/node/util.d.ts +0 -2183
  317. package/node_modules/@alanszp/errors/node_modules/@types/node/v8.d.ts +0 -764
  318. package/node_modules/@alanszp/errors/node_modules/@types/node/vm.d.ts +0 -903
  319. package/node_modules/@alanszp/errors/node_modules/@types/node/wasi.d.ts +0 -179
  320. package/node_modules/@alanszp/errors/node_modules/@types/node/worker_threads.d.ts +0 -691
  321. package/node_modules/@alanszp/errors/node_modules/@types/node/zlib.d.ts +0 -517
  322. package/node_modules/@alanszp/errors/package.json +0 -33
  323. package/node_modules/@alanszp/errors/src/BaseError.ts +0 -14
  324. package/node_modules/@alanszp/errors/src/HttpRenderableError.ts +0 -5
  325. package/node_modules/@alanszp/errors/src/InternalServerError.ts +0 -32
  326. package/node_modules/@alanszp/errors/src/RenderableError.ts +0 -37
  327. package/node_modules/@alanszp/errors/src/index.ts +0 -4
  328. package/node_modules/@alanszp/errors/tsconfig.json +0 -15
  329. package/node_modules/@alanszp/express/.gitignore +0 -3
  330. package/node_modules/@alanszp/express/.npmignore +0 -3
  331. package/node_modules/@alanszp/express/LICENSE +0 -21
  332. package/node_modules/@alanszp/express/babel.config.js +0 -7
  333. package/node_modules/@alanszp/express/dist/helpers/getIp.d.ts +0 -2
  334. package/node_modules/@alanszp/express/dist/helpers/getIp.js +0 -9
  335. package/node_modules/@alanszp/express/dist/helpers/getIp.js.map +0 -1
  336. package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.d.ts +0 -2
  337. package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.js +0 -10
  338. package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.js.map +0 -1
  339. package/node_modules/@alanszp/express/dist/helpers/now.d.ts +0 -1
  340. package/node_modules/@alanszp/express/dist/helpers/now.js +0 -8
  341. package/node_modules/@alanszp/express/dist/helpers/now.js.map +0 -1
  342. package/node_modules/@alanszp/express/dist/helpers/renderErrorJson.d.ts +0 -4
  343. package/node_modules/@alanszp/express/dist/helpers/renderErrorJson.js +0 -32
  344. package/node_modules/@alanszp/express/dist/helpers/renderErrorJson.js.map +0 -1
  345. package/node_modules/@alanszp/express/dist/index.d.ts +0 -10
  346. package/node_modules/@alanszp/express/dist/index.js +0 -23
  347. package/node_modules/@alanszp/express/dist/index.js.map +0 -1
  348. package/node_modules/@alanszp/express/dist/middlewares/accessLogger.d.ts +0 -3
  349. package/node_modules/@alanszp/express/dist/middlewares/accessLogger.js +0 -30
  350. package/node_modules/@alanszp/express/dist/middlewares/accessLogger.js.map +0 -1
  351. package/node_modules/@alanszp/express/dist/middlewares/auditLog.d.ts +0 -8
  352. package/node_modules/@alanszp/express/dist/middlewares/auditLog.js +0 -44
  353. package/node_modules/@alanszp/express/dist/middlewares/auditLog.js.map +0 -1
  354. package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.d.ts +0 -3
  355. package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.js +0 -45
  356. package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.js.map +0 -1
  357. package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.d.ts +0 -25
  358. package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.js +0 -115
  359. package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.js.map +0 -1
  360. package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.d.ts +0 -1
  361. package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.js +0 -308
  362. package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.js.map +0 -1
  363. package/node_modules/@alanszp/express/dist/middlewares/createContext.d.ts +0 -6
  364. package/node_modules/@alanszp/express/dist/middlewares/createContext.js +0 -35
  365. package/node_modules/@alanszp/express/dist/middlewares/createContext.js.map +0 -1
  366. package/node_modules/@alanszp/express/dist/middlewares/createContext.test.d.ts +0 -1
  367. package/node_modules/@alanszp/express/dist/middlewares/createContext.test.js +0 -50
  368. package/node_modules/@alanszp/express/dist/middlewares/createContext.test.js.map +0 -1
  369. package/node_modules/@alanszp/express/dist/middlewares/hasRoles.d.ts +0 -3
  370. package/node_modules/@alanszp/express/dist/middlewares/hasRoles.js +0 -21
  371. package/node_modules/@alanszp/express/dist/middlewares/hasRoles.js.map +0 -1
  372. package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.d.ts +0 -4
  373. package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.js +0 -22
  374. package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.js.map +0 -1
  375. package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.d.ts +0 -4
  376. package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.js +0 -10
  377. package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.js.map +0 -1
  378. package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.d.ts +0 -3
  379. package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.js +0 -9
  380. package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.js.map +0 -1
  381. package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.d.ts +0 -8
  382. package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.js +0 -30
  383. package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.js.map +0 -1
  384. package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.d.ts +0 -6
  385. package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.js +0 -26
  386. package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.js.map +0 -1
  387. package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.d.ts +0 -3
  388. package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.js +0 -21
  389. package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.js.map +0 -1
  390. package/node_modules/@alanszp/express/dist/test/setup.d.ts +0 -1
  391. package/node_modules/@alanszp/express/dist/test/setup.js +0 -5
  392. package/node_modules/@alanszp/express/dist/test/setup.js.map +0 -1
  393. package/node_modules/@alanszp/express/dist/test/setup.test.d.ts +0 -1
  394. package/node_modules/@alanszp/express/dist/test/setup.test.js +0 -14
  395. package/node_modules/@alanszp/express/dist/test/setup.test.js.map +0 -1
  396. package/node_modules/@alanszp/express/dist/types/AuthMethod.d.ts +0 -10
  397. package/node_modules/@alanszp/express/dist/types/AuthMethod.js +0 -3
  398. package/node_modules/@alanszp/express/dist/types/AuthMethod.js.map +0 -1
  399. package/node_modules/@alanszp/express/dist/types/GenericRequest.d.ts +0 -2
  400. package/node_modules/@alanszp/express/dist/types/GenericRequest.js +0 -3
  401. package/node_modules/@alanszp/express/dist/types/GenericRequest.js.map +0 -1
  402. package/node_modules/@alanszp/express/jest.config.js +0 -10
  403. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/LICENSE +0 -21
  404. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/README.md +0 -5
  405. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/index.d.ts +0 -93
  406. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/index.js +0 -37
  407. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/jasmineUtils.js +0 -282
  408. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/types.js +0 -1
  409. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/utils.js +0 -457
  410. package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/package.json +0 -33
  411. package/node_modules/@alanszp/express/node_modules/@jest/types/LICENSE +0 -21
  412. package/node_modules/@alanszp/express/node_modules/@jest/types/README.md +0 -30
  413. package/node_modules/@alanszp/express/node_modules/@jest/types/build/Circus.js +0 -1
  414. package/node_modules/@alanszp/express/node_modules/@jest/types/build/Config.js +0 -1
  415. package/node_modules/@alanszp/express/node_modules/@jest/types/build/Global.js +0 -1
  416. package/node_modules/@alanszp/express/node_modules/@jest/types/build/TestResult.js +0 -1
  417. package/node_modules/@alanszp/express/node_modules/@jest/types/build/Transform.js +0 -1
  418. package/node_modules/@alanszp/express/node_modules/@jest/types/build/index.d.ts +0 -1166
  419. package/node_modules/@alanszp/express/node_modules/@jest/types/build/index.js +0 -1
  420. package/node_modules/@alanszp/express/node_modules/@jest/types/package.json +0 -38
  421. package/node_modules/@alanszp/express/node_modules/@types/jest/LICENSE +0 -21
  422. package/node_modules/@alanszp/express/node_modules/@types/jest/README.md +0 -17
  423. package/node_modules/@alanszp/express/node_modules/@types/jest/index.d.ts +0 -1608
  424. package/node_modules/@alanszp/express/node_modules/@types/jest/package.json +0 -159
  425. package/node_modules/@alanszp/express/node_modules/@types/node/LICENSE +0 -21
  426. package/node_modules/@alanszp/express/node_modules/@types/node/README.md +0 -15
  427. package/node_modules/@alanszp/express/node_modules/@types/node/assert/strict.d.ts +0 -8
  428. package/node_modules/@alanszp/express/node_modules/@types/node/assert.d.ts +0 -996
  429. package/node_modules/@alanszp/express/node_modules/@types/node/async_hooks.d.ts +0 -539
  430. package/node_modules/@alanszp/express/node_modules/@types/node/buffer.d.ts +0 -2362
  431. package/node_modules/@alanszp/express/node_modules/@types/node/child_process.d.ts +0 -1540
  432. package/node_modules/@alanszp/express/node_modules/@types/node/cluster.d.ts +0 -432
  433. package/node_modules/@alanszp/express/node_modules/@types/node/console.d.ts +0 -415
  434. package/node_modules/@alanszp/express/node_modules/@types/node/constants.d.ts +0 -19
  435. package/node_modules/@alanszp/express/node_modules/@types/node/crypto.d.ts +0 -4487
  436. package/node_modules/@alanszp/express/node_modules/@types/node/dgram.d.ts +0 -596
  437. package/node_modules/@alanszp/express/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  438. package/node_modules/@alanszp/express/node_modules/@types/node/dns/promises.d.ts +0 -425
  439. package/node_modules/@alanszp/express/node_modules/@types/node/dns.d.ts +0 -809
  440. package/node_modules/@alanszp/express/node_modules/@types/node/dom-events.d.ts +0 -122
  441. package/node_modules/@alanszp/express/node_modules/@types/node/domain.d.ts +0 -170
  442. package/node_modules/@alanszp/express/node_modules/@types/node/events.d.ts +0 -879
  443. package/node_modules/@alanszp/express/node_modules/@types/node/fs/promises.d.ts +0 -1239
  444. package/node_modules/@alanszp/express/node_modules/@types/node/fs.d.ts +0 -4311
  445. package/node_modules/@alanszp/express/node_modules/@types/node/globals.d.ts +0 -411
  446. package/node_modules/@alanszp/express/node_modules/@types/node/globals.global.d.ts +0 -1
  447. package/node_modules/@alanszp/express/node_modules/@types/node/http.d.ts +0 -1887
  448. package/node_modules/@alanszp/express/node_modules/@types/node/http2.d.ts +0 -2382
  449. package/node_modules/@alanszp/express/node_modules/@types/node/https.d.ts +0 -550
  450. package/node_modules/@alanszp/express/node_modules/@types/node/index.d.ts +0 -88
  451. package/node_modules/@alanszp/express/node_modules/@types/node/inspector.d.ts +0 -2747
  452. package/node_modules/@alanszp/express/node_modules/@types/node/module.d.ts +0 -315
  453. package/node_modules/@alanszp/express/node_modules/@types/node/net.d.ts +0 -949
  454. package/node_modules/@alanszp/express/node_modules/@types/node/os.d.ts +0 -478
  455. package/node_modules/@alanszp/express/node_modules/@types/node/package.json +0 -229
  456. package/node_modules/@alanszp/express/node_modules/@types/node/path.d.ts +0 -191
  457. package/node_modules/@alanszp/express/node_modules/@types/node/perf_hooks.d.ts +0 -645
  458. package/node_modules/@alanszp/express/node_modules/@types/node/process.d.ts +0 -1561
  459. package/node_modules/@alanszp/express/node_modules/@types/node/punycode.d.ts +0 -117
  460. package/node_modules/@alanszp/express/node_modules/@types/node/querystring.d.ts +0 -141
  461. package/node_modules/@alanszp/express/node_modules/@types/node/readline/promises.d.ts +0 -150
  462. package/node_modules/@alanszp/express/node_modules/@types/node/readline.d.ts +0 -539
  463. package/node_modules/@alanszp/express/node_modules/@types/node/repl.d.ts +0 -430
  464. package/node_modules/@alanszp/express/node_modules/@types/node/stream/consumers.d.ts +0 -12
  465. package/node_modules/@alanszp/express/node_modules/@types/node/stream/promises.d.ts +0 -83
  466. package/node_modules/@alanszp/express/node_modules/@types/node/stream/web.d.ts +0 -366
  467. package/node_modules/@alanszp/express/node_modules/@types/node/stream.d.ts +0 -1701
  468. package/node_modules/@alanszp/express/node_modules/@types/node/string_decoder.d.ts +0 -67
  469. package/node_modules/@alanszp/express/node_modules/@types/node/test.d.ts +0 -1465
  470. package/node_modules/@alanszp/express/node_modules/@types/node/timers/promises.d.ts +0 -93
  471. package/node_modules/@alanszp/express/node_modules/@types/node/timers.d.ts +0 -240
  472. package/node_modules/@alanszp/express/node_modules/@types/node/tls.d.ts +0 -1210
  473. package/node_modules/@alanszp/express/node_modules/@types/node/trace_events.d.ts +0 -182
  474. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  475. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  476. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  477. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  478. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  479. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  480. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  481. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  482. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  483. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  484. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  485. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  486. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  487. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  488. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  489. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  490. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  491. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  492. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  493. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  494. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  495. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  496. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  497. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  498. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  499. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  500. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  501. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  502. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  503. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  504. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  505. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  506. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  507. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  508. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  509. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  510. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  511. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  512. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  513. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  514. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  515. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  516. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  517. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  518. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  519. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  520. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  521. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  522. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  523. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  524. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  525. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  526. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  527. package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  528. package/node_modules/@alanszp/express/node_modules/@types/node/tty.d.ts +0 -208
  529. package/node_modules/@alanszp/express/node_modules/@types/node/url.d.ts +0 -927
  530. package/node_modules/@alanszp/express/node_modules/@types/node/util.d.ts +0 -2183
  531. package/node_modules/@alanszp/express/node_modules/@types/node/v8.d.ts +0 -764
  532. package/node_modules/@alanszp/express/node_modules/@types/node/vm.d.ts +0 -903
  533. package/node_modules/@alanszp/express/node_modules/@types/node/wasi.d.ts +0 -179
  534. package/node_modules/@alanszp/express/node_modules/@types/node/worker_threads.d.ts +0 -691
  535. package/node_modules/@alanszp/express/node_modules/@types/node/zlib.d.ts +0 -517
  536. package/node_modules/@alanszp/express/package.json +0 -49
  537. package/node_modules/@alanszp/express/src/helpers/getIp.ts +0 -5
  538. package/node_modules/@alanszp/express/src/helpers/getRequestLogger.ts +0 -6
  539. package/node_modules/@alanszp/express/src/helpers/now.ts +0 -3
  540. package/node_modules/@alanszp/express/src/helpers/renderErrorJson.ts +0 -29
  541. package/node_modules/@alanszp/express/src/index.ts +0 -10
  542. package/node_modules/@alanszp/express/src/middlewares/accessLogger.ts +0 -34
  543. package/node_modules/@alanszp/express/src/middlewares/auditLog.ts +0 -52
  544. package/node_modules/@alanszp/express/src/middlewares/authedForOrg.ts +0 -50
  545. package/node_modules/@alanszp/express/src/middlewares/authenticateUser.test.ts +0 -403
  546. package/node_modules/@alanszp/express/src/middlewares/authenticateUser.ts +0 -171
  547. package/node_modules/@alanszp/express/src/middlewares/createContext.test.ts +0 -85
  548. package/node_modules/@alanszp/express/src/middlewares/createContext.ts +0 -49
  549. package/node_modules/@alanszp/express/src/middlewares/hasRoles.ts +0 -24
  550. package/node_modules/@alanszp/express/src/middlewares/jsonBodyParser.ts +0 -22
  551. package/node_modules/@alanszp/express/src/middlewares/returnInternalServerError.ts +0 -15
  552. package/node_modules/@alanszp/express/src/middlewares/returnNotFound.ts +0 -11
  553. package/node_modules/@alanszp/express/src/test/mocks/authOptionsMocks.ts +0 -35
  554. package/node_modules/@alanszp/express/src/test/mocks/expressMocks.ts +0 -33
  555. package/node_modules/@alanszp/express/src/test/mocks/jwtUserMocks.ts +0 -19
  556. package/node_modules/@alanszp/express/src/test/setup.test.ts +0 -15
  557. package/node_modules/@alanszp/express/src/test/setup.ts +0 -3
  558. package/node_modules/@alanszp/express/src/types/AuthMethod.ts +0 -27
  559. package/node_modules/@alanszp/express/src/types/GenericRequest.ts +0 -3
  560. package/node_modules/@alanszp/express/src/types/custom.d.ts +0 -20
  561. package/node_modules/@alanszp/express/tsconfig.json +0 -18
  562. package/node_modules/@alanszp/jwt/.gitignore +0 -3
  563. package/node_modules/@alanszp/jwt/.npmignore +0 -3
  564. package/node_modules/@alanszp/jwt/LICENSE +0 -21
  565. package/node_modules/@alanszp/jwt/dist/JWTUser.d.ts +0 -31
  566. package/node_modules/@alanszp/jwt/dist/JWTUser.js +0 -62
  567. package/node_modules/@alanszp/jwt/dist/JWTUser.js.map +0 -1
  568. package/node_modules/@alanszp/jwt/dist/index.d.ts +0 -3
  569. package/node_modules/@alanszp/jwt/dist/index.js +0 -16
  570. package/node_modules/@alanszp/jwt/dist/index.js.map +0 -1
  571. package/node_modules/@alanszp/jwt/dist/jwt.d.ts +0 -11
  572. package/node_modules/@alanszp/jwt/dist/jwt.js +0 -67
  573. package/node_modules/@alanszp/jwt/dist/jwt.js.map +0 -1
  574. package/node_modules/@alanszp/jwt/dist/types.d.ts +0 -26
  575. package/node_modules/@alanszp/jwt/dist/types.js +0 -3
  576. package/node_modules/@alanszp/jwt/dist/types.js.map +0 -1
  577. package/node_modules/@alanszp/jwt/node_modules/@types/node/LICENSE +0 -21
  578. package/node_modules/@alanszp/jwt/node_modules/@types/node/README.md +0 -15
  579. package/node_modules/@alanszp/jwt/node_modules/@types/node/assert/strict.d.ts +0 -8
  580. package/node_modules/@alanszp/jwt/node_modules/@types/node/assert.d.ts +0 -996
  581. package/node_modules/@alanszp/jwt/node_modules/@types/node/async_hooks.d.ts +0 -539
  582. package/node_modules/@alanszp/jwt/node_modules/@types/node/buffer.d.ts +0 -2362
  583. package/node_modules/@alanszp/jwt/node_modules/@types/node/child_process.d.ts +0 -1540
  584. package/node_modules/@alanszp/jwt/node_modules/@types/node/cluster.d.ts +0 -432
  585. package/node_modules/@alanszp/jwt/node_modules/@types/node/console.d.ts +0 -415
  586. package/node_modules/@alanszp/jwt/node_modules/@types/node/constants.d.ts +0 -19
  587. package/node_modules/@alanszp/jwt/node_modules/@types/node/crypto.d.ts +0 -4487
  588. package/node_modules/@alanszp/jwt/node_modules/@types/node/dgram.d.ts +0 -596
  589. package/node_modules/@alanszp/jwt/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  590. package/node_modules/@alanszp/jwt/node_modules/@types/node/dns/promises.d.ts +0 -425
  591. package/node_modules/@alanszp/jwt/node_modules/@types/node/dns.d.ts +0 -809
  592. package/node_modules/@alanszp/jwt/node_modules/@types/node/dom-events.d.ts +0 -122
  593. package/node_modules/@alanszp/jwt/node_modules/@types/node/domain.d.ts +0 -170
  594. package/node_modules/@alanszp/jwt/node_modules/@types/node/events.d.ts +0 -879
  595. package/node_modules/@alanszp/jwt/node_modules/@types/node/fs/promises.d.ts +0 -1239
  596. package/node_modules/@alanszp/jwt/node_modules/@types/node/fs.d.ts +0 -4311
  597. package/node_modules/@alanszp/jwt/node_modules/@types/node/globals.d.ts +0 -411
  598. package/node_modules/@alanszp/jwt/node_modules/@types/node/globals.global.d.ts +0 -1
  599. package/node_modules/@alanszp/jwt/node_modules/@types/node/http.d.ts +0 -1887
  600. package/node_modules/@alanszp/jwt/node_modules/@types/node/http2.d.ts +0 -2382
  601. package/node_modules/@alanszp/jwt/node_modules/@types/node/https.d.ts +0 -550
  602. package/node_modules/@alanszp/jwt/node_modules/@types/node/index.d.ts +0 -88
  603. package/node_modules/@alanszp/jwt/node_modules/@types/node/inspector.d.ts +0 -2747
  604. package/node_modules/@alanszp/jwt/node_modules/@types/node/module.d.ts +0 -315
  605. package/node_modules/@alanszp/jwt/node_modules/@types/node/net.d.ts +0 -949
  606. package/node_modules/@alanszp/jwt/node_modules/@types/node/os.d.ts +0 -478
  607. package/node_modules/@alanszp/jwt/node_modules/@types/node/package.json +0 -229
  608. package/node_modules/@alanszp/jwt/node_modules/@types/node/path.d.ts +0 -191
  609. package/node_modules/@alanszp/jwt/node_modules/@types/node/perf_hooks.d.ts +0 -645
  610. package/node_modules/@alanszp/jwt/node_modules/@types/node/process.d.ts +0 -1561
  611. package/node_modules/@alanszp/jwt/node_modules/@types/node/punycode.d.ts +0 -117
  612. package/node_modules/@alanszp/jwt/node_modules/@types/node/querystring.d.ts +0 -141
  613. package/node_modules/@alanszp/jwt/node_modules/@types/node/readline/promises.d.ts +0 -150
  614. package/node_modules/@alanszp/jwt/node_modules/@types/node/readline.d.ts +0 -539
  615. package/node_modules/@alanszp/jwt/node_modules/@types/node/repl.d.ts +0 -430
  616. package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/consumers.d.ts +0 -12
  617. package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/promises.d.ts +0 -83
  618. package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/web.d.ts +0 -366
  619. package/node_modules/@alanszp/jwt/node_modules/@types/node/stream.d.ts +0 -1701
  620. package/node_modules/@alanszp/jwt/node_modules/@types/node/string_decoder.d.ts +0 -67
  621. package/node_modules/@alanszp/jwt/node_modules/@types/node/test.d.ts +0 -1465
  622. package/node_modules/@alanszp/jwt/node_modules/@types/node/timers/promises.d.ts +0 -93
  623. package/node_modules/@alanszp/jwt/node_modules/@types/node/timers.d.ts +0 -240
  624. package/node_modules/@alanszp/jwt/node_modules/@types/node/tls.d.ts +0 -1210
  625. package/node_modules/@alanszp/jwt/node_modules/@types/node/trace_events.d.ts +0 -182
  626. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  627. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  628. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  629. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  630. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  631. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  632. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  633. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  634. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  635. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  636. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  637. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  638. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  639. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  640. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  641. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  642. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  643. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  644. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  645. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  646. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  647. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  648. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  649. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  650. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  651. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  652. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  653. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  654. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  655. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  656. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  657. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  658. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  659. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  660. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  661. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  662. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  663. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  664. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  665. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  666. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  667. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  668. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  669. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  670. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  671. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  672. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  673. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  674. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  675. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  676. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  677. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  678. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  679. package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  680. package/node_modules/@alanszp/jwt/node_modules/@types/node/tty.d.ts +0 -208
  681. package/node_modules/@alanszp/jwt/node_modules/@types/node/url.d.ts +0 -927
  682. package/node_modules/@alanszp/jwt/node_modules/@types/node/util.d.ts +0 -2183
  683. package/node_modules/@alanszp/jwt/node_modules/@types/node/v8.d.ts +0 -764
  684. package/node_modules/@alanszp/jwt/node_modules/@types/node/vm.d.ts +0 -903
  685. package/node_modules/@alanszp/jwt/node_modules/@types/node/wasi.d.ts +0 -179
  686. package/node_modules/@alanszp/jwt/node_modules/@types/node/worker_threads.d.ts +0 -691
  687. package/node_modules/@alanszp/jwt/node_modules/@types/node/zlib.d.ts +0 -517
  688. package/node_modules/@alanszp/jwt/package.json +0 -29
  689. package/node_modules/@alanszp/jwt/src/JWTUser.ts +0 -85
  690. package/node_modules/@alanszp/jwt/src/index.ts +0 -3
  691. package/node_modules/@alanszp/jwt/src/jwt.ts +0 -81
  692. package/node_modules/@alanszp/jwt/src/types.ts +0 -31
  693. package/node_modules/@alanszp/jwt/tsconfig.json +0 -15
  694. package/node_modules/@alanszp/logger/.gitignore +0 -3
  695. package/node_modules/@alanszp/logger/.npmignore +0 -3
  696. package/node_modules/@alanszp/logger/LICENSE +0 -21
  697. package/node_modules/@alanszp/logger/dist/config.d.ts +0 -28
  698. package/node_modules/@alanszp/logger/dist/config.js +0 -3
  699. package/node_modules/@alanszp/logger/dist/config.js.map +0 -1
  700. package/node_modules/@alanszp/logger/dist/factory.d.ts +0 -5
  701. package/node_modules/@alanszp/logger/dist/factory.js +0 -55
  702. package/node_modules/@alanszp/logger/dist/factory.js.map +0 -1
  703. package/node_modules/@alanszp/logger/dist/index.d.ts +0 -5
  704. package/node_modules/@alanszp/logger/dist/index.js +0 -20
  705. package/node_modules/@alanszp/logger/dist/index.js.map +0 -1
  706. package/node_modules/@alanszp/logger/dist/interfaces.d.ts +0 -23
  707. package/node_modules/@alanszp/logger/dist/interfaces.js +0 -18
  708. package/node_modules/@alanszp/logger/dist/interfaces.js.map +0 -1
  709. package/node_modules/@alanszp/logger/dist/logger.d.ts +0 -14
  710. package/node_modules/@alanszp/logger/dist/logger.js +0 -45
  711. package/node_modules/@alanszp/logger/dist/logger.js.map +0 -1
  712. package/node_modules/@alanszp/logger/dist/mock.d.ts +0 -11
  713. package/node_modules/@alanszp/logger/dist/mock.js +0 -32
  714. package/node_modules/@alanszp/logger/dist/mock.js.map +0 -1
  715. package/node_modules/@alanszp/logger/dist/serializer.d.ts +0 -5
  716. package/node_modules/@alanszp/logger/dist/serializer.js +0 -67
  717. package/node_modules/@alanszp/logger/dist/serializer.js.map +0 -1
  718. package/node_modules/@alanszp/logger/dist/slackBunyan.d.ts +0 -16
  719. package/node_modules/@alanszp/logger/dist/slackBunyan.js +0 -108
  720. package/node_modules/@alanszp/logger/dist/slackBunyan.js.map +0 -1
  721. package/node_modules/@alanszp/logger/node_modules/@types/node/LICENSE +0 -21
  722. package/node_modules/@alanszp/logger/node_modules/@types/node/README.md +0 -15
  723. package/node_modules/@alanszp/logger/node_modules/@types/node/assert/strict.d.ts +0 -8
  724. package/node_modules/@alanszp/logger/node_modules/@types/node/assert.d.ts +0 -996
  725. package/node_modules/@alanszp/logger/node_modules/@types/node/async_hooks.d.ts +0 -539
  726. package/node_modules/@alanszp/logger/node_modules/@types/node/buffer.d.ts +0 -2362
  727. package/node_modules/@alanszp/logger/node_modules/@types/node/child_process.d.ts +0 -1540
  728. package/node_modules/@alanszp/logger/node_modules/@types/node/cluster.d.ts +0 -432
  729. package/node_modules/@alanszp/logger/node_modules/@types/node/console.d.ts +0 -415
  730. package/node_modules/@alanszp/logger/node_modules/@types/node/constants.d.ts +0 -19
  731. package/node_modules/@alanszp/logger/node_modules/@types/node/crypto.d.ts +0 -4487
  732. package/node_modules/@alanszp/logger/node_modules/@types/node/dgram.d.ts +0 -596
  733. package/node_modules/@alanszp/logger/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  734. package/node_modules/@alanszp/logger/node_modules/@types/node/dns/promises.d.ts +0 -425
  735. package/node_modules/@alanszp/logger/node_modules/@types/node/dns.d.ts +0 -809
  736. package/node_modules/@alanszp/logger/node_modules/@types/node/dom-events.d.ts +0 -122
  737. package/node_modules/@alanszp/logger/node_modules/@types/node/domain.d.ts +0 -170
  738. package/node_modules/@alanszp/logger/node_modules/@types/node/events.d.ts +0 -879
  739. package/node_modules/@alanszp/logger/node_modules/@types/node/fs/promises.d.ts +0 -1239
  740. package/node_modules/@alanszp/logger/node_modules/@types/node/fs.d.ts +0 -4311
  741. package/node_modules/@alanszp/logger/node_modules/@types/node/globals.d.ts +0 -411
  742. package/node_modules/@alanszp/logger/node_modules/@types/node/globals.global.d.ts +0 -1
  743. package/node_modules/@alanszp/logger/node_modules/@types/node/http.d.ts +0 -1887
  744. package/node_modules/@alanszp/logger/node_modules/@types/node/http2.d.ts +0 -2382
  745. package/node_modules/@alanszp/logger/node_modules/@types/node/https.d.ts +0 -550
  746. package/node_modules/@alanszp/logger/node_modules/@types/node/index.d.ts +0 -88
  747. package/node_modules/@alanszp/logger/node_modules/@types/node/inspector.d.ts +0 -2747
  748. package/node_modules/@alanszp/logger/node_modules/@types/node/module.d.ts +0 -315
  749. package/node_modules/@alanszp/logger/node_modules/@types/node/net.d.ts +0 -949
  750. package/node_modules/@alanszp/logger/node_modules/@types/node/os.d.ts +0 -478
  751. package/node_modules/@alanszp/logger/node_modules/@types/node/package.json +0 -229
  752. package/node_modules/@alanszp/logger/node_modules/@types/node/path.d.ts +0 -191
  753. package/node_modules/@alanszp/logger/node_modules/@types/node/perf_hooks.d.ts +0 -645
  754. package/node_modules/@alanszp/logger/node_modules/@types/node/process.d.ts +0 -1561
  755. package/node_modules/@alanszp/logger/node_modules/@types/node/punycode.d.ts +0 -117
  756. package/node_modules/@alanszp/logger/node_modules/@types/node/querystring.d.ts +0 -141
  757. package/node_modules/@alanszp/logger/node_modules/@types/node/readline/promises.d.ts +0 -150
  758. package/node_modules/@alanszp/logger/node_modules/@types/node/readline.d.ts +0 -539
  759. package/node_modules/@alanszp/logger/node_modules/@types/node/repl.d.ts +0 -430
  760. package/node_modules/@alanszp/logger/node_modules/@types/node/stream/consumers.d.ts +0 -12
  761. package/node_modules/@alanszp/logger/node_modules/@types/node/stream/promises.d.ts +0 -83
  762. package/node_modules/@alanszp/logger/node_modules/@types/node/stream/web.d.ts +0 -366
  763. package/node_modules/@alanszp/logger/node_modules/@types/node/stream.d.ts +0 -1701
  764. package/node_modules/@alanszp/logger/node_modules/@types/node/string_decoder.d.ts +0 -67
  765. package/node_modules/@alanszp/logger/node_modules/@types/node/test.d.ts +0 -1465
  766. package/node_modules/@alanszp/logger/node_modules/@types/node/timers/promises.d.ts +0 -93
  767. package/node_modules/@alanszp/logger/node_modules/@types/node/timers.d.ts +0 -240
  768. package/node_modules/@alanszp/logger/node_modules/@types/node/tls.d.ts +0 -1210
  769. package/node_modules/@alanszp/logger/node_modules/@types/node/trace_events.d.ts +0 -182
  770. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  771. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  772. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  773. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  774. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  775. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  776. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  777. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  778. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  779. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  780. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  781. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  782. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  783. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  784. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  785. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  786. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  787. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  788. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  789. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  790. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  791. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  792. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  793. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  794. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  795. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  796. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  797. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  798. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  799. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  800. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  801. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  802. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  803. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  804. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  805. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  806. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  807. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  808. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  809. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  810. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  811. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  812. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  813. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  814. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  815. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  816. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  817. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  818. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  819. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  820. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  821. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  822. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  823. package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  824. package/node_modules/@alanszp/logger/node_modules/@types/node/tty.d.ts +0 -208
  825. package/node_modules/@alanszp/logger/node_modules/@types/node/url.d.ts +0 -927
  826. package/node_modules/@alanszp/logger/node_modules/@types/node/util.d.ts +0 -2183
  827. package/node_modules/@alanszp/logger/node_modules/@types/node/v8.d.ts +0 -764
  828. package/node_modules/@alanszp/logger/node_modules/@types/node/vm.d.ts +0 -903
  829. package/node_modules/@alanszp/logger/node_modules/@types/node/wasi.d.ts +0 -179
  830. package/node_modules/@alanszp/logger/node_modules/@types/node/worker_threads.d.ts +0 -691
  831. package/node_modules/@alanszp/logger/node_modules/@types/node/zlib.d.ts +0 -517
  832. package/node_modules/@alanszp/logger/package.json +0 -35
  833. package/node_modules/@alanszp/logger/src/config.ts +0 -34
  834. package/node_modules/@alanszp/logger/src/factory.ts +0 -68
  835. package/node_modules/@alanszp/logger/src/index.ts +0 -5
  836. package/node_modules/@alanszp/logger/src/interfaces.ts +0 -26
  837. package/node_modules/@alanszp/logger/src/logger.ts +0 -54
  838. package/node_modules/@alanszp/logger/src/mock.ts +0 -35
  839. package/node_modules/@alanszp/logger/src/serializer.ts +0 -65
  840. package/node_modules/@alanszp/logger/src/slackBunyan.ts +0 -133
  841. package/node_modules/@alanszp/logger/tsconfig.json +0 -15
  842. package/node_modules/@types/node/LICENSE +0 -21
  843. package/node_modules/@types/node/README.md +0 -15
  844. package/node_modules/@types/node/assert/strict.d.ts +0 -8
  845. package/node_modules/@types/node/assert.d.ts +0 -996
  846. package/node_modules/@types/node/async_hooks.d.ts +0 -539
  847. package/node_modules/@types/node/buffer.d.ts +0 -2362
  848. package/node_modules/@types/node/child_process.d.ts +0 -1540
  849. package/node_modules/@types/node/cluster.d.ts +0 -432
  850. package/node_modules/@types/node/console.d.ts +0 -415
  851. package/node_modules/@types/node/constants.d.ts +0 -19
  852. package/node_modules/@types/node/crypto.d.ts +0 -4487
  853. package/node_modules/@types/node/dgram.d.ts +0 -596
  854. package/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  855. package/node_modules/@types/node/dns/promises.d.ts +0 -425
  856. package/node_modules/@types/node/dns.d.ts +0 -809
  857. package/node_modules/@types/node/dom-events.d.ts +0 -122
  858. package/node_modules/@types/node/domain.d.ts +0 -170
  859. package/node_modules/@types/node/events.d.ts +0 -879
  860. package/node_modules/@types/node/fs/promises.d.ts +0 -1239
  861. package/node_modules/@types/node/fs.d.ts +0 -4311
  862. package/node_modules/@types/node/globals.d.ts +0 -411
  863. package/node_modules/@types/node/globals.global.d.ts +0 -1
  864. package/node_modules/@types/node/http.d.ts +0 -1887
  865. package/node_modules/@types/node/http2.d.ts +0 -2382
  866. package/node_modules/@types/node/https.d.ts +0 -550
  867. package/node_modules/@types/node/index.d.ts +0 -88
  868. package/node_modules/@types/node/inspector.d.ts +0 -2747
  869. package/node_modules/@types/node/module.d.ts +0 -315
  870. package/node_modules/@types/node/net.d.ts +0 -949
  871. package/node_modules/@types/node/os.d.ts +0 -478
  872. package/node_modules/@types/node/package.json +0 -229
  873. package/node_modules/@types/node/path.d.ts +0 -191
  874. package/node_modules/@types/node/perf_hooks.d.ts +0 -645
  875. package/node_modules/@types/node/process.d.ts +0 -1561
  876. package/node_modules/@types/node/punycode.d.ts +0 -117
  877. package/node_modules/@types/node/querystring.d.ts +0 -141
  878. package/node_modules/@types/node/readline/promises.d.ts +0 -150
  879. package/node_modules/@types/node/readline.d.ts +0 -539
  880. package/node_modules/@types/node/repl.d.ts +0 -430
  881. package/node_modules/@types/node/stream/consumers.d.ts +0 -12
  882. package/node_modules/@types/node/stream/promises.d.ts +0 -83
  883. package/node_modules/@types/node/stream/web.d.ts +0 -366
  884. package/node_modules/@types/node/stream.d.ts +0 -1701
  885. package/node_modules/@types/node/string_decoder.d.ts +0 -67
  886. package/node_modules/@types/node/test.d.ts +0 -1465
  887. package/node_modules/@types/node/timers/promises.d.ts +0 -93
  888. package/node_modules/@types/node/timers.d.ts +0 -240
  889. package/node_modules/@types/node/tls.d.ts +0 -1210
  890. package/node_modules/@types/node/trace_events.d.ts +0 -182
  891. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  892. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  893. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  894. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  895. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  896. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  897. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  898. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  899. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  900. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  901. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  902. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  903. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  904. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  905. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  906. package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  907. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  908. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  909. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  910. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  911. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  912. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  913. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  914. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  915. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  916. package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  917. package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  918. package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  919. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  920. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  921. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  922. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  923. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  924. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  925. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  926. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  927. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  928. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  929. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  930. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  931. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  932. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  933. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  934. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  935. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  936. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  937. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  938. package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  939. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  940. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  941. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  942. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  943. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  944. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  945. package/node_modules/@types/node/tty.d.ts +0 -208
  946. package/node_modules/@types/node/url.d.ts +0 -927
  947. package/node_modules/@types/node/util.d.ts +0 -2183
  948. package/node_modules/@types/node/v8.d.ts +0 -764
  949. package/node_modules/@types/node/vm.d.ts +0 -903
  950. package/node_modules/@types/node/wasi.d.ts +0 -179
  951. package/node_modules/@types/node/worker_threads.d.ts +0 -691
  952. package/node_modules/@types/node/zlib.d.ts +0 -517
  953. package/src/commonErrorsHandler.ts +0 -105
  954. package/src/index.ts +0 -1
@@ -1,903 +0,0 @@
1
- /**
2
- * The `node:vm` module enables compiling and running code within V8 Virtual
3
- * Machine contexts.
4
- *
5
- * **The `node:vm` module is not a security**
6
- * **mechanism. Do not use it to run untrusted code.**
7
- *
8
- * JavaScript code can be compiled and run immediately or
9
- * compiled, saved, and run later.
10
- *
11
- * A common use case is to run the code in a different V8 Context. This means
12
- * invoked code has a different global object than the invoking code.
13
- *
14
- * One can provide the context by `contextifying` an
15
- * object. The invoked code treats any property in the context like a
16
- * global variable. Any changes to global variables caused by the invoked
17
- * code are reflected in the context object.
18
- *
19
- * ```js
20
- * const vm = require('node:vm');
21
- *
22
- * const x = 1;
23
- *
24
- * const context = { x: 2 };
25
- * vm.createContext(context); // Contextify the object.
26
- *
27
- * const code = 'x += 40; var y = 17;';
28
- * // `x` and `y` are global variables in the context.
29
- * // Initially, x has the value 2 because that is the value of context.x.
30
- * vm.runInContext(code, context);
31
- *
32
- * console.log(context.x); // 42
33
- * console.log(context.y); // 17
34
- *
35
- * console.log(x); // 1; y is not defined.
36
- * ```
37
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/vm.js)
38
- */
39
- declare module "vm" {
40
- import { ImportAttributes } from "node:module";
41
- interface Context extends NodeJS.Dict<any> {}
42
- interface BaseOptions {
43
- /**
44
- * Specifies the filename used in stack traces produced by this script.
45
- * Default: `''`.
46
- */
47
- filename?: string | undefined;
48
- /**
49
- * Specifies the line number offset that is displayed in stack traces produced by this script.
50
- * Default: `0`.
51
- */
52
- lineOffset?: number | undefined;
53
- /**
54
- * Specifies the column number offset that is displayed in stack traces produced by this script.
55
- * @default 0
56
- */
57
- columnOffset?: number | undefined;
58
- }
59
- interface ScriptOptions extends BaseOptions {
60
- /**
61
- * V8's code cache data for the supplied source.
62
- */
63
- cachedData?: Buffer | NodeJS.ArrayBufferView | undefined;
64
- /** @deprecated in favor of `script.createCachedData()` */
65
- produceCachedData?: boolean | undefined;
66
- /**
67
- * Called during evaluation of this module when `import()` is called.
68
- * If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`.
69
- */
70
- importModuleDynamically?:
71
- | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module)
72
- | undefined;
73
- }
74
- interface RunningScriptOptions extends BaseOptions {
75
- /**
76
- * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace.
77
- * Default: `true`.
78
- */
79
- displayErrors?: boolean | undefined;
80
- /**
81
- * Specifies the number of milliseconds to execute code before terminating execution.
82
- * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer.
83
- */
84
- timeout?: number | undefined;
85
- /**
86
- * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received.
87
- * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that.
88
- * If execution is terminated, an `Error` will be thrown.
89
- * Default: `false`.
90
- */
91
- breakOnSigint?: boolean | undefined;
92
- }
93
- interface RunningScriptInNewContextOptions extends RunningScriptOptions {
94
- /**
95
- * Human-readable name of the newly created context.
96
- */
97
- contextName?: CreateContextOptions["name"];
98
- /**
99
- * Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL,
100
- * but with only the scheme, host, and port (if necessary), like the value of the `url.origin` property of a `URL` object.
101
- * Most notably, this string should omit the trailing slash, as that denotes a path.
102
- */
103
- contextOrigin?: CreateContextOptions["origin"];
104
- contextCodeGeneration?: CreateContextOptions["codeGeneration"];
105
- /**
106
- * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
107
- */
108
- microtaskMode?: CreateContextOptions["microtaskMode"];
109
- }
110
- interface RunningCodeOptions extends RunningScriptOptions {
111
- cachedData?: ScriptOptions["cachedData"];
112
- importModuleDynamically?: ScriptOptions["importModuleDynamically"];
113
- }
114
- interface RunningCodeInNewContextOptions extends RunningScriptInNewContextOptions {
115
- cachedData?: ScriptOptions["cachedData"];
116
- importModuleDynamically?: ScriptOptions["importModuleDynamically"];
117
- }
118
- interface CompileFunctionOptions extends BaseOptions {
119
- /**
120
- * Provides an optional data with V8's code cache data for the supplied source.
121
- */
122
- cachedData?: Buffer | undefined;
123
- /**
124
- * Specifies whether to produce new cache data.
125
- * Default: `false`,
126
- */
127
- produceCachedData?: boolean | undefined;
128
- /**
129
- * The sandbox/context in which the said function should be compiled in.
130
- */
131
- parsingContext?: Context | undefined;
132
- /**
133
- * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling
134
- */
135
- contextExtensions?: Object[] | undefined;
136
- }
137
- interface CreateContextOptions {
138
- /**
139
- * Human-readable name of the newly created context.
140
- * @default 'VM Context i' Where i is an ascending numerical index of the created context.
141
- */
142
- name?: string | undefined;
143
- /**
144
- * Corresponds to the newly created context for display purposes.
145
- * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary),
146
- * like the value of the `url.origin` property of a URL object.
147
- * Most notably, this string should omit the trailing slash, as that denotes a path.
148
- * @default ''
149
- */
150
- origin?: string | undefined;
151
- codeGeneration?:
152
- | {
153
- /**
154
- * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc)
155
- * will throw an EvalError.
156
- * @default true
157
- */
158
- strings?: boolean | undefined;
159
- /**
160
- * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError.
161
- * @default true
162
- */
163
- wasm?: boolean | undefined;
164
- }
165
- | undefined;
166
- /**
167
- * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
168
- */
169
- microtaskMode?: "afterEvaluate" | undefined;
170
- }
171
- type MeasureMemoryMode = "summary" | "detailed";
172
- interface MeasureMemoryOptions {
173
- /**
174
- * @default 'summary'
175
- */
176
- mode?: MeasureMemoryMode | undefined;
177
- /**
178
- * @default 'default'
179
- */
180
- execution?: "default" | "eager" | undefined;
181
- }
182
- interface MemoryMeasurement {
183
- total: {
184
- jsMemoryEstimate: number;
185
- jsMemoryRange: [number, number];
186
- };
187
- }
188
- /**
189
- * Instances of the `vm.Script` class contain precompiled scripts that can be
190
- * executed in specific contexts.
191
- * @since v0.3.1
192
- */
193
- class Script {
194
- constructor(code: string, options?: ScriptOptions | string);
195
- /**
196
- * Runs the compiled code contained by the `vm.Script` object within the given`contextifiedObject` and returns the result. Running code does not have access
197
- * to local scope.
198
- *
199
- * The following example compiles code that increments a global variable, sets
200
- * the value of another global variable, then execute the code multiple times.
201
- * The globals are contained in the `context` object.
202
- *
203
- * ```js
204
- * const vm = require('node:vm');
205
- *
206
- * const context = {
207
- * animal: 'cat',
208
- * count: 2,
209
- * };
210
- *
211
- * const script = new vm.Script('count += 1; name = "kitty";');
212
- *
213
- * vm.createContext(context);
214
- * for (let i = 0; i < 10; ++i) {
215
- * script.runInContext(context);
216
- * }
217
- *
218
- * console.log(context);
219
- * // Prints: { animal: 'cat', count: 12, name: 'kitty' }
220
- * ```
221
- *
222
- * Using the `timeout` or `breakOnSigint` options will result in new event loops
223
- * and corresponding threads being started, which have a non-zero performance
224
- * overhead.
225
- * @since v0.3.1
226
- * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method.
227
- * @return the result of the very last statement executed in the script.
228
- */
229
- runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
230
- /**
231
- * First contextifies the given `contextObject`, runs the compiled code contained
232
- * by the `vm.Script` object within the created context, and returns the result.
233
- * Running code does not have access to local scope.
234
- *
235
- * The following example compiles code that sets a global variable, then executes
236
- * the code multiple times in different contexts. The globals are set on and
237
- * contained within each individual `context`.
238
- *
239
- * ```js
240
- * const vm = require('node:vm');
241
- *
242
- * const script = new vm.Script('globalVar = "set"');
243
- *
244
- * const contexts = [{}, {}, {}];
245
- * contexts.forEach((context) => {
246
- * script.runInNewContext(context);
247
- * });
248
- *
249
- * console.log(contexts);
250
- * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
251
- * ```
252
- * @since v0.3.1
253
- * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
254
- * @return the result of the very last statement executed in the script.
255
- */
256
- runInNewContext(contextObject?: Context, options?: RunningScriptInNewContextOptions): any;
257
- /**
258
- * Runs the compiled code contained by the `vm.Script` within the context of the
259
- * current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
260
- *
261
- * The following example compiles code that increments a `global` variable then
262
- * executes that code multiple times:
263
- *
264
- * ```js
265
- * const vm = require('node:vm');
266
- *
267
- * global.globalVar = 0;
268
- *
269
- * const script = new vm.Script('globalVar += 1', { filename: 'myfile.vm' });
270
- *
271
- * for (let i = 0; i < 1000; ++i) {
272
- * script.runInThisContext();
273
- * }
274
- *
275
- * console.log(globalVar);
276
- *
277
- * // 1000
278
- * ```
279
- * @since v0.3.1
280
- * @return the result of the very last statement executed in the script.
281
- */
282
- runInThisContext(options?: RunningScriptOptions): any;
283
- /**
284
- * Creates a code cache that can be used with the `Script` constructor's`cachedData` option. Returns a `Buffer`. This method may be called at any
285
- * time and any number of times.
286
- *
287
- * The code cache of the `Script` doesn't contain any JavaScript observable
288
- * states. The code cache is safe to be saved along side the script source and
289
- * used to construct new `Script` instances multiple times.
290
- *
291
- * Functions in the `Script` source can be marked as lazily compiled and they are
292
- * not compiled at construction of the `Script`. These functions are going to be
293
- * compiled when they are invoked the first time. The code cache serializes the
294
- * metadata that V8 currently knows about the `Script` that it can use to speed up
295
- * future compilations.
296
- *
297
- * ```js
298
- * const script = new vm.Script(`
299
- * function add(a, b) {
300
- * return a + b;
301
- * }
302
- *
303
- * const x = add(1, 2);
304
- * `);
305
- *
306
- * const cacheWithoutAdd = script.createCachedData();
307
- * // In `cacheWithoutAdd` the function `add()` is marked for full compilation
308
- * // upon invocation.
309
- *
310
- * script.runInThisContext();
311
- *
312
- * const cacheWithAdd = script.createCachedData();
313
- * // `cacheWithAdd` contains fully compiled function `add()`.
314
- * ```
315
- * @since v10.6.0
316
- */
317
- createCachedData(): Buffer;
318
- /** @deprecated in favor of `script.createCachedData()` */
319
- cachedDataProduced?: boolean | undefined;
320
- /**
321
- * When `cachedData` is supplied to create the `vm.Script`, this value will be set
322
- * to either `true` or `false` depending on acceptance of the data by V8\.
323
- * Otherwise the value is `undefined`.
324
- * @since v5.7.0
325
- */
326
- cachedDataRejected?: boolean | undefined;
327
- cachedData?: Buffer | undefined;
328
- /**
329
- * When the script is compiled from a source that contains a source map magic
330
- * comment, this property will be set to the URL of the source map.
331
- *
332
- * ```js
333
- * import vm from 'node:vm';
334
- *
335
- * const script = new vm.Script(`
336
- * function myFunc() {}
337
- * //# sourceMappingURL=sourcemap.json
338
- * `);
339
- *
340
- * console.log(script.sourceMapURL);
341
- * // Prints: sourcemap.json
342
- * ```
343
- * @since v19.1.0, v18.13.0
344
- */
345
- sourceMapURL?: string | undefined;
346
- }
347
- /**
348
- * If given a `contextObject`, the `vm.createContext()` method will `prepare
349
- * that object` so that it can be used in calls to {@link runInContext} or `script.runInContext()`. Inside such scripts,
350
- * the `contextObject` will be the global object, retaining all of its existing
351
- * properties but also having the built-in objects and functions any standard [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global variables
352
- * will remain unchanged.
353
- *
354
- * ```js
355
- * const vm = require('node:vm');
356
- *
357
- * global.globalVar = 3;
358
- *
359
- * const context = { globalVar: 1 };
360
- * vm.createContext(context);
361
- *
362
- * vm.runInContext('globalVar *= 2;', context);
363
- *
364
- * console.log(context);
365
- * // Prints: { globalVar: 2 }
366
- *
367
- * console.log(global.globalVar);
368
- * // Prints: 3
369
- * ```
370
- *
371
- * If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
372
- * empty `contextified` object will be returned.
373
- *
374
- * The `vm.createContext()` method is primarily useful for creating a single
375
- * context that can be used to run multiple scripts. For instance, if emulating a
376
- * web browser, the method can be used to create a single context representing a
377
- * window's global object, then run all `<script>` tags together within that
378
- * context.
379
- *
380
- * The provided `name` and `origin` of the context are made visible through the
381
- * Inspector API.
382
- * @since v0.3.1
383
- * @return contextified object.
384
- */
385
- function createContext(sandbox?: Context, options?: CreateContextOptions): Context;
386
- /**
387
- * Returns `true` if the given `object` object has been `contextified` using {@link createContext}.
388
- * @since v0.11.7
389
- */
390
- function isContext(sandbox: Context): boolean;
391
- /**
392
- * The `vm.runInContext()` method compiles `code`, runs it within the context of
393
- * the `contextifiedObject`, then returns the result. Running code does not have
394
- * access to the local scope. The `contextifiedObject` object _must_ have been
395
- * previously `contextified` using the {@link createContext} method.
396
- *
397
- * If `options` is a string, then it specifies the filename.
398
- *
399
- * The following example compiles and executes different scripts using a single `contextified` object:
400
- *
401
- * ```js
402
- * const vm = require('node:vm');
403
- *
404
- * const contextObject = { globalVar: 1 };
405
- * vm.createContext(contextObject);
406
- *
407
- * for (let i = 0; i < 10; ++i) {
408
- * vm.runInContext('globalVar *= 2;', contextObject);
409
- * }
410
- * console.log(contextObject);
411
- * // Prints: { globalVar: 1024 }
412
- * ```
413
- * @since v0.3.1
414
- * @param code The JavaScript code to compile and run.
415
- * @param contextifiedObject The `contextified` object that will be used as the `global` when the `code` is compiled and run.
416
- * @return the result of the very last statement executed in the script.
417
- */
418
- function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
419
- /**
420
- * The `vm.runInNewContext()` first contextifies the given `contextObject` (or
421
- * creates a new `contextObject` if passed as `undefined`), compiles the `code`,
422
- * runs it within the created context, then returns the result. Running code
423
- * does not have access to the local scope.
424
- *
425
- * If `options` is a string, then it specifies the filename.
426
- *
427
- * The following example compiles and executes code that increments a global
428
- * variable and sets a new one. These globals are contained in the `contextObject`.
429
- *
430
- * ```js
431
- * const vm = require('node:vm');
432
- *
433
- * const contextObject = {
434
- * animal: 'cat',
435
- * count: 2,
436
- * };
437
- *
438
- * vm.runInNewContext('count += 1; name = "kitty"', contextObject);
439
- * console.log(contextObject);
440
- * // Prints: { animal: 'cat', count: 3, name: 'kitty' }
441
- * ```
442
- * @since v0.3.1
443
- * @param code The JavaScript code to compile and run.
444
- * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
445
- * @return the result of the very last statement executed in the script.
446
- */
447
- function runInNewContext(
448
- code: string,
449
- contextObject?: Context,
450
- options?: RunningCodeInNewContextOptions | string,
451
- ): any;
452
- /**
453
- * `vm.runInThisContext()` compiles `code`, runs it within the context of the
454
- * current `global` and returns the result. Running code does not have access to
455
- * local scope, but does have access to the current `global` object.
456
- *
457
- * If `options` is a string, then it specifies the filename.
458
- *
459
- * The following example illustrates using both `vm.runInThisContext()` and
460
- * the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
461
- *
462
- * ```js
463
- * const vm = require('node:vm');
464
- * let localVar = 'initial value';
465
- *
466
- * const vmResult = vm.runInThisContext('localVar = "vm";');
467
- * console.log(`vmResult: '${vmResult}', localVar: '${localVar}'`);
468
- * // Prints: vmResult: 'vm', localVar: 'initial value'
469
- *
470
- * const evalResult = eval('localVar = "eval";');
471
- * console.log(`evalResult: '${evalResult}', localVar: '${localVar}'`);
472
- * // Prints: evalResult: 'eval', localVar: 'eval'
473
- * ```
474
- *
475
- * Because `vm.runInThisContext()` does not have access to the local scope,`localVar` is unchanged. In contrast,
476
- * [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) _does_ have access to the
477
- * local scope, so the value `localVar` is changed. In this way`vm.runInThisContext()` is much like an [indirect `eval()` call](https://es5.github.io/#x10.4.2), e.g.`(0,eval)('code')`.
478
- *
479
- * ## Example: Running an HTTP server within a VM
480
- *
481
- * When using either `script.runInThisContext()` or {@link runInThisContext}, the code is executed within the current V8 global
482
- * context. The code passed to this VM context will have its own isolated scope.
483
- *
484
- * In order to run a simple web server using the `node:http` module the code passed
485
- * to the context must either call `require('node:http')` on its own, or have a
486
- * reference to the `node:http` module passed to it. For instance:
487
- *
488
- * ```js
489
- * 'use strict';
490
- * const vm = require('node:vm');
491
- *
492
- * const code = `
493
- * ((require) => {
494
- * const http = require('node:http');
495
- *
496
- * http.createServer((request, response) => {
497
- * response.writeHead(200, { 'Content-Type': 'text/plain' });
498
- * response.end('Hello World\\n');
499
- * }).listen(8124);
500
- *
501
- * console.log('Server running at http://127.0.0.1:8124/');
502
- * })`;
503
- *
504
- * vm.runInThisContext(code)(require);
505
- * ```
506
- *
507
- * The `require()` in the above case shares the state with the context it is
508
- * passed from. This may introduce risks when untrusted code is executed, e.g.
509
- * altering objects in the context in unwanted ways.
510
- * @since v0.3.1
511
- * @param code The JavaScript code to compile and run.
512
- * @return the result of the very last statement executed in the script.
513
- */
514
- function runInThisContext(code: string, options?: RunningCodeOptions | string): any;
515
- /**
516
- * Compiles the given code into the provided context (if no context is
517
- * supplied, the current context is used), and returns it wrapped inside a
518
- * function with the given `params`.
519
- * @since v10.10.0
520
- * @param code The body of the function to compile.
521
- * @param params An array of strings containing all parameters for the function.
522
- */
523
- function compileFunction(
524
- code: string,
525
- params?: readonly string[],
526
- options?: CompileFunctionOptions,
527
- ): Function & {
528
- cachedData?: Script["cachedData"] | undefined;
529
- cachedDataProduced?: Script["cachedDataProduced"] | undefined;
530
- cachedDataRejected?: Script["cachedDataRejected"] | undefined;
531
- };
532
- /**
533
- * Measure the memory known to V8 and used by all contexts known to the
534
- * current V8 isolate, or the main context.
535
- *
536
- * The format of the object that the returned Promise may resolve with is
537
- * specific to the V8 engine and may change from one version of V8 to the next.
538
- *
539
- * The returned result is different from the statistics returned by`v8.getHeapSpaceStatistics()` in that `vm.measureMemory()` measure the
540
- * memory reachable by each V8 specific contexts in the current instance of
541
- * the V8 engine, while the result of `v8.getHeapSpaceStatistics()` measure
542
- * the memory occupied by each heap space in the current V8 instance.
543
- *
544
- * ```js
545
- * const vm = require('node:vm');
546
- * // Measure the memory used by the main context.
547
- * vm.measureMemory({ mode: 'summary' })
548
- * // This is the same as vm.measureMemory()
549
- * .then((result) => {
550
- * // The current format is:
551
- * // {
552
- * // total: {
553
- * // jsMemoryEstimate: 2418479, jsMemoryRange: [ 2418479, 2745799 ]
554
- * // }
555
- * // }
556
- * console.log(result);
557
- * });
558
- *
559
- * const context = vm.createContext({ a: 1 });
560
- * vm.measureMemory({ mode: 'detailed', execution: 'eager' })
561
- * .then((result) => {
562
- * // Reference the context here so that it won't be GC'ed
563
- * // until the measurement is complete.
564
- * console.log(context.a);
565
- * // {
566
- * // total: {
567
- * // jsMemoryEstimate: 2574732,
568
- * // jsMemoryRange: [ 2574732, 2904372 ]
569
- * // },
570
- * // current: {
571
- * // jsMemoryEstimate: 2438996,
572
- * // jsMemoryRange: [ 2438996, 2768636 ]
573
- * // },
574
- * // other: [
575
- * // {
576
- * // jsMemoryEstimate: 135736,
577
- * // jsMemoryRange: [ 135736, 465376 ]
578
- * // }
579
- * // ]
580
- * // }
581
- * console.log(result);
582
- * });
583
- * ```
584
- * @since v13.10.0
585
- * @experimental
586
- */
587
- function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
588
- interface ModuleEvaluateOptions {
589
- timeout?: RunningScriptOptions["timeout"] | undefined;
590
- breakOnSigint?: RunningScriptOptions["breakOnSigint"] | undefined;
591
- }
592
- type ModuleLinker = (
593
- specifier: string,
594
- referencingModule: Module,
595
- extra: {
596
- /** @deprecated Use `attributes` instead */
597
- assert: ImportAttributes;
598
- attributes: ImportAttributes;
599
- },
600
- ) => Module | Promise<Module>;
601
- type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored";
602
- /**
603
- * This feature is only available with the `--experimental-vm-modules` command
604
- * flag enabled.
605
- *
606
- * The `vm.Module` class provides a low-level interface for using
607
- * ECMAScript modules in VM contexts. It is the counterpart of the `vm.Script`class that closely mirrors [Module Record](https://262.ecma-international.org/14.0/#sec-abstract-module-records) s as
608
- * defined in the ECMAScript
609
- * specification.
610
- *
611
- * Unlike `vm.Script` however, every `vm.Module` object is bound to a context from
612
- * its creation. Operations on `vm.Module` objects are intrinsically asynchronous,
613
- * in contrast with the synchronous nature of `vm.Script` objects. The use of
614
- * 'async' functions can help with manipulating `vm.Module` objects.
615
- *
616
- * Using a `vm.Module` object requires three distinct steps: creation/parsing,
617
- * linking, and evaluation. These three steps are illustrated in the following
618
- * example.
619
- *
620
- * This implementation lies at a lower level than the `ECMAScript Module
621
- * loader`. There is also no way to interact with the Loader yet, though
622
- * support is planned.
623
- *
624
- * ```js
625
- * import vm from 'node:vm';
626
- *
627
- * const contextifiedObject = vm.createContext({
628
- * secret: 42,
629
- * print: console.log,
630
- * });
631
- *
632
- * // Step 1
633
- * //
634
- * // Create a Module by constructing a new `vm.SourceTextModule` object. This
635
- * // parses the provided source text, throwing a `SyntaxError` if anything goes
636
- * // wrong. By default, a Module is created in the top context. But here, we
637
- * // specify `contextifiedObject` as the context this Module belongs to.
638
- * //
639
- * // Here, we attempt to obtain the default export from the module "foo", and
640
- * // put it into local binding "secret".
641
- *
642
- * const bar = new vm.SourceTextModule(`
643
- * import s from 'foo';
644
- * s;
645
- * print(s);
646
- * `, { context: contextifiedObject });
647
- *
648
- * // Step 2
649
- * //
650
- * // "Link" the imported dependencies of this Module to it.
651
- * //
652
- * // The provided linking callback (the "linker") accepts two arguments: the
653
- * // parent module (`bar` in this case) and the string that is the specifier of
654
- * // the imported module. The callback is expected to return a Module that
655
- * // corresponds to the provided specifier, with certain requirements documented
656
- * // in `module.link()`.
657
- * //
658
- * // If linking has not started for the returned Module, the same linker
659
- * // callback will be called on the returned Module.
660
- * //
661
- * // Even top-level Modules without dependencies must be explicitly linked. The
662
- * // callback provided would never be called, however.
663
- * //
664
- * // The link() method returns a Promise that will be resolved when all the
665
- * // Promises returned by the linker resolve.
666
- * //
667
- * // Note: This is a contrived example in that the linker function creates a new
668
- * // "foo" module every time it is called. In a full-fledged module system, a
669
- * // cache would probably be used to avoid duplicated modules.
670
- *
671
- * async function linker(specifier, referencingModule) {
672
- * if (specifier === 'foo') {
673
- * return new vm.SourceTextModule(`
674
- * // The "secret" variable refers to the global variable we added to
675
- * // "contextifiedObject" when creating the context.
676
- * export default secret;
677
- * `, { context: referencingModule.context });
678
- *
679
- * // Using `contextifiedObject` instead of `referencingModule.context`
680
- * // here would work as well.
681
- * }
682
- * throw new Error(`Unable to resolve dependency: ${specifier}`);
683
- * }
684
- * await bar.link(linker);
685
- *
686
- * // Step 3
687
- * //
688
- * // Evaluate the Module. The evaluate() method returns a promise which will
689
- * // resolve after the module has finished evaluating.
690
- *
691
- * // Prints 42.
692
- * await bar.evaluate();
693
- * ```
694
- * @since v13.0.0, v12.16.0
695
- * @experimental
696
- */
697
- class Module {
698
- /**
699
- * The specifiers of all dependencies of this module. The returned array is frozen
700
- * to disallow any changes to it.
701
- *
702
- * Corresponds to the `[[RequestedModules]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
703
- * the ECMAScript specification.
704
- */
705
- dependencySpecifiers: readonly string[];
706
- /**
707
- * If the `module.status` is `'errored'`, this property contains the exception
708
- * thrown by the module during evaluation. If the status is anything else,
709
- * accessing this property will result in a thrown exception.
710
- *
711
- * The value `undefined` cannot be used for cases where there is not a thrown
712
- * exception due to possible ambiguity with `throw undefined;`.
713
- *
714
- * Corresponds to the `[[EvaluationError]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s
715
- * in the ECMAScript specification.
716
- */
717
- error: any;
718
- /**
719
- * The identifier of the current module, as set in the constructor.
720
- */
721
- identifier: string;
722
- context: Context;
723
- /**
724
- * The namespace object of the module. This is only available after linking
725
- * (`module.link()`) has completed.
726
- *
727
- * Corresponds to the [GetModuleNamespace](https://tc39.es/ecma262/#sec-getmodulenamespace) abstract operation in the ECMAScript
728
- * specification.
729
- */
730
- namespace: Object;
731
- /**
732
- * The current status of the module. Will be one of:
733
- *
734
- * * `'unlinked'`: `module.link()` has not yet been called.
735
- * * `'linking'`: `module.link()` has been called, but not all Promises returned
736
- * by the linker function have been resolved yet.
737
- * * `'linked'`: The module has been linked successfully, and all of its
738
- * dependencies are linked, but `module.evaluate()` has not yet been called.
739
- * * `'evaluating'`: The module is being evaluated through a `module.evaluate()` on
740
- * itself or a parent module.
741
- * * `'evaluated'`: The module has been successfully evaluated.
742
- * * `'errored'`: The module has been evaluated, but an exception was thrown.
743
- *
744
- * Other than `'errored'`, this status string corresponds to the specification's [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)'s `[[Status]]` field. `'errored'`
745
- * corresponds to`'evaluated'` in the specification, but with `[[EvaluationError]]` set to a
746
- * value that is not `undefined`.
747
- */
748
- status: ModuleStatus;
749
- /**
750
- * Evaluate the module.
751
- *
752
- * This must be called after the module has been linked; otherwise it will reject.
753
- * It could be called also when the module has already been evaluated, in which
754
- * case it will either do nothing if the initial evaluation ended in success
755
- * (`module.status` is `'evaluated'`) or it will re-throw the exception that the
756
- * initial evaluation resulted in (`module.status` is `'errored'`).
757
- *
758
- * This method cannot be called while the module is being evaluated
759
- * (`module.status` is `'evaluating'`).
760
- *
761
- * Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in the
762
- * ECMAScript specification.
763
- * @return Fulfills with `undefined` upon success.
764
- */
765
- evaluate(options?: ModuleEvaluateOptions): Promise<void>;
766
- /**
767
- * Link module dependencies. This method must be called before evaluation, and
768
- * can only be called once per module.
769
- *
770
- * The function is expected to return a `Module` object or a `Promise` that
771
- * eventually resolves to a `Module` object. The returned `Module` must satisfy the
772
- * following two invariants:
773
- *
774
- * * It must belong to the same context as the parent `Module`.
775
- * * Its `status` must not be `'errored'`.
776
- *
777
- * If the returned `Module`'s `status` is `'unlinked'`, this method will be
778
- * recursively called on the returned `Module` with the same provided `linker`function.
779
- *
780
- * `link()` returns a `Promise` that will either get resolved when all linking
781
- * instances resolve to a valid `Module`, or rejected if the linker function either
782
- * throws an exception or returns an invalid `Module`.
783
- *
784
- * The linker function roughly corresponds to the implementation-defined [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) abstract operation in the
785
- * ECMAScript
786
- * specification, with a few key differences:
787
- *
788
- * * The linker function is allowed to be asynchronous while [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) is synchronous.
789
- *
790
- * The actual [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation used during module
791
- * linking is one that returns the modules linked during linking. Since at
792
- * that point all modules would have been fully linked already, the [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation is fully synchronous per
793
- * specification.
794
- *
795
- * Corresponds to the [Link() concrete method](https://tc39.es/ecma262/#sec-moduledeclarationlinking) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
796
- * the ECMAScript specification.
797
- */
798
- link(linker: ModuleLinker): Promise<void>;
799
- }
800
- interface SourceTextModuleOptions {
801
- /**
802
- * String used in stack traces.
803
- * @default 'vm:module(i)' where i is a context-specific ascending index.
804
- */
805
- identifier?: string | undefined;
806
- cachedData?: ScriptOptions["cachedData"] | undefined;
807
- context?: Context | undefined;
808
- lineOffset?: BaseOptions["lineOffset"] | undefined;
809
- columnOffset?: BaseOptions["columnOffset"] | undefined;
810
- /**
811
- * Called during evaluation of this module to initialize the `import.meta`.
812
- */
813
- initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
814
- importModuleDynamically?: ScriptOptions["importModuleDynamically"] | undefined;
815
- }
816
- /**
817
- * This feature is only available with the `--experimental-vm-modules` command
818
- * flag enabled.
819
- *
820
- * The `vm.SourceTextModule` class provides the [Source Text Module Record](https://tc39.es/ecma262/#sec-source-text-module-records) as
821
- * defined in the ECMAScript specification.
822
- * @since v9.6.0
823
- * @experimental
824
- */
825
- class SourceTextModule extends Module {
826
- /**
827
- * Creates a new `SourceTextModule` instance.
828
- * @param code JavaScript Module code to parse
829
- */
830
- constructor(code: string, options?: SourceTextModuleOptions);
831
- }
832
- interface SyntheticModuleOptions {
833
- /**
834
- * String used in stack traces.
835
- * @default 'vm:module(i)' where i is a context-specific ascending index.
836
- */
837
- identifier?: string | undefined;
838
- /**
839
- * The contextified object as returned by the `vm.createContext()` method, to compile and evaluate this module in.
840
- */
841
- context?: Context | undefined;
842
- }
843
- /**
844
- * This feature is only available with the `--experimental-vm-modules` command
845
- * flag enabled.
846
- *
847
- * The `vm.SyntheticModule` class provides the [Synthetic Module Record](https://heycam.github.io/webidl/#synthetic-module-records) as
848
- * defined in the WebIDL specification. The purpose of synthetic modules is to
849
- * provide a generic interface for exposing non-JavaScript sources to ECMAScript
850
- * module graphs.
851
- *
852
- * ```js
853
- * const vm = require('node:vm');
854
- *
855
- * const source = '{ "a": 1 }';
856
- * const module = new vm.SyntheticModule(['default'], function() {
857
- * const obj = JSON.parse(source);
858
- * this.setExport('default', obj);
859
- * });
860
- *
861
- * // Use `module` in linking...
862
- * ```
863
- * @since v13.0.0, v12.16.0
864
- * @experimental
865
- */
866
- class SyntheticModule extends Module {
867
- /**
868
- * Creates a new `SyntheticModule` instance.
869
- * @param exportNames Array of names that will be exported from the module.
870
- * @param evaluateCallback Called when the module is evaluated.
871
- */
872
- constructor(
873
- exportNames: string[],
874
- evaluateCallback: (this: SyntheticModule) => void,
875
- options?: SyntheticModuleOptions,
876
- );
877
- /**
878
- * This method is used after the module is linked to set the values of exports. If
879
- * it is called before the module is linked, an `ERR_VM_MODULE_STATUS` error
880
- * will be thrown.
881
- *
882
- * ```js
883
- * import vm from 'node:vm';
884
- *
885
- * const m = new vm.SyntheticModule(['x'], () => {
886
- * m.setExport('x', 1);
887
- * });
888
- *
889
- * await m.link(() => {});
890
- * await m.evaluate();
891
- *
892
- * assert.strictEqual(m.namespace.x, 1);
893
- * ```
894
- * @since v13.0.0, v12.16.0
895
- * @param name Name of the export to set.
896
- * @param value The value to set the export to.
897
- */
898
- setExport(name: string, value: any): void;
899
- }
900
- }
901
- declare module "node:vm" {
902
- export * from "vm";
903
- }