@temboplus/afloat 0.1.58 → 0.1.60

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 (402) hide show
  1. package/esm/src/models/payout/derivatives/payout.d.ts +2 -0
  2. package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -1
  3. package/esm/src/models/payout/derivatives/payout.js +5 -1
  4. package/esm/src/models/payout/index.d.ts +1 -0
  5. package/esm/src/models/payout/index.d.ts.map +1 -1
  6. package/esm/src/models/payout/index.js +1 -0
  7. package/esm/src/models/payout/narration.d.ts +164 -0
  8. package/esm/src/models/payout/narration.d.ts.map +1 -0
  9. package/esm/src/models/payout/narration.js +308 -0
  10. package/esm/src/models/payout/schemas.js +1 -1
  11. package/package.json +1 -1
  12. package/script/mod.d.ts +7 -7
  13. package/script/mod.d.ts.map +1 -1
  14. package/script/mod.js +7 -7
  15. package/script/npm/src/_dnt.test_shims.d.ts +6 -0
  16. package/script/npm/src/_dnt.test_shims.d.ts.map +1 -0
  17. package/script/npm/src/_dnt.test_shims.js +65 -0
  18. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts +29 -0
  19. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
  20. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/almost_equals.js +49 -0
  21. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts +24 -0
  22. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
  23. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/array_includes.js +49 -0
  24. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assert.d.ts +16 -0
  25. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
  26. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assert.js +25 -0
  27. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts +26 -0
  28. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
  29. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assertion_error.js +34 -0
  30. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equal.d.ts +17 -0
  31. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
  32. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equal.js +209 -0
  33. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equals.d.ts +35 -0
  34. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
  35. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equals.js +61 -0
  36. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/exists.d.ts +18 -0
  37. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
  38. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/exists.js +30 -0
  39. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/fail.d.ts +15 -0
  40. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
  41. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/fail.js +23 -0
  42. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/false.d.ts +18 -0
  43. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
  44. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/false.js +25 -0
  45. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater.d.ts +20 -0
  46. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
  47. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater.js +32 -0
  48. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts +20 -0
  49. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
  50. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.js +32 -0
  51. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts +23 -0
  52. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
  53. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/instance_of.js +55 -0
  54. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts +25 -0
  55. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
  56. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/is_error.js +56 -0
  57. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less.d.ts +19 -0
  58. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
  59. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less.js +31 -0
  60. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts +20 -0
  61. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
  62. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.js +32 -0
  63. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/match.d.ts +18 -0
  64. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
  65. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/match.js +29 -0
  66. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/mod.d.ts +44 -0
  67. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
  68. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/mod.js +61 -0
  69. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts +21 -0
  70. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
  71. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_equals.js +36 -0
  72. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts +20 -0
  73. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
  74. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.js +32 -0
  75. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts +18 -0
  76. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
  77. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_match.js +29 -0
  78. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts +23 -0
  79. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
  80. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.js +35 -0
  81. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts +29 -0
  82. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
  83. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/object_match.js +163 -0
  84. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts +42 -0
  85. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
  86. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/rejects.js +56 -0
  87. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts +24 -0
  88. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
  89. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/strict_equals.js +60 -0
  90. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts +18 -0
  91. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
  92. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/string_includes.js +29 -0
  93. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/throws.d.ts +45 -0
  94. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
  95. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/throws.js +47 -0
  96. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts +15 -0
  97. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
  98. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unimplemented.js +23 -0
  99. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts +15 -0
  100. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
  101. package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unreachable.js +23 -0
  102. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +82 -0
  103. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
  104. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/build_message.js +115 -0
  105. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
  106. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
  107. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff.js +283 -0
  108. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
  109. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
  110. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff_str.js +185 -0
  111. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
  112. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
  113. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/format.js +63 -0
  114. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
  115. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
  116. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/styles.js +242 -0
  117. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
  118. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
  119. package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/types.js +3 -0
  120. package/script/npm/src/mod.d.ts +8 -0
  121. package/script/npm/src/mod.d.ts.map +1 -0
  122. package/script/npm/src/mod.js +23 -0
  123. package/script/npm/src/src/errors/api_error.d.ts.map +1 -0
  124. package/script/npm/src/src/errors/index.d.ts.map +1 -0
  125. package/script/npm/src/src/errors/permission_error.d.ts.map +1 -0
  126. package/script/{src → npm/src/src}/features/admin/contract.d.ts.map +1 -1
  127. package/script/npm/src/src/features/admin/index.d.ts.map +1 -0
  128. package/script/npm/src/src/features/admin/repository.d.ts.map +1 -0
  129. package/script/npm/src/src/features/admin/schemas.d.ts.map +1 -0
  130. package/script/npm/src/src/features/auth/access/contract.d.ts.map +1 -0
  131. package/script/npm/src/src/features/auth/access/repository.d.ts.map +1 -0
  132. package/script/npm/src/src/features/auth/contract.d.ts.map +1 -0
  133. package/script/npm/src/src/features/auth/identity/contract.d.ts.map +1 -0
  134. package/script/npm/src/src/features/auth/identity/repository.d.ts.map +1 -0
  135. package/script/npm/src/src/features/auth/index.d.ts.map +1 -0
  136. package/script/npm/src/src/features/auth/manager.d.ts.map +1 -0
  137. package/script/npm/src/src/features/auth/profile/contract.d.ts.map +1 -0
  138. package/script/npm/src/src/features/auth/profile/repository.d.ts.map +1 -0
  139. package/script/npm/src/src/features/auth/repository.d.ts.map +1 -0
  140. package/script/npm/src/src/features/auth/storage/client_store.d.ts.map +1 -0
  141. package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
  142. package/script/npm/src/src/features/auth/storage/server_store.d.ts.map +1 -0
  143. package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
  144. package/script/npm/src/src/features/auth/storage/types.d.ts.map +1 -0
  145. package/script/npm/src/src/features/contact/contract.d.ts.map +1 -0
  146. package/script/npm/src/src/features/contact/index.d.ts.map +1 -0
  147. package/script/npm/src/src/features/contact/repository.d.ts.map +1 -0
  148. package/script/{src → npm/src/src}/features/payout/contract.d.ts.map +1 -1
  149. package/script/npm/src/src/features/payout/index.d.ts.map +1 -0
  150. package/script/npm/src/src/features/payout/repository.d.ts.map +1 -0
  151. package/script/npm/src/src/features/wallet/contract.d.ts.map +1 -0
  152. package/script/npm/src/src/features/wallet/index.d.ts.map +1 -0
  153. package/script/npm/src/src/features/wallet/repository.d.ts.map +1 -0
  154. package/script/npm/src/src/models/contact/derivatives/contact.d.ts.map +1 -0
  155. package/script/npm/src/src/models/contact/derivatives/contact.test.d.ts +1 -0
  156. package/script/npm/src/src/models/contact/derivatives/contact.test.d.ts.map +1 -0
  157. package/script/npm/src/src/models/contact/derivatives/contact.test.js +64 -0
  158. package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
  159. package/script/npm/src/src/models/contact/derivatives/contact_info.test.d.ts +1 -0
  160. package/script/npm/src/src/models/contact/derivatives/contact_info.test.d.ts.map +1 -0
  161. package/script/npm/src/src/models/contact/derivatives/contact_info.test.js +331 -0
  162. package/script/npm/src/src/models/contact/index.d.ts.map +1 -0
  163. package/script/npm/src/src/models/contact/schemas.d.ts.map +1 -0
  164. package/script/npm/src/src/models/contact/validation.d.ts.map +1 -0
  165. package/script/npm/src/src/models/contact/validation.test.d.ts +2 -0
  166. package/script/npm/src/src/models/contact/validation.test.d.ts.map +1 -0
  167. package/script/npm/src/src/models/contact/validation.test.js +186 -0
  168. package/script/npm/src/src/models/index.d.ts.map +1 -0
  169. package/script/npm/src/src/models/payout/api.d.ts.map +1 -0
  170. package/script/npm/src/src/models/payout/channel.d.ts.map +1 -0
  171. package/script/{src → npm/src/src}/models/payout/derivatives/payout.d.ts +2 -0
  172. package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +1 -0
  173. package/script/{src → npm/src/src}/models/payout/derivatives/payout.js +4 -0
  174. package/script/npm/src/src/models/payout/derivatives/payout.test.d.ts +1 -0
  175. package/script/npm/src/src/models/payout/derivatives/payout.test.d.ts.map +1 -0
  176. package/script/npm/src/src/models/payout/derivatives/payout.test.js +76 -0
  177. package/script/{src → npm/src/src}/models/payout/index.d.ts +1 -0
  178. package/script/npm/src/src/models/payout/index.d.ts.map +1 -0
  179. package/script/{src → npm/src/src}/models/payout/index.js +1 -0
  180. package/script/npm/src/src/models/payout/narration.d.ts +164 -0
  181. package/script/npm/src/src/models/payout/narration.d.ts.map +1 -0
  182. package/script/npm/src/src/models/payout/narration.js +312 -0
  183. package/script/npm/src/src/models/payout/schemas.d.ts.map +1 -0
  184. package/script/{src → npm/src/src}/models/payout/schemas.js +1 -1
  185. package/script/npm/src/src/models/payout/status.d.ts.map +1 -0
  186. package/script/npm/src/src/models/permission.d.ts.map +1 -0
  187. package/script/npm/src/src/models/role.d.ts.map +1 -0
  188. package/script/npm/src/src/models/user/authenticated-user.d.ts.map +1 -0
  189. package/script/npm/src/src/models/user/index.d.ts.map +1 -0
  190. package/script/npm/src/src/models/user/managed-user.d.ts.map +1 -0
  191. package/script/npm/src/src/models/user/profile.d.ts.map +1 -0
  192. package/script/npm/src/src/models/wallet/index.d.ts.map +1 -0
  193. package/script/npm/src/src/models/wallet/schemas.d.ts.map +1 -0
  194. package/script/npm/src/src/models/wallet/statement_entry.d.ts.map +1 -0
  195. package/script/npm/src/src/models/wallet/wallet.d.ts.map +1 -0
  196. package/script/npm/src/src/shared/base_repository.d.ts.map +1 -0
  197. package/script/npm/src/src/shared/common_responses.d.ts.map +1 -0
  198. package/script/npm/src/src/shared/index.d.ts.map +1 -0
  199. package/script/npm/src/src/shared/token_required_repository.d.ts.map +1 -0
  200. package/script/_dnt.test_shims.d.ts.map +0 -1
  201. package/script/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +0 -1
  202. package/script/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +0 -1
  203. package/script/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +0 -1
  204. package/script/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +0 -1
  205. package/script/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +0 -1
  206. package/script/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +0 -1
  207. package/script/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +0 -1
  208. package/script/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +0 -1
  209. package/script/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +0 -1
  210. package/script/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +0 -1
  211. package/script/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +0 -1
  212. package/script/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +0 -1
  213. package/script/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +0 -1
  214. package/script/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +0 -1
  215. package/script/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +0 -1
  216. package/script/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +0 -1
  217. package/script/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +0 -1
  218. package/script/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +0 -1
  219. package/script/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +0 -1
  220. package/script/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +0 -1
  221. package/script/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +0 -1
  222. package/script/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +0 -1
  223. package/script/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +0 -1
  224. package/script/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +0 -1
  225. package/script/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +0 -1
  226. package/script/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +0 -1
  227. package/script/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +0 -1
  228. package/script/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +0 -1
  229. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  230. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  231. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  232. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  233. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  234. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  235. package/script/src/errors/api_error.d.ts.map +0 -1
  236. package/script/src/errors/index.d.ts.map +0 -1
  237. package/script/src/errors/permission_error.d.ts.map +0 -1
  238. package/script/src/features/admin/index.d.ts.map +0 -1
  239. package/script/src/features/admin/repository.d.ts.map +0 -1
  240. package/script/src/features/admin/schemas.d.ts.map +0 -1
  241. package/script/src/features/auth/access/contract.d.ts.map +0 -1
  242. package/script/src/features/auth/access/repository.d.ts.map +0 -1
  243. package/script/src/features/auth/contract.d.ts.map +0 -1
  244. package/script/src/features/auth/identity/contract.d.ts.map +0 -1
  245. package/script/src/features/auth/identity/repository.d.ts.map +0 -1
  246. package/script/src/features/auth/index.d.ts.map +0 -1
  247. package/script/src/features/auth/manager.d.ts.map +0 -1
  248. package/script/src/features/auth/profile/contract.d.ts.map +0 -1
  249. package/script/src/features/auth/profile/repository.d.ts.map +0 -1
  250. package/script/src/features/auth/repository.d.ts.map +0 -1
  251. package/script/src/features/auth/storage/client_store.d.ts.map +0 -1
  252. package/script/src/features/auth/storage/client_token_handler.d.ts.map +0 -1
  253. package/script/src/features/auth/storage/server_store.d.ts.map +0 -1
  254. package/script/src/features/auth/storage/server_token_handler.d.ts.map +0 -1
  255. package/script/src/features/auth/storage/types.d.ts.map +0 -1
  256. package/script/src/features/contact/contract.d.ts.map +0 -1
  257. package/script/src/features/contact/index.d.ts.map +0 -1
  258. package/script/src/features/contact/repository.d.ts.map +0 -1
  259. package/script/src/features/payout/index.d.ts.map +0 -1
  260. package/script/src/features/payout/repository.d.ts.map +0 -1
  261. package/script/src/features/wallet/contract.d.ts.map +0 -1
  262. package/script/src/features/wallet/index.d.ts.map +0 -1
  263. package/script/src/features/wallet/repository.d.ts.map +0 -1
  264. package/script/src/models/contact/derivatives/contact.d.ts.map +0 -1
  265. package/script/src/models/contact/derivatives/contact.test.d.ts.map +0 -1
  266. package/script/src/models/contact/derivatives/contact_info.d.ts.map +0 -1
  267. package/script/src/models/contact/derivatives/contact_info.test.d.ts.map +0 -1
  268. package/script/src/models/contact/index.d.ts.map +0 -1
  269. package/script/src/models/contact/schemas.d.ts.map +0 -1
  270. package/script/src/models/contact/validation.d.ts.map +0 -1
  271. package/script/src/models/contact/validation.test.d.ts.map +0 -1
  272. package/script/src/models/index.d.ts.map +0 -1
  273. package/script/src/models/payout/api.d.ts.map +0 -1
  274. package/script/src/models/payout/channel.d.ts.map +0 -1
  275. package/script/src/models/payout/derivatives/payout.d.ts.map +0 -1
  276. package/script/src/models/payout/derivatives/payout.test.d.ts.map +0 -1
  277. package/script/src/models/payout/index.d.ts.map +0 -1
  278. package/script/src/models/payout/schemas.d.ts.map +0 -1
  279. package/script/src/models/payout/status.d.ts.map +0 -1
  280. package/script/src/models/permission.d.ts.map +0 -1
  281. package/script/src/models/role.d.ts.map +0 -1
  282. package/script/src/models/user/authenticated-user.d.ts.map +0 -1
  283. package/script/src/models/user/index.d.ts.map +0 -1
  284. package/script/src/models/user/managed-user.d.ts.map +0 -1
  285. package/script/src/models/user/profile.d.ts.map +0 -1
  286. package/script/src/models/wallet/index.d.ts.map +0 -1
  287. package/script/src/models/wallet/schemas.d.ts.map +0 -1
  288. package/script/src/models/wallet/statement_entry.d.ts.map +0 -1
  289. package/script/src/models/wallet/wallet.d.ts.map +0 -1
  290. package/script/src/shared/base_repository.d.ts.map +0 -1
  291. package/script/src/shared/common_responses.d.ts.map +0 -1
  292. package/script/src/shared/index.d.ts.map +0 -1
  293. package/script/src/shared/token_required_repository.d.ts.map +0 -1
  294. /package/script/{src → npm/src/src}/errors/api_error.d.ts +0 -0
  295. /package/script/{src → npm/src/src}/errors/api_error.js +0 -0
  296. /package/script/{src → npm/src/src}/errors/index.d.ts +0 -0
  297. /package/script/{src → npm/src/src}/errors/index.js +0 -0
  298. /package/script/{src → npm/src/src}/errors/permission_error.d.ts +0 -0
  299. /package/script/{src → npm/src/src}/errors/permission_error.js +0 -0
  300. /package/script/{src → npm/src/src}/features/admin/contract.d.ts +0 -0
  301. /package/script/{src → npm/src/src}/features/admin/contract.js +0 -0
  302. /package/script/{src → npm/src/src}/features/admin/index.d.ts +0 -0
  303. /package/script/{src → npm/src/src}/features/admin/index.js +0 -0
  304. /package/script/{src → npm/src/src}/features/admin/repository.d.ts +0 -0
  305. /package/script/{src → npm/src/src}/features/admin/repository.js +0 -0
  306. /package/script/{src → npm/src/src}/features/admin/schemas.d.ts +0 -0
  307. /package/script/{src → npm/src/src}/features/admin/schemas.js +0 -0
  308. /package/script/{src → npm/src/src}/features/auth/access/contract.d.ts +0 -0
  309. /package/script/{src → npm/src/src}/features/auth/access/contract.js +0 -0
  310. /package/script/{src → npm/src/src}/features/auth/access/repository.d.ts +0 -0
  311. /package/script/{src → npm/src/src}/features/auth/access/repository.js +0 -0
  312. /package/script/{src → npm/src/src}/features/auth/contract.d.ts +0 -0
  313. /package/script/{src → npm/src/src}/features/auth/contract.js +0 -0
  314. /package/script/{src → npm/src/src}/features/auth/identity/contract.d.ts +0 -0
  315. /package/script/{src → npm/src/src}/features/auth/identity/contract.js +0 -0
  316. /package/script/{src → npm/src/src}/features/auth/identity/repository.d.ts +0 -0
  317. /package/script/{src → npm/src/src}/features/auth/identity/repository.js +0 -0
  318. /package/script/{src → npm/src/src}/features/auth/index.d.ts +0 -0
  319. /package/script/{src → npm/src/src}/features/auth/index.js +0 -0
  320. /package/script/{src → npm/src/src}/features/auth/manager.d.ts +0 -0
  321. /package/script/{src → npm/src/src}/features/auth/manager.js +0 -0
  322. /package/script/{src → npm/src/src}/features/auth/profile/contract.d.ts +0 -0
  323. /package/script/{src → npm/src/src}/features/auth/profile/contract.js +0 -0
  324. /package/script/{src → npm/src/src}/features/auth/profile/repository.d.ts +0 -0
  325. /package/script/{src → npm/src/src}/features/auth/profile/repository.js +0 -0
  326. /package/script/{src → npm/src/src}/features/auth/repository.d.ts +0 -0
  327. /package/script/{src → npm/src/src}/features/auth/repository.js +0 -0
  328. /package/script/{src → npm/src/src}/features/auth/storage/client_store.d.ts +0 -0
  329. /package/script/{src → npm/src/src}/features/auth/storage/client_store.js +0 -0
  330. /package/script/{src → npm/src/src}/features/auth/storage/client_token_handler.d.ts +0 -0
  331. /package/script/{src → npm/src/src}/features/auth/storage/client_token_handler.js +0 -0
  332. /package/script/{src → npm/src/src}/features/auth/storage/server_store.d.ts +0 -0
  333. /package/script/{src → npm/src/src}/features/auth/storage/server_store.js +0 -0
  334. /package/script/{src → npm/src/src}/features/auth/storage/server_token_handler.d.ts +0 -0
  335. /package/script/{src → npm/src/src}/features/auth/storage/server_token_handler.js +0 -0
  336. /package/script/{src → npm/src/src}/features/auth/storage/types.d.ts +0 -0
  337. /package/script/{src → npm/src/src}/features/auth/storage/types.js +0 -0
  338. /package/script/{src → npm/src/src}/features/contact/contract.d.ts +0 -0
  339. /package/script/{src → npm/src/src}/features/contact/contract.js +0 -0
  340. /package/script/{src → npm/src/src}/features/contact/index.d.ts +0 -0
  341. /package/script/{src → npm/src/src}/features/contact/index.js +0 -0
  342. /package/script/{src → npm/src/src}/features/contact/repository.d.ts +0 -0
  343. /package/script/{src → npm/src/src}/features/contact/repository.js +0 -0
  344. /package/script/{src → npm/src/src}/features/payout/contract.d.ts +0 -0
  345. /package/script/{src → npm/src/src}/features/payout/contract.js +0 -0
  346. /package/script/{src → npm/src/src}/features/payout/index.d.ts +0 -0
  347. /package/script/{src → npm/src/src}/features/payout/index.js +0 -0
  348. /package/script/{src → npm/src/src}/features/payout/repository.d.ts +0 -0
  349. /package/script/{src → npm/src/src}/features/payout/repository.js +0 -0
  350. /package/script/{src → npm/src/src}/features/wallet/contract.d.ts +0 -0
  351. /package/script/{src → npm/src/src}/features/wallet/contract.js +0 -0
  352. /package/script/{src → npm/src/src}/features/wallet/index.d.ts +0 -0
  353. /package/script/{src → npm/src/src}/features/wallet/index.js +0 -0
  354. /package/script/{src → npm/src/src}/features/wallet/repository.d.ts +0 -0
  355. /package/script/{src → npm/src/src}/features/wallet/repository.js +0 -0
  356. /package/script/{src → npm/src/src}/models/contact/derivatives/contact.d.ts +0 -0
  357. /package/script/{src → npm/src/src}/models/contact/derivatives/contact.js +0 -0
  358. /package/script/{src → npm/src/src}/models/contact/derivatives/contact_info.d.ts +0 -0
  359. /package/script/{src → npm/src/src}/models/contact/derivatives/contact_info.js +0 -0
  360. /package/script/{src → npm/src/src}/models/contact/index.d.ts +0 -0
  361. /package/script/{src → npm/src/src}/models/contact/index.js +0 -0
  362. /package/script/{src → npm/src/src}/models/contact/schemas.d.ts +0 -0
  363. /package/script/{src → npm/src/src}/models/contact/schemas.js +0 -0
  364. /package/script/{src → npm/src/src}/models/contact/validation.d.ts +0 -0
  365. /package/script/{src → npm/src/src}/models/contact/validation.js +0 -0
  366. /package/script/{src → npm/src/src}/models/index.d.ts +0 -0
  367. /package/script/{src → npm/src/src}/models/index.js +0 -0
  368. /package/script/{src → npm/src/src}/models/payout/api.d.ts +0 -0
  369. /package/script/{src → npm/src/src}/models/payout/api.js +0 -0
  370. /package/script/{src → npm/src/src}/models/payout/channel.d.ts +0 -0
  371. /package/script/{src → npm/src/src}/models/payout/channel.js +0 -0
  372. /package/script/{src → npm/src/src}/models/payout/schemas.d.ts +0 -0
  373. /package/script/{src → npm/src/src}/models/payout/status.d.ts +0 -0
  374. /package/script/{src → npm/src/src}/models/payout/status.js +0 -0
  375. /package/script/{src → npm/src/src}/models/permission.d.ts +0 -0
  376. /package/script/{src → npm/src/src}/models/permission.js +0 -0
  377. /package/script/{src → npm/src/src}/models/role.d.ts +0 -0
  378. /package/script/{src → npm/src/src}/models/role.js +0 -0
  379. /package/script/{src → npm/src/src}/models/user/authenticated-user.d.ts +0 -0
  380. /package/script/{src → npm/src/src}/models/user/authenticated-user.js +0 -0
  381. /package/script/{src → npm/src/src}/models/user/index.d.ts +0 -0
  382. /package/script/{src → npm/src/src}/models/user/index.js +0 -0
  383. /package/script/{src → npm/src/src}/models/user/managed-user.d.ts +0 -0
  384. /package/script/{src → npm/src/src}/models/user/managed-user.js +0 -0
  385. /package/script/{src → npm/src/src}/models/user/profile.d.ts +0 -0
  386. /package/script/{src → npm/src/src}/models/user/profile.js +0 -0
  387. /package/script/{src → npm/src/src}/models/wallet/index.d.ts +0 -0
  388. /package/script/{src → npm/src/src}/models/wallet/index.js +0 -0
  389. /package/script/{src → npm/src/src}/models/wallet/schemas.d.ts +0 -0
  390. /package/script/{src → npm/src/src}/models/wallet/schemas.js +0 -0
  391. /package/script/{src → npm/src/src}/models/wallet/statement_entry.d.ts +0 -0
  392. /package/script/{src → npm/src/src}/models/wallet/statement_entry.js +0 -0
  393. /package/script/{src → npm/src/src}/models/wallet/wallet.d.ts +0 -0
  394. /package/script/{src → npm/src/src}/models/wallet/wallet.js +0 -0
  395. /package/script/{src → npm/src/src}/shared/base_repository.d.ts +0 -0
  396. /package/script/{src → npm/src/src}/shared/base_repository.js +0 -0
  397. /package/script/{src → npm/src/src}/shared/common_responses.d.ts +0 -0
  398. /package/script/{src → npm/src/src}/shared/common_responses.js +0 -0
  399. /package/script/{src → npm/src/src}/shared/index.d.ts +0 -0
  400. /package/script/{src → npm/src/src}/shared/index.js +0 -0
  401. /package/script/{src → npm/src/src}/shared/token_required_repository.d.ts +0 -0
  402. /package/script/{src → npm/src/src}/shared/token_required_repository.js +0 -0
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertStrictEquals = assertStrictEquals;
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
+ // This module is browser compatible.
6
+ const build_message_js_1 = require("../../internal/1.0.5/build_message.js");
7
+ const diff_js_1 = require("../../internal/1.0.5/diff.js");
8
+ const diff_str_js_1 = require("../../internal/1.0.5/diff_str.js");
9
+ const format_js_1 = require("../../internal/1.0.5/format.js");
10
+ const styles_js_1 = require("../../internal/1.0.5/styles.js");
11
+ const assertion_error_js_1 = require("./assertion_error.js");
12
+ /**
13
+ * Make an assertion that `actual` and `expected` are strictly equal, using
14
+ * {@linkcode Object.is} for equality comparison. If not, then throw.
15
+ *
16
+ * @example Usage
17
+ * ```ts ignore
18
+ * import { assertStrictEquals } from "@std/assert";
19
+ *
20
+ * const a = {};
21
+ * const b = a;
22
+ * assertStrictEquals(a, b); // Doesn't throw
23
+ *
24
+ * const c = {};
25
+ * const d = {};
26
+ * assertStrictEquals(c, d); // Throws
27
+ * ```
28
+ *
29
+ * @typeParam T The type of the expected value.
30
+ * @param actual The actual value to compare.
31
+ * @param expected The expected value to compare.
32
+ * @param msg The optional message to display if the assertion fails.
33
+ */
34
+ function assertStrictEquals(actual, expected, msg) {
35
+ if (Object.is(actual, expected)) {
36
+ return;
37
+ }
38
+ const msgSuffix = msg ? `: ${msg}` : ".";
39
+ let message;
40
+ const actualString = (0, format_js_1.format)(actual);
41
+ const expectedString = (0, format_js_1.format)(expected);
42
+ if (actualString === expectedString) {
43
+ const withOffset = actualString
44
+ .split("\n")
45
+ .map((l) => ` ${l}`)
46
+ .join("\n");
47
+ message =
48
+ `Values have the same structure but are not reference-equal${msgSuffix}\n\n${(0, styles_js_1.red)(withOffset)}\n`;
49
+ }
50
+ else {
51
+ const stringDiff = (typeof actual === "string") &&
52
+ (typeof expected === "string");
53
+ const diffResult = stringDiff
54
+ ? (0, diff_str_js_1.diffStr)(actual, expected)
55
+ : (0, diff_js_1.diff)(actualString.split("\n"), expectedString.split("\n"));
56
+ const diffMsg = (0, build_message_js_1.buildMessage)(diffResult, { stringDiff }).join("\n");
57
+ message = `Values are not strictly equal${msgSuffix}\n${diffMsg}`;
58
+ }
59
+ throw new assertion_error_js_1.AssertionError(message);
60
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Make an assertion that actual includes expected. If not
3
+ * then throw.
4
+ *
5
+ * @example Usage
6
+ * ```ts ignore
7
+ * import { assertStringIncludes } from "@std/assert";
8
+ *
9
+ * assertStringIncludes("Hello", "ello"); // Doesn't throw
10
+ * assertStringIncludes("Hello", "world"); // Throws
11
+ * ```
12
+ *
13
+ * @param actual The actual string to check for inclusion.
14
+ * @param expected The expected string to check for inclusion.
15
+ * @param msg The optional message to display if the assertion fails.
16
+ */
17
+ export declare function assertStringIncludes(actual: string, expected: string, msg?: string): void;
18
+ //# sourceMappingURL=string_includes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string_includes.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/string_includes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertStringIncludes = assertStringIncludes;
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
+ // This module is browser compatible.
6
+ const assertion_error_js_1 = require("./assertion_error.js");
7
+ /**
8
+ * Make an assertion that actual includes expected. If not
9
+ * then throw.
10
+ *
11
+ * @example Usage
12
+ * ```ts ignore
13
+ * import { assertStringIncludes } from "@std/assert";
14
+ *
15
+ * assertStringIncludes("Hello", "ello"); // Doesn't throw
16
+ * assertStringIncludes("Hello", "world"); // Throws
17
+ * ```
18
+ *
19
+ * @param actual The actual string to check for inclusion.
20
+ * @param expected The expected string to check for inclusion.
21
+ * @param msg The optional message to display if the assertion fails.
22
+ */
23
+ function assertStringIncludes(actual, expected, msg) {
24
+ if (actual.includes(expected))
25
+ return;
26
+ const msgSuffix = msg ? `: ${msg}` : ".";
27
+ msg = `Expected actual: "${actual}" to contain: "${expected}"${msgSuffix}`;
28
+ throw new assertion_error_js_1.AssertionError(msg);
29
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Executes a function, expecting it to throw. If it does not, then it
3
+ * throws.
4
+ *
5
+ * To assert that an asynchronous function rejects, use
6
+ * {@linkcode assertRejects}.
7
+ *
8
+ * @example Usage
9
+ * ```ts ignore
10
+ * import { assertThrows } from "@std/assert";
11
+ *
12
+ * assertThrows(() => { throw new TypeError("hello world!"); }); // Doesn't throw
13
+ * assertThrows(() => console.log("hello world!")); // Throws
14
+ * ```
15
+ *
16
+ * @param fn The function to execute.
17
+ * @param msg The optional message to display if the assertion fails.
18
+ * @returns The error that was thrown.
19
+ */
20
+ export declare function assertThrows(fn: () => unknown, msg?: string): unknown;
21
+ /**
22
+ * Executes a function, expecting it to throw. If it does not, then it
23
+ * throws. An error class and a string that should be included in the
24
+ * error message can also be asserted.
25
+ *
26
+ * To assert that an asynchronous function rejects, use
27
+ * {@linkcode assertRejects}.
28
+ *
29
+ * @example Usage
30
+ * ```ts ignore
31
+ * import { assertThrows } from "@std/assert";
32
+ *
33
+ * assertThrows(() => { throw new TypeError("hello world!"); }, TypeError); // Doesn't throw
34
+ * assertThrows(() => { throw new TypeError("hello world!"); }, RangeError); // Throws
35
+ * ```
36
+ *
37
+ * @typeParam E The error class to assert.
38
+ * @param fn The function to execute.
39
+ * @param ErrorClass The error class to assert.
40
+ * @param msgIncludes The string that should be included in the error message.
41
+ * @param msg The optional message to display if the assertion fails.
42
+ * @returns The error that was thrown.
43
+ */
44
+ export declare function assertThrows<E extends Error = Error>(fn: () => unknown, ErrorClass: abstract new (...args: any[]) => E, msgIncludes?: string, msg?: string): E;
45
+ //# sourceMappingURL=throws.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throws.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertThrows = assertThrows;
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
+ // This module is browser compatible.
6
+ const is_error_js_1 = require("./is_error.js");
7
+ const assertion_error_js_1 = require("./assertion_error.js");
8
+ function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
9
+ // deno-lint-ignore no-explicit-any
10
+ let ErrorClass;
11
+ let msgIncludes;
12
+ let err;
13
+ if (typeof errorClassOrMsg !== "string") {
14
+ if (errorClassOrMsg === undefined ||
15
+ errorClassOrMsg?.prototype instanceof Error ||
16
+ errorClassOrMsg?.prototype === Error.prototype) {
17
+ ErrorClass = errorClassOrMsg;
18
+ msgIncludes = msgIncludesOrMsg;
19
+ }
20
+ else {
21
+ msg = msgIncludesOrMsg;
22
+ }
23
+ }
24
+ else {
25
+ msg = errorClassOrMsg;
26
+ }
27
+ let doesThrow = false;
28
+ const msgSuffix = msg ? `: ${msg}` : ".";
29
+ try {
30
+ fn();
31
+ }
32
+ catch (error) {
33
+ if (ErrorClass) {
34
+ if (error instanceof Error === false) {
35
+ throw new assertion_error_js_1.AssertionError(`A non-Error object was thrown${msgSuffix}`);
36
+ }
37
+ (0, is_error_js_1.assertIsError)(error, ErrorClass, msgIncludes, msg);
38
+ }
39
+ err = error;
40
+ doesThrow = true;
41
+ }
42
+ if (!doesThrow) {
43
+ msg = `Expected function to throw${msgSuffix}`;
44
+ throw new assertion_error_js_1.AssertionError(msg);
45
+ }
46
+ return err;
47
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Use this to stub out methods that will throw when invoked.
3
+ *
4
+ * @example Usage
5
+ * ```ts ignore
6
+ * import { unimplemented } from "@std/assert";
7
+ *
8
+ * unimplemented(); // Throws
9
+ * ```
10
+ *
11
+ * @param msg Optional message to include in the error.
12
+ * @returns Never returns, always throws.
13
+ */
14
+ export declare function unimplemented(msg?: string): never;
15
+ //# sourceMappingURL=unimplemented.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/unimplemented.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unimplemented = unimplemented;
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
+ // This module is browser compatible.
6
+ const assertion_error_js_1 = require("./assertion_error.js");
7
+ /**
8
+ * Use this to stub out methods that will throw when invoked.
9
+ *
10
+ * @example Usage
11
+ * ```ts ignore
12
+ * import { unimplemented } from "@std/assert";
13
+ *
14
+ * unimplemented(); // Throws
15
+ * ```
16
+ *
17
+ * @param msg Optional message to include in the error.
18
+ * @returns Never returns, always throws.
19
+ */
20
+ function unimplemented(msg) {
21
+ const msgSuffix = msg ? `: ${msg}` : ".";
22
+ throw new assertion_error_js_1.AssertionError(`Unimplemented${msgSuffix}`);
23
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Use this to assert unreachable code.
3
+ *
4
+ * @example Usage
5
+ * ```ts ignore
6
+ * import { unreachable } from "@std/assert";
7
+ *
8
+ * unreachable(); // Throws
9
+ * ```
10
+ *
11
+ * @param msg Optional message to include in the error.
12
+ * @returns Never returns, always throws.
13
+ */
14
+ export declare function unreachable(msg?: string): never;
15
+ //# sourceMappingURL=unreachable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAG/C"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unreachable = unreachable;
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
+ // This module is browser compatible.
6
+ const assertion_error_js_1 = require("./assertion_error.js");
7
+ /**
8
+ * Use this to assert unreachable code.
9
+ *
10
+ * @example Usage
11
+ * ```ts ignore
12
+ * import { unreachable } from "@std/assert";
13
+ *
14
+ * unreachable(); // Throws
15
+ * ```
16
+ *
17
+ * @param msg Optional message to include in the error.
18
+ * @returns Never returns, always throws.
19
+ */
20
+ function unreachable(msg) {
21
+ const msgSuffix = msg ? `: ${msg}` : ".";
22
+ throw new assertion_error_js_1.AssertionError(`Unreachable${msgSuffix}`);
23
+ }
@@ -0,0 +1,82 @@
1
+ import type { DiffResult, DiffType } from "./types.js";
2
+ /**
3
+ * Colors the output of assertion diffs.
4
+ *
5
+ * @param diffType Difference type, either added or removed.
6
+ * @param background If true, colors the background instead of the text.
7
+ *
8
+ * @returns A function that colors the input string.
9
+ *
10
+ * @example Usage
11
+ * ```ts
12
+ * import { createColor } from "@std/internal";
13
+ * import { assertEquals } from "@std/assert";
14
+ * import { bold, green, red, white } from "@std/fmt/colors";
15
+ *
16
+ * assertEquals(createColor("added")("foo"), green(bold("foo")));
17
+ * assertEquals(createColor("removed")("foo"), red(bold("foo")));
18
+ * assertEquals(createColor("common")("foo"), white("foo"));
19
+ * ```
20
+ */
21
+ export declare function createColor(diffType: DiffType,
22
+ /**
23
+ * TODO(@littledivy): Remove this when we can detect true color terminals. See
24
+ * https://github.com/denoland/deno_std/issues/2575.
25
+ */
26
+ background?: boolean): (s: string) => string;
27
+ /**
28
+ * Prefixes `+` or `-` in diff output.
29
+ *
30
+ * @param diffType Difference type, either added or removed
31
+ *
32
+ * @returns A string representing the sign.
33
+ *
34
+ * @example Usage
35
+ * ```ts
36
+ * import { createSign } from "@std/internal";
37
+ * import { assertEquals } from "@std/assert";
38
+ *
39
+ * assertEquals(createSign("added"), "+ ");
40
+ * assertEquals(createSign("removed"), "- ");
41
+ * assertEquals(createSign("common"), " ");
42
+ * ```
43
+ */
44
+ export declare function createSign(diffType: DiffType): string;
45
+ /** Options for {@linkcode buildMessage}. */
46
+ export interface BuildMessageOptions {
47
+ /**
48
+ * Whether to output the diff as a single string.
49
+ *
50
+ * @default {false}
51
+ */
52
+ stringDiff?: boolean;
53
+ }
54
+ /**
55
+ * Builds a message based on the provided diff result.
56
+ *
57
+ * @param diffResult The diff result array.
58
+ * @param options Optional parameters for customizing the message.
59
+ *
60
+ * @returns An array of strings representing the built message.
61
+ *
62
+ * @example Usage
63
+ * ```ts no-assert
64
+ * import { diffStr, buildMessage } from "@std/internal";
65
+ *
66
+ * const diffResult = diffStr("Hello, world!", "Hello, world");
67
+ *
68
+ * console.log(buildMessage(diffResult));
69
+ * // [
70
+ * // "",
71
+ * // "",
72
+ * // " [Diff] Actual / Expected",
73
+ * // "",
74
+ * // "",
75
+ * // "- Hello, world!",
76
+ * // "+ Hello, world",
77
+ * // "",
78
+ * // ]
79
+ * ```
80
+ */
81
+ export declare function buildMessage(diffResult: ReadonlyArray<DiffResult<string>>, options?: BuildMessageOptions): string[];
82
+ //# sourceMappingURL=build_message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/internal/1.0.5/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.createColor = createColor;
6
+ exports.createSign = createSign;
7
+ exports.buildMessage = buildMessage;
8
+ const styles_js_1 = require("./styles.js");
9
+ /**
10
+ * Colors the output of assertion diffs.
11
+ *
12
+ * @param diffType Difference type, either added or removed.
13
+ * @param background If true, colors the background instead of the text.
14
+ *
15
+ * @returns A function that colors the input string.
16
+ *
17
+ * @example Usage
18
+ * ```ts
19
+ * import { createColor } from "@std/internal";
20
+ * import { assertEquals } from "@std/assert";
21
+ * import { bold, green, red, white } from "@std/fmt/colors";
22
+ *
23
+ * assertEquals(createColor("added")("foo"), green(bold("foo")));
24
+ * assertEquals(createColor("removed")("foo"), red(bold("foo")));
25
+ * assertEquals(createColor("common")("foo"), white("foo"));
26
+ * ```
27
+ */
28
+ function createColor(diffType,
29
+ /**
30
+ * TODO(@littledivy): Remove this when we can detect true color terminals. See
31
+ * https://github.com/denoland/deno_std/issues/2575.
32
+ */
33
+ background = false) {
34
+ switch (diffType) {
35
+ case "added":
36
+ return (s) => background ? (0, styles_js_1.bgGreen)((0, styles_js_1.white)(s)) : (0, styles_js_1.green)((0, styles_js_1.bold)(s));
37
+ case "removed":
38
+ return (s) => background ? (0, styles_js_1.bgRed)((0, styles_js_1.white)(s)) : (0, styles_js_1.red)((0, styles_js_1.bold)(s));
39
+ default:
40
+ return styles_js_1.white;
41
+ }
42
+ }
43
+ /**
44
+ * Prefixes `+` or `-` in diff output.
45
+ *
46
+ * @param diffType Difference type, either added or removed
47
+ *
48
+ * @returns A string representing the sign.
49
+ *
50
+ * @example Usage
51
+ * ```ts
52
+ * import { createSign } from "@std/internal";
53
+ * import { assertEquals } from "@std/assert";
54
+ *
55
+ * assertEquals(createSign("added"), "+ ");
56
+ * assertEquals(createSign("removed"), "- ");
57
+ * assertEquals(createSign("common"), " ");
58
+ * ```
59
+ */
60
+ function createSign(diffType) {
61
+ switch (diffType) {
62
+ case "added":
63
+ return "+ ";
64
+ case "removed":
65
+ return "- ";
66
+ default:
67
+ return " ";
68
+ }
69
+ }
70
+ /**
71
+ * Builds a message based on the provided diff result.
72
+ *
73
+ * @param diffResult The diff result array.
74
+ * @param options Optional parameters for customizing the message.
75
+ *
76
+ * @returns An array of strings representing the built message.
77
+ *
78
+ * @example Usage
79
+ * ```ts no-assert
80
+ * import { diffStr, buildMessage } from "@std/internal";
81
+ *
82
+ * const diffResult = diffStr("Hello, world!", "Hello, world");
83
+ *
84
+ * console.log(buildMessage(diffResult));
85
+ * // [
86
+ * // "",
87
+ * // "",
88
+ * // " [Diff] Actual / Expected",
89
+ * // "",
90
+ * // "",
91
+ * // "- Hello, world!",
92
+ * // "+ Hello, world",
93
+ * // "",
94
+ * // ]
95
+ * ```
96
+ */
97
+ function buildMessage(diffResult, options = {}) {
98
+ const { stringDiff = false } = options;
99
+ const messages = [
100
+ "",
101
+ "",
102
+ ` ${(0, styles_js_1.gray)((0, styles_js_1.bold)("[Diff]"))} ${(0, styles_js_1.red)((0, styles_js_1.bold)("Actual"))} / ${(0, styles_js_1.green)((0, styles_js_1.bold)("Expected"))}`,
103
+ "",
104
+ "",
105
+ ];
106
+ const diffMessages = diffResult.map((result) => {
107
+ const color = createColor(result.type);
108
+ const line = result.details?.map((detail) => detail.type !== "common"
109
+ ? createColor(detail.type, true)(detail.value)
110
+ : detail.value).join("") ?? result.value;
111
+ return color(`${createSign(result.type)}${line}`);
112
+ });
113
+ messages.push(...(stringDiff ? [diffMessages.join("")] : diffMessages), "");
114
+ return messages;
115
+ }
@@ -0,0 +1,140 @@
1
+ import type { DiffResult, DiffType } from "./types.js";
2
+ /** Represents the farthest point in the diff algorithm. */
3
+ export interface FarthestPoint {
4
+ /** The y-coordinate of the point. */
5
+ y: number;
6
+ /** The id of the point. */
7
+ id: number;
8
+ }
9
+ /**
10
+ * Creates an array of common elements between two arrays.
11
+ *
12
+ * @typeParam T The type of elements in the arrays.
13
+ *
14
+ * @param A The first array.
15
+ * @param B The second array.
16
+ *
17
+ * @returns An array containing the common elements between the two arrays.
18
+ *
19
+ * @example Usage
20
+ * ```ts
21
+ * import { createCommon } from "@std/internal/diff";
22
+ * import { assertEquals } from "@std/assert";
23
+ *
24
+ * const a = [1, 2, 3];
25
+ * const b = [1, 2, 4];
26
+ *
27
+ * assertEquals(createCommon(a, b), [1, 2]);
28
+ * ```
29
+ */
30
+ export declare function createCommon<T>(A: T[], B: T[]): T[];
31
+ /**
32
+ * Asserts that the value is a {@linkcode FarthestPoint}.
33
+ * If not, an error is thrown.
34
+ *
35
+ * @param value The value to check.
36
+ *
37
+ * @returns A void value that returns once the assertion completes.
38
+ *
39
+ * @example Usage
40
+ * ```ts
41
+ * import { assertFp } from "@std/internal/diff";
42
+ * import { assertThrows } from "@std/assert";
43
+ *
44
+ * assertFp({ y: 0, id: 0 });
45
+ * assertThrows(() => assertFp({ id: 0 }));
46
+ * assertThrows(() => assertFp({ y: 0 }));
47
+ * assertThrows(() => assertFp(undefined));
48
+ * ```
49
+ */
50
+ export declare function assertFp(value: unknown): asserts value is FarthestPoint;
51
+ /**
52
+ * Creates an array of backtraced differences.
53
+ *
54
+ * @typeParam T The type of elements in the arrays.
55
+ *
56
+ * @param A The first array.
57
+ * @param B The second array.
58
+ * @param current The current {@linkcode FarthestPoint}.
59
+ * @param swapped Boolean indicating if the arrays are swapped.
60
+ * @param routes The routes array.
61
+ * @param diffTypesPtrOffset The offset of the diff types in the routes array.
62
+ *
63
+ * @returns An array of backtraced differences.
64
+ *
65
+ * @example Usage
66
+ * ```ts
67
+ * import { backTrace } from "@std/internal/diff";
68
+ * import { assertEquals } from "@std/assert";
69
+ *
70
+ * assertEquals(
71
+ * backTrace([], [], { y: 0, id: 0 }, false, new Uint32Array(0), 0),
72
+ * [],
73
+ * );
74
+ * ```
75
+ */
76
+ export declare function backTrace<T>(A: T[], B: T[], current: FarthestPoint, swapped: boolean, routes: Uint32Array, diffTypesPtrOffset: number): Array<{
77
+ type: DiffType;
78
+ value: T;
79
+ }>;
80
+ /**
81
+ * Creates a {@linkcode FarthestPoint}.
82
+ *
83
+ * @param k The current index.
84
+ * @param M The length of the first array.
85
+ * @param routes The routes array.
86
+ * @param diffTypesPtrOffset The offset of the diff types in the routes array.
87
+ * @param ptr The current pointer.
88
+ * @param slide The slide {@linkcode FarthestPoint}.
89
+ * @param down The down {@linkcode FarthestPoint}.
90
+ *
91
+ * @returns A {@linkcode FarthestPoint}.
92
+ *
93
+ * @example Usage
94
+ * ```ts
95
+ * import { createFp } from "@std/internal/diff";
96
+ * import { assertEquals } from "@std/assert";
97
+ *
98
+ * assertEquals(
99
+ * createFp(
100
+ * 0,
101
+ * 0,
102
+ * new Uint32Array(0),
103
+ * 0,
104
+ * 0,
105
+ * { y: -1, id: 0 },
106
+ * { y: 0, id: 0 },
107
+ * ),
108
+ * { y: -1, id: 1 },
109
+ * );
110
+ * ```
111
+ */
112
+ export declare function createFp(k: number, M: number, routes: Uint32Array, diffTypesPtrOffset: number, ptr: number, slide?: FarthestPoint, down?: FarthestPoint): FarthestPoint;
113
+ /**
114
+ * Renders the differences between the actual and expected values.
115
+ *
116
+ * @typeParam T The type of elements in the arrays.
117
+ *
118
+ * @param A Actual value
119
+ * @param B Expected value
120
+ *
121
+ * @returns An array of differences between the actual and expected values.
122
+ *
123
+ * @example Usage
124
+ * ```ts
125
+ * import { diff } from "@std/internal/diff";
126
+ * import { assertEquals } from "@std/assert";
127
+ *
128
+ * const a = [1, 2, 3];
129
+ * const b = [1, 2, 4];
130
+ *
131
+ * assertEquals(diff(a, b), [
132
+ * { type: "common", value: 1 },
133
+ * { type: "common", value: 2 },
134
+ * { type: "removed", value: 3 },
135
+ * { type: "added", value: 4 },
136
+ * ]);
137
+ * ```
138
+ */
139
+ export declare function diff<T>(A: T[], B: T[]): DiffResult<T>[];
140
+ //# sourceMappingURL=diff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/internal/1.0.5/diff.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD,2DAA2D;AAC3D,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAanD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,aAAa,CAWvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,CAAC,EAAE,CAAC,EAAE,EACN,CAAC,EAAE,CAAC,EAAE,EACN,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,GACzB,KAAK,CAAC;IACP,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAgCD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,aAAa,EACrB,IAAI,CAAC,EAAE,aAAa,GACnB,aAAa,CAsBf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAwEvD"}