@quantiya/codevibe-claude-plugin 2.0.25 → 2.0.27

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 (316) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/node_modules/@iarna/toml/CHANGELOG.md +278 -0
  3. package/node_modules/@quantiya/codevibe-core/dist/__tests__/terminal-menu.test.d.ts +1 -0
  4. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +4 -1
  5. package/node_modules/@quantiya/codevibe-core/dist/index.js +625 -430
  6. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/audit-browser.d.ts +42 -2
  7. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/audit-runner.d.ts +13 -1
  8. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +8 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +649 -87
  10. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/flag-command.d.ts +4 -1
  11. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +16 -2
  12. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/types.d.ts +2 -0
  13. package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.d.ts +3 -1
  14. package/node_modules/@quantiya/codevibe-core/dist/terminal-menu.d.ts +22 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/types.d.ts +32 -32
  16. package/node_modules/@quantiya/codevibe-core/package.json +1 -1
  17. package/node_modules/color-convert/CHANGELOG.md +54 -0
  18. package/node_modules/cross-spawn/node_modules/which/CHANGELOG.md +166 -0
  19. package/node_modules/deep-extend/CHANGELOG.md +46 -0
  20. package/node_modules/es-toolkit/CHANGELOG.md +1053 -0
  21. package/node_modules/es-toolkit/dist/browser.global.js +4 -4
  22. package/node_modules/es-toolkit/dist/compat/array/differenceWith.js +2 -1
  23. package/node_modules/es-toolkit/dist/compat/array/differenceWith.mjs +2 -1
  24. package/node_modules/es-toolkit/dist/compat/array/findLastIndex.js +5 -3
  25. package/node_modules/es-toolkit/dist/compat/array/findLastIndex.mjs +5 -3
  26. package/node_modules/es-toolkit/dist/compat/array/sortedIndexBy.js +1 -1
  27. package/node_modules/es-toolkit/dist/compat/array/sortedIndexBy.mjs +1 -1
  28. package/node_modules/es-toolkit/dist/compat/array/without.js +8 -2
  29. package/node_modules/es-toolkit/dist/compat/array/without.mjs +8 -2
  30. package/node_modules/es-toolkit/dist/compat/array/xorWith.js +4 -6
  31. package/node_modules/es-toolkit/dist/compat/array/xorWith.mjs +4 -6
  32. package/node_modules/es-toolkit/dist/compat/compat.js +1 -1
  33. package/node_modules/es-toolkit/dist/compat/compat.mjs +1 -1
  34. package/node_modules/es-toolkit/dist/compat/function/debounce.js +1 -1
  35. package/node_modules/es-toolkit/dist/compat/function/debounce.mjs +1 -1
  36. package/node_modules/es-toolkit/dist/compat/index.js +1 -1
  37. package/node_modules/es-toolkit/dist/compat/index.mjs +1 -1
  38. package/node_modules/es-toolkit/dist/compat/object/has.js +3 -2
  39. package/node_modules/es-toolkit/dist/compat/object/has.mjs +3 -2
  40. package/node_modules/es-toolkit/dist/compat/object/hasIn.js +3 -2
  41. package/node_modules/es-toolkit/dist/compat/object/hasIn.mjs +3 -2
  42. package/node_modules/es-toolkit/dist/compat/object/mergeWith.js +1 -1
  43. package/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs +1 -1
  44. package/node_modules/es-toolkit/dist/compat/object/omitBy.js +1 -1
  45. package/node_modules/es-toolkit/dist/compat/object/omitBy.mjs +1 -1
  46. package/node_modules/es-toolkit/dist/compat/object/pickBy.js +1 -1
  47. package/node_modules/es-toolkit/dist/compat/object/pickBy.mjs +1 -1
  48. package/node_modules/es-toolkit/dist/compat/util/toString.js +3 -1
  49. package/node_modules/es-toolkit/dist/compat/util/toString.mjs +3 -1
  50. package/node_modules/es-toolkit/dist/fp/flowAsync.d.mts +213 -0
  51. package/node_modules/es-toolkit/dist/fp/flowAsync.d.ts +213 -0
  52. package/node_modules/es-toolkit/dist/fp/flowAsync.js +37 -0
  53. package/node_modules/es-toolkit/dist/fp/flowAsync.mjs +37 -0
  54. package/node_modules/es-toolkit/dist/fp/index.d.mts +2 -1
  55. package/node_modules/es-toolkit/dist/fp/index.d.ts +2 -1
  56. package/node_modules/es-toolkit/dist/fp/index.js +2 -0
  57. package/node_modules/es-toolkit/dist/fp/index.mjs +2 -1
  58. package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.d.mts +23 -0
  59. package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.d.ts +23 -0
  60. package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.js +28 -0
  61. package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.mjs +28 -0
  62. package/node_modules/es-toolkit/dist/fp/iterator/chunk.d.mts +19 -0
  63. package/node_modules/es-toolkit/dist/fp/iterator/chunk.d.ts +19 -0
  64. package/node_modules/es-toolkit/dist/fp/iterator/chunk.js +24 -0
  65. package/node_modules/es-toolkit/dist/fp/iterator/chunk.mjs +24 -0
  66. package/node_modules/es-toolkit/dist/fp/iterator/count.d.mts +20 -0
  67. package/node_modules/es-toolkit/dist/fp/iterator/count.d.ts +20 -0
  68. package/node_modules/es-toolkit/dist/fp/iterator/count.js +25 -0
  69. package/node_modules/es-toolkit/dist/fp/iterator/count.mjs +25 -0
  70. package/node_modules/es-toolkit/dist/fp/iterator/drop.d.mts +20 -0
  71. package/node_modules/es-toolkit/dist/fp/iterator/drop.d.ts +20 -0
  72. package/node_modules/es-toolkit/dist/fp/iterator/drop.js +24 -0
  73. package/node_modules/es-toolkit/dist/fp/iterator/drop.mjs +24 -0
  74. package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.d.mts +18 -0
  75. package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.d.ts +18 -0
  76. package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.js +23 -0
  77. package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.mjs +23 -0
  78. package/node_modules/es-toolkit/dist/fp/iterator/every.d.mts +20 -0
  79. package/node_modules/es-toolkit/dist/fp/iterator/every.d.ts +20 -0
  80. package/node_modules/es-toolkit/dist/fp/iterator/every.js +24 -0
  81. package/node_modules/es-toolkit/dist/fp/iterator/every.mjs +24 -0
  82. package/node_modules/es-toolkit/dist/fp/iterator/filter.d.mts +37 -0
  83. package/node_modules/es-toolkit/dist/fp/iterator/filter.d.ts +37 -0
  84. package/node_modules/es-toolkit/dist/fp/iterator/filter.js +8 -0
  85. package/node_modules/es-toolkit/dist/fp/iterator/filter.mjs +8 -0
  86. package/node_modules/es-toolkit/dist/fp/iterator/find.d.mts +20 -0
  87. package/node_modules/es-toolkit/dist/fp/iterator/find.d.ts +20 -0
  88. package/node_modules/es-toolkit/dist/fp/iterator/find.js +24 -0
  89. package/node_modules/es-toolkit/dist/fp/iterator/find.mjs +24 -0
  90. package/node_modules/es-toolkit/dist/fp/iterator/flatMap.d.mts +20 -0
  91. package/node_modules/es-toolkit/dist/fp/iterator/flatMap.d.ts +20 -0
  92. package/node_modules/es-toolkit/dist/fp/iterator/flatMap.js +24 -0
  93. package/node_modules/es-toolkit/dist/fp/iterator/flatMap.mjs +24 -0
  94. package/node_modules/es-toolkit/dist/fp/iterator/forEach.d.mts +22 -0
  95. package/node_modules/es-toolkit/dist/fp/iterator/forEach.d.ts +22 -0
  96. package/node_modules/es-toolkit/dist/fp/iterator/forEach.js +26 -0
  97. package/node_modules/es-toolkit/dist/fp/iterator/forEach.mjs +26 -0
  98. package/node_modules/es-toolkit/dist/fp/iterator/head.d.mts +19 -0
  99. package/node_modules/es-toolkit/dist/fp/iterator/head.d.ts +19 -0
  100. package/node_modules/es-toolkit/dist/fp/iterator/head.js +24 -0
  101. package/node_modules/es-toolkit/dist/fp/iterator/head.mjs +24 -0
  102. package/node_modules/es-toolkit/dist/fp/iterator/index.d.mts +22 -0
  103. package/node_modules/es-toolkit/dist/fp/iterator/index.d.ts +22 -0
  104. package/node_modules/es-toolkit/dist/fp/iterator/index.js +43 -0
  105. package/node_modules/es-toolkit/dist/fp/iterator/index.mjs +22 -0
  106. package/node_modules/es-toolkit/dist/fp/iterator/map.d.mts +20 -0
  107. package/node_modules/es-toolkit/dist/fp/iterator/map.d.ts +20 -0
  108. package/node_modules/es-toolkit/dist/fp/iterator/map.js +24 -0
  109. package/node_modules/es-toolkit/dist/fp/iterator/map.mjs +24 -0
  110. package/node_modules/es-toolkit/dist/fp/iterator/partition.d.mts +22 -0
  111. package/node_modules/es-toolkit/dist/fp/iterator/partition.d.ts +22 -0
  112. package/node_modules/es-toolkit/dist/fp/iterator/partition.js +27 -0
  113. package/node_modules/es-toolkit/dist/fp/iterator/partition.mjs +27 -0
  114. package/node_modules/es-toolkit/dist/fp/iterator/reduce.d.mts +24 -0
  115. package/node_modules/es-toolkit/dist/fp/iterator/reduce.d.ts +24 -0
  116. package/node_modules/es-toolkit/dist/fp/iterator/reduce.js +28 -0
  117. package/node_modules/es-toolkit/dist/fp/iterator/reduce.mjs +28 -0
  118. package/node_modules/es-toolkit/dist/fp/iterator/scan.d.mts +21 -0
  119. package/node_modules/es-toolkit/dist/fp/iterator/scan.d.ts +21 -0
  120. package/node_modules/es-toolkit/dist/fp/iterator/scan.js +26 -0
  121. package/node_modules/es-toolkit/dist/fp/iterator/scan.mjs +26 -0
  122. package/node_modules/es-toolkit/dist/fp/iterator/some.d.mts +20 -0
  123. package/node_modules/es-toolkit/dist/fp/iterator/some.d.ts +20 -0
  124. package/node_modules/es-toolkit/dist/fp/iterator/some.js +24 -0
  125. package/node_modules/es-toolkit/dist/fp/iterator/some.mjs +24 -0
  126. package/node_modules/es-toolkit/dist/fp/iterator/take.d.mts +21 -0
  127. package/node_modules/es-toolkit/dist/fp/iterator/take.d.ts +21 -0
  128. package/node_modules/es-toolkit/dist/fp/iterator/take.js +25 -0
  129. package/node_modules/es-toolkit/dist/fp/iterator/take.mjs +25 -0
  130. package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.d.mts +19 -0
  131. package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.d.ts +19 -0
  132. package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.js +24 -0
  133. package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.mjs +24 -0
  134. package/node_modules/es-toolkit/dist/fp/iterator/toArray.d.mts +21 -0
  135. package/node_modules/es-toolkit/dist/fp/iterator/toArray.d.ts +21 -0
  136. package/node_modules/es-toolkit/dist/fp/iterator/toArray.js +25 -0
  137. package/node_modules/es-toolkit/dist/fp/iterator/toArray.mjs +25 -0
  138. package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.d.mts +20 -0
  139. package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.d.ts +20 -0
  140. package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.js +25 -0
  141. package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.mjs +25 -0
  142. package/node_modules/es-toolkit/dist/fp/iterator/zip.d.mts +20 -0
  143. package/node_modules/es-toolkit/dist/fp/iterator/zip.d.ts +20 -0
  144. package/node_modules/es-toolkit/dist/fp/iterator/zip.js +25 -0
  145. package/node_modules/es-toolkit/dist/fp/iterator/zip.mjs +25 -0
  146. package/node_modules/es-toolkit/dist/index.d.mts +3 -1
  147. package/node_modules/es-toolkit/dist/index.d.ts +3 -1
  148. package/node_modules/es-toolkit/dist/index.js +4 -0
  149. package/node_modules/es-toolkit/dist/index.mjs +3 -1
  150. package/node_modules/es-toolkit/dist/iterator/_internal/iterator.js +74 -0
  151. package/node_modules/es-toolkit/dist/iterator/_internal/iterator.mjs +74 -0
  152. package/node_modules/es-toolkit/dist/iterator/cartesianProduct.d.mts +33 -0
  153. package/node_modules/es-toolkit/dist/iterator/cartesianProduct.d.ts +33 -0
  154. package/node_modules/es-toolkit/dist/iterator/cartesianProduct.js +95 -0
  155. package/node_modules/es-toolkit/dist/iterator/cartesianProduct.mjs +95 -0
  156. package/node_modules/es-toolkit/dist/iterator/chunk.d.mts +21 -0
  157. package/node_modules/es-toolkit/dist/iterator/chunk.d.ts +21 -0
  158. package/node_modules/es-toolkit/dist/iterator/chunk.js +40 -0
  159. package/node_modules/es-toolkit/dist/iterator/chunk.mjs +40 -0
  160. package/node_modules/es-toolkit/dist/iterator/count.d.mts +18 -0
  161. package/node_modules/es-toolkit/dist/iterator/count.d.ts +18 -0
  162. package/node_modules/es-toolkit/dist/iterator/count.js +26 -0
  163. package/node_modules/es-toolkit/dist/iterator/count.mjs +26 -0
  164. package/node_modules/es-toolkit/dist/iterator/dropWhile.d.mts +20 -0
  165. package/node_modules/es-toolkit/dist/iterator/dropWhile.d.ts +20 -0
  166. package/node_modules/es-toolkit/dist/iterator/dropWhile.js +52 -0
  167. package/node_modules/es-toolkit/dist/iterator/dropWhile.mjs +52 -0
  168. package/node_modules/es-toolkit/dist/iterator/head.d.mts +21 -0
  169. package/node_modules/es-toolkit/dist/iterator/head.d.ts +21 -0
  170. package/node_modules/es-toolkit/dist/iterator/head.js +26 -0
  171. package/node_modules/es-toolkit/dist/iterator/head.mjs +26 -0
  172. package/node_modules/es-toolkit/dist/iterator/index.d.mts +13 -0
  173. package/node_modules/es-toolkit/dist/iterator/index.d.ts +13 -0
  174. package/node_modules/es-toolkit/dist/iterator/index.js +25 -0
  175. package/node_modules/es-toolkit/dist/iterator/index.mjs +13 -0
  176. package/node_modules/es-toolkit/dist/iterator/iterate.d.mts +20 -0
  177. package/node_modules/es-toolkit/dist/iterator/iterate.d.ts +20 -0
  178. package/node_modules/es-toolkit/dist/iterator/iterate.js +32 -0
  179. package/node_modules/es-toolkit/dist/iterator/iterate.mjs +32 -0
  180. package/node_modules/es-toolkit/dist/iterator/partition.d.mts +18 -0
  181. package/node_modules/es-toolkit/dist/iterator/partition.d.ts +18 -0
  182. package/node_modules/es-toolkit/dist/iterator/partition.js +36 -0
  183. package/node_modules/es-toolkit/dist/iterator/partition.mjs +36 -0
  184. package/node_modules/es-toolkit/dist/iterator/range.d.mts +42 -0
  185. package/node_modules/es-toolkit/dist/iterator/range.d.ts +42 -0
  186. package/node_modules/es-toolkit/dist/iterator/range.js +25 -0
  187. package/node_modules/es-toolkit/dist/iterator/range.mjs +25 -0
  188. package/node_modules/es-toolkit/dist/iterator/scan.d.mts +23 -0
  189. package/node_modules/es-toolkit/dist/iterator/scan.d.ts +23 -0
  190. package/node_modules/es-toolkit/dist/iterator/scan.js +47 -0
  191. package/node_modules/es-toolkit/dist/iterator/scan.mjs +47 -0
  192. package/node_modules/es-toolkit/dist/iterator/takeWhile.d.mts +20 -0
  193. package/node_modules/es-toolkit/dist/iterator/takeWhile.d.ts +20 -0
  194. package/node_modules/es-toolkit/dist/iterator/takeWhile.js +34 -0
  195. package/node_modules/es-toolkit/dist/iterator/takeWhile.mjs +34 -0
  196. package/node_modules/es-toolkit/dist/iterator/uniqBy.d.mts +22 -0
  197. package/node_modules/es-toolkit/dist/iterator/uniqBy.d.ts +22 -0
  198. package/node_modules/es-toolkit/dist/iterator/uniqBy.js +43 -0
  199. package/node_modules/es-toolkit/dist/iterator/uniqBy.mjs +43 -0
  200. package/node_modules/es-toolkit/dist/iterator/zip.d.mts +23 -0
  201. package/node_modules/es-toolkit/dist/iterator/zip.d.ts +23 -0
  202. package/node_modules/es-toolkit/dist/iterator/zip.js +45 -0
  203. package/node_modules/es-toolkit/dist/iterator/zip.mjs +45 -0
  204. package/node_modules/es-toolkit/dist/object/merge.d.mts +3 -1
  205. package/node_modules/es-toolkit/dist/object/merge.d.ts +3 -1
  206. package/node_modules/es-toolkit/dist/object/merge.js +0 -40
  207. package/node_modules/es-toolkit/dist/object/merge.mjs +0 -40
  208. package/node_modules/es-toolkit/dist/object/omitBy.d.mts +4 -2
  209. package/node_modules/es-toolkit/dist/object/omitBy.d.ts +4 -2
  210. package/node_modules/es-toolkit/dist/object/omitBy.js +4 -3
  211. package/node_modules/es-toolkit/dist/object/omitBy.mjs +4 -3
  212. package/node_modules/es-toolkit/dist/object/pickBy.d.mts +4 -2
  213. package/node_modules/es-toolkit/dist/object/pickBy.d.ts +4 -2
  214. package/node_modules/es-toolkit/dist/object/pickBy.js +4 -3
  215. package/node_modules/es-toolkit/dist/object/pickBy.mjs +4 -3
  216. package/node_modules/es-toolkit/dist/types/EmptyObject.d.mts +21 -0
  217. package/node_modules/es-toolkit/dist/types/EmptyObject.d.ts +21 -0
  218. package/node_modules/es-toolkit/dist/types/IsEqual.d.mts +18 -0
  219. package/node_modules/es-toolkit/dist/types/IsEqual.d.ts +18 -0
  220. package/node_modules/es-toolkit/dist/types/JSONValue.d.mts +24 -0
  221. package/node_modules/es-toolkit/dist/types/JSONValue.d.ts +24 -0
  222. package/node_modules/es-toolkit/dist/types/Merge.d.mts +37 -0
  223. package/node_modules/es-toolkit/dist/types/Merge.d.ts +37 -0
  224. package/node_modules/es-toolkit/dist/types/ObjectKeys.d.mts +19 -0
  225. package/node_modules/es-toolkit/dist/types/ObjectKeys.d.ts +19 -0
  226. package/node_modules/es-toolkit/dist/types/Primitive.d.mts +14 -0
  227. package/node_modules/es-toolkit/dist/types/Primitive.d.ts +14 -0
  228. package/node_modules/es-toolkit/dist/types/SetOptional.d.mts +20 -0
  229. package/node_modules/es-toolkit/dist/types/SetOptional.d.ts +20 -0
  230. package/node_modules/es-toolkit/dist/types/SetRequired.d.mts +20 -0
  231. package/node_modules/es-toolkit/dist/types/SetRequired.d.ts +20 -0
  232. package/node_modules/es-toolkit/dist/types/UnknownRecord.d.mts +24 -0
  233. package/node_modules/es-toolkit/dist/types/UnknownRecord.d.ts +24 -0
  234. package/node_modules/es-toolkit/dist/types/index.d.mts +11 -2
  235. package/node_modules/es-toolkit/dist/types/index.d.ts +11 -2
  236. package/node_modules/es-toolkit/dist/util/attempt.d.mts +1 -1
  237. package/node_modules/es-toolkit/dist/util/attempt.d.ts +1 -1
  238. package/node_modules/es-toolkit/dist/util/attemptAsync.d.mts +1 -1
  239. package/node_modules/es-toolkit/dist/util/attemptAsync.d.ts +1 -1
  240. package/node_modules/es-toolkit/dist/util/defer.d.mts +27 -0
  241. package/node_modules/es-toolkit/dist/util/defer.d.ts +27 -0
  242. package/node_modules/es-toolkit/dist/util/defer.js +31 -0
  243. package/node_modules/es-toolkit/dist/util/defer.mjs +31 -0
  244. package/node_modules/es-toolkit/dist/util/deferAsync.d.mts +30 -0
  245. package/node_modules/es-toolkit/dist/util/deferAsync.d.ts +30 -0
  246. package/node_modules/es-toolkit/dist/util/deferAsync.js +34 -0
  247. package/node_modules/es-toolkit/dist/util/deferAsync.mjs +34 -0
  248. package/node_modules/es-toolkit/dist/util/index.d.mts +3 -1
  249. package/node_modules/es-toolkit/dist/util/index.d.ts +3 -1
  250. package/node_modules/es-toolkit/dist/util/index.js +4 -0
  251. package/node_modules/es-toolkit/dist/util/index.mjs +3 -1
  252. package/node_modules/es-toolkit/fp/iterator.d.ts +1 -0
  253. package/node_modules/es-toolkit/fp/iterator.js +1 -0
  254. package/node_modules/es-toolkit/iterator.d.ts +1 -0
  255. package/node_modules/es-toolkit/iterator.js +1 -0
  256. package/node_modules/es-toolkit/package.json +44 -1
  257. package/node_modules/es-toolkit/src/compat/_internal/Equals.d.ts +1 -0
  258. package/node_modules/es-toolkit/src/compat/_internal/IsWritable.d.ts +3 -0
  259. package/node_modules/es-toolkit/src/compat/_internal/MutableList.d.ts +4 -0
  260. package/node_modules/es-toolkit/src/compat/_internal/RejectReadonly.d.ts +4 -0
  261. package/node_modules/keytar/build/Release/keytar.node +0 -0
  262. package/node_modules/node-abi/abi_registry.json +7 -0
  263. package/node_modules/node-abi/package.json +1 -1
  264. package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
  265. package/node_modules/qs/CHANGELOG.md +15 -0
  266. package/node_modules/qs/README.md +19 -1
  267. package/node_modules/qs/dist/qs.js +21 -21
  268. package/node_modules/qs/eslint.config.mjs +1 -1
  269. package/node_modules/qs/lib/parse.js +3 -4
  270. package/node_modules/qs/lib/stringify.js +23 -8
  271. package/node_modules/qs/lib/utils.js +10 -3
  272. package/node_modules/qs/package.json +4 -4
  273. package/node_modules/qs/test/parse.js +192 -3
  274. package/node_modules/qs/test/stringify.js +317 -0
  275. package/node_modules/qs/test/utils.js +12 -0
  276. package/node_modules/type-fest/index.d.ts +6 -7
  277. package/node_modules/type-fest/package.json +1 -1
  278. package/node_modules/type-fest/readme.md +6 -5
  279. package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
  280. package/node_modules/type-fest/source/get.d.ts +1 -1
  281. package/node_modules/type-fest/source/internal/object.d.ts +30 -1
  282. package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
  283. package/node_modules/type-fest/source/is-literal.d.ts +43 -269
  284. package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
  285. package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
  286. package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
  287. package/node_modules/type-fest/source/jsonify.d.ts +1 -5
  288. package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
  289. package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
  290. package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
  291. package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +4 -3
  292. package/node_modules/type-fest/source/split.d.ts +1 -1
  293. package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
  294. package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
  295. package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
  296. package/node_modules/type-fest/source/typed-array.d.ts +1 -0
  297. package/node_modules/type-fest/source/writable.d.ts +2 -2
  298. package/package.json +2 -2
  299. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/LICENSE.md +0 -0
  300. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/README.md +0 -0
  301. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/common.gypi +0 -0
  302. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/except.gypi +0 -0
  303. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/index.js +0 -0
  304. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/napi-inl.deprecated.h +0 -0
  305. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/napi-inl.h +0 -0
  306. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/napi.h +0 -0
  307. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/node_api.gyp +0 -0
  308. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/noexcept.gypi +0 -0
  309. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/nothing.c +0 -0
  310. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/package-support.json +0 -0
  311. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/package.json +0 -0
  312. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/tools/README.md +0 -0
  313. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/tools/check-napi.js +0 -0
  314. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/tools/clang-format.js +0 -0
  315. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/tools/conversion.js +0 -0
  316. /package/node_modules/{node-addon-api → keytar/node_modules/node-addon-api}/tools/eslint-format.js +0 -0
