@daiso-tech/core 0.4.0 → 0.6.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 (305) hide show
  1. package/dist/cjs/async/_module.js +1 -0
  2. package/dist/cjs/async/_module.js.map +1 -1
  3. package/dist/cjs/collection/async-iterable-collection/_shared/_module.js +1 -3
  4. package/dist/cjs/collection/async-iterable-collection/_shared/_module.js.map +1 -1
  5. package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-iterable.js +14 -23
  6. package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
  7. package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js +12 -21
  8. package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
  9. package/dist/cjs/collection/async-iterable-collection/_shared/async-collapse-iterable.js +5 -14
  10. package/dist/cjs/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
  11. package/dist/cjs/collection/async-iterable-collection/_shared/async-count-by-iterable.js +9 -18
  12. package/dist/cjs/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
  13. package/dist/cjs/collection/async-iterable-collection/_shared/async-cross-join-iterable.js +18 -27
  14. package/dist/cjs/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
  15. package/dist/cjs/collection/async-iterable-collection/_shared/async-error-handler-iterable.js +31 -0
  16. package/dist/cjs/collection/async-iterable-collection/_shared/async-error-handler-iterable.js.map +1 -0
  17. package/dist/cjs/collection/async-iterable-collection/_shared/async-filter-iterable.js +3 -12
  18. package/dist/cjs/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
  19. package/dist/cjs/collection/async-iterable-collection/_shared/async-flat-map-iterable.js +2 -11
  20. package/dist/cjs/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
  21. package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-after-iterable.js +8 -17
  22. package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
  23. package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-before-iterable.js +8 -17
  24. package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
  25. package/dist/cjs/collection/async-iterable-collection/_shared/async-map-iterable.js +2 -11
  26. package/dist/cjs/collection/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
  27. package/dist/cjs/collection/async-iterable-collection/_shared/async-merge-iterable.js +2 -11
  28. package/dist/cjs/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
  29. package/dist/cjs/collection/async-iterable-collection/_shared/async-partion-iterable.js +9 -18
  30. package/dist/cjs/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
  31. package/dist/cjs/collection/async-iterable-collection/_shared/async-repeat-iterable.js +4 -13
  32. package/dist/cjs/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
  33. package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-iterable.js +3 -12
  34. package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
  35. package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-until-iterable.js +7 -16
  36. package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
  37. package/dist/cjs/collection/async-iterable-collection/_shared/async-sliding-iterable.js +9 -18
  38. package/dist/cjs/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
  39. package/dist/cjs/collection/async-iterable-collection/_shared/async-split-iterable.js +17 -26
  40. package/dist/cjs/collection/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
  41. package/dist/cjs/collection/async-iterable-collection/_shared/async-take-iterable.js +3 -12
  42. package/dist/cjs/collection/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
  43. package/dist/cjs/collection/async-iterable-collection/_shared/async-take-until-iterable.js +4 -13
  44. package/dist/cjs/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
  45. package/dist/cjs/collection/async-iterable-collection/_shared/async-tap-iterable.js +2 -11
  46. package/dist/cjs/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
  47. package/dist/cjs/collection/async-iterable-collection/_shared/async-unique-iterable.js +6 -15
  48. package/dist/cjs/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
  49. package/dist/cjs/collection/async-iterable-collection/_shared/async-update-iterable.js +5 -14
  50. package/dist/cjs/collection/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
  51. package/dist/cjs/collection/async-iterable-collection/_shared/async-when-iterable.js +4 -13
  52. package/dist/cjs/collection/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
  53. package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js +177 -265
  54. package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js.map +1 -1
  55. package/dist/cjs/collection/iterable-collection/_shared/chunk-iterable.js +14 -23
  56. package/dist/cjs/collection/iterable-collection/_shared/chunk-iterable.js.map +1 -1
  57. package/dist/cjs/collection/iterable-collection/_shared/chunk-while-iterable.js +12 -21
  58. package/dist/cjs/collection/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
  59. package/dist/cjs/collection/iterable-collection/_shared/collapse-iterable.js +5 -14
  60. package/dist/cjs/collection/iterable-collection/_shared/collapse-iterable.js.map +1 -1
  61. package/dist/cjs/collection/iterable-collection/_shared/count-by-iterable.js +9 -18
  62. package/dist/cjs/collection/iterable-collection/_shared/count-by-iterable.js.map +1 -1
  63. package/dist/cjs/collection/iterable-collection/_shared/cross-join-iterable.js +19 -31
  64. package/dist/cjs/collection/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
  65. package/dist/cjs/collection/iterable-collection/_shared/entries-iterable.js +4 -13
  66. package/dist/cjs/collection/iterable-collection/_shared/entries-iterable.js.map +1 -1
  67. package/dist/cjs/collection/iterable-collection/_shared/filter-iterable.js +3 -12
  68. package/dist/cjs/collection/iterable-collection/_shared/filter-iterable.js.map +1 -1
  69. package/dist/cjs/collection/iterable-collection/_shared/flat-map-iterable.js +2 -11
  70. package/dist/cjs/collection/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
  71. package/dist/cjs/collection/iterable-collection/_shared/group-by-iterable.js +9 -18
  72. package/dist/cjs/collection/iterable-collection/_shared/group-by-iterable.js.map +1 -1
  73. package/dist/cjs/collection/iterable-collection/_shared/insert-after-iterable.js +6 -16
  74. package/dist/cjs/collection/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
  75. package/dist/cjs/collection/iterable-collection/_shared/insert-before-iterable.js +6 -16
  76. package/dist/cjs/collection/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
  77. package/dist/cjs/collection/iterable-collection/_shared/map-iterable.js +2 -11
  78. package/dist/cjs/collection/iterable-collection/_shared/map-iterable.js.map +1 -1
  79. package/dist/cjs/collection/iterable-collection/_shared/merge-iterable.js +2 -11
  80. package/dist/cjs/collection/iterable-collection/_shared/merge-iterable.js.map +1 -1
  81. package/dist/cjs/collection/iterable-collection/_shared/pad-end-iterable.js +11 -20
  82. package/dist/cjs/collection/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
  83. package/dist/cjs/collection/iterable-collection/_shared/pad-start-iterable.js +11 -20
  84. package/dist/cjs/collection/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
  85. package/dist/cjs/collection/iterable-collection/_shared/partion-iterable.js +9 -18
  86. package/dist/cjs/collection/iterable-collection/_shared/partion-iterable.js.map +1 -1
  87. package/dist/cjs/collection/iterable-collection/_shared/repeat-iterable.js +4 -13
  88. package/dist/cjs/collection/iterable-collection/_shared/repeat-iterable.js.map +1 -1
  89. package/dist/cjs/collection/iterable-collection/_shared/reverse-iterable.js +4 -13
  90. package/dist/cjs/collection/iterable-collection/_shared/reverse-iterable.js.map +1 -1
  91. package/dist/cjs/collection/iterable-collection/_shared/shuffle-iterable.js +9 -18
  92. package/dist/cjs/collection/iterable-collection/_shared/shuffle-iterable.js.map +1 -1
  93. package/dist/cjs/collection/iterable-collection/_shared/skip-iterable.js +3 -12
  94. package/dist/cjs/collection/iterable-collection/_shared/skip-iterable.js.map +1 -1
  95. package/dist/cjs/collection/iterable-collection/_shared/skip-until-iterable.js +6 -15
  96. package/dist/cjs/collection/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
  97. package/dist/cjs/collection/iterable-collection/_shared/slice-iterable.js +15 -24
  98. package/dist/cjs/collection/iterable-collection/_shared/slice-iterable.js.map +1 -1
  99. package/dist/cjs/collection/iterable-collection/_shared/sliding-iterable.js +9 -18
  100. package/dist/cjs/collection/iterable-collection/_shared/sliding-iterable.js.map +1 -1
  101. package/dist/cjs/collection/iterable-collection/_shared/sort-iterable.js +1 -10
  102. package/dist/cjs/collection/iterable-collection/_shared/sort-iterable.js.map +1 -1
  103. package/dist/cjs/collection/iterable-collection/_shared/split-iterable.js +17 -26
  104. package/dist/cjs/collection/iterable-collection/_shared/split-iterable.js.map +1 -1
  105. package/dist/cjs/collection/iterable-collection/_shared/take-iterable.js +3 -12
  106. package/dist/cjs/collection/iterable-collection/_shared/take-iterable.js.map +1 -1
  107. package/dist/cjs/collection/iterable-collection/_shared/take-until-iterable.js +4 -13
  108. package/dist/cjs/collection/iterable-collection/_shared/take-until-iterable.js.map +1 -1
  109. package/dist/cjs/collection/iterable-collection/_shared/tap-iterable.js +2 -11
  110. package/dist/cjs/collection/iterable-collection/_shared/tap-iterable.js.map +1 -1
  111. package/dist/cjs/collection/iterable-collection/_shared/unique-iterable.js +6 -15
  112. package/dist/cjs/collection/iterable-collection/_shared/unique-iterable.js.map +1 -1
  113. package/dist/cjs/collection/iterable-collection/_shared/update-iterable.js +5 -14
  114. package/dist/cjs/collection/iterable-collection/_shared/update-iterable.js.map +1 -1
  115. package/dist/cjs/collection/iterable-collection/_shared/when-iterable.js +4 -13
  116. package/dist/cjs/collection/iterable-collection/_shared/when-iterable.js.map +1 -1
  117. package/dist/cjs/collection/iterable-collection/_shared/zip-iterable.js +6 -15
  118. package/dist/cjs/collection/iterable-collection/_shared/zip-iterable.js.map +1 -1
  119. package/dist/cjs/collection/iterable-collection/iterable-collection.js +154 -346
  120. package/dist/cjs/collection/iterable-collection/iterable-collection.js.map +1 -1
  121. package/dist/cjs/collection/list-collection/list-collection.js +348 -931
  122. package/dist/cjs/collection/list-collection/list-collection.js.map +1 -1
  123. package/dist/cjs/storage/memory-storage-adapter/memory-storage-adapter.js +23 -0
  124. package/dist/cjs/storage/memory-storage-adapter/memory-storage-adapter.js.map +1 -1
  125. package/dist/cjs/storage/mongodb-storage-adapter/mongodb-storage-adapter.js +0 -70
  126. package/dist/cjs/storage/mongodb-storage-adapter/mongodb-storage-adapter.js.map +1 -1
  127. package/dist/cjs/storage/namespace-storage-adapter.js +11 -21
  128. package/dist/cjs/storage/namespace-storage-adapter.js.map +1 -1
  129. package/dist/cjs/storage/redis-storage-adapter/redis-storage-adapter.js +0 -20
  130. package/dist/cjs/storage/redis-storage-adapter/redis-storage-adapter.js.map +1 -1
  131. package/dist/cjs/storage/sqlite/_shared/base-sqlite-storage-adapter.js +0 -34
  132. package/dist/cjs/storage/sqlite/_shared/base-sqlite-storage-adapter.js.map +1 -1
  133. package/dist/cjs/storage/storage.js +104 -188
  134. package/dist/cjs/storage/storage.js.map +1 -1
  135. package/dist/esm/async/_module.js +1 -0
  136. package/dist/esm/async/_module.js.map +1 -1
  137. package/dist/esm/collection/async-iterable-collection/_shared/_module.js +1 -3
  138. package/dist/esm/collection/async-iterable-collection/_shared/_module.js.map +1 -1
  139. package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-iterable.js +14 -23
  140. package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
  141. package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js +12 -21
  142. package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
  143. package/dist/esm/collection/async-iterable-collection/_shared/async-collapse-iterable.js +5 -14
  144. package/dist/esm/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
  145. package/dist/esm/collection/async-iterable-collection/_shared/async-count-by-iterable.js +9 -18
  146. package/dist/esm/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
  147. package/dist/esm/collection/async-iterable-collection/_shared/async-cross-join-iterable.js +17 -26
  148. package/dist/esm/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
  149. package/dist/esm/collection/async-iterable-collection/_shared/async-error-handler-iterable.js +27 -0
  150. package/dist/esm/collection/async-iterable-collection/_shared/async-error-handler-iterable.js.map +1 -0
  151. package/dist/esm/collection/async-iterable-collection/_shared/async-filter-iterable.js +3 -12
  152. package/dist/esm/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
  153. package/dist/esm/collection/async-iterable-collection/_shared/async-flat-map-iterable.js +2 -11
  154. package/dist/esm/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
  155. package/dist/esm/collection/async-iterable-collection/_shared/async-insert-after-iterable.js +8 -17
  156. package/dist/esm/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
  157. package/dist/esm/collection/async-iterable-collection/_shared/async-insert-before-iterable.js +8 -17
  158. package/dist/esm/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
  159. package/dist/esm/collection/async-iterable-collection/_shared/async-map-iterable.js +2 -11
  160. package/dist/esm/collection/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
  161. package/dist/esm/collection/async-iterable-collection/_shared/async-merge-iterable.js +2 -11
  162. package/dist/esm/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
  163. package/dist/esm/collection/async-iterable-collection/_shared/async-partion-iterable.js +9 -18
  164. package/dist/esm/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
  165. package/dist/esm/collection/async-iterable-collection/_shared/async-repeat-iterable.js +4 -13
  166. package/dist/esm/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
  167. package/dist/esm/collection/async-iterable-collection/_shared/async-skip-iterable.js +3 -12
  168. package/dist/esm/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
  169. package/dist/esm/collection/async-iterable-collection/_shared/async-skip-until-iterable.js +7 -16
  170. package/dist/esm/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
  171. package/dist/esm/collection/async-iterable-collection/_shared/async-sliding-iterable.js +9 -18
  172. package/dist/esm/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
  173. package/dist/esm/collection/async-iterable-collection/_shared/async-split-iterable.js +17 -26
  174. package/dist/esm/collection/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
  175. package/dist/esm/collection/async-iterable-collection/_shared/async-take-iterable.js +3 -12
  176. package/dist/esm/collection/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
  177. package/dist/esm/collection/async-iterable-collection/_shared/async-take-until-iterable.js +4 -13
  178. package/dist/esm/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
  179. package/dist/esm/collection/async-iterable-collection/_shared/async-tap-iterable.js +2 -11
  180. package/dist/esm/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
  181. package/dist/esm/collection/async-iterable-collection/_shared/async-unique-iterable.js +6 -15
  182. package/dist/esm/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
  183. package/dist/esm/collection/async-iterable-collection/_shared/async-update-iterable.js +5 -14
  184. package/dist/esm/collection/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
  185. package/dist/esm/collection/async-iterable-collection/_shared/async-when-iterable.js +4 -13
  186. package/dist/esm/collection/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
  187. package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js +179 -267
  188. package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js.map +1 -1
  189. package/dist/esm/collection/iterable-collection/_shared/chunk-iterable.js +14 -23
  190. package/dist/esm/collection/iterable-collection/_shared/chunk-iterable.js.map +1 -1
  191. package/dist/esm/collection/iterable-collection/_shared/chunk-while-iterable.js +12 -21
  192. package/dist/esm/collection/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
  193. package/dist/esm/collection/iterable-collection/_shared/collapse-iterable.js +5 -14
  194. package/dist/esm/collection/iterable-collection/_shared/collapse-iterable.js.map +1 -1
  195. package/dist/esm/collection/iterable-collection/_shared/count-by-iterable.js +9 -18
  196. package/dist/esm/collection/iterable-collection/_shared/count-by-iterable.js.map +1 -1
  197. package/dist/esm/collection/iterable-collection/_shared/cross-join-iterable.js +19 -31
  198. package/dist/esm/collection/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
  199. package/dist/esm/collection/iterable-collection/_shared/entries-iterable.js +4 -13
  200. package/dist/esm/collection/iterable-collection/_shared/entries-iterable.js.map +1 -1
  201. package/dist/esm/collection/iterable-collection/_shared/filter-iterable.js +3 -12
  202. package/dist/esm/collection/iterable-collection/_shared/filter-iterable.js.map +1 -1
  203. package/dist/esm/collection/iterable-collection/_shared/flat-map-iterable.js +2 -11
  204. package/dist/esm/collection/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
  205. package/dist/esm/collection/iterable-collection/_shared/group-by-iterable.js +9 -18
  206. package/dist/esm/collection/iterable-collection/_shared/group-by-iterable.js.map +1 -1
  207. package/dist/esm/collection/iterable-collection/_shared/insert-after-iterable.js +6 -16
  208. package/dist/esm/collection/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
  209. package/dist/esm/collection/iterable-collection/_shared/insert-before-iterable.js +6 -16
  210. package/dist/esm/collection/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
  211. package/dist/esm/collection/iterable-collection/_shared/map-iterable.js +2 -11
  212. package/dist/esm/collection/iterable-collection/_shared/map-iterable.js.map +1 -1
  213. package/dist/esm/collection/iterable-collection/_shared/merge-iterable.js +2 -11
  214. package/dist/esm/collection/iterable-collection/_shared/merge-iterable.js.map +1 -1
  215. package/dist/esm/collection/iterable-collection/_shared/pad-end-iterable.js +11 -20
  216. package/dist/esm/collection/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
  217. package/dist/esm/collection/iterable-collection/_shared/pad-start-iterable.js +11 -20
  218. package/dist/esm/collection/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
  219. package/dist/esm/collection/iterable-collection/_shared/partion-iterable.js +9 -18
  220. package/dist/esm/collection/iterable-collection/_shared/partion-iterable.js.map +1 -1
  221. package/dist/esm/collection/iterable-collection/_shared/repeat-iterable.js +4 -13
  222. package/dist/esm/collection/iterable-collection/_shared/repeat-iterable.js.map +1 -1
  223. package/dist/esm/collection/iterable-collection/_shared/reverse-iterable.js +4 -13
  224. package/dist/esm/collection/iterable-collection/_shared/reverse-iterable.js.map +1 -1
  225. package/dist/esm/collection/iterable-collection/_shared/shuffle-iterable.js +9 -18
  226. package/dist/esm/collection/iterable-collection/_shared/shuffle-iterable.js.map +1 -1
  227. package/dist/esm/collection/iterable-collection/_shared/skip-iterable.js +3 -12
  228. package/dist/esm/collection/iterable-collection/_shared/skip-iterable.js.map +1 -1
  229. package/dist/esm/collection/iterable-collection/_shared/skip-until-iterable.js +6 -15
  230. package/dist/esm/collection/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
  231. package/dist/esm/collection/iterable-collection/_shared/slice-iterable.js +15 -24
  232. package/dist/esm/collection/iterable-collection/_shared/slice-iterable.js.map +1 -1
  233. package/dist/esm/collection/iterable-collection/_shared/sliding-iterable.js +9 -18
  234. package/dist/esm/collection/iterable-collection/_shared/sliding-iterable.js.map +1 -1
  235. package/dist/esm/collection/iterable-collection/_shared/sort-iterable.js +1 -10
  236. package/dist/esm/collection/iterable-collection/_shared/sort-iterable.js.map +1 -1
  237. package/dist/esm/collection/iterable-collection/_shared/split-iterable.js +17 -26
  238. package/dist/esm/collection/iterable-collection/_shared/split-iterable.js.map +1 -1
  239. package/dist/esm/collection/iterable-collection/_shared/take-iterable.js +3 -12
  240. package/dist/esm/collection/iterable-collection/_shared/take-iterable.js.map +1 -1
  241. package/dist/esm/collection/iterable-collection/_shared/take-until-iterable.js +4 -13
  242. package/dist/esm/collection/iterable-collection/_shared/take-until-iterable.js.map +1 -1
  243. package/dist/esm/collection/iterable-collection/_shared/tap-iterable.js +2 -11
  244. package/dist/esm/collection/iterable-collection/_shared/tap-iterable.js.map +1 -1
  245. package/dist/esm/collection/iterable-collection/_shared/unique-iterable.js +6 -15
  246. package/dist/esm/collection/iterable-collection/_shared/unique-iterable.js.map +1 -1
  247. package/dist/esm/collection/iterable-collection/_shared/update-iterable.js +5 -14
  248. package/dist/esm/collection/iterable-collection/_shared/update-iterable.js.map +1 -1
  249. package/dist/esm/collection/iterable-collection/_shared/when-iterable.js +4 -13
  250. package/dist/esm/collection/iterable-collection/_shared/when-iterable.js.map +1 -1
  251. package/dist/esm/collection/iterable-collection/_shared/zip-iterable.js +6 -15
  252. package/dist/esm/collection/iterable-collection/_shared/zip-iterable.js.map +1 -1
  253. package/dist/esm/collection/iterable-collection/iterable-collection.js +155 -347
  254. package/dist/esm/collection/iterable-collection/iterable-collection.js.map +1 -1
  255. package/dist/esm/collection/list-collection/list-collection.js +349 -932
  256. package/dist/esm/collection/list-collection/list-collection.js.map +1 -1
  257. package/dist/esm/storage/memory-storage-adapter/memory-storage-adapter.js +23 -0
  258. package/dist/esm/storage/memory-storage-adapter/memory-storage-adapter.js.map +1 -1
  259. package/dist/esm/storage/mongodb-storage-adapter/mongodb-storage-adapter.js +0 -70
  260. package/dist/esm/storage/mongodb-storage-adapter/mongodb-storage-adapter.js.map +1 -1
  261. package/dist/esm/storage/namespace-storage-adapter.js +11 -21
  262. package/dist/esm/storage/namespace-storage-adapter.js.map +1 -1
  263. package/dist/esm/storage/redis-storage-adapter/redis-storage-adapter.js +0 -20
  264. package/dist/esm/storage/redis-storage-adapter/redis-storage-adapter.js.map +1 -1
  265. package/dist/esm/storage/sqlite/_shared/base-sqlite-storage-adapter.js +0 -34
  266. package/dist/esm/storage/sqlite/_shared/base-sqlite-storage-adapter.js.map +1 -1
  267. package/dist/esm/storage/storage.js +105 -189
  268. package/dist/esm/storage/storage.js.map +1 -1
  269. package/dist/types/_shared/types.d.ts +2 -6
  270. package/dist/types/async/_module.d.ts +1 -0
  271. package/dist/types/collection/async-iterable-collection/_shared/_module.d.ts +1 -3
  272. package/dist/types/collection/async-iterable-collection/_shared/async-error-handler-iterable.d.ts +6 -0
  273. package/dist/types/collection/async-iterable-collection/_shared/async-when-iterable.d.ts +1 -1
  274. package/dist/types/collection/async-iterable-collection/async-iterable-collection.d.ts +39 -37
  275. package/dist/types/contracts/collection/_shared.d.ts +7 -7
  276. package/dist/types/contracts/collection/async-collection.contract.d.ts +51 -39
  277. package/dist/types/contracts/storage/storage-adapter.contract.d.ts +7 -26
  278. package/dist/types/contracts/storage/storage.contract.d.ts +22 -22
  279. package/dist/types/storage/memory-storage-adapter/memory-storage-adapter.d.ts +2 -0
  280. package/dist/types/storage/mongodb-storage-adapter/mongodb-storage-adapter.d.ts +0 -3
  281. package/dist/types/storage/namespace-storage-adapter.d.ts +2 -7
  282. package/dist/types/storage/redis-storage-adapter/redis-storage-adapter.d.ts +0 -3
  283. package/dist/types/storage/sqlite/_shared/base-sqlite-storage-adapter.d.ts +0 -3
  284. package/dist/types/storage/storage.d.ts +24 -23
  285. package/package.json +1 -1
  286. package/dist/cjs/collection/async-iterable-collection/_shared/async-abort-iterable.js +0 -25
  287. package/dist/cjs/collection/async-iterable-collection/_shared/async-abort-iterable.js.map +0 -1
  288. package/dist/cjs/collection/async-iterable-collection/_shared/async-delay-iterable.js +0 -25
  289. package/dist/cjs/collection/async-iterable-collection/_shared/async-delay-iterable.js.map +0 -1
  290. package/dist/cjs/collection/async-iterable-collection/_shared/async-timeout-iterable.js +0 -21
  291. package/dist/cjs/collection/async-iterable-collection/_shared/async-timeout-iterable.js.map +0 -1
  292. package/dist/cjs/storage/usable-storage-adapter.js +0 -102
  293. package/dist/cjs/storage/usable-storage-adapter.js.map +0 -1
  294. package/dist/esm/collection/async-iterable-collection/_shared/async-abort-iterable.js +0 -21
  295. package/dist/esm/collection/async-iterable-collection/_shared/async-abort-iterable.js.map +0 -1
  296. package/dist/esm/collection/async-iterable-collection/_shared/async-delay-iterable.js +0 -21
  297. package/dist/esm/collection/async-iterable-collection/_shared/async-delay-iterable.js.map +0 -1
  298. package/dist/esm/collection/async-iterable-collection/_shared/async-timeout-iterable.js +0 -17
  299. package/dist/esm/collection/async-iterable-collection/_shared/async-timeout-iterable.js.map +0 -1
  300. package/dist/esm/storage/usable-storage-adapter.js +0 -98
  301. package/dist/esm/storage/usable-storage-adapter.js.map +0 -1
  302. package/dist/types/collection/async-iterable-collection/_shared/async-abort-iterable.d.ts +0 -10
  303. package/dist/types/collection/async-iterable-collection/_shared/async-delay-iterable.d.ts +0 -10
  304. package/dist/types/collection/async-iterable-collection/_shared/async-timeout-iterable.d.ts +0 -10
  305. package/dist/types/storage/usable-storage-adapter.d.ts +0 -22
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SortIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class SortIterable {
6
5
  iterable;
7
6
  comparator;
@@ -10,15 +9,7 @@ class SortIterable {
10
9
  this.comparator = comparator;
11
10
  }
12
11
  *[Symbol.iterator]() {
13
- try {
14
- yield* [...this.iterable].sort(this.comparator);
15
- }
16
- catch (error) {
17
- if (error instanceof _module_1.CollectionError) {
18
- throw error;
19
- }
20
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
21
- }
12
+ yield* [...this.iterable].sort(this.comparator);
22
13
  }
23
14
  }
