@effectionx/worker 0.2.0 → 0.3.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 (245) hide show
  1. package/{script/deps/jsr.io/@std/assert/1.0.14 → esm/deps/jsr.io/@std/assert/1.0.16}/almost_equals.d.ts.map +1 -1
  2. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts.map +1 -1
  3. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.js +1 -1
  4. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts.map +1 -1
  5. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
  6. package/esm/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
  7. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
  8. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
  9. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +6 -5
  10. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts.map +1 -1
  11. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts.map +1 -1
  12. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts.map +1 -1
  14. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.js +1 -1
  15. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts.map +1 -1
  16. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.js +1 -1
  17. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
  18. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts.map +1 -1
  19. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.js +1 -1
  20. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts.map +1 -1
  21. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.js +1 -1
  22. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts.map +1 -1
  23. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.js +1 -1
  24. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts.map +1 -1
  25. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.js +1 -1
  28. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts.map +1 -1
  29. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts.map +1 -1
  30. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.js +1 -1
  32. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts.map +1 -1
  33. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts.map +1 -1
  34. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts.map +1 -1
  35. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.js +7 -6
  36. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts.map +1 -1
  37. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts.map +1 -1
  38. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts.map +1 -1
  39. package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
  40. package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.d.ts +3 -5
  41. package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.js +13 -7
  43. package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts.map +1 -1
  44. package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
  45. package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts.map +1 -1
  46. package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts.map +1 -1
  47. package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
  48. package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
  49. package/esm/message-channel.d.ts +3 -0
  50. package/esm/message-channel.d.ts.map +1 -0
  51. package/esm/message-channel.js +13 -0
  52. package/esm/mod.d.ts +1 -0
  53. package/esm/mod.d.ts.map +1 -1
  54. package/esm/mod.js +1 -0
  55. package/esm/types.d.ts +33 -0
  56. package/esm/types.d.ts.map +1 -0
  57. package/esm/types.js +1 -0
  58. package/esm/worker-main.d.ts +84 -0
  59. package/esm/worker-main.d.ts.map +1 -0
  60. package/esm/worker-main.js +186 -0
  61. package/esm/worker.d.ts +2 -74
  62. package/esm/worker.d.ts.map +1 -1
  63. package/esm/worker.js +4 -120
  64. package/package.json +3 -2
  65. package/{esm/deps/jsr.io/@std/assert/1.0.14 → script/deps/jsr.io/@std/assert/1.0.16}/almost_equals.d.ts.map +1 -1
  66. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts.map +1 -1
  67. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.js +1 -1
  68. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts.map +1 -1
  69. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
  70. package/script/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
  71. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
  72. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
  73. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +6 -5
  74. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts.map +1 -1
  75. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts.map +1 -1
  76. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
  77. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts.map +1 -1
  78. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.js +1 -1
  79. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts.map +1 -1
  80. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.js +1 -1
  81. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
  82. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts.map +1 -1
  83. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.js +1 -1
  84. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts.map +1 -1
  85. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.js +1 -1
  86. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts.map +1 -1
  87. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.js +1 -1
  88. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts.map +1 -1
  89. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts.map +1 -1
  90. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts.map +1 -1
  91. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.js +1 -1
  92. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts.map +1 -1
  93. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts.map +1 -1
  94. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts.map +1 -1
  95. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.js +1 -1
  96. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts.map +1 -1
  97. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts.map +1 -1
  98. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts.map +1 -1
  99. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.js +7 -6
  100. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts.map +1 -1
  101. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts.map +1 -1
  102. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts.map +1 -1
  103. package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
  104. package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.d.ts +3 -5
  105. package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
  106. package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.js +13 -7
  107. package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts.map +1 -1
  108. package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
  109. package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts.map +1 -1
  110. package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts.map +1 -1
  111. package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
  112. package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
  113. package/script/message-channel.d.ts +3 -0
  114. package/script/message-channel.d.ts.map +1 -0
  115. package/script/message-channel.js +16 -0
  116. package/script/mod.d.ts +1 -0
  117. package/script/mod.d.ts.map +1 -1
  118. package/script/mod.js +1 -0
  119. package/script/types.d.ts +33 -0
  120. package/script/types.d.ts.map +1 -0
  121. package/script/types.js +2 -0
  122. package/script/worker-main.d.ts +84 -0
  123. package/script/worker-main.d.ts.map +1 -0
  124. package/script/worker-main.js +190 -0
  125. package/script/worker.d.ts +2 -74
  126. package/script/worker.d.ts.map +1 -1
  127. package/script/worker.js +4 -121
  128. package/esm/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
  129. package/esm/deps/jsr.io/@std/internal/1.0.10/build_message.d.ts.map +0 -1
  130. package/esm/deps/jsr.io/@std/internal/1.0.10/diff_str.d.ts.map +0 -1
  131. package/esm/deps/jsr.io/@std/internal/1.0.10/types.d.ts +0 -16
  132. package/esm/deps/jsr.io/@std/internal/1.0.10/types.d.ts.map +0 -1
  133. package/script/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
  134. package/script/deps/jsr.io/@std/internal/1.0.10/build_message.d.ts.map +0 -1
  135. package/script/deps/jsr.io/@std/internal/1.0.10/diff_str.d.ts.map +0 -1
  136. package/script/deps/jsr.io/@std/internal/1.0.10/types.d.ts +0 -16
  137. package/script/deps/jsr.io/@std/internal/1.0.10/types.d.ts.map +0 -1
  138. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.d.ts +0 -0
  139. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.js +0 -0
  140. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts +0 -0
  141. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
  142. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
  143. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
  144. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
  145. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
  146. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
  147. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts +0 -0
  148. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.js +0 -0
  149. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts +0 -0
  150. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.js +0 -0
  151. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
  152. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
  153. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts +0 -0
  154. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts +0 -0
  155. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
  156. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
  157. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts +0 -0
  158. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts +0 -0
  159. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts +0 -0
  160. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts +0 -0
  161. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.js +0 -0
  162. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts +0 -0
  163. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.js +0 -0
  164. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts +0 -0
  165. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts +0 -0
  166. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.js +0 -0
  167. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts +0 -0
  168. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.js +0 -0
  169. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts +0 -0
  170. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts +0 -0
  171. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.js +0 -0
  172. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts +0 -0
  173. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.js +0 -0
  174. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts +0 -0
  175. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts +0 -0
  176. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.js +0 -0
  177. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts +0 -0
  178. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.js +0 -0
  179. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts +0 -0
  180. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.js +0 -0
  181. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
  182. /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
  183. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts +0 -0
  184. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.js +0 -0
  185. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.d.ts +0 -0
  186. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.js +0 -0
  187. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts +0 -0
  188. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.js +0 -0
  189. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts +0 -0
  190. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.js +0 -0
  191. /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/types.js +0 -0
  192. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.d.ts +0 -0
  193. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.js +0 -0
  194. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts +0 -0
  195. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
  196. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
  197. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
  198. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
  199. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
  200. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
  201. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts +0 -0
  202. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.js +0 -0
  203. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts +0 -0
  204. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.js +0 -0
  205. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
  206. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
  207. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts +0 -0
  208. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts +0 -0
  209. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
  210. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
  211. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts +0 -0
  212. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts +0 -0
  213. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts +0 -0
  214. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts +0 -0
  215. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.js +0 -0
  216. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts +0 -0
  217. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.js +0 -0
  218. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts +0 -0
  219. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts +0 -0
  220. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.js +0 -0
  221. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts +0 -0
  222. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.js +0 -0
  223. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts +0 -0
  224. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts +0 -0
  225. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.js +0 -0
  226. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts +0 -0
  227. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.js +0 -0
  228. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts +0 -0
  229. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts +0 -0
  230. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.js +0 -0
  231. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts +0 -0
  232. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.js +0 -0
  233. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts +0 -0
  234. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.js +0 -0
  235. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
  236. /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
  237. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts +0 -0
  238. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.js +0 -0
  239. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.d.ts +0 -0
  240. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.js +0 -0
  241. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts +0 -0
  242. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.js +0 -0
  243. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts +0 -0
  244. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.js +0 -0
  245. /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/types.js +0 -0
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workerMain = workerMain;
4
+ exports.createWorkerStatesSignal = createWorkerStatesSignal;
5
+ const effection_1 = require("effection");
6
+ /**
7
+ * Entrypoint used in the worker that estaliblishes communication
8
+ * with the main thread. It can be used to return a value,
9
+ * respond to messages or both.
10
+ *
11
+ * @example Returning a value
12
+ * ```ts
13
+ * import { workerMain } from "../worker.ts";
14
+ *
15
+ * await workerMain(function* ({ data }) {
16
+ * return data;
17
+ * });
18
+ * ```
19
+ *
20
+ * @example Responding to messages
21
+ * ```ts
22
+ * import { workerMain } from "../worker.ts";
23
+ *
24
+ * await workerMain(function* ({ messages }) {
25
+ * yield* messages.forEach(function* (message) {
26
+ * return message;
27
+ * });
28
+ * });
29
+ * ```
30
+ *
31
+ * @example Responding to messages and return a value
32
+ * ```ts
33
+ * import { workerMain } from "../worker.ts";
34
+ *
35
+ * await workerMain<number, number, number, number>(
36
+ * function* ({ messages, data: initial }) {
37
+ * let counter = initial;
38
+ *
39
+ * yield* messages.forEach(function* (message) {
40
+ * counter += message;
41
+ * return counter; // returns a value after each message
42
+ * });
43
+ *
44
+ * return counter; // returns the final value
45
+ * },
46
+ * );
47
+ * ```
48
+ *
49
+ * @template TSend - value main thread will send to the worker
50
+ * @template TRecv - value main thread will receive from the worker
51
+ * @template TReturn - worker operation return value
52
+ * @template TData - data passed from the main thread to the worker during initialization
53
+ * @param {(options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>} body
54
+ * @returns {Promise<void>}
55
+ */
56
+ async function workerMain(body) {
57
+ await (0, effection_1.main)(function* () {
58
+ let sent = (0, effection_1.createSignal)();
59
+ let worker = yield* createWorkerStatesSignal();
60
+ yield* (0, effection_1.spawn)(function* () {
61
+ for (const message of yield* (0, effection_1.each)((0, effection_1.on)(self, "message"))) {
62
+ const control = message.data;
63
+ switch (control.type) {
64
+ case "init": {
65
+ worker.start(yield* (0, effection_1.spawn)(function* () {
66
+ try {
67
+ let value = yield* body({
68
+ data: control.data,
69
+ messages: {
70
+ *forEach(fn) {
71
+ for (let { value, response } of yield* (0, effection_1.each)(sent)) {
72
+ yield* (0, effection_1.spawn)(function* () {
73
+ try {
74
+ let result = yield* fn(value);
75
+ response.postMessage((0, effection_1.Ok)(result));
76
+ }
77
+ catch (error) {
78
+ response.postMessage((0, effection_1.Err)(error));
79
+ }
80
+ });
81
+ yield* effection_1.each.next();
82
+ }
83
+ },
84
+ },
85
+ });
86
+ worker.complete(value);
87
+ }
88
+ catch (error) {
89
+ worker.crash(error);
90
+ }
91
+ }));
92
+ break;
93
+ }
94
+ case "send": {
95
+ let { value, response } = control;
96
+ sent.send({ value, response });
97
+ break;
98
+ }
99
+ case "close": {
100
+ const current = worker.valueOf();
101
+ if (current.type === "running") {
102
+ yield* current.task.halt();
103
+ worker.interrupt();
104
+ }
105
+ }
106
+ }
107
+ yield* effection_1.each.next();
108
+ }
109
+ });
110
+ for (const state of yield* (0, effection_1.each)(worker)) {
111
+ if (state.type === "new") {
112
+ postMessage({ type: "open" });
113
+ }
114
+ else if (state.type === "interrupted" || state.type === "error") {
115
+ postMessage({ type: "close", result: (0, effection_1.Err)(state.error) });
116
+ }
117
+ else if (state.type === "complete") {
118
+ postMessage({ type: "close", result: (0, effection_1.Ok)(state.value) });
119
+ }
120
+ yield* effection_1.each.next();
121
+ }
122
+ });
123
+ }
124
+ function createWorkerStatesSignal() {
125
+ return (0, effection_1.resource)(function* (provide) {
126
+ let ref = {
127
+ current: { type: "new" },
128
+ };
129
+ const signal = (0, effection_1.createSignal)();
130
+ const set = (value) => {
131
+ signal.send(ref.current = value);
132
+ return value;
133
+ };
134
+ const update = (updater) => set(updater(ref.current));
135
+ const interrupt = () => {
136
+ let next = {
137
+ type: "interrupted",
138
+ error: new Error(`worker terminated`),
139
+ };
140
+ set(next);
141
+ return next;
142
+ };
143
+ try {
144
+ yield* provide({
145
+ *[Symbol.iterator]() {
146
+ let subscription = yield* signal;
147
+ signal.send(ref.current);
148
+ return subscription;
149
+ },
150
+ get state() {
151
+ return ref.current.type;
152
+ },
153
+ set,
154
+ update,
155
+ valueOf() {
156
+ return ref.current;
157
+ },
158
+ start(task) {
159
+ if (ref.current.type === "complete") {
160
+ return ref.current;
161
+ }
162
+ else {
163
+ const next = { type: "running", task };
164
+ set(next);
165
+ return next;
166
+ }
167
+ },
168
+ complete(value) {
169
+ let next = { type: "complete", value };
170
+ set(next);
171
+ return next;
172
+ },
173
+ crash(error) {
174
+ let next = { type: "error", error };
175
+ set(next);
176
+ return next;
177
+ },
178
+ interrupt: interrupt,
179
+ });
180
+ }
181
+ finally {
182
+ if (ref.current.type === "running") {
183
+ interrupt();
184
+ }
185
+ }
186
+ });
187
+ }
188
+ function postMessage(message) {
189
+ self.postMessage(message);
190
+ }
@@ -1,18 +1,4 @@
1
1
  import { type Operation } from "effection";