@@ -0,0 +1,20 @@
1
+ //#region src/iterator/dropWhile.d.ts
2
+ /**
3
+ * Lazily skips elements from `source` as long as `shouldDrop` returns a truthy
4
+ * value, then yields every remaining element (including the one that first
5
+ * failed the predicate).
6
+ *
7
+ * The native iterator helpers offer `drop` (by count) but not a predicate-based
8
+ * `dropWhile`, which is why this is provided.
9
+ *
10
+ * @template T - The type of elements produced by the iterator.
11
+ * @param source - The iterator to drop elements from.
12
+ * @param shouldDrop - Called with `(value, index)`; elements are skipped while it returns truthy.
13
+ * @returns A lazy iterator over the elements after the dropped leading run.
14
+ *
15
+ * @example
16
+ * dropWhile([1, 2, 3, 1].values(), x => x < 3).toArray(); // => [3, 1]
17
+ */
18
+ declare function dropWhile<T>(source: Iterator<T>, shouldDrop: (value: T, index: number) => boolean): IteratorObject<T, undefined>;
19
+ //#endregion
20
+ export { dropWhile };
@@ -0,0 +1,20 @@
1
+ //#region src/iterator/dropWhile.d.ts
2
+ /**
3
+ * Lazily skips elements from `source` as long as `shouldDrop` returns a truthy
4
+ * value, then yields every remaining element (including the one that first
5
+ * failed the predicate).
6
+ *
7
+ * The native iterator helpers offer `drop` (by count) but not a predicate-based
8
+ * `dropWhile`, which is why this is provided.
9
+ *
10
+ * @template T - The type of elements produced by the iterator.
11
+ * @param source - The iterator to drop elements from.
12
+ * @param shouldDrop - Called with `(value, index)`; elements are skipped while it returns truthy.
13
+ * @returns A lazy iterator over the elements after the dropped leading run.
14
+ *
15
+ * @example
16
+ * dropWhile([1, 2, 3, 1].values(), x => x < 3).toArray(); // => [3, 1]
17
+ */
18
+ declare function dropWhile<T>(source: Iterator<T>, shouldDrop: (value: T, index: number) => boolean): IteratorObject<T, undefined>;
19
+ //#endregion
20
+ export { dropWhile };
@@ -0,0 +1,52 @@
1
+ const require_iterator = require("./_internal/iterator.js");
2
+ //#region src/iterator/dropWhile.ts
3
+ /**
4
+ * Lazily skips elements from `source` as long as `shouldDrop` returns a truthy
5
+ * value, then yields every remaining element (including the one that first
6
+ * failed the predicate).
7
+ *
8
+ * The native iterator helpers offer `drop` (by count) but not a predicate-based
9
+ * `dropWhile`, which is why this is provided.
10
+ *
11
+ * @template T - The type of elements produced by the iterator.
12
+ * @param source - The iterator to drop elements from.
13
+ * @param shouldDrop - Called with `(value, index)`; elements are skipped while it returns truthy.
14
+ * @returns A lazy iterator over the elements after the dropped leading run.
15
+ *
16
+ * @example
17
+ * dropWhile([1, 2, 3, 1].values(), x => x < 3).toArray(); // => [3, 1]
18
+ */
19
+ function dropWhile(source, shouldDrop) {
20
+ let index = 0;
21
+ let dropping = true;
22
+ return require_iterator.iterator(function() {
23
+ while (dropping) {
24
+ const result = source.next();
25
+ if (result.done) {
26
+ dropping = false;
27
+ return {
28
+ value: void 0,
29
+ done: true
30
+ };
31
+ }
32
+ if (!shouldDrop(result.value, index++)) {
33
+ dropping = false;
34
+ return {
35
+ value: result.value,
36
+ done: false
37
+ };
38
+ }
39
+ }
40
+ const result = source.next();
41
+ if (result.done) return {
42
+ value: void 0,
43
+ done: true
44
+ };
45
+ return {
46
+ value: result.value,
47
+ done: false
48
+ };
49
+ }, () => void source.return?.());
50
+ }
51
+ //#endregion
52
+ exports.dropWhile = dropWhile;
@@ -0,0 +1,52 @@
1
+ import { iterator } from "./_internal/iterator.mjs";
2
+ //#region src/iterator/dropWhile.ts
3
+ /**
4
+ * Lazily skips elements from `source` as long as `shouldDrop` returns a truthy
5
+ * value, then yields every remaining element (including the one that first
6
+ * failed the predicate).
7
+ *
8
+ * The native iterator helpers offer `drop` (by count) but not a predicate-based
9
+ * `dropWhile`, which is why this is provided.
10
+ *
11
+ * @template T - The type of elements produced by the iterator.
12
+ * @param source - The iterator to drop elements from.
13
+ * @param shouldDrop - Called with `(value, index)`; elements are skipped while it returns truthy.
14
+ * @returns A lazy iterator over the elements after the dropped leading run.
15
+ *
16
+ * @example
17
+ * dropWhile([1, 2, 3, 1].values(), x => x < 3).toArray(); // => [3, 1]
18
+ */
19
+ function dropWhile(source, shouldDrop) {
20
+ let index = 0;
21
+ let dropping = true;
22
+ return iterator(function() {
23
+ while (dropping) {
24
+ const result = source.next();
25
+ if (result.done) {
26
+ dropping = false;
27
+ return {
28
+ value: void 0,
29
+ done: true
30
+ };
31
+ }
32
+ if (!shouldDrop(result.value, index++)) {
33
+ dropping = false;
34
+ return {
35
+ value: result.value,
36
+ done: false
37
+ };
38
+ }
39
+ }
40
+ const result = source.next();
41
+ if (result.done) return {
42
+ value: void 0,
43
+ done: true
44
+ };
45
+ return {
46
+ value: result.value,
47
+ done: false
48
+ };
49
+ }, () => void source.return?.());
50
+ }
51
+ //#endregion
52
+ export { dropWhile };
@@ -0,0 +1,21 @@
1
+ //#region src/iterator/head.d.ts
2
+ /**
3
+ * Returns the first element produced by `source`, or `undefined` if it is empty.
4
+ * This pulls a single element and then stops, so it is safe to use on an
5
+ * infinite iterator.
6
+ *
7
+ * This consumes the iterator rather than peeking at it: after reading the first
8
+ * element, `source` is closed via its `return` method (matching the native
9
+ * `Iterator.prototype.find`), so it cannot be iterated further.
10
+ *
11
+ * @template T - The type of elements produced by the iterator.
12
+ * @param source - The iterator to read the first element from.
13
+ * @returns The first element, or `undefined` when the iterator yields nothing.
14
+ *
15
+ * @example
16
+ * head([1, 2, 3].values()); // => 1
17
+ * head([].values()); // => undefined
18
+ */
19
+ declare function head<T>(source: Iterator<T>): T | undefined;
20
+ //#endregion
21
+ export { head };
@@ -0,0 +1,21 @@
1
+ //#region src/iterator/head.d.ts
2
+ /**
3
+ * Returns the first element produced by `source`, or `undefined` if it is empty.
4
+ * This pulls a single element and then stops, so it is safe to use on an
5
+ * infinite iterator.
6
+ *
7
+ * This consumes the iterator rather than peeking at it: after reading the first
8
+ * element, `source` is closed via its `return` method (matching the native
9
+ * `Iterator.prototype.find`), so it cannot be iterated further.
10
+ *
11
+ * @template T - The type of elements produced by the iterator.
12
+ * @param source - The iterator to read the first element from.
13
+ * @returns The first element, or `undefined` when the iterator yields nothing.
14
+ *
15
+ * @example
16
+ * head([1, 2, 3].values()); // => 1
17
+ * head([].values()); // => undefined
18
+ */
19
+ declare function head<T>(source: Iterator<T>): T | undefined;
20
+ //#endregion
21
+ export { head };
@@ -0,0 +1,26 @@
1
+ //#region src/iterator/head.ts
2
+ /**
3
+ * Returns the first element produced by `source`, or `undefined` if it is empty.
4
+ * This pulls a single element and then stops, so it is safe to use on an
5
+ * infinite iterator.
6
+ *
7
+ * This consumes the iterator rather than peeking at it: after reading the first
8
+ * element, `source` is closed via its `return` method (matching the native
9
+ * `Iterator.prototype.find`), so it cannot be iterated further.
10
+ *
11
+ * @template T - The type of elements produced by the iterator.
12
+ * @param source - The iterator to read the first element from.
13
+ * @returns The first element, or `undefined` when the iterator yields nothing.
14
+ *
15
+ * @example
16
+ * head([1, 2, 3].values()); // => 1
17
+ * head([].values()); // => undefined
18
+ */
19
+ function head(source) {
20
+ const result = source.next();
21
+ if (result.done) return;
22
+ source.return?.();
23
+ return result.value;
24
+ }
25
+ //#endregion
26
+ exports.head = head;
@@ -0,0 +1,26 @@
1
+ //#region src/iterator/head.ts
2
+ /**
3
+ * Returns the first element produced by `source`, or `undefined` if it is empty.
4
+ * This pulls a single element and then stops, so it is safe to use on an
5
+ * infinite iterator.
6
+ *
7
+ * This consumes the iterator rather than peeking at it: after reading the first
8
+ * element, `source` is closed via its `return` method (matching the native
9
+ * `Iterator.prototype.find`), so it cannot be iterated further.
10
+ *
11
+ * @template T - The type of elements produced by the iterator.
12
+ * @param source - The iterator to read the first element from.
13
+ * @returns The first element, or `undefined` when the iterator yields nothing.
14
+ *
15
+ * @example
16
+ * head([1, 2, 3].values()); // => 1
17
+ * head([].values()); // => undefined
18
+ */
19
+ function head(source) {
20
+ const result = source.next();
21
+ if (result.done) return;
22
+ source.return?.();
23
+ return result.value;
24
+ }
25
+ //#endregion
26
+ export { head };
@@ -0,0 +1,13 @@
1
+ import { cartesianProduct } from "./cartesianProduct.mjs";
2
+ import { chunk } from "./chunk.mjs";
3
+ import { count } from "./count.mjs";
4
+ import { dropWhile } from "./dropWhile.mjs";
5
+ import { head } from "./head.mjs";
6
+ import { iterate } from "./iterate.mjs";
7
+ import { partition } from "./partition.mjs";
8
+ import { range } from "./range.mjs";
9
+ import { scan } from "./scan.mjs";
10
+ import { takeWhile } from "./takeWhile.mjs";
11
+ import { uniqBy } from "./uniqBy.mjs";
12
+ import { zip } from "./zip.mjs";
13
+ export { cartesianProduct, chunk, count, dropWhile, head, iterate, partition, range, scan, takeWhile, uniqBy, zip };
@@ -0,0 +1,13 @@
1
+ import { cartesianProduct } from "./cartesianProduct.js";
2
+ import { chunk } from "./chunk.js";
3
+ import { count } from "./count.js";
4
+ import { dropWhile } from "./dropWhile.js";
5
+ import { head } from "./head.js";
6
+ import { iterate } from "./iterate.js";
7
+ import { partition } from "./partition.js";
8
+ import { range } from "./range.js";
9
+ import { scan } from "./scan.js";
10
+ import { takeWhile } from "./takeWhile.js";
11
+ import { uniqBy } from "./uniqBy.js";
12
+ import { zip } from "./zip.js";
13
+ export { cartesianProduct, chunk, count, dropWhile, head, iterate, partition, range, scan, takeWhile, uniqBy, zip };
@@ -0,0 +1,25 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_cartesianProduct = require("./cartesianProduct.js");
3
+ const require_chunk = require("./chunk.js");
4
+ const require_count = require("./count.js");
5
+ const require_dropWhile = require("./dropWhile.js");
6
+ const require_head = require("./head.js");
7
+ const require_partition = require("./partition.js");
8
+ const require_scan = require("./scan.js");
9
+ const require_takeWhile = require("./takeWhile.js");
10
+ const require_uniqBy = require("./uniqBy.js");
11
+ const require_zip = require("./zip.js");
12
+ const require_iterate = require("./iterate.js");
13
+ const require_range = require("./range.js");
14
+ exports.cartesianProduct = require_cartesianProduct.cartesianProduct;
15
+ exports.chunk = require_chunk.chunk;
16
+ exports.count = require_count.count;
17
+ exports.dropWhile = require_dropWhile.dropWhile;
18
+ exports.head = require_head.head;
19
+ exports.iterate = require_iterate.iterate;
20
+ exports.partition = require_partition.partition;
21
+ exports.range = require_range.range;
22
+ exports.scan = require_scan.scan;
23
+ exports.takeWhile = require_takeWhile.takeWhile;
24
+ exports.uniqBy = require_uniqBy.uniqBy;
25
+ exports.zip = require_zip.zip;
@@ -0,0 +1,13 @@
1
+ import { cartesianProduct } from "./cartesianProduct.mjs";
2
+ import { chunk } from "./chunk.mjs";
3
+ import { count } from "./count.mjs";
4
+ import { dropWhile } from "./dropWhile.mjs";
5
+ import { head } from "./head.mjs";
6
+ import { partition } from "./partition.mjs";
7
+ import { scan } from "./scan.mjs";
8
+ import { takeWhile } from "./takeWhile.mjs";
9
+ import { uniqBy } from "./uniqBy.mjs";
10
+ import { zip } from "./zip.mjs";
11
+ import { iterate } from "./iterate.mjs";
12
+ import { range } from "./range.mjs";
13
+ export { cartesianProduct, chunk, count, dropWhile, head, iterate, partition, range, scan, takeWhile, uniqBy, zip };
@@ -0,0 +1,20 @@
1
+ //#region src/iterator/iterate.d.ts
2
+ /**
3
+ * Creates an infinite lazy iterator that starts with `seed` and repeatedly
4
+ * applies `getNext` to produce the following value: `seed`, `getNext(seed)`,
5
+ * `getNext(getNext(seed))`, and so on.
6
+ *
7
+ * Because the iterator is infinite, it must be bounded by a short-circuiting
8
+ * helper such as the native `take` or {@link takeWhile} before being consumed.
9
+ *
10
+ * @template T - The type of values produced by the iterator.
11
+ * @param seed - The first value of the sequence.
12
+ * @param getNext - Computes the next value from the current one.
13
+ * @returns An infinite lazy iterator over the generated sequence.
14
+ *
15
+ * @example
16
+ * iterate(1, x => x * 2).take(5).toArray(); // => [1, 2, 4, 8, 16]
17
+ */
18
+ declare function iterate<T>(seed: T, getNext: (value: T) => T): IteratorObject<T, undefined>;
19
+ //#endregion
20
+ export { iterate };
@@ -0,0 +1,20 @@
1
+ //#region src/iterator/iterate.d.ts
2
+ /**
3
+ * Creates an infinite lazy iterator that starts with `seed` and repeatedly
4
+ * applies `getNext` to produce the following value: `seed`, `getNext(seed)`,
5
+ * `getNext(getNext(seed))`, and so on.
6
+ *
7
+ * Because the iterator is infinite, it must be bounded by a short-circuiting
8
+ * helper such as the native `take` or {@link takeWhile} before being consumed.
9
+ *
10
+ * @template T - The type of values produced by the iterator.
11
+ * @param seed - The first value of the sequence.
12
+ * @param getNext - Computes the next value from the current one.
13
+ * @returns An infinite lazy iterator over the generated sequence.
14
+ *
15
+ * @example
16
+ * iterate(1, x => x * 2).take(5).toArray(); // => [1, 2, 4, 8, 16]
17
+ */
18
+ declare function iterate<T>(seed: T, getNext: (value: T) => T): IteratorObject<T, undefined>;
19
+ //#endregion
20
+ export { iterate };
@@ -0,0 +1,32 @@
1
+ const require_iterator = require("./_internal/iterator.js");
2
+ //#region src/iterator/iterate.ts
3
+ /**
4
+ * Creates an infinite lazy iterator that starts with `seed` and repeatedly
5
+ * applies `getNext` to produce the following value: `seed`, `getNext(seed)`,
6
+ * `getNext(getNext(seed))`, and so on.
7
+ *
8
+ * Because the iterator is infinite, it must be bounded by a short-circuiting
9
+ * helper such as the native `take` or {@link takeWhile} before being consumed.
10
+ *
11
+ * @template T - The type of values produced by the iterator.
12
+ * @param seed - The first value of the sequence.
13
+ * @param getNext - Computes the next value from the current one.
14
+ * @returns An infinite lazy iterator over the generated sequence.
15
+ *
16
+ * @example
17
+ * iterate(1, x => x * 2).take(5).toArray(); // => [1, 2, 4, 8, 16]
18
+ */
19
+ function iterate(seed, getNext) {
20
+ let current = seed;
21
+ let started = false;
22
+ return require_iterator.iterator(function() {
23
+ if (started) current = getNext(current);
24
+ else started = true;
25
+ return {
26
+ value: current,
27
+ done: false
28
+ };
29
+ });
30
+ }
31
+ //#endregion
32
+ exports.iterate = iterate;
@@ -0,0 +1,32 @@
1
+ import { iterator } from "./_internal/iterator.mjs";
2
+ //#region src/iterator/iterate.ts
3
+ /**
4
+ * Creates an infinite lazy iterator that starts with `seed` and repeatedly
5
+ * applies `getNext` to produce the following value: `seed`, `getNext(seed)`,
6
+ * `getNext(getNext(seed))`, and so on.
7
+ *
8
+ * Because the iterator is infinite, it must be bounded by a short-circuiting
9
+ * helper such as the native `take` or {@link takeWhile} before being consumed.
10
+ *
11
+ * @template T - The type of values produced by the iterator.
12
+ * @param seed - The first value of the sequence.
13
+ * @param getNext - Computes the next value from the current one.
14
+ * @returns An infinite lazy iterator over the generated sequence.
15
+ *
16
+ * @example
17
+ * iterate(1, x => x * 2).take(5).toArray(); // => [1, 2, 4, 8, 16]
18
+ */
19
+ function iterate(seed, getNext) {
20
+ let current = seed;
21
+ let started = false;
22
+ return iterator(function() {
23
+ if (started) current = getNext(current);
24
+ else started = true;
25
+ return {
26
+ value: current,
27
+ done: false
28
+ };
29
+ });
30
+ }
31
+ //#endregion
32
+ export { iterate };
@@ -0,0 +1,18 @@
1
+ //#region src/iterator/partition.d.ts
2
+ /**
3
+ * Consumes `source` and splits its elements into two arrays: the first holds the
4
+ * elements for which `predicate` returns truthy, the second holds the rest.
5
+ * Relative order is preserved within each group. This is a terminal operation:
6
+ * it pulls every element, so it must not be used on an infinite iterator.
7
+ *
8
+ * @template T - The type of elements produced by the iterator.
9
+ * @param source - The iterator to partition.
10
+ * @param predicate - Called with `(value, index)`; truthy sends the element to the first array.
11
+ * @returns A two-element tuple of `[matched, unmatched]` arrays.
12
+ *
13
+ * @example
14
+ * partition([1, 2, 3, 4].values(), x => x % 2 === 0); // => [[2, 4], [1, 3]]
15
+ */
16
+ declare function partition<T>(source: Iterator<T>, predicate: (value: T, index: number) => boolean): [T[], T[]];
17
+ //#endregion
18
+ export { partition };
@@ -0,0 +1,18 @@
1
+ //#region src/iterator/partition.d.ts
2
+ /**
3
+ * Consumes `source` and splits its elements into two arrays: the first holds the
4
+ * elements for which `predicate` returns truthy, the second holds the rest.
5
+ * Relative order is preserved within each group. This is a terminal operation:
6
+ * it pulls every element, so it must not be used on an infinite iterator.
7
+ *
8
+ * @template T - The type of elements produced by the iterator.
9
+ * @param source - The iterator to partition.
10
+ * @param predicate - Called with `(value, index)`; truthy sends the element to the first array.
11
+ * @returns A two-element tuple of `[matched, unmatched]` arrays.
12
+ *
13
+ * @example
14
+ * partition([1, 2, 3, 4].values(), x => x % 2 === 0); // => [[2, 4], [1, 3]]
15
+ */
16
+ declare function partition<T>(source: Iterator<T>, predicate: (value: T, index: number) => boolean): [T[], T[]];
17
+ //#endregion
18
+ export { partition };
@@ -0,0 +1,36 @@
1
+ //#region src/iterator/partition.ts
2
+ /**
3
+ * Consumes `source` and splits its elements into two arrays: the first holds the
4
+ * elements for which `predicate` returns truthy, the second holds the rest.
5
+ * Relative order is preserved within each group. This is a terminal operation:
6
+ * it pulls every element, so it must not be used on an infinite iterator.
7
+ *
8
+ * @template T - The type of elements produced by the iterator.
9
+ * @param source - The iterator to partition.
10
+ * @param predicate - Called with `(value, index)`; truthy sends the element to the first array.
11
+ * @returns A two-element tuple of `[matched, unmatched]` arrays.
12
+ *
13
+ * @example
14
+ * partition([1, 2, 3, 4].values(), x => x % 2 === 0); // => [[2, 4], [1, 3]]
15
+ */
16
+ function partition(source, predicate) {
17
+ const matched = [];
18
+ const unmatched = [];
19
+ let index = 0;
20
+ let next = source.next();
21
+ while (!next.done) {
22
+ let isMatch;
23
+ try {
24
+ isMatch = predicate(next.value, index++);
25
+ } catch (error) {
26
+ source.return?.();
27
+ throw error;
28
+ }
29
+ if (isMatch) matched.push(next.value);
30
+ else unmatched.push(next.value);
31
+ next = source.next();
32
+ }
33
+ return [matched, unmatched];
34
+ }
35
+ //#endregion
36
+ exports.partition = partition;
@@ -0,0 +1,36 @@
1
+ //#region src/iterator/partition.ts
2
+ /**
3
+ * Consumes `source` and splits its elements into two arrays: the first holds the
4
+ * elements for which `predicate` returns truthy, the second holds the rest.
5
+ * Relative order is preserved within each group. This is a terminal operation:
6
+ * it pulls every element, so it must not be used on an infinite iterator.
7
+ *
8
+ * @template T - The type of elements produced by the iterator.
9
+ * @param source - The iterator to partition.
10
+ * @param predicate - Called with `(value, index)`; truthy sends the element to the first array.
11
+ * @returns A two-element tuple of `[matched, unmatched]` arrays.
12
+ *
13
+ * @example
14
+ * partition([1, 2, 3, 4].values(), x => x % 2 === 0); // => [[2, 4], [1, 3]]
15
+ */
16
+ function partition(source, predicate) {
17
+ const matched = [];
18
+ const unmatched = [];
19
+ let index = 0;
20
+ let next = source.next();
21
+ while (!next.done) {
22
+ let isMatch;
23
+ try {
24
+ isMatch = predicate(next.value, index++);
25
+ } catch (error) {
26
+ source.return?.();
27
+ throw error;
28
+ }
29
+ if (isMatch) matched.push(next.value);
30
+ else unmatched.push(next.value);
31
+ next = source.next();
32
+ }
33
+ return [matched, unmatched];
34
+ }
35
+ //#endregion
36
+ export { partition };
@@ -0,0 +1,42 @@
1
+ //#region src/iterator/range.d.ts
2
+ /**
3
+ * Lazily yields numbers from `0` (inclusive) up to `end` (exclusive), incrementing by `1`.
4
+ *
5
+ * Unlike `es-toolkit`'s array `range`, this produces a lazy {@link IteratorObject}:
6
+ * no numbers are computed until the iterator is consumed, so it composes with
7
+ * other iterator helpers and supports early termination.
8
+ *
9
+ * @param end - The end number of the range (exclusive).
10
+ * @returns A lazy iterator over the numbers in the range.
11
+ *
12
+ * @example
13
+ * range(4).toArray(); // => [0, 1, 2, 3]
14
+ */
15
+ declare function range(end: number): IteratorObject<number, undefined>;
16
+ /**
17
+ * Lazily yields numbers from `start` (inclusive) up to `end` (exclusive), incrementing by `1`.
18
+ *
19
+ * @param start - The starting number of the range (inclusive).
20
+ * @param end - The end number of the range (exclusive).
21
+ * @returns A lazy iterator over the numbers in the range.
22
+ *
23
+ * @example
24
+ * range(1, 4).toArray(); // => [1, 2, 3]
25
+ */
26
+ declare function range(start: number, end: number): IteratorObject<number, undefined>;
27
+ /**
28
+ * Lazily yields numbers from `start` (inclusive) up to `end` (exclusive), incrementing by `step`.
29
+ *
30
+ * @param start - The starting number of the range (inclusive).
31
+ * @param end - The end number of the range (exclusive).
32
+ * @param step - The step value for the range.
33
+ * @returns A lazy iterator over the numbers in the range.
34
+ * @throws {Error} Throws an error if the step value is not a non-zero integer.
35
+ *
36
+ * @example
37
+ * range(0, 20, 5).toArray(); // => [0, 5, 10, 15]
38
+ * range(0, -4, -1).toArray(); // => [0, -1, -2, -3]
39
+ */
40
+ declare function range(start: number, end: number, step: number): IteratorObject<number, undefined>;
41
+ //#endregion
42
+ export { range };
@@ -0,0 +1,42 @@
1
+ //#region src/iterator/range.d.ts
2
+ /**
3
+ * Lazily yields numbers from `0` (inclusive) up to `end` (exclusive), incrementing by `1`.
4
+ *
5
+ * Unlike `es-toolkit`'s array `range`, this produces a lazy {@link IteratorObject}:
6
+ * no numbers are computed until the iterator is consumed, so it composes with
7
+ * other iterator helpers and supports early termination.
8
+ *
9
+ * @param end - The end number of the range (exclusive).
10
+ * @returns A lazy iterator over the numbers in the range.
11
+ *
12
+ * @example
13
+ * range(4).toArray(); // => [0, 1, 2, 3]
14
+ */
15
+ declare function range(end: number): IteratorObject<number, undefined>;
16
+ /**
17
+ * Lazily yields numbers from `start` (inclusive) up to `end` (exclusive), incrementing by `1`.
18
+ *
19
+ * @param start - The starting number of the range (inclusive).
20
+ * @param end - The end number of the range (exclusive).
21
+ * @returns A lazy iterator over the numbers in the range.
22
+ *
23
+ * @example
24
+ * range(1, 4).toArray(); // => [1, 2, 3]
25
+ */
26
+ declare function range(start: number, end: number): IteratorObject<number, undefined>;
27
+ /**
28
+ * Lazily yields numbers from `start` (inclusive) up to `end` (exclusive), incrementing by `step`.
29
+ *
30
+ * @param start - The starting number of the range (inclusive).
31
+ * @param end - The end number of the range (exclusive).
32
+ * @param step - The step value for the range.
33
+ * @returns A lazy iterator over the numbers in the range.
34
+ * @throws {Error} Throws an error if the step value is not a non-zero integer.
35
+ *
36
+ * @example
37
+ * range(0, 20, 5).toArray(); // => [0, 5, 10, 15]
38
+ * range(0, -4, -1).toArray(); // => [0, -1, -2, -3]
39
+ */
40
+ declare function range(start: number, end: number, step: number): IteratorObject<number, undefined>;
41
+ //#endregion
42
+ export { range };
@@ -0,0 +1,25 @@
1
+ const require_iterator = require("./_internal/iterator.js");
2
+ //#region src/iterator/range.ts
3
+ function range(start, end, step = 1) {
4
+ if (end == null) {
5
+ end = start;
6
+ start = 0;
7
+ }
8
+ if (!Number.isInteger(step) || step === 0) throw new Error(`The step value must be a non-zero integer, but got ${step}.`);
9
+ const finalEnd = end;
10
+ let current = start;
11
+ return require_iterator.iterator(function() {
12
+ if (step > 0 ? current >= finalEnd : current <= finalEnd) return {
13
+ value: void 0,
14
+ done: true
15
+ };
16
+ const value = current;
17
+ current += step;
18
+ return {
19
+ value,
20
+ done: false
21
+ };
22
+ });
23
+ }
24
+ //#endregion
25
+ exports.range = range;