@warlock.js/notifications 5.31.0 → 5.33.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 (405) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/cjs/index.cjs +2 -2
  3. package/cjs/index.cjs.map +1 -1
  4. package/esm/channels/database-channel.d.mts +2 -3
  5. package/esm/channels/database-channel.d.mts.map +1 -1
  6. package/esm/channels/index.d.mts +2 -1
  7. package/esm/channels/index.mjs +1 -1
  8. package/esm/channels/mail-channel.d.mts +6 -4
  9. package/esm/channels/mail-channel.d.mts.map +1 -1
  10. package/esm/config.d.mts +13 -9
  11. package/esm/config.d.mts.map +1 -1
  12. package/esm/contracts/channel.contract.d.mts +1 -3
  13. package/esm/contracts/channel.contract.d.mts.map +1 -1
  14. package/esm/contracts/index.d.mts +2 -1
  15. package/esm/contracts/notification.contract.d.mts +1 -3
  16. package/esm/contracts/notification.contract.d.mts.map +1 -1
  17. package/esm/contracts/preference-provider.contract.d.mts +1 -3
  18. package/esm/contracts/preference-provider.contract.d.mts.map +1 -1
  19. package/esm/contracts/queue-dispatcher.contract.d.mts +1 -3
  20. package/esm/contracts/queue-dispatcher.contract.d.mts.map +1 -1
  21. package/esm/contracts/rate-limiter.contract.d.mts +1 -3
  22. package/esm/contracts/rate-limiter.contract.d.mts.map +1 -1
  23. package/esm/dispatch/define-channel.d.mts +2 -2
  24. package/esm/dispatch/define-channel.d.mts.map +1 -1
  25. package/esm/dispatch/define-notification.d.mts +5 -6
  26. package/esm/dispatch/define-notification.d.mts.map +1 -1
  27. package/esm/dispatch/index.d.mts +2 -1
  28. package/esm/dispatch/index.mjs +1 -1
  29. package/esm/dispatch/notifications-event-bus.d.mts +2 -3
  30. package/esm/dispatch/notifications-event-bus.d.mts.map +1 -1
  31. package/esm/dispatch/notify.d.mts +3 -5
  32. package/esm/dispatch/notify.d.mts.map +1 -1
  33. package/esm/errors.d.mts +5 -6
  34. package/esm/errors.d.mts.map +1 -1
  35. package/esm/in-app/base-notifications-repository.d.mts +6 -6
  36. package/esm/in-app/base-notifications-repository.d.mts.map +1 -1
  37. package/esm/in-app/base-notifications-repository.mjs +1 -1
  38. package/esm/in-app/base-notifications-repository.mjs.map +1 -1
  39. package/esm/in-app/column-map.d.mts +11 -8
  40. package/esm/in-app/column-map.d.mts.map +1 -1
  41. package/esm/in-app/database-notification.d.mts +2 -3
  42. package/esm/in-app/database-notification.d.mts.map +1 -1
  43. package/esm/in-app/in-app.d.mts +6 -5
  44. package/esm/in-app/in-app.d.mts.map +1 -1
  45. package/esm/in-app/index.d.mts +2 -1
  46. package/esm/in-app/index.mjs +1 -1
  47. package/esm/index.d.mts +6 -0
  48. package/esm/migration/index.d.mts +2 -1
  49. package/esm/migration/index.mjs +1 -1
  50. package/esm/migration/notification-columns.d.mts +6 -7
  51. package/esm/migration/notification-columns.d.mts.map +1 -1
  52. package/esm/queue/bullmq-queue.d.mts +9 -7
  53. package/esm/queue/bullmq-queue.d.mts.map +1 -1
  54. package/esm/queue/herald-queue.d.mts +6 -4
  55. package/esm/queue/herald-queue.d.mts.map +1 -1
  56. package/esm/queue/index.d.mts +2 -1
  57. package/esm/queue/index.mjs +1 -1
  58. package/esm/queue/load-herald.d.mts +1 -2
  59. package/esm/queue/load-herald.d.mts.map +1 -1
  60. package/esm/queue/load-herald.mjs +1 -1
  61. package/esm/queue/load-queue.d.mts +2 -3
  62. package/esm/queue/load-queue.d.mts.map +1 -1
  63. package/esm/queue/notifications-worker.d.mts +5 -4
  64. package/esm/queue/notifications-worker.d.mts.map +1 -1
  65. package/esm/queue/queue-package-not-installed.error.d.mts +1 -2
  66. package/esm/queue/queue-package-not-installed.error.d.mts.map +1 -1
  67. package/esm/types.d.mts +22 -18
  68. package/esm/types.d.mts.map +1 -1
  69. package/package.json +10 -9
  70. package/cjs/channel_api-C5ZZDkgQ.cjs +0 -7463
  71. package/cjs/channel_api-C5ZZDkgQ.cjs.map +0 -1
  72. package/cjs/chunk-fl3r8ClO.cjs +0 -41
  73. package/cjs/rabbitmq-driver-CkPaCswV.cjs +0 -3
  74. package/cjs/src-CcbF8Hr1.cjs +0 -11276
  75. package/cjs/src-CcbF8Hr1.cjs.map +0 -1
  76. package/esm/_virtual/_rolldown/runtime.mjs +0 -32
  77. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs +0 -6
  78. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs.map +0 -1
  79. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/bool.mjs +0 -3
  80. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/color.mjs +0 -3
  81. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/date.mjs +0 -3
  82. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/float.mjs +0 -3
  83. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/id.mjs +0 -3
  84. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/int.mjs +0 -3
  85. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/nanoid.mjs +0 -3
  86. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/pick.mjs +0 -3
  87. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/random.mjs +0 -16
  88. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/sample.mjs +0 -3
  89. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/string.mjs +0 -3
  90. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/token.mjs +0 -3
  91. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/uuid.mjs +0 -3
  92. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/weighted.mjs +0 -3
  93. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/async/retry.mjs +0 -3
  94. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/index.mjs +0 -24
  95. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs +0 -82
  96. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs.map +0 -1
  97. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs +0 -17
  98. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs.map +0 -1
  99. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs +0 -13
  100. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs.map +0 -1
  101. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs +0 -18
  102. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs.map +0 -1
  103. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs +0 -17
  104. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs.map +0 -1
  105. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs +0 -30
  106. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs.map +0 -1
  107. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs +0 -19
  108. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs.map +0 -1
  109. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs +0 -18
  110. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs.map +0 -1
  111. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs +0 -14
  112. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs.map +0 -1
  113. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs +0 -18
  114. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs.map +0 -1
  115. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs +0 -22
  116. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs.map +0 -1
  117. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs +0 -17
  118. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs.map +0 -1
  119. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs +0 -21
  120. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs.map +0 -1
  121. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs +0 -21
  122. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs.map +0 -1
  123. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs +0 -20
  124. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs.map +0 -1
  125. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs +0 -15
  126. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs.map +0 -1
  127. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs +0 -25
  128. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs.map +0 -1
  129. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs +0 -11
  130. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs.map +0 -1
  131. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs +0 -100
  132. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs.map +0 -1
  133. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs +0 -27
  134. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs.map +0 -1
  135. package/esm/node_modules/.pnpm/@mongez_supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs +0 -358
  136. package/esm/node_modules/.pnpm/@mongez_supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs.map +0 -1
  137. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.mjs +0 -28
  138. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.mjs.map +0 -1
  139. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.mjs +0 -241
  140. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.mjs.map +0 -1
  141. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.mjs +0 -130
  142. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.mjs.map +0 -1
  143. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel.mjs +0 -302
  144. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel.mjs.map +0 -1
  145. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel_model.mjs +0 -206
  146. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel_model.mjs.map +0 -1
  147. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/codec.mjs +0 -273
  148. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/codec.mjs.map +0 -1
  149. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connect.mjs +0 -143
  150. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connect.mjs.map +0 -1
  151. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connection.mjs +0 -416
  152. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connection.mjs.map +0 -1
  153. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/credentials.mjs +0 -50
  154. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/credentials.mjs.map +0 -1
  155. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/defs.mjs +0 -4600
  156. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/defs.mjs.map +0 -1
  157. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/error.mjs +0 -29
  158. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/error.mjs.map +0 -1
  159. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/format.mjs +0 -28
  160. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/format.mjs.map +0 -1
  161. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/frame.mjs +0 -130
  162. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/frame.mjs.map +0 -1
  163. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/heartbeat.mjs +0 -40
  164. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/heartbeat.mjs.map +0 -1
  165. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/mux.mjs +0 -86
  166. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/mux.mjs.map +0 -1
  167. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/package.mjs +0 -41
  168. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/package.mjs.map +0 -1
  169. package/esm/node_modules/.pnpm/buffer-more-ints@1.0.0/node_modules/buffer-more-ints/buffer-more-ints.mjs +0 -360
  170. package/esm/node_modules/.pnpm/buffer-more-ints@1.0.0/node_modules/buffer-more-ints/buffer-more-ints.mjs.map +0 -1
  171. package/esm/node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.mjs +0 -305
  172. package/esm/node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.mjs.map +0 -1
  173. package/esm/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.mjs +0 -80
  174. package/esm/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.mjs.map +0 -1
  175. package/esm/node_modules/.pnpm/requires-port@1.0.0/node_modules/requires-port/index.mjs +0 -35
  176. package/esm/node_modules/.pnpm/requires-port@1.0.0/node_modules/requires-port/index.mjs.map +0 -1
  177. package/esm/node_modules/.pnpm/url-parse@1.5.10/node_modules/url-parse/index.mjs +0 -388
  178. package/esm/node_modules/.pnpm/url-parse@1.5.10/node_modules/url-parse/index.mjs.map +0 -1
  179. package/esm/packages/herald/src/communicators/broker-registry.mjs +0 -204
  180. package/esm/packages/herald/src/communicators/broker-registry.mjs.map +0 -1
  181. package/esm/packages/herald/src/communicators/broker.mjs +0 -110
  182. package/esm/packages/herald/src/communicators/broker.mjs.map +0 -1
  183. package/esm/packages/herald/src/communicators/index.mjs +0 -4
  184. package/esm/packages/herald/src/decorators/consumable.mjs +0 -36
  185. package/esm/packages/herald/src/decorators/consumable.mjs.map +0 -1
  186. package/esm/packages/herald/src/decorators/index.mjs +0 -3
  187. package/esm/packages/herald/src/drivers/index.mjs +0 -5
  188. package/esm/packages/herald/src/drivers/rabbitmq/index.mjs +0 -4
  189. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-channel.mjs +0 -403
  190. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-channel.mjs.map +0 -1
  191. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-driver.mjs +0 -303
  192. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-driver.mjs.map +0 -1
  193. package/esm/packages/herald/src/index.mjs +0 -16
  194. package/esm/packages/herald/src/message-managers/event-consumer.mjs +0 -76
  195. package/esm/packages/herald/src/message-managers/event-consumer.mjs.map +0 -1
  196. package/esm/packages/herald/src/message-managers/event-message.mjs +0 -85
  197. package/esm/packages/herald/src/message-managers/event-message.mjs.map +0 -1
  198. package/esm/packages/herald/src/message-managers/index.mjs +0 -4
  199. package/esm/packages/herald/src/message-managers/prepare-consumer-subscription.mjs +0 -42
  200. package/esm/packages/herald/src/message-managers/prepare-consumer-subscription.mjs.map +0 -1
  201. package/esm/packages/herald/src/use-case-broadcast.mjs +0 -30
  202. package/esm/packages/herald/src/use-case-broadcast.mjs.map +0 -1
  203. package/esm/packages/herald/src/utils/connect-to-broker.mjs +0 -168
  204. package/esm/packages/herald/src/utils/connect-to-broker.mjs.map +0 -1
  205. package/esm/packages/herald/src/utils/index.mjs +0 -3
  206. package/esm/packages/seal/src/config.mjs +0 -15
  207. package/esm/packages/seal/src/config.mjs.map +0 -1
  208. package/esm/packages/seal/src/factory/index.mjs +0 -4
  209. package/esm/packages/seal/src/factory/validate.mjs +0 -42
  210. package/esm/packages/seal/src/factory/validate.mjs.map +0 -1
  211. package/esm/packages/seal/src/factory/validators.mjs +0 -139
  212. package/esm/packages/seal/src/factory/validators.mjs.map +0 -1
  213. package/esm/packages/seal/src/helpers/date-helpers.mjs +0 -24
  214. package/esm/packages/seal/src/helpers/date-helpers.mjs.map +0 -1
  215. package/esm/packages/seal/src/helpers/get-field-value.mjs +0 -46
  216. package/esm/packages/seal/src/helpers/get-field-value.mjs.map +0 -1
  217. package/esm/packages/seal/src/helpers/index.mjs +0 -6
  218. package/esm/packages/seal/src/helpers/is-empty-value.mjs +0 -10
  219. package/esm/packages/seal/src/helpers/is-empty-value.mjs.map +0 -1
  220. package/esm/packages/seal/src/helpers/path-helpers.mjs +0 -12
  221. package/esm/packages/seal/src/helpers/path-helpers.mjs.map +0 -1
  222. package/esm/packages/seal/src/helpers/validation-helpers.mjs +0 -78
  223. package/esm/packages/seal/src/helpers/validation-helpers.mjs.map +0 -1
  224. package/esm/packages/seal/src/index.mjs +0 -88
  225. package/esm/packages/seal/src/mutators/array-mutators.mjs +0 -32
  226. package/esm/packages/seal/src/mutators/array-mutators.mjs.map +0 -1
  227. package/esm/packages/seal/src/mutators/boolean-mutators.mjs +0 -40
  228. package/esm/packages/seal/src/mutators/boolean-mutators.mjs.map +0 -1
  229. package/esm/packages/seal/src/mutators/date-mutators.mjs +0 -94
  230. package/esm/packages/seal/src/mutators/date-mutators.mjs.map +0 -1
  231. package/esm/packages/seal/src/mutators/index.mjs +0 -9
  232. package/esm/packages/seal/src/mutators/number-mutators.mjs +0 -52
  233. package/esm/packages/seal/src/mutators/number-mutators.mjs.map +0 -1
  234. package/esm/packages/seal/src/mutators/object-mutators.mjs +0 -30
  235. package/esm/packages/seal/src/mutators/object-mutators.mjs.map +0 -1
  236. package/esm/packages/seal/src/mutators/scalar-mutators.mjs +0 -9
  237. package/esm/packages/seal/src/mutators/scalar-mutators.mjs.map +0 -1
  238. package/esm/packages/seal/src/mutators/string-mutators.mjs +0 -186
  239. package/esm/packages/seal/src/mutators/string-mutators.mjs.map +0 -1
  240. package/esm/packages/seal/src/object.mjs +0 -13
  241. package/esm/packages/seal/src/object.mjs.map +0 -1
  242. package/esm/packages/seal/src/rules/array/array-rules.mjs +0 -41
  243. package/esm/packages/seal/src/rules/array/array-rules.mjs.map +0 -1
  244. package/esm/packages/seal/src/rules/array/index.mjs +0 -3
  245. package/esm/packages/seal/src/rules/color/color-rules.mjs +0 -104
  246. package/esm/packages/seal/src/rules/color/color-rules.mjs.map +0 -1
  247. package/esm/packages/seal/src/rules/color/index.mjs +0 -3
  248. package/esm/packages/seal/src/rules/common/enum.mjs +0 -77
  249. package/esm/packages/seal/src/rules/common/enum.mjs.map +0 -1
  250. package/esm/packages/seal/src/rules/common/equals-field-rules.mjs +0 -42
  251. package/esm/packages/seal/src/rules/common/equals-field-rules.mjs.map +0 -1
  252. package/esm/packages/seal/src/rules/common/index.mjs +0 -8
  253. package/esm/packages/seal/src/rules/common/instanceof.mjs +0 -23
  254. package/esm/packages/seal/src/rules/common/instanceof.mjs.map +0 -1
  255. package/esm/packages/seal/src/rules/common/literal.mjs +0 -31
  256. package/esm/packages/seal/src/rules/common/literal.mjs.map +0 -1
  257. package/esm/packages/seal/src/rules/common/type-rules.mjs +0 -97
  258. package/esm/packages/seal/src/rules/common/type-rules.mjs.map +0 -1
  259. package/esm/packages/seal/src/rules/common/unknown-key.mjs +0 -25
  260. package/esm/packages/seal/src/rules/common/unknown-key.mjs.map +0 -1
  261. package/esm/packages/seal/src/rules/conditional/forbidden-if-rules.mjs +0 -116
  262. package/esm/packages/seal/src/rules/conditional/forbidden-if-rules.mjs.map +0 -1
  263. package/esm/packages/seal/src/rules/conditional/index.mjs +0 -12
  264. package/esm/packages/seal/src/rules/conditional/present-if-rules.mjs +0 -97
  265. package/esm/packages/seal/src/rules/conditional/present-if-rules.mjs.map +0 -1
  266. package/esm/packages/seal/src/rules/conditional/present-unless-rules.mjs +0 -30
  267. package/esm/packages/seal/src/rules/conditional/present-unless-rules.mjs.map +0 -1
  268. package/esm/packages/seal/src/rules/conditional/present-with-rules.mjs +0 -76
  269. package/esm/packages/seal/src/rules/conditional/present-with-rules.mjs.map +0 -1
  270. package/esm/packages/seal/src/rules/conditional/present-without-rules.mjs +0 -76
  271. package/esm/packages/seal/src/rules/conditional/present-without-rules.mjs.map +0 -1
  272. package/esm/packages/seal/src/rules/conditional/required-if-rules.mjs +0 -204
  273. package/esm/packages/seal/src/rules/conditional/required-if-rules.mjs.map +0 -1
  274. package/esm/packages/seal/src/rules/conditional/required-unless-rules.mjs +0 -31
  275. package/esm/packages/seal/src/rules/conditional/required-unless-rules.mjs.map +0 -1
  276. package/esm/packages/seal/src/rules/conditional/required-when-rule.mjs +0 -32
  277. package/esm/packages/seal/src/rules/conditional/required-when-rule.mjs.map +0 -1
  278. package/esm/packages/seal/src/rules/conditional/required-with-rules.mjs +0 -67
  279. package/esm/packages/seal/src/rules/conditional/required-with-rules.mjs.map +0 -1
  280. package/esm/packages/seal/src/rules/conditional/required-without-rules.mjs +0 -67
  281. package/esm/packages/seal/src/rules/conditional/required-without-rules.mjs.map +0 -1
  282. package/esm/packages/seal/src/rules/core/equal.mjs +0 -22
  283. package/esm/packages/seal/src/rules/core/equal.mjs.map +0 -1
  284. package/esm/packages/seal/src/rules/core/forbidden.mjs +0 -20
  285. package/esm/packages/seal/src/rules/core/forbidden.mjs.map +0 -1
  286. package/esm/packages/seal/src/rules/core/index.mjs +0 -7
  287. package/esm/packages/seal/src/rules/core/required.mjs +0 -36
  288. package/esm/packages/seal/src/rules/core/required.mjs.map +0 -1
  289. package/esm/packages/seal/src/rules/core/union.mjs +0 -78
  290. package/esm/packages/seal/src/rules/core/union.mjs.map +0 -1
  291. package/esm/packages/seal/src/rules/core/when.mjs +0 -37
  292. package/esm/packages/seal/src/rules/core/when.mjs.map +0 -1
  293. package/esm/packages/seal/src/rules/date/date-comparison-rules.mjs +0 -78
  294. package/esm/packages/seal/src/rules/date/date-comparison-rules.mjs.map +0 -1
  295. package/esm/packages/seal/src/rules/date/date-day-rules.mjs +0 -49
  296. package/esm/packages/seal/src/rules/date/date-day-rules.mjs.map +0 -1
  297. package/esm/packages/seal/src/rules/date/date-field-comparison-rules.mjs +0 -82
  298. package/esm/packages/seal/src/rules/date/date-field-comparison-rules.mjs.map +0 -1
  299. package/esm/packages/seal/src/rules/date/date-period-rules.mjs +0 -401
  300. package/esm/packages/seal/src/rules/date/date-period-rules.mjs.map +0 -1
  301. package/esm/packages/seal/src/rules/date/date-relative-rules.mjs +0 -55
  302. package/esm/packages/seal/src/rules/date/date-relative-rules.mjs.map +0 -1
  303. package/esm/packages/seal/src/rules/date/date-special-rules.mjs +0 -58
  304. package/esm/packages/seal/src/rules/date/date-special-rules.mjs.map +0 -1
  305. package/esm/packages/seal/src/rules/date/date.mjs +0 -235
  306. package/esm/packages/seal/src/rules/date/date.mjs.map +0 -1
  307. package/esm/packages/seal/src/rules/date/index.mjs +0 -9
  308. package/esm/packages/seal/src/rules/file/dimensions.mjs +0 -3
  309. package/esm/packages/seal/src/rules/file/file-size.mjs +0 -3
  310. package/esm/packages/seal/src/rules/file/index.mjs +0 -4
  311. package/esm/packages/seal/src/rules/index.mjs +0 -54
  312. package/esm/packages/seal/src/rules/length/index.mjs +0 -3
  313. package/esm/packages/seal/src/rules/length/length-rules.mjs +0 -98
  314. package/esm/packages/seal/src/rules/length/length-rules.mjs.map +0 -1
  315. package/esm/packages/seal/src/rules/number/index.mjs +0 -3
  316. package/esm/packages/seal/src/rules/number/number-rules.mjs +0 -197
  317. package/esm/packages/seal/src/rules/number/number-rules.mjs.map +0 -1
  318. package/esm/packages/seal/src/rules/scalar/accepted-rule.mjs +0 -123
  319. package/esm/packages/seal/src/rules/scalar/accepted-rule.mjs.map +0 -1
  320. package/esm/packages/seal/src/rules/scalar/declined-rule.mjs +0 -123
  321. package/esm/packages/seal/src/rules/scalar/declined-rule.mjs.map +0 -1
  322. package/esm/packages/seal/src/rules/scalar/index.mjs +0 -4
  323. package/esm/packages/seal/src/rules/string/alpha.mjs +0 -41
  324. package/esm/packages/seal/src/rules/string/alpha.mjs.map +0 -1
  325. package/esm/packages/seal/src/rules/string/credit-card.mjs +0 -32
  326. package/esm/packages/seal/src/rules/string/credit-card.mjs.map +0 -1
  327. package/esm/packages/seal/src/rules/string/email.mjs +0 -20
  328. package/esm/packages/seal/src/rules/string/email.mjs.map +0 -1
  329. package/esm/packages/seal/src/rules/string/id-formats.mjs +0 -104
  330. package/esm/packages/seal/src/rules/string/id-formats.mjs.map +0 -1
  331. package/esm/packages/seal/src/rules/string/index.mjs +0 -13
  332. package/esm/packages/seal/src/rules/string/ip.mjs +0 -66
  333. package/esm/packages/seal/src/rules/string/ip.mjs.map +0 -1
  334. package/esm/packages/seal/src/rules/string/matches.mjs +0 -4
  335. package/esm/packages/seal/src/rules/string/pattern.mjs +0 -20
  336. package/esm/packages/seal/src/rules/string/pattern.mjs.map +0 -1
  337. package/esm/packages/seal/src/rules/string/string-comparison.mjs +0 -56
  338. package/esm/packages/seal/src/rules/string/string-comparison.mjs.map +0 -1
  339. package/esm/packages/seal/src/rules/string/strong-password-rule.mjs +0 -31
  340. package/esm/packages/seal/src/rules/string/strong-password-rule.mjs.map +0 -1
  341. package/esm/packages/seal/src/rules/string/url.mjs +0 -23
  342. package/esm/packages/seal/src/rules/string/url.mjs.map +0 -1
  343. package/esm/packages/seal/src/rules/string/without-whitespace.mjs +0 -19
  344. package/esm/packages/seal/src/rules/string/without-whitespace.mjs.map +0 -1
  345. package/esm/packages/seal/src/standard-schema/json-schema.mjs +0 -81
  346. package/esm/packages/seal/src/standard-schema/json-schema.mjs.map +0 -1
  347. package/esm/packages/seal/src/standard-schema/map-result.mjs +0 -26
  348. package/esm/packages/seal/src/standard-schema/map-result.mjs.map +0 -1
  349. package/esm/packages/seal/src/string.mjs +0 -13
  350. package/esm/packages/seal/src/string.mjs.map +0 -1
  351. package/esm/packages/seal/src/types/date-types.mjs +0 -17
  352. package/esm/packages/seal/src/types/date-types.mjs.map +0 -1
  353. package/esm/packages/seal/src/validators/any-validator.mjs +0 -38
  354. package/esm/packages/seal/src/validators/any-validator.mjs.map +0 -1
  355. package/esm/packages/seal/src/validators/array-validator.mjs +0 -186
  356. package/esm/packages/seal/src/validators/array-validator.mjs.map +0 -1
  357. package/esm/packages/seal/src/validators/base-validator.mjs +0 -750
  358. package/esm/packages/seal/src/validators/base-validator.mjs.map +0 -1
  359. package/esm/packages/seal/src/validators/boolean-validator.mjs +0 -175
  360. package/esm/packages/seal/src/validators/boolean-validator.mjs.map +0 -1
  361. package/esm/packages/seal/src/validators/computed-validator.mjs +0 -118
  362. package/esm/packages/seal/src/validators/computed-validator.mjs.map +0 -1
  363. package/esm/packages/seal/src/validators/date-validator.mjs +0 -640
  364. package/esm/packages/seal/src/validators/date-validator.mjs.map +0 -1
  365. package/esm/packages/seal/src/validators/discriminated-union-validator.mjs +0 -138
  366. package/esm/packages/seal/src/validators/discriminated-union-validator.mjs.map +0 -1
  367. package/esm/packages/seal/src/validators/float-validator.mjs +0 -18
  368. package/esm/packages/seal/src/validators/float-validator.mjs.map +0 -1
  369. package/esm/packages/seal/src/validators/index.mjs +0 -28
  370. package/esm/packages/seal/src/validators/instanceof-validator.mjs +0 -64
  371. package/esm/packages/seal/src/validators/instanceof-validator.mjs.map +0 -1
  372. package/esm/packages/seal/src/validators/int-validator.mjs +0 -30
  373. package/esm/packages/seal/src/validators/int-validator.mjs.map +0 -1
  374. package/esm/packages/seal/src/validators/lazy-validator.mjs +0 -87
  375. package/esm/packages/seal/src/validators/lazy-validator.mjs.map +0 -1
  376. package/esm/packages/seal/src/validators/literal-validator.mjs +0 -72
  377. package/esm/packages/seal/src/validators/literal-validator.mjs.map +0 -1
  378. package/esm/packages/seal/src/validators/managed-validator.mjs +0 -39
  379. package/esm/packages/seal/src/validators/managed-validator.mjs.map +0 -1
  380. package/esm/packages/seal/src/validators/methods/equality-conditional-methods.mjs +0 -129
  381. package/esm/packages/seal/src/validators/methods/equality-conditional-methods.mjs.map +0 -1
  382. package/esm/packages/seal/src/validators/methods/forbidden-methods.mjs +0 -131
  383. package/esm/packages/seal/src/validators/methods/forbidden-methods.mjs.map +0 -1
  384. package/esm/packages/seal/src/validators/methods/present-methods.mjs +0 -235
  385. package/esm/packages/seal/src/validators/methods/present-methods.mjs.map +0 -1
  386. package/esm/packages/seal/src/validators/methods/required-methods.mjs +0 -347
  387. package/esm/packages/seal/src/validators/methods/required-methods.mjs.map +0 -1
  388. package/esm/packages/seal/src/validators/number-validator.mjs +0 -331
  389. package/esm/packages/seal/src/validators/number-validator.mjs.map +0 -1
  390. package/esm/packages/seal/src/validators/numeric-validator.mjs +0 -27
  391. package/esm/packages/seal/src/validators/numeric-validator.mjs.map +0 -1
  392. package/esm/packages/seal/src/validators/object-validator.mjs +0 -447
  393. package/esm/packages/seal/src/validators/object-validator.mjs.map +0 -1
  394. package/esm/packages/seal/src/validators/primitive-validator.mjs +0 -88
  395. package/esm/packages/seal/src/validators/primitive-validator.mjs.map +0 -1
  396. package/esm/packages/seal/src/validators/record-validator.mjs +0 -112
  397. package/esm/packages/seal/src/validators/record-validator.mjs.map +0 -1
  398. package/esm/packages/seal/src/validators/scalar-validator.mjs +0 -173
  399. package/esm/packages/seal/src/validators/scalar-validator.mjs.map +0 -1
  400. package/esm/packages/seal/src/validators/string-validator.mjs +0 -459
  401. package/esm/packages/seal/src/validators/string-validator.mjs.map +0 -1
  402. package/esm/packages/seal/src/validators/tuple-validator.mjs +0 -134
  403. package/esm/packages/seal/src/validators/tuple-validator.mjs.map +0 -1
  404. package/esm/packages/seal/src/validators/union-validator.mjs +0 -68
  405. package/esm/packages/seal/src/validators/union-validator.mjs.map +0 -1