2
- export interface WorkerResource<TSend, TRecv, TReturn> extends Operation<TReturn> {
3
- send(data: TSend): Operation<TRecv>;
4
- }
5
- /**
6
- * Object that represents messages the main thread
7
- * sends to the worker. It provides function for
8
- * handling messages.
9
- *
10
- * @template TSend - value main thread will send to the worker
11
- * @template TRecv - value main thread will receive from the worker
12
- */
13
- export interface WorkerMessages<TSend, TRecv> {
14
- forEach(fn: (message: TSend) => Operation<TRecv>): Operation<void>;
15
- }
16
2
  /**
17
3
  * Argument received by workerMain function
18
4
  *
@@ -20,67 +6,9 @@ export interface WorkerMessages<TSend, TRecv> {
20
6
  * @template TRecv - value main thread will receive from the worker
21
7
  * @template TData - data passed from the main thread to the worker during initialization
22
8
  */
23
- export interface WorkerMainOptions<TSend, TRecv, TData> {
24
- /**
25
- * Namespace that provides APIs for working with incoming messages
26
- */
27
- messages: WorkerMessages<TSend, TRecv>;
28
- /**
29
- * Initial data received by the worker from the main thread used for initialization.
30
- */
31
- data: TData;
9
+ export interface WorkerResource<TSend, TRecv, TReturn> extends Operation<TReturn> {
10
+ send(data: TSend): Operation<TRecv>;
32
11
  }
33
- /**
34
- * Entrypoint used in the worker that estaliblishes communication
35
- * with the main thread. It can be used to return a value,
36
- * respond to messages or both.
37
- *
38
- * @example Returning a value
39
- * ```ts
40
- * import { workerMain } from "../worker.ts";
41
- *
42
- * await workerMain(function* ({ data }) {
43
- * return data;
44
- * });
45
- * ```
46
- *
47
- * @example Responding to messages
48
- * ```ts
49
- * import { workerMain } from "../worker.ts";
50
- *
51
- * await workerMain(function* ({ messages }) {
52
- * yield* messages.forEach(function* (message) {
53
- * return message;
54
- * });
55
- * });
56
- * ```
57
- *
58
- * @example Responding to messages and return a value
59
- * ```ts
60
- * import { workerMain } from "../worker.ts";
61
- *
62
- * await workerMain<number, number, number, number>(
63
- * function* ({ messages, data: initial }) {
64
- * let counter = initial;
65
- *
66
- * yield* messages.forEach(function* (message) {
67
- * counter += message;
68
- * return counter; // returns a value after each message
69
- * });
70
- *
71
- * return counter; // returns the final value
72
- * },
73
- * );
74
- * ```
75
- *
76
- * @template TSend - value main thread will send to the worker
77
- * @template TRecv - value main thread will receive from the worker
78
- * @template TReturn - worker operation return value
79
- * @template TData - data passed from the main thread to the worker during initialization
80
- * @param {(options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>} body
81
- * @returns {Promise<void>}
82
- */
83
- export declare function workerMain<TSend, TRecv, TReturn, TData>(body: (options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>): Promise<void>;
84
12
  /**
85
13
  * Use on the main thread to create and exeecute a well behaved web worker.
86
14
  *
@@ -1 +1 @@
1
- {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,SAAS,EAMf,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CACnD,SAAQ,SAAS,CAAC,OAAO,CAAC;IAC1B,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc,CAAC,KAAK,EAAE,KAAK;IAC1C,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;CACpE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK;IACpD;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACvC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAC3D,IAAI,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,SAAS,CAAC,OAAO,CAAC,GAC5E,OAAO,CAAC,IAAI,CAAC,CAsDf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EACpD,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,OAAO,CAAC,EAAE,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,GACzC,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAgElD"}
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,SAAS,EAKf,MAAM,WAAW,CAAC;AAInB;;;;;;GAMG;AACH,MAAM,WAAW,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CACnD,SAAQ,SAAS,CAAC,OAAO,CAAC;IAC1B,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EACpD,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,OAAO,CAAC,EAAE,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,GACzC,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAgElD"}
package/script/worker.js CHANGED
@@ -1,114 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.workerMain = workerMain;
4
3
  exports.useWorker = useWorker;
5
- const mod_js_1 = require("./deps/jsr.io/@std/assert/1.0.14/mod.js");
4
+ const mod_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/mod.js");
6
5
  const effection_1 = require("effection");
7
- /**
8
- * Entrypoint used in the worker that estaliblishes communication
9
- * with the main thread. It can be used to return a value,
10
- * respond to messages or both.
11
- *
12
- * @example Returning a value
13
- * ```ts
14
- * import { workerMain } from "../worker.ts";
15
- *
16
- * await workerMain(function* ({ data }) {
17
- * return data;
18
- * });
19
- * ```
20
- *
21
- * @example Responding to messages
22
- * ```ts
23
- * import { workerMain } from "../worker.ts";
24
- *
25
- * await workerMain(function* ({ messages }) {
26
- * yield* messages.forEach(function* (message) {
27
- * return message;
28
- * });
29
- * });
30
- * ```
31
- *
32
- * @example Responding to messages and return a value
33
- * ```ts
34
- * import { workerMain } from "../worker.ts";
35
- *
36
- * await workerMain<number, number, number, number>(
37
- * function* ({ messages, data: initial }) {
38
- * let counter = initial;
39
- *
40
- * yield* messages.forEach(function* (message) {
41
- * counter += message;
42
- * return counter; // returns a value after each message
43
- * });
44
- *
45
- * return counter; // returns the final value
46
- * },
47
- * );
48
- * ```
49
- *
50
- * @template TSend - value main thread will send to the worker
51
- * @template TRecv - value main thread will receive from the worker
52
- * @template TReturn - worker operation return value
53
- * @template TData - data passed from the main thread to the worker during initialization
54
- * @param {(options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>} body
55
- * @returns {Promise<void>}
56
- */
57
- async function workerMain(body) {
58
- await (0, effection_1.main)(function* () {
59
- let sent = (0, effection_1.createSignal)();
60
- let controls = yield* (0, effection_1.on)(self, "message");
61
- let outcome = (0, effection_1.withResolvers)();
62
- self.postMessage({ type: "open" });
63
- let result = yield* (0, effection_1.scoped)(function* () {
64
- yield* (0, effection_1.spawn)(function* () {
65
- let next = yield* controls.next();
66
- while (true) {
67
- let control = next.value.data;
68
- if (control.type === "init") {
69
- yield* (0, effection_1.spawn)(function* () {
70
- try {
71
- let value = yield* body({
72
- data: control.data,
73
- messages: {
74
- *forEach(fn) {
75
- for (let { value, response } of yield* (0, effection_1.each)(sent)) {
76
- yield* (0, effection_1.spawn)(function* () {
77
- try {
78
- let result = yield* fn(value);
79
- response.postMessage((0, effection_1.Ok)(result));
80
- }
81
- catch (error) {
82
- response.postMessage((0, effection_1.Err)(error));
83
- }
84
- });
85
- yield* effection_1.each.next();
86
- }
87
- },
88
- },
89
- });
90
- outcome.resolve((0, effection_1.Ok)(value));
91
- }
92
- catch (error) {
93
- outcome.resolve((0, effection_1.Err)(error));
94
- }
95
- });
96
- }
97
- else if (control.type === "send") {
98
- let { value, response } = control;
99
- sent.send({ value, response });
100
- }
101
- else if (control.type === "close") {
102
- outcome.resolve((0, effection_1.Err)(new Error(`worker terminated`)));
103
- }
104
- next = yield* controls.next();
105
- }
106
- });
107
- return yield* outcome.operation;
108
- });
109
- self.postMessage({ type: "close", result });
110
- });
111
- }
6
+ const message_channel_js_1 = require("./message-channel.js");
112
7
  /**
113
8
  * Use on the main thread to create and exeecute a well behaved web worker.
114
9
  *
@@ -188,7 +83,7 @@ function useWorker(url, options) {
188
83
  });
189
84
  yield* provide({
190
85
  *send(value) {
191
- let channel = yield* useMessageChannel();
86
+ let channel = yield* (0, message_channel_js_1.useMessageChannel)();
192
87
  worker.postMessage({
193
88
  type: "send",
194
89
  value,
@@ -214,24 +109,12 @@ function useWorker(url, options) {
214
109
  }
215
110
  });
216
111
  }
217
- function useMessageChannel() {
218
- return (0, effection_1.resource)(function* (provide) {
219
- let channel = new MessageChannel();
220
- try {
221
- yield* provide(channel);
222
- }
223
- finally {
224
- channel.port1.close();
225
- channel.port2.close();
226
- }
227
- });
228
- }
229
112
  function settled(operation) {
230
113
  return {
231
114
  *[Symbol.iterator]() {
232
115
  try {
233
116
  yield* operation;
234
- return (0, effection_1.Ok)();
117
+ return (0, effection_1.Ok)(void 0);
235
118
  }
236
119
  catch (error) {
237
120
  return (0, effection_1.Err)(error);
@@ -1 +0,0 @@
1
- {"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.14/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/diff_str.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/C;AAKD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
@@ -1,16 +0,0 @@
1
- /** Ways that lines in a diff can be different. */
2
- export type DiffType = "removed" | "common" | "added";
3
- /**
4
- * Represents the result of a diff operation.
5
- *
6
- * @typeParam T The type of the value in the diff result.
7
- */
8
- export interface DiffResult<T> {
9
- /** The type of the diff. */
10
- type: DiffType;
11
- /** The value of the diff. */
12
- value: T;
13
- /** The details of the diff. */
14
- details?: DiffResult<T>[];
15
- }
16
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/types.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.14/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/diff_str.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/C;AAKD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
@@ -1,16 +0,0 @@
1
- /** Ways that lines in a diff can be different. */
2
- export type DiffType = "removed" | "common" | "added";
3
- /**
4
- * Represents the result of a diff operation.
5
- *
6
- * @typeParam T The type of the value in the diff result.
7
- */
8
- export interface DiffResult<T> {
9
- /** The type of the diff. */
10
- type: DiffType;
11
- /** The value of the diff. */
12
- value: T;
13
- /** The details of the diff. */
14
- details?: DiffResult<T>[];
15
- }
16
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/types.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}