24
15
  exports.SortIterable = SortIterable;
@@ -1 +1 @@
1
- {"version":3,"file":"sort-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/sort-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAIwC;AAKxC,MAAa,YAAY;IAET;IACA;IAFZ,YACY,QAA0B,EAC1B,UAA+B;QAD/B,aAAQ,GAAR,QAAQ,CAAkB;QAC1B,eAAU,GAAV,UAAU,CAAqB;IACxC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACpD,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AAnBD,oCAmBC"}
1
+ {"version":3,"file":"sort-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/sort-iterable.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;IAET;IACA;IAFZ,YACY,QAA0B,EAC1B,UAA+B;QAD/B,aAAQ,GAAR,QAAQ,CAAkB;QAC1B,eAAU,GAAV,UAAU,CAAqB;IACxC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;CACJ;AATD,oCASC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SplitIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class SplitIterable {
6
5
  collection;
7
6
  chunkAmount;
@@ -12,34 +11,26 @@ class SplitIterable {
12
11
  this.makeCollection = makeCollection;
13
12
  }
14
13
  *[Symbol.iterator]() {
15
- try {
16
- const size = this.collection.size(), minChunkSize = Math.floor(size / this.chunkAmount), restSize = size % this.chunkAmount, chunkSizes = Array.from({
17
- length: this.chunkAmount,
18
- }).fill(minChunkSize);
19
- for (let i = 1; i <= restSize; i++) {
20
- const chunkIndex = (i - 1) % this.chunkAmount;
21
- if (chunkSizes[chunkIndex]) {
22
- chunkSizes[chunkIndex] = chunkSizes[chunkIndex] + 1;
23
- }
24
- }
25
- const iterator = this.collection.toIterator();
26
- const array = [];
27
- for (const chunkSize of chunkSizes) {
28
- for (let i = 0; i < chunkSize; i++) {
29
- const item = iterator.next();
30
- if (item.value !== undefined) {
31
- array.push(item.value);
32
- }
33
- }
34
- yield this.makeCollection(array);
35
- array.length = 0;
14
+ const size = this.collection.size(), minChunkSize = Math.floor(size / this.chunkAmount), restSize = size % this.chunkAmount, chunkSizes = Array.from({
15
+ length: this.chunkAmount,
16
+ }).fill(minChunkSize);
17
+ for (let i = 1; i <= restSize; i++) {
18
+ const chunkIndex = (i - 1) % this.chunkAmount;
19
+ if (chunkSizes[chunkIndex]) {
20
+ chunkSizes[chunkIndex] = chunkSizes[chunkIndex] + 1;
36
21
  }
37
22
  }
38
- catch (error) {
39
- if (error instanceof _module_1.CollectionError) {
40
- throw error;
23
+ const iterator = this.collection.toIterator();
24
+ const array = [];
25
+ for (const chunkSize of chunkSizes) {
26
+ for (let i = 0; i < chunkSize; i++) {
27
+ const item = iterator.next();
28
+ if (item.value !== undefined) {
29
+ array.push(item.value);
30
+ }
41
31
  }
42
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
32
+ yield this.makeCollection(array);
33
+ array.length = 0;
43
34
  }
44
35
  }
45
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"split-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/split-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAIwC;AAKxC,MAAa,aAAa;IAEV;IACA;IAEA;IAJZ,YACY,UAA+B,EAC/B,WAAmB,EAEnB,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAQ;QAEnB,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,EAC/B,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,EAClD,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC,WAAW,EAClC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAS;gBAC5B,MAAM,EAAE,IAAI,CAAC,WAAW;aAC3B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAE1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;gBACjC,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;gBAC9C,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;oBACzB,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;gBACxD,CAAC;YACL,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;YAC9C,MAAM,KAAK,GAAa,EAAE,CAAC;YAC3B,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;gBACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;oBACjC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;oBAC7B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;wBAC3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC3B,CAAC;gBACL,CAAC;gBACD,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;gBACjC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;YACrB,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AAhDD,sCAgDC"}
1
+ {"version":3,"file":"split-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/split-iterable.ts"],"names":[],"mappings":";;;AAKA,MAAa,aAAa;IAEV;IACA;IAEA;IAJZ,YACY,UAA+B,EAC/B,WAAmB,EAEnB,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAQ;QAEnB,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,EAC/B,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,EAClD,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC,WAAW,EAClC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAS;YAC5B,MAAM,EAAE,IAAI,CAAC,WAAW;SAC3B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;YACjC,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;YAC9C,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;gBACzB,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACxD,CAAC;QACL,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;gBACjC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAC7B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;oBAC3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC3B,CAAC;YACL,CAAC;YACD,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YACjC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACrB,CAAC;IACL,CAAC;CACJ;AAtCD,sCAsCC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TakeIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class TakeIterable {
6
5
  collection;
7
6
  limit;
@@ -10,18 +9,10 @@ class TakeIterable {
10
9
  this.limit = limit;
11
10
  }
12
11
  *[Symbol.iterator]() {
13
- try {
14
- if (this.limit < 0) {
15
- this.limit = this.collection.size() + this.limit;
16
- }
17
- yield* this.collection.takeWhile((_item, index) => index < this.limit);
18
- }
19
- catch (error) {
20
- if (error instanceof _module_1.CollectionError) {
21
- throw error;
22
- }
23
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
12
+ if (this.limit < 0) {
13
+ this.limit = this.collection.size() + this.limit;
24
14
  }
15
+ yield* this.collection.takeWhile((_item, index) => index < this.limit);
25
16
  }
26
17
  }
27
18
  exports.TakeIterable = TakeIterable;
@@ -1 +1 @@
1
- {"version":3,"file":"take-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/take-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAIwC;AAKxC,MAAa,YAAY;IAET;IACA;IAFZ,YACY,UAA+B,EAC/B,KAAa;QADb,eAAU,GAAV,UAAU,CAAqB;QAC/B,UAAK,GAAL,KAAK,CAAQ;IACtB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;gBACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACrD,CAAC;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAC5B,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CACvC,CAAC;QACN,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AAxBD,oCAwBC"}
1
+ {"version":3,"file":"take-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/take-iterable.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;IAET;IACA;IAFZ,YACY,UAA+B,EAC/B,KAAa;QADb,eAAU,GAAV,UAAU,CAAqB;QAC/B,UAAK,GAAL,KAAK,CAAQ;IACtB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;YACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACrD,CAAC;QACD,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3E,CAAC;CACJ;AAZD,oCAYC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TakeUntilIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class TakeUntilIterable {
6
5
  collection;
7
6
  predicateFn;
@@ -10,19 +9,11 @@ class TakeUntilIterable {
10
9
  this.predicateFn = predicateFn;
11
10
  }
12
11
  *[Symbol.iterator]() {
13
- try {
14
- for (const [index, item] of this.collection.entries()) {
15
- if (this.predicateFn(item, index, this.collection)) {
16
- break;
17
- }
18
- yield item;
12
+ for (const [index, item] of this.collection.entries()) {
13
+ if (this.predicateFn(item, index, this.collection)) {
14
+ break;
19
15
  }
20
- }
21
- catch (error) {
22
- if (error instanceof _module_1.CollectionError) {
23
- throw error;
24
- }
25
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
16
+ yield item;
26
17
  }
27
18
  }
28
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"take-until-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/take-until-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAKwC;AAKxC,MAAa,iBAAiB;IAEd;IACA;IAFZ,YACY,UAA+B,EAC/B,WAAmD;QADnD,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAwC;IAC5D,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;gBACpD,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBACjD,MAAM;gBACV,CAAC;gBACD,MAAM,IAAI,CAAC;YACf,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AAxBD,8CAwBC"}
1
+ {"version":3,"file":"take-until-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/take-until-iterable.ts"],"names":[],"mappings":";;;AAQA,MAAa,iBAAiB;IAEd;IACA;IAFZ,YACY,UAA+B,EAC/B,WAAmD;QADnD,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAwC;IAC5D,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;YACpD,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;gBACjD,MAAM;YACV,CAAC;YACD,MAAM,IAAI,CAAC;QACf,CAAC;IACL,CAAC;CACJ;AAdD,8CAcC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TapIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class TapIterable {
6
5
  collection;
7
6
  callback;
@@ -10,16 +9,8 @@ class TapIterable {
10
9
  this.callback = callback;
11
10
  }
12
11
  *[Symbol.iterator]() {
13
- try {
14
- this.callback(this.collection);
15
- yield* this.collection;
16
- }
17
- catch (error) {
18
- if (error instanceof _module_1.CollectionError) {
19
- throw error;
20
- }
21
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
22
- }
12
+ this.callback(this.collection);
13
+ yield* this.collection;
23
14
  }
24
15
  }
25
16
  exports.TapIterable = TapIterable;
@@ -1 +1 @@
1
- {"version":3,"file":"tap-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/tap-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAKwC;AAKxC,MAAa,WAAW;IAER;IACA;IAFZ,YACY,UAA+B,EAC/B,QAAkC;QADlC,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAA0B;IAC3C,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC/B,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AApBD,kCAoBC"}
1
+ {"version":3,"file":"tap-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/tap-iterable.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;IAER;IACA;IAFZ,YACY,UAA+B,EAC/B,QAAkC;QADlC,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAA0B;IAC3C,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC/B,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AAVD,kCAUC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UniqueIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class UniqueIterable {
6
5
  collection;
7
6
  callback;
@@ -10,21 +9,13 @@ class UniqueIterable {
10
9
  this.callback = callback;
11
10
  }
12
11
  *[Symbol.iterator]() {
13
- try {
14
- const set = new Set([]);
15
- for (const [index, item] of this.collection.entries()) {
16
- const item_ = this.callback(item, index, this.collection);
17
- if (!set.has(item_)) {
18
- yield item;
19
- }
20
- set.add(item_);
12
+ const set = new Set([]);
13
+ for (const [index, item] of this.collection.entries()) {
14
+ const item_ = this.callback(item, index, this.collection);
15
+ if (!set.has(item_)) {
16
+ yield item;
21
17
  }
22
- }
23
- catch (error) {
24
- if (error instanceof _module_1.CollectionError) {
25
- throw error;
26
- }
27
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
18
+ set.add(item_);
28
19
  }
29
20
  }
30
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"unique-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/unique-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAKwC;AAKxC,MAAa,cAAc;IAEX;IACA;IAFZ,YACY,UAA+B,EAC/B,WAAsD,CAAC,IAAI,EAAE,EAAE,CAEnE,IAAW;QAHP,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAED;IAChB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAU,EAAE,CAAC,CAAC;YAEjC,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;gBACpD,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC1D,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;oBAClB,MAAM,IAAI,CAAC;gBACf,CAAC;gBACD,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AA7BD,wCA6BC"}
1
+ {"version":3,"file":"unique-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/unique-iterable.ts"],"names":[],"mappings":";;;AAKA,MAAa,cAAc;IAEX;IACA;IAFZ,YACY,UAA+B,EAC/B,WAAsD,CAAC,IAAI,EAAE,EAAE,CAEnE,IAAW;QAHP,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAED;IAChB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,MAAM,GAAG,GAAG,IAAI,GAAG,CAAU,EAAE,CAAC,CAAC;QAEjC,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;YACpD,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1D,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBAClB,MAAM,IAAI,CAAC;YACf,CAAC;YACD,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC;IACL,CAAC;CACJ;AAnBD,wCAmBC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class UpdateIterable {
6
5
  collection;
7
6
  predicateFn;
@@ -12,21 +11,13 @@ class UpdateIterable {
12
11
  this.mapFn = mapFn;
13
12
  }
14
13
  *[Symbol.iterator]() {
15
- try {
16
- for (const [index, item] of this.collection.entries()) {
17
- if (this.predicateFn(item, index, this.collection)) {
18
- yield this.mapFn(item, index, this.collection);
19
- }
20
- else {
21
- yield item;
22
- }
14
+ for (const [index, item] of this.collection.entries()) {
15
+ if (this.predicateFn(item, index, this.collection)) {
16
+ yield this.mapFn(item, index, this.collection);
23
17
  }
24
- }
25
- catch (error) {
26
- if (error instanceof _module_1.CollectionError) {
27
- throw error;
18
+ else {
19
+ yield item;
28
20
  }
29
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
30
21
  }
31
22
  }
32
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"update-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/update-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAOwC;AAKxC,MAAa,cAAc;IAIX;IACA;IAKA;IAPZ,YACY,UAA+B,EAC/B,WAIP,EACO,KAA0D;QAN1D,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAIlB;QACO,UAAK,GAAL,KAAK,CAAqD;IACnE,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAGd,IAAI,CAAC;YACD,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;gBACpD,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBACjD,MAAM,IAAI,CAAC,KAAK,CACZ,IAAqB,EACrB,KAAK,EACL,IAAI,CAAC,UAAU,CAClB,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,MAAM,IAAI,CAAC;gBACf,CAAC;YACL,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AAtCD,wCAsCC"}
1
+ {"version":3,"file":"update-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/update-iterable.ts"],"names":[],"mappings":";;;AAUA,MAAa,cAAc;IAIX;IACA;IAKA;IAPZ,YACY,UAA+B,EAC/B,WAIP,EACO,KAA0D;QAN1D,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAIlB;QACO,UAAK,GAAL,KAAK,CAAqD;IACnE,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAGd,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;YACpD,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;gBACjD,MAAM,IAAI,CAAC,KAAK,CAAC,IAAqB,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;YACpE,CAAC;iBAAM,CAAC;gBACJ,MAAM,IAAI,CAAC;YACf,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAxBD,wCAwBC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WhenIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class WhenIterable {
6
5
  collection;
7
6
  condition;
@@ -12,19 +11,11 @@ class WhenIterable {
12
11
  this.callback = callback;
13
12
  }
14
13
  *[Symbol.iterator]() {
15
- try {
16
- if (this.condition()) {
17
- yield* this.callback(this.collection);
18
- return;
19
- }
20
- yield* this.collection;
21
- }
22
- catch (error) {
23
- if (error instanceof _module_1.CollectionError) {
24
- throw error;
25
- }
26
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
14
+ if (this.condition()) {
15
+ yield* this.callback(this.collection);
16
+ return;
27
17
  }
18
+ yield* this.collection;
28
19
  }
29
20
  }
30
21
  exports.WhenIterable = WhenIterable;
@@ -1 +1 @@
1
- {"version":3,"file":"when-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/when-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAKwC;AAKxC,MAAa,YAAY;IAIT;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,SAAwB,EACxB,QAA+D;QAF/D,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAe;QACxB,aAAQ,GAAR,QAAQ,CAAuD;IACxE,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;gBACnB,KAAK,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBACtC,OAAO;YACX,CAAC;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,UAA6C,CAAC;QAC9D,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AA1BD,oCA0BC"}
1
+ {"version":3,"file":"when-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/when-iterable.ts"],"names":[],"mappings":";;;AAQA,MAAa,YAAY;IAIT;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,SAAwB,EACxB,QAA+D;QAF/D,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAe;QACxB,aAAQ,GAAR,QAAQ,CAAuD;IACxE,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;YACnB,KAAK,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACtC,OAAO;QACX,CAAC;QACD,KAAK,CAAC,CAAC,IAAI,CAAC,UAA6C,CAAC;IAC9D,CAAC;CACJ;AAhBD,oCAgBC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ZipIterable = void 0;
4
- const _module_1 = require("../../../contracts/collection/_module");
5
4
  class ZipIterable {
6
5
  iterableA;
7
6
  iterableB;
@@ -10,21 +9,13 @@ class ZipIterable {
10
9
  this.iterableB = iterableB;
11
10
  }
12
11
  *[Symbol.iterator]() {
13
- try {
14
- const iteratorA = this.iterableA[Symbol.iterator](), iteratorB = this.iterableB[Symbol.iterator]();
15
- while (true) {
16
- const itemA = iteratorA.next(), itemB = iteratorB.next();
17
- if (itemA.done || itemB.done) {
18
- break;
19
- }
20
- yield [itemA.value, itemB.value];
12
+ const iteratorA = this.iterableA[Symbol.iterator](), iteratorB = this.iterableB[Symbol.iterator]();
13
+ while (true) {
14
+ const itemA = iteratorA.next(), itemB = iteratorB.next();
15
+ if (itemA.done || itemB.done) {
16
+ break;
21
17
  }
22
- }
23
- catch (error) {
24
- if (error instanceof _module_1.CollectionError) {
25
- throw error;
26
- }
27
- throw new _module_1.UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
18
+ yield [itemA.value, itemB.value];
28
19
  }
29
20
  }
30
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"zip-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/zip-iterable.ts"],"names":[],"mappings":";;;AAAA,4DAGwC;AAMxC,MAAa,WAAW;IAIR;IACA;IAFZ,YACY,SAA2B,EAC3B,SAA8B;QAD9B,cAAS,GAAT,SAAS,CAAkB;QAC3B,cAAS,GAAT,SAAS,CAAqB;IACvC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAC/C,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YAElD,OAAO,IAAI,EAAE,CAAC;gBACV,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,EAC1B,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;gBAC7B,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;oBAC3B,MAAM;gBACV,CAAC;gBACD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YACrC,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,yBAAe,EAAE,CAAC;gBACnC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,mCAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AA/BD,kCA+BC"}
1
+ {"version":3,"file":"zip-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/zip-iterable.ts"],"names":[],"mappings":";;;AAMA,MAAa,WAAW;IAIR;IACA;IAFZ,YACY,SAA2B,EAC3B,SAA8B;QAD9B,cAAS,GAAT,SAAS,CAAkB;QAC3B,cAAS,GAAT,SAAS,CAAqB;IACvC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAC/C,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QAElD,OAAO,IAAI,EAAE,CAAC;YACV,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,EAC1B,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;YAC7B,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;gBAC3B,MAAM;YACV,CAAC;YACD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;IACL,CAAC;CACJ;AArBD,kCAqBC"}