@@ -1,241 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.js
4
- var require_api_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- function setIfDefined(obj, prop, value) {
6
- if (value != void 0) obj[prop] = value;
7
- }
8
- var EMPTY_OPTIONS = Object.freeze({});
9
- var Args = {};
10
- Args.assertQueue = function(queue, options) {
11
- queue = queue || "";
12
- options = options || EMPTY_OPTIONS;
13
- var argt = Object.create(options.arguments || null);
14
- setIfDefined(argt, "x-expires", options.expires);
15
- setIfDefined(argt, "x-message-ttl", options.messageTtl);
16
- setIfDefined(argt, "x-dead-letter-exchange", options.deadLetterExchange);
17
- setIfDefined(argt, "x-dead-letter-routing-key", options.deadLetterRoutingKey);
18
- setIfDefined(argt, "x-max-length", options.maxLength);
19
- setIfDefined(argt, "x-max-priority", options.maxPriority);
20
- setIfDefined(argt, "x-overflow", options.overflow);
21
- setIfDefined(argt, "x-queue-mode", options.queueMode);
22
- return {
23
- queue,
24
- exclusive: !!options.exclusive,
25
- durable: options.durable === void 0 ? true : options.durable,
26
- autoDelete: !!options.autoDelete,
27
- arguments: argt,
28
- passive: false,
29
- ticket: 0,
30
- nowait: false
31
- };
32
- };
33
- Args.checkQueue = function(queue) {
34
- return {
35
- queue,
36
- passive: true,
37
- nowait: false,
38
- durable: true,
39
- autoDelete: false,
40
- exclusive: false,
41
- ticket: 0
42
- };
43
- };
44
- Args.deleteQueue = function(queue, options) {
45
- options = options || EMPTY_OPTIONS;
46
- return {
47
- queue,
48
- ifUnused: !!options.ifUnused,
49
- ifEmpty: !!options.ifEmpty,
50
- ticket: 0,
51
- nowait: false
52
- };
53
- };
54
- Args.purgeQueue = function(queue) {
55
- return {
56
- queue,
57
- ticket: 0,
58
- nowait: false
59
- };
60
- };
61
- Args.bindQueue = function(queue, source, pattern, argt) {
62
- return {
63
- queue,
64
- exchange: source,
65
- routingKey: pattern,
66
- arguments: argt,
67
- ticket: 0,
68
- nowait: false
69
- };
70
- };
71
- Args.unbindQueue = function(queue, source, pattern, argt) {
72
- return {
73
- queue,
74
- exchange: source,
75
- routingKey: pattern,
76
- arguments: argt,
77
- ticket: 0,
78
- nowait: false
79
- };
80
- };
81
- Args.assertExchange = function(exchange, type, options) {
82
- options = options || EMPTY_OPTIONS;
83
- var argt = Object.create(options.arguments || null);
84
- setIfDefined(argt, "alternate-exchange", options.alternateExchange);
85
- return {
86
- exchange,
87
- ticket: 0,
88
- type,
89
- passive: false,
90
- durable: options.durable === void 0 ? true : options.durable,
91
- autoDelete: !!options.autoDelete,
92
- internal: !!options.internal,
93
- nowait: false,
94
- arguments: argt
95
- };
96
- };
97
- Args.checkExchange = function(exchange) {
98
- return {
99
- exchange,
100
- passive: true,
101
- nowait: false,
102
- durable: true,
103
- internal: false,
104
- type: "",
105
- autoDelete: false,
106
- ticket: 0
107
- };
108
- };
109
- Args.deleteExchange = function(exchange, options) {
110
- options = options || EMPTY_OPTIONS;
111
- return {
112
- exchange,
113
- ifUnused: !!options.ifUnused,
114
- ticket: 0,
115
- nowait: false
116
- };
117
- };
118
- Args.bindExchange = function(dest, source, pattern, argt) {
119
- return {
120
- source,
121
- destination: dest,
122
- routingKey: pattern,
123
- arguments: argt,
124
- ticket: 0,
125
- nowait: false
126
- };
127
- };
128
- Args.unbindExchange = function(dest, source, pattern, argt) {
129
- return {
130
- source,
131
- destination: dest,
132
- routingKey: pattern,
133
- arguments: argt,
134
- ticket: 0,
135
- nowait: false
136
- };
137
- };
138
- Args.publish = function(exchange, routingKey, options) {
139
- options = options || EMPTY_OPTIONS;
140
- function convertCC(cc) {
141
- if (cc === void 0) return;
142
- else if (Array.isArray(cc)) return cc.map(String);
143
- else return [String(cc)];
144
- }
145
- var headers = Object.create(options.headers || null);
146
- setIfDefined(headers, "CC", convertCC(options.CC));
147
- setIfDefined(headers, "BCC", convertCC(options.BCC));
148
- var deliveryMode;
149
- if (options.persistent !== void 0) deliveryMode = options.persistent ? 2 : 1;
150
- else if (typeof options.deliveryMode === "number") deliveryMode = options.deliveryMode;
151
- else if (options.deliveryMode) deliveryMode = 2;
152
- var expiration = options.expiration;
153
- if (expiration !== void 0) expiration = expiration.toString();
154
- return {
155
- exchange,
156
- routingKey,
157
- mandatory: !!options.mandatory,
158
- immediate: false,
159
- ticket: void 0,
160
- contentType: options.contentType,
161
- contentEncoding: options.contentEncoding,
162
- headers,
163
- deliveryMode,
164
- priority: options.priority,
165
- correlationId: options.correlationId,
166
- replyTo: options.replyTo,
167
- expiration,
168
- messageId: options.messageId,
169
- timestamp: options.timestamp,
170
- type: options.type,
171
- userId: options.userId,
172
- appId: options.appId,
173
- clusterId: void 0
174
- };
175
- };
176
- Args.consume = function(queue, options) {
177
- options = options || EMPTY_OPTIONS;
178
- var argt = Object.create(options.arguments || null);
179
- setIfDefined(argt, "x-priority", options.priority);
180
- return {
181
- ticket: 0,
182
- queue,
183
- consumerTag: options.consumerTag || "",
184
- noLocal: !!options.noLocal,
185
- noAck: !!options.noAck,
186
- exclusive: !!options.exclusive,
187
- nowait: false,
188
- arguments: argt
189
- };
190
- };
191
- Args.cancel = function(consumerTag) {
192
- return {
193
- consumerTag,
194
- nowait: false
195
- };
196
- };
197
- Args.get = function(queue, options) {
198
- options = options || EMPTY_OPTIONS;
199
- return {
200
- ticket: 0,
201
- queue,
202
- noAck: !!options.noAck
203
- };
204
- };
205
- Args.ack = function(tag, allUpTo) {
206
- return {
207
- deliveryTag: tag,
208
- multiple: !!allUpTo
209
- };
210
- };
211
- Args.nack = function(tag, allUpTo, requeue) {
212
- return {
213
- deliveryTag: tag,
214
- multiple: !!allUpTo,
215
- requeue: requeue === void 0 ? true : requeue
216
- };
217
- };
218
- Args.reject = function(tag, requeue) {
219
- return {
220
- deliveryTag: tag,
221
- requeue: requeue === void 0 ? true : requeue
222
- };
223
- };
224
- Args.prefetch = function(count, global) {
225
- return {
226
- prefetchCount: count || 0,
227
- prefetchSize: 0,
228
- global: !!global
229
- };
230
- };
231
- Args.recover = function() {
232
- return { requeue: true };
233
- };
234
- module.exports = Object.freeze(Args);
235
- }));
236
-
237
- //#endregion
238
- export default require_api_args();
239
-
240
- export { require_api_args };
241
- //# sourceMappingURL=api_args.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api_args.mjs","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.js"],"sourcesContent":["//\n//\n//\n\n'use strict';\n\n/*\nThe channel (promise) and callback APIs have similar signatures, and\nin particular, both need AMQP fields prepared from the same arguments\nand options. The arguments marshalling is done here. Each of the\nprocedures below takes arguments and options (the latter in an object)\nparticular to the operation it represents, and returns an object with\nfields for handing to the encoder.\n*/\n\n// A number of AMQP methods have a table-typed field called\n// `arguments`, that is intended to carry extension-specific\n// values. RabbitMQ uses this in a number of places; e.g., to specify\n// an 'alternate exchange'.\n//\n// Many of the methods in this API have an `options` argument, from\n// which I take both values that have a default in AMQP (e.g.,\n// autoDelete in QueueDeclare) *and* values that are specific to\n// RabbitMQ (e.g., 'alternate-exchange'), which would normally be\n// supplied in `arguments`. So that extensions I don't support yet can\n// be used, I include `arguments` itself among the options.\n//\n// The upshot of this is that I often need to prepare an `arguments`\n// value that has any values passed in `options.arguments` as well as\n// any I've promoted to being options themselves. Since I don't want\n// to mutate anything passed in, the general pattern is to create a\n// fresh object with the `arguments` value given as its prototype; all\n// fields in the supplied value will be serialised, as well as any I\n// set on the fresh object. What I don't want to do, however, is set a\n// field to undefined by copying possibly missing field values,\n// because that will mask a value in the prototype.\n//\n// NB the `arguments` field already has a default value of `{}`, so\n// there's no need to explicitly default it unless I'm setting values.\nfunction setIfDefined(obj, prop, value) {\n if (value != undefined) obj[prop] = value;\n}\n\nvar EMPTY_OPTIONS = Object.freeze({});\n\nvar Args = {};\n\nArgs.assertQueue = function(queue, options) {\n queue = queue || '';\n options = options || EMPTY_OPTIONS;\n\n var argt = Object.create(options.arguments || null);\n setIfDefined(argt, 'x-expires', options.expires);\n setIfDefined(argt, 'x-message-ttl', options.messageTtl);\n setIfDefined(argt, 'x-dead-letter-exchange',\n options.deadLetterExchange);\n setIfDefined(argt, 'x-dead-letter-routing-key',\n options.deadLetterRoutingKey);\n setIfDefined(argt, 'x-max-length', options.maxLength);\n setIfDefined(argt, 'x-max-priority', options.maxPriority);\n setIfDefined(argt, 'x-overflow', options.overflow);\n setIfDefined(argt, 'x-queue-mode', options.queueMode);\n\n return {\n queue: queue,\n exclusive: !!options.exclusive,\n durable: (options.durable === undefined) ? true : options.durable,\n autoDelete: !!options.autoDelete,\n arguments: argt,\n passive: false,\n // deprecated but we have to include it\n ticket: 0,\n nowait: false\n };\n};\n\nArgs.checkQueue = function(queue) {\n return {\n queue: queue,\n passive: true, // switch to \"completely different\" mode\n nowait: false,\n durable: true, autoDelete: false, exclusive: false, // ignored\n ticket: 0,\n };\n};\n\nArgs.deleteQueue = function(queue, options) {\n options = options || EMPTY_OPTIONS;\n return {\n queue: queue,\n ifUnused: !!options.ifUnused,\n ifEmpty: !!options.ifEmpty,\n ticket: 0, nowait: false\n };\n};\n\nArgs.purgeQueue = function(queue) {\n return {\n queue: queue,\n ticket: 0, nowait: false\n };\n};\n\nArgs.bindQueue = function(queue, source, pattern, argt) {\n return {\n queue: queue,\n exchange: source,\n routingKey: pattern,\n arguments: argt,\n ticket: 0, nowait: false\n };\n};\n\nArgs.unbindQueue = function(queue, source, pattern, argt) {\n return {\n queue: queue,\n exchange: source,\n routingKey: pattern,\n arguments: argt,\n ticket: 0, nowait: false\n };\n};\n\nArgs.assertExchange = function(exchange, type, options) {\n options = options || EMPTY_OPTIONS;\n var argt = Object.create(options.arguments || null);\n setIfDefined(argt, 'alternate-exchange', options.alternateExchange);\n return {\n exchange: exchange,\n ticket: 0,\n type: type,\n passive: false,\n durable: (options.durable === undefined) ? true : options.durable,\n autoDelete: !!options.autoDelete,\n internal: !!options.internal,\n nowait: false,\n arguments: argt\n };\n};\n\nArgs.checkExchange = function(exchange) {\n return {\n exchange: exchange,\n passive: true, // switch to 'may as well be another method' mode\n nowait: false,\n // ff are ignored\n durable: true, internal: false, type: '', autoDelete: false,\n ticket: 0\n };\n};\n\nArgs.deleteExchange = function(exchange, options) {\n options = options || EMPTY_OPTIONS;\n return {\n exchange: exchange,\n ifUnused: !!options.ifUnused,\n ticket: 0, nowait: false\n };\n};\n\nArgs.bindExchange = function(dest, source, pattern, argt) {\n return {\n source: source,\n destination: dest,\n routingKey: pattern,\n arguments: argt,\n ticket: 0, nowait: false\n };\n};\n\nArgs.unbindExchange = function(dest, source, pattern, argt) {\n return {\n source: source,\n destination: dest,\n routingKey: pattern,\n arguments: argt,\n ticket: 0, nowait: false\n };\n};\n\n// It's convenient to construct the properties and the method fields\n// at the same time, since in the APIs, values for both can appear in\n// `options`. Since the property or mthod field names don't overlap, I\n// just return one big object that can be used for both purposes, and\n// the encoder will pick out what it wants.\nArgs.publish = function(exchange, routingKey, options) {\n options = options || EMPTY_OPTIONS;\n\n // The CC and BCC fields expect an array of \"longstr\", which would\n // normally be buffer values in JavaScript; however, since a field\n // array (or table) cannot have shortstr values, the codec will\n // encode all strings as longstrs anyway.\n function convertCC(cc) {\n if (cc === undefined) {\n return undefined;\n }\n else if (Array.isArray(cc)) {\n return cc.map(String);\n }\n else return [String(cc)];\n }\n\n var headers = Object.create(options.headers || null);\n setIfDefined(headers, 'CC', convertCC(options.CC));\n setIfDefined(headers, 'BCC', convertCC(options.BCC));\n\n var deliveryMode; // undefined will default to 1 (non-persistent)\n\n // Previously I overloaded deliveryMode be a boolean meaning\n // 'persistent or not'; better is to name this option for what it\n // is, but I need to have backwards compatibility for applications\n // that either supply a numeric or boolean value.\n if (options.persistent !== undefined)\n deliveryMode = (options.persistent) ? 2 : 1;\n else if (typeof options.deliveryMode === 'number')\n deliveryMode = options.deliveryMode;\n else if (options.deliveryMode) // is supplied and truthy\n deliveryMode = 2;\n\n var expiration = options.expiration;\n if (expiration !== undefined) expiration = expiration.toString();\n\n return {\n // method fields\n exchange: exchange,\n routingKey: routingKey,\n mandatory: !!options.mandatory,\n immediate: false, // RabbitMQ doesn't implement this any more\n ticket: undefined,\n // properties\n contentType: options.contentType,\n contentEncoding: options.contentEncoding,\n headers: headers,\n deliveryMode: deliveryMode,\n priority: options.priority,\n correlationId: options.correlationId,\n replyTo: options.replyTo,\n expiration: expiration,\n messageId: options.messageId,\n timestamp: options.timestamp,\n type: options.type,\n userId: options.userId,\n appId: options.appId,\n clusterId: undefined\n };\n};\n\nArgs.consume = function(queue, options) {\n options = options || EMPTY_OPTIONS;\n var argt = Object.create(options.arguments || null);\n setIfDefined(argt, 'x-priority', options.priority);\n return {\n ticket: 0,\n queue: queue,\n consumerTag: options.consumerTag || '',\n noLocal: !!options.noLocal,\n noAck: !!options.noAck,\n exclusive: !!options.exclusive,\n nowait: false,\n arguments: argt\n };\n};\n\nArgs.cancel = function(consumerTag) {\n return {\n consumerTag: consumerTag,\n nowait: false\n };\n};\n\nArgs.get = function(queue, options) {\n options = options || EMPTY_OPTIONS;\n return {\n ticket: 0,\n queue: queue,\n noAck: !!options.noAck\n };\n};\n\nArgs.ack = function(tag, allUpTo) {\n return {\n deliveryTag: tag,\n multiple: !!allUpTo\n };\n};\n\nArgs.nack = function(tag, allUpTo, requeue) {\n return {\n deliveryTag: tag,\n multiple: !!allUpTo,\n requeue: (requeue === undefined) ? true : requeue\n };\n};\n\nArgs.reject = function(tag, requeue) {\n return {\n deliveryTag: tag,\n requeue: (requeue === undefined) ? true : requeue\n };\n};\n\nArgs.prefetch = function(count, global) {\n return {\n prefetchCount: count || 0,\n prefetchSize: 0,\n global: !!global\n };\n};\n\nArgs.recover = function() {\n return {requeue: true};\n};\n\nmodule.exports = Object.freeze(Args);\n"],"x_google_ignoreList":[0],"mappings":";;;;CAuCA,SAAS,aAAa,KAAK,MAAM,OAAO;EACtC,IAAI,SAAS,QAAW,IAAI,QAAQ;CACtC;CAEA,IAAI,gBAAgB,OAAO,OAAO,CAAC,CAAC;CAEpC,IAAI,OAAO,CAAC;CAEZ,KAAK,cAAc,SAAS,OAAO,SAAS;EAC1C,QAAQ,SAAS;EACjB,UAAU,WAAW;EAErB,IAAI,OAAO,OAAO,OAAO,QAAQ,aAAa,IAAI;EAClD,aAAa,MAAM,aAAa,QAAQ,OAAO;EAC/C,aAAa,MAAM,iBAAiB,QAAQ,UAAU;EACtD,aAAa,MAAM,0BACN,QAAQ,kBAAkB;EACvC,aAAa,MAAM,6BACN,QAAQ,oBAAoB;EACzC,aAAa,MAAM,gBAAgB,QAAQ,SAAS;EACpD,aAAa,MAAM,kBAAkB,QAAQ,WAAW;EACxD,aAAa,MAAM,cAAc,QAAQ,QAAQ;EACjD,aAAa,MAAM,gBAAgB,QAAQ,SAAS;EAEpD,OAAO;GACE;GACP,WAAW,CA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/_rolldown/runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.js
4
- var require_bitset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- /**
6
- * A bitset implementation, after that in java.util. Yes there
7
- * already exist such things, but none implement next{Clear|Set}Bit or
8
- * equivalent, and none involved me tooling about for an evening.
9
- */
10
- var BitSet = class {
11
- /**
12
- * @param {number} [size]
13
- */
14
- constructor(size) {
15
- if (size) {
16
- const numWords = Math.ceil(size / 32);
17
- this.words = new Array(numWords);
18
- } else this.words = [];
19
- this.wordsInUse = 0;
20
- }
21
- /**
22
- * @param {number} numWords
23
- */
24
- ensureSize(numWords) {
25
- const wordsPresent = this.words.length;
26
- if (wordsPresent < numWords) this.words = this.words.concat(new Array(numWords - wordsPresent));
27
- }
28
- /**
29
- * @param {number} bitIndex
30
- */
31
- set(bitIndex) {
32
- const w = wordIndex(bitIndex);
33
- if (w >= this.wordsInUse) {
34
- this.ensureSize(w + 1);
35
- this.wordsInUse = w + 1;
36
- }
37
- const bit = 1 << bitIndex;
38
- this.words[w] |= bit;
39
- }
40
- /**
41
- * @param {number} bitIndex
42
- */
43
- clear(bitIndex) {
44
- const w = wordIndex(bitIndex);
45
- if (w >= this.wordsInUse) return;
46
- const mask = ~(1 << bitIndex);
47
- this.words[w] &= mask;
48
- }
49
- /**
50
- * @param {number} bitIndex
51
- */
52
- get(bitIndex) {
53
- const w = wordIndex(bitIndex);
54
- if (w >= this.wordsInUse) return false;
55
- const bit = 1 << bitIndex;
56
- return !!(this.words[w] & bit);
57
- }
58
- /**
59
- * Give the next bit that is set on or after fromIndex, or -1 if no such bit
60
- *
61
- * @param {number} fromIndex
62
- */
63
- nextSetBit(fromIndex) {
64
- let w = wordIndex(fromIndex);
65
- if (w >= this.wordsInUse) return -1;
66
- let word = this.words[w] & 4294967295 << fromIndex;
67
- while (true) {
68
- if (word) return w * 32 + trailingZeros(word);
69
- w++;
70
- if (w === this.wordsInUse) return -1;
71
- word = this.words[w];
72
- }
73
- }
74
- /**
75
- * @param {number} fromIndex
76
- */
77
- nextClearBit(fromIndex) {
78
- let w = wordIndex(fromIndex);
79
- if (w >= this.wordsInUse) return fromIndex;
80
- let word = ~this.words[w] & 4294967295 << fromIndex;
81
- while (true) {
82
- if (word) return w * 32 + trailingZeros(word);
83
- w++;
84
- if (w == this.wordsInUse) return w * 32;
85
- word = ~this.words[w];
86
- }
87
- }
88
- };
89
- /**
90
- * @param {number} bitIndex
91
- */
92
- function wordIndex(bitIndex) {
93
- return Math.floor(bitIndex / 32);
94
- }
95
- /**
96
- * @param {number} i
97
- */
98
- function trailingZeros(i) {
99
- if (i === 0) return 32;
100
- let y, n = 31;
101
- y = i << 16;
102
- if (y != 0) {
103
- n = n - 16;
104
- i = y;
105
- }
106
- y = i << 8;
107
- if (y != 0) {
108
- n = n - 8;
109
- i = y;
110
- }
111
- y = i << 4;
112
- if (y != 0) {
113
- n = n - 4;
114
- i = y;
115
- }
116
- y = i << 2;
117
- if (y != 0) {
118
- n = n - 2;
119
- i = y;
120
- }
121
- return n - (i << 1 >>> 31);
122
- }
123
- module.exports.BitSet = BitSet;
124
- }));
125
-
126
- //#endregion
127
- export default require_bitset();
128
-
129
- export { require_bitset };
130
- //# sourceMappingURL=bitset.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bitset.mjs","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.js"],"sourcesContent":["//\n//\n//\n\n'use strict';\n\n/**\n * A bitset implementation, after that in java.util. Yes there\n * already exist such things, but none implement next{Clear|Set}Bit or\n * equivalent, and none involved me tooling about for an evening.\n */\nclass BitSet {\n /**\n * @param {number} [size]\n */\n constructor(size) {\n if (size) {\n const numWords = Math.ceil(size / 32);\n this.words = new Array(numWords);\n }\n else {\n this.words = [];\n }\n this.wordsInUse = 0; // = number, not index\n }\n\n /**\n * @param {number} numWords\n */\n ensureSize(numWords) {\n const wordsPresent = this.words.length;\n if (wordsPresent < numWords) {\n this.words = this.words.concat(new Array(numWords - wordsPresent));\n }\n }\n\n /**\n * @param {number} bitIndex\n */\n set(bitIndex) {\n const w = wordIndex(bitIndex);\n if (w >= this.wordsInUse) {\n this.ensureSize(w + 1);\n this.wordsInUse = w + 1;\n }\n const bit = 1 << bitIndex;\n this.words[w] |= bit;\n }\n\n /**\n * @param {number} bitIndex\n */\n clear(bitIndex) {\n const w = wordIndex(bitIndex);\n if (w >= this.wordsInUse) return;\n const mask = ~(1 << bitIndex);\n this.words[w] &= mask;\n }\n\n /**\n * @param {number} bitIndex\n */\n get(bitIndex) {\n const w = wordIndex(bitIndex);\n if (w >= this.wordsInUse) return false; // >= since index vs size\n const bit = 1 << bitIndex;\n return !!(this.words[w] & bit);\n }\n\n /**\n * Give the next bit that is set on or after fromIndex, or -1 if no such bit\n *\n * @param {number} fromIndex\n */\n nextSetBit(fromIndex) {\n let w = wordIndex(fromIndex);\n if (w >= this.wordsInUse) return -1;\n\n // the right-hand side is shifted to only test the bits of the first\n // word that are > fromIndex\n let word = this.words[w] & (0xffffffff << fromIndex);\n while (true) {\n if (word) return (w * 32) + trailingZeros(word);\n w++;\n if (w === this.wordsInUse) return -1;\n word = this.words[w];\n }\n }\n\n /**\n * @param {number} fromIndex\n */\n nextClearBit(fromIndex) {\n let w = wordIndex(fromIndex);\n if (w >= this.wordsInUse) return fromIndex;\n\n let word = ~(this.words[w]) & (0xffffffff << fromIndex);\n while (true) {\n if (word) return (w * 32) + trailingZeros(word);\n w++;\n if (w == this.wordsInUse) return w * 32;\n word = ~(this.words[w]);\n }\n }\n}\n\n/**\n * @param {number} bitIndex\n */\nfunction wordIndex(bitIndex) {\n return Math.floor(bitIndex / 32);\n}\n\n/**\n * @param {number} i\n */\nfunction trailingZeros(i) {\n // From Hacker's Delight, via JDK. Probably far less effective here,\n // since bit ops are not necessarily the quick way to do things in\n // JS.\n if (i === 0) return 32;\n let y, n = 31;\n y = i << 16; if (y != 0) { n = n -16; i = y; }\n y = i << 8; if (y != 0) { n = n - 8; i = y; }\n y = i << 4; if (y != 0) { n = n - 4; i = y; }\n y = i << 2; if (y != 0) { n = n - 2; i = y; }\n return n - ((i << 1) >>> 31);\n}\n\nmodule.exports.BitSet = BitSet;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;CAWA,IAAM,SAAN,MAAa;;;;EAIX,YAAY,MAAM;GAChB,IAAI,MAAM;IACR,MAAM,WAAW,KAAK,KAAK,OAAO,EAAE;IACpC,KAAK,QAAQ,IAAI,MAAM,QAAQ;GACjC,OAEE,KAAK,QAAQ,CAAC;GAEhB,KAAK,aAAa;EACpB;;;;EAKA,WAAW,UAAU;GACnB,MAAM,eAAe,KAAK,MAAM;GAChC,IAAI,eAAe,UACjB,KAAK,QAAQ,KAAK,MAAM,OAAO,IAAI,MAAM,WAAW,YAAY,CAAC;EAErE;;;;EAKA,IAAI,UAAU;GACZ,MAAM,IAAI,UAAU,QAAQ;GAC5B,IAAI,KAAK,KAAK,YAAY;IACxB,KAAK,WAAW,IAAI,CAAC;IACrB,KAAK,aAAa,IAAI;GACxB;GACA,MAAM,MAAM,KAAK;GACjB,KAAK,MAAM,MAAM;EACnB;;;;EAKA,MAAM,UAAU;GACd,MAAM,IAAI,UAAU,QAAQ;GAC5B,IAAI,KAAK,KAAK,YAAY;GAC1B,MAAM,OAAO,EAAE,KAAK;GACpB,KAAK,MAAM,MAAM;EACnB;;;;EAKA,IAAI,UAAU;GACZ,MAAM,IAAI,UAAU,QAAQ;GAC5B,IAAI,KAAK,KAAK,YAAY,OAAO;GACjC,MAAM,MAAM,KAAK;GACjB,OAAO,CAAC,EAAE,KAAK,MAAM,KAAK;EAC5B;;;;;;EAOA,WAAW,WAAW;GACpB,IAAI,IAAI,UAAU,SAAS;GAC3B,IAAI,KAAK,KAAK,YAAY,OAAO;GAIjC,IAAI,OAAO,KAAK,MAAM,KAAM,cAAc;GAC1C,OAAO,MAAM;IACX,IAAI,M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