@redocly/revel-reef 0.124.0-next.30 → 0.124.0-next.32

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 (315) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/cli/prepare/analytics/collectors/get-frontmatter-usage.js +1 -1
  4. package/dist/cli/prepare/analytics/collectors/get-frontmatter-usage.js.map +1 -1
  5. package/dist/cli/prepare/analytics/collectors/get-markdoc-usage.d.ts.map +1 -1
  6. package/dist/cli/prepare/analytics/collectors/get-markdoc-usage.js +1 -1
  7. package/dist/cli/prepare/analytics/collectors/get-markdoc-usage.js.map +1 -1
  8. package/dist/cli/translations/index.js +2 -2
  9. package/dist/cli/translations/index.js.map +1 -1
  10. package/dist/cli/translations/update-translations.js +1 -1
  11. package/dist/cli/translations/update-translations.js.map +1 -1
  12. package/dist/client/App.d.ts.map +1 -1
  13. package/dist/client/App.js +1 -1
  14. package/dist/client/App.js.map +1 -1
  15. package/dist/client/app/Link.d.ts.map +1 -1
  16. package/dist/client/app/Link.js +1 -1
  17. package/dist/client/app/Link.js.map +1 -1
  18. package/dist/client/app/ReviewComments/ReviewComments.d.ts.map +1 -1
  19. package/dist/client/app/ReviewComments/ReviewComments.js +2 -2
  20. package/dist/client/app/ReviewComments/ReviewComments.js.map +1 -1
  21. package/dist/client/app/Sidebar/utils.d.ts.map +1 -1
  22. package/dist/client/app/Sidebar/utils.js +1 -1
  23. package/dist/client/app/Sidebar/utils.js.map +1 -1
  24. package/dist/client/app/hooks/catalog/useCatalogClassic.d.ts.map +1 -1
  25. package/dist/client/app/hooks/catalog/useCatalogClassic.js +1 -1
  26. package/dist/client/app/hooks/catalog/useCatalogClassic.js.map +1 -1
  27. package/dist/client/app/hooks/useRouteChangeTracker.d.ts.map +1 -1
  28. package/dist/client/app/hooks/useRouteChangeTracker.js +1 -1
  29. package/dist/client/app/hooks/useRouteChangeTracker.js.map +1 -1
  30. package/dist/client/app/l10n/index.js +1 -1
  31. package/dist/client/app/l10n/index.js.map +1 -1
  32. package/dist/client/app/search/useSearch.js +1 -1
  33. package/dist/client/app/search/useSearch.js.map +1 -1
  34. package/dist/client/app/utils/get-meta-tags-attributes.js +1 -1
  35. package/dist/client/app/utils/get-meta-tags-attributes.js.map +1 -1
  36. package/dist/client/app/utils/loadAndNavigate.d.ts.map +1 -1
  37. package/dist/client/app/utils/loadAndNavigate.js +1 -1
  38. package/dist/client/app/utils/loadAndNavigate.js.map +1 -1
  39. package/dist/client/providers/page-data/hooks.d.ts.map +1 -1
  40. package/dist/client/providers/page-data/hooks.js +1 -1
  41. package/dist/client/providers/page-data/hooks.js.map +1 -1
  42. package/dist/client/providers/post-message/PostMessageProvider.d.ts.map +1 -1
  43. package/dist/client/providers/post-message/PostMessageProvider.js +1 -1
  44. package/dist/client/providers/post-message/PostMessageProvider.js.map +1 -1
  45. package/dist/client/providers/theme/ThemeDataProvider.d.ts.map +1 -1
  46. package/dist/client/providers/theme/ThemeDataProvider.js +1 -1
  47. package/dist/client/providers/theme/ThemeDataProvider.js.map +1 -1
  48. package/dist/client/runtime/loader.d.ts.map +1 -1
  49. package/dist/client/runtime/loader.js +1 -1
  50. package/dist/client/runtime/loader.js.map +1 -1
  51. package/dist/server/config/external-plugins.js +1 -1
  52. package/dist/server/config/external-plugins.js.map +1 -1
  53. package/dist/server/esbuild/plugins/assets-resolver.js +1 -1
  54. package/dist/server/esbuild/plugins/assets-resolver.js.map +1 -1
  55. package/dist/server/esbuild/plugins/themes-resolver.js +1 -1
  56. package/dist/server/esbuild/plugins/themes-resolver.js.map +1 -1
  57. package/dist/server/fs/fs.d.ts.map +1 -1
  58. package/dist/server/fs/fs.js +2 -2
  59. package/dist/server/fs/fs.js.map +1 -1
  60. package/dist/server/plugins/analytics/gtm/browser-hooks.js +1 -1
  61. package/dist/server/plugins/analytics/gtm/browser-hooks.js.map +1 -1
  62. package/dist/server/plugins/api-functions/index.d.ts.map +1 -1
  63. package/dist/server/plugins/api-functions/index.js +1 -1
  64. package/dist/server/plugins/api-functions/index.js.map +1 -1
  65. package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.js +1 -1
  66. package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.js.map +1 -1
  67. package/dist/server/plugins/catalog-classic/index.d.ts.map +1 -1
  68. package/dist/server/plugins/catalog-classic/index.js +1 -1
  69. package/dist/server/plugins/catalog-classic/index.js.map +1 -1
  70. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts.map +1 -1
  71. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js +1 -1
  72. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js.map +1 -1
  73. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.d.ts.map +1 -1
  74. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js +1 -1
  75. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js.map +1 -1
  76. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts +1 -1
  77. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts.map +1 -1
  78. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js +1 -1
  79. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js.map +1 -1
  80. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts +1 -0
  81. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts.map +1 -1
  82. package/dist/server/plugins/catalog-entities/schemas/file-schemas.d.ts +1 -0
  83. package/dist/server/plugins/catalog-entities/schemas/file-schemas.d.ts.map +1 -1
  84. package/dist/server/plugins/catalog-entities/schemas/file-schemas.js +1 -1
  85. package/dist/server/plugins/catalog-entities/schemas/file-schemas.js.map +1 -1
  86. package/dist/server/plugins/config-parser/index.d.ts.map +1 -1
  87. package/dist/server/plugins/config-parser/index.js +1 -1
  88. package/dist/server/plugins/config-parser/index.js.map +1 -1
  89. package/dist/server/plugins/config-parser/loaders/content-slugs-loader.d.ts.map +1 -1
  90. package/dist/server/plugins/config-parser/loaders/content-slugs-loader.js +1 -1
  91. package/dist/server/plugins/config-parser/loaders/content-slugs-loader.js.map +1 -1
  92. package/dist/server/plugins/config-parser/loaders/redocly-config-loader.js +1 -1
  93. package/dist/server/plugins/config-parser/loaders/redocly-config-loader.js.map +1 -1
  94. package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.d.ts.map +1 -1
  95. package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.js +1 -1
  96. package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.js.map +1 -1
  97. package/dist/server/plugins/config-parser/safe-parse.js +1 -1
  98. package/dist/server/plugins/config-parser/safe-parse.js.map +1 -1
  99. package/dist/server/plugins/default-theme/resolve-products-config.d.ts.map +1 -1
  100. package/dist/server/plugins/default-theme/resolve-products-config.js +1 -1
  101. package/dist/server/plugins/default-theme/resolve-products-config.js.map +1 -1
  102. package/dist/server/plugins/dev-onboarding/api/combine.d.ts.map +1 -1
  103. package/dist/server/plugins/dev-onboarding/api/combine.js +1 -1
  104. package/dist/server/plugins/dev-onboarding/api/combine.js.map +1 -1
  105. package/dist/server/plugins/dev-onboarding/utils.d.ts.map +1 -1
  106. package/dist/server/plugins/dev-onboarding/utils.js +1 -1
  107. package/dist/server/plugins/dev-onboarding/utils.js.map +1 -1
  108. package/dist/server/plugins/graphql-docs/graphql-doc-loader.js +1 -1
  109. package/dist/server/plugins/graphql-docs/graphql-doc-loader.js.map +1 -1
  110. package/dist/server/plugins/graphql-docs/index.js +1 -1
  111. package/dist/server/plugins/graphql-docs/index.js.map +1 -1
  112. package/dist/server/plugins/lifecycle.d.ts.map +1 -1
  113. package/dist/server/plugins/lifecycle.js +2 -2
  114. package/dist/server/plugins/lifecycle.js.map +1 -1
  115. package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/file-chunk-parser.d.ts.map +1 -1
  116. package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/file-chunk-parser.js +1 -1
  117. package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/file-chunk-parser.js.map +1 -1
  118. package/dist/server/plugins/markdown/attribute-resolvers/index.js +1 -1
  119. package/dist/server/plugins/markdown/attribute-resolvers/index.js.map +1 -1
  120. package/dist/server/plugins/markdown/attribute-resolvers/resolve-relative-or-cdn-icon.d.ts +4 -0
  121. package/dist/server/plugins/markdown/attribute-resolvers/resolve-relative-or-cdn-icon.d.ts.map +1 -0
  122. package/dist/server/plugins/markdown/attribute-resolvers/resolve-relative-or-cdn-icon.js +1 -0
  123. package/dist/server/plugins/markdown/attribute-resolvers/resolve-relative-or-cdn-icon.js.map +1 -0
  124. package/dist/server/plugins/markdown/markdown-static-data-loader.d.ts.map +1 -1
  125. package/dist/server/plugins/markdown/markdown-static-data-loader.js +1 -1
  126. package/dist/server/plugins/markdown/markdown-static-data-loader.js.map +1 -1
  127. package/dist/server/plugins/nav-utils.d.ts.map +1 -1
  128. package/dist/server/plugins/nav-utils.js +1 -1
  129. package/dist/server/plugins/nav-utils.js.map +1 -1
  130. package/dist/server/plugins/openapi-docs/load-definition.d.ts.map +1 -1
  131. package/dist/server/plugins/openapi-docs/load-definition.js +3 -3
  132. package/dist/server/plugins/openapi-docs/load-definition.js.map +1 -1
  133. package/dist/server/plugins/openapi-docs/template/helpers.js +1 -1
  134. package/dist/server/plugins/openapi-docs/template/helpers.js.map +1 -1
  135. package/dist/server/plugins/scorecard/index.js +1 -1
  136. package/dist/server/plugins/scorecard/index.js.map +1 -1
  137. package/dist/server/plugins/scorecard/template/useData.d.ts.map +1 -1
  138. package/dist/server/plugins/scorecard/template/useData.js +1 -1
  139. package/dist/server/plugins/scorecard/template/useData.js.map +1 -1
  140. package/dist/server/plugins/scorecard/template/views.js +1 -1
  141. package/dist/server/plugins/scorecard/template/views.js.map +1 -1
  142. package/dist/server/plugins/search/llmstxt/index.d.ts.map +1 -1
  143. package/dist/server/plugins/search/llmstxt/index.js +3 -3
  144. package/dist/server/plugins/search/llmstxt/index.js.map +1 -1
  145. package/dist/server/plugins/sidebars/index.d.ts.map +1 -1
  146. package/dist/server/plugins/sidebars/index.js +2 -2
  147. package/dist/server/plugins/sidebars/index.js.map +1 -1
  148. package/dist/server/plugins/sidebars/utils.d.ts.map +1 -1
  149. package/dist/server/plugins/sidebars/utils.js +1 -1
  150. package/dist/server/plugins/sidebars/utils.js.map +1 -1
  151. package/dist/server/ssr/utils.d.ts.map +1 -1
  152. package/dist/server/ssr/utils.js +2 -2
  153. package/dist/server/ssr/utils.js.map +1 -1
  154. package/dist/server/store.d.ts.map +1 -1
  155. package/dist/server/store.js +1 -1
  156. package/dist/server/store.js.map +1 -1
  157. package/dist/server/utils/crypto.js +1 -1
  158. package/dist/server/utils/crypto.js.map +1 -1
  159. package/dist/server/utils/globs.d.ts.map +1 -1
  160. package/dist/server/utils/globs.js +1 -1
  161. package/dist/server/utils/globs.js.map +1 -1
  162. package/dist/server/utils/rbac.js +1 -1
  163. package/dist/server/utils/rbac.js.map +1 -1
  164. package/dist/server/utils/static-data.d.ts.map +1 -1
  165. package/dist/server/utils/static-data.js +1 -1
  166. package/dist/server/utils/static-data.js.map +1 -1
  167. package/dist/server/web-server/middleware/dynamic-middleware/dynamic-middleware.d.ts.map +1 -1
  168. package/dist/server/web-server/middleware/dynamic-middleware/dynamic-middleware.js +1 -1
  169. package/dist/server/web-server/middleware/dynamic-middleware/dynamic-middleware.js.map +1 -1
  170. package/dist/server/web-server/middleware/responseHeadersMiddleware.js +1 -1
  171. package/dist/server/web-server/middleware/responseHeadersMiddleware.js.map +1 -1
  172. package/dist/server/web-server/routes/auth.d.ts.map +1 -1
  173. package/dist/server/web-server/routes/auth.js +1 -1
  174. package/dist/server/web-server/routes/auth.js.map +1 -1
  175. package/dist/server/web-server/routes/dynamic-route.d.ts.map +1 -1
  176. package/dist/server/web-server/routes/dynamic-route.js +1 -1
  177. package/dist/server/web-server/routes/dynamic-route.js.map +1 -1
  178. package/dist/server/web-server/routes/feedback.js +1 -1
  179. package/dist/server/web-server/routes/feedback.js.map +1 -1
  180. package/dist/server/web-server/routes/page-data.js +1 -1
  181. package/dist/server/web-server/routes/page-data.js.map +1 -1
  182. package/dist/server/web-server/routes/resolve-route.d.ts.map +1 -1
  183. package/dist/server/web-server/routes/resolve-route.js +1 -1
  184. package/dist/server/web-server/routes/resolve-route.js.map +1 -1
  185. package/dist/shared/env.js +1 -1
  186. package/dist/shared/env.js.map +1 -1
  187. package/dist/shared/markdoc.js +1 -1
  188. package/dist/shared/markdoc.js.map +1 -1
  189. package/dist/shared/urls.d.ts.map +1 -1
  190. package/dist/shared/urls.js +1 -1
  191. package/dist/shared/urls.js.map +1 -1
  192. package/dist/shared/utils.d.ts +0 -1
  193. package/dist/shared/utils.d.ts.map +1 -1
  194. package/dist/shared/utils.js +1 -1
  195. package/dist/shared/utils.js.map +1 -1
  196. package/dist/utils/array/ensure-array.d.ts +18 -0
  197. package/dist/utils/array/ensure-array.d.ts.map +1 -0
  198. package/dist/utils/array/ensure-array.js +1 -0
  199. package/dist/utils/array/ensure-array.js.map +1 -0
  200. package/dist/utils/array/group-by.d.ts +33 -0
  201. package/dist/utils/array/group-by.d.ts.map +1 -0
  202. package/dist/utils/array/group-by.js +1 -0
  203. package/dist/utils/array/group-by.js.map +1 -0
  204. package/dist/utils/array/partition.d.ts +22 -0
  205. package/dist/utils/array/partition.d.ts.map +1 -0
  206. package/dist/utils/array/partition.js +1 -0
  207. package/dist/utils/array/partition.js.map +1 -0
  208. package/dist/utils/array/split-array-async.d.ts +24 -0
  209. package/dist/utils/array/split-array-async.d.ts.map +1 -0
  210. package/dist/utils/array/split-array-async.js +1 -0
  211. package/dist/utils/array/split-array-async.js.map +1 -0
  212. package/dist/utils/array/unique.d.ts +25 -0
  213. package/dist/utils/array/unique.d.ts.map +1 -0
  214. package/dist/utils/array/unique.js +1 -0
  215. package/dist/utils/array/unique.js.map +1 -0
  216. package/dist/utils/collection/find-in-iterable.d.ts +13 -0
  217. package/dist/utils/collection/find-in-iterable.d.ts.map +1 -0
  218. package/dist/utils/collection/find-in-iterable.js +1 -0
  219. package/dist/utils/collection/find-in-iterable.js.map +1 -0
  220. package/dist/utils/collection/set-map-value.d.ts +13 -0
  221. package/dist/utils/collection/set-map-value.d.ts.map +1 -0
  222. package/dist/utils/collection/set-map-value.js.map +1 -0
  223. package/dist/utils/env/is-browser.d.ts +11 -0
  224. package/dist/utils/env/is-browser.d.ts.map +1 -0
  225. package/dist/utils/env/is-browser.js +1 -0
  226. package/dist/utils/env/is-browser.js.map +1 -0
  227. package/dist/utils/guards/is-defined.d.ts +15 -0
  228. package/dist/utils/guards/is-defined.d.ts.map +1 -0
  229. package/dist/utils/guards/is-defined.js +1 -0
  230. package/dist/utils/guards/is-defined.js.map +1 -0
  231. package/dist/utils/guards/is-function.d.ts +17 -0
  232. package/dist/utils/guards/is-function.d.ts.map +1 -0
  233. package/dist/utils/guards/is-function.js +1 -0
  234. package/dist/utils/guards/is-function.js.map +1 -0
  235. package/dist/utils/guards/is-object.d.ts +21 -0
  236. package/dist/utils/guards/is-object.d.ts.map +1 -0
  237. package/dist/utils/guards/is-object.js +1 -0
  238. package/dist/utils/guards/is-object.js.map +1 -0
  239. package/dist/utils/guards/is-truthy.d.ts +18 -0
  240. package/dist/utils/guards/is-truthy.d.ts.map +1 -0
  241. package/dist/utils/guards/is-truthy.js +1 -0
  242. package/dist/utils/guards/is-truthy.js.map +1 -0
  243. package/dist/utils/object/deep-merge.d.ts +38 -0
  244. package/dist/utils/object/deep-merge.d.ts.map +1 -0
  245. package/dist/utils/object/deep-merge.js +1 -0
  246. package/dist/utils/object/deep-merge.js.map +1 -0
  247. package/dist/utils/object/get-value-deep.d.ts +22 -0
  248. package/dist/utils/object/get-value-deep.d.ts.map +1 -0
  249. package/dist/utils/object/get-value-deep.js +1 -0
  250. package/dist/utils/object/get-value-deep.js.map +1 -0
  251. package/dist/utils/object/map-object-async.d.ts +25 -0
  252. package/dist/utils/object/map-object-async.d.ts.map +1 -0
  253. package/dist/utils/object/map-object-async.js +1 -0
  254. package/dist/utils/object/map-object-async.js.map +1 -0
  255. package/dist/utils/object/map-object.d.ts +22 -0
  256. package/dist/utils/object/map-object.d.ts.map +1 -0
  257. package/dist/utils/object/map-object.js +1 -0
  258. package/dist/utils/object/map-object.js.map +1 -0
  259. package/dist/utils/object/map-to-object.d.ts +14 -0
  260. package/dist/utils/object/map-to-object.d.ts.map +1 -0
  261. package/dist/utils/object/map-to-object.js +1 -0
  262. package/dist/utils/object/map-to-object.js.map +1 -0
  263. package/dist/utils/object/remove-deep-property.d.ts +21 -0
  264. package/dist/utils/object/remove-deep-property.d.ts.map +1 -0
  265. package/dist/utils/object/remove-deep-property.js +1 -0
  266. package/dist/utils/object/remove-deep-property.js.map +1 -0
  267. package/dist/utils/object/sort-object-keys.d.ts +23 -0
  268. package/dist/utils/object/sort-object-keys.d.ts.map +1 -0
  269. package/dist/utils/object/sort-object-keys.js +1 -0
  270. package/dist/utils/object/sort-object-keys.js.map +1 -0
  271. package/dist/utils/string/capitalize.d.ts +16 -0
  272. package/dist/utils/string/capitalize.d.ts.map +1 -0
  273. package/dist/utils/string/capitalize.js +1 -0
  274. package/dist/utils/string/capitalize.js.map +1 -0
  275. package/dist/utils/string/to-kebab-case.d.ts +21 -0
  276. package/dist/utils/string/to-kebab-case.d.ts.map +1 -0
  277. package/dist/utils/string/to-kebab-case.js +1 -0
  278. package/dist/utils/string/to-kebab-case.js.map +1 -0
  279. package/dist/utils/string/to-string-if-defined.d.ts +17 -0
  280. package/dist/utils/string/to-string-if-defined.d.ts.map +1 -0
  281. package/dist/utils/string/to-string-if-defined.js +1 -0
  282. package/dist/utils/string/to-string-if-defined.js.map +1 -0
  283. package/dist/utils/time/debounce.d.ts +15 -0
  284. package/dist/utils/time/debounce.d.ts.map +1 -0
  285. package/dist/utils/time/debounce.js +1 -0
  286. package/dist/utils/time/debounce.js.map +1 -0
  287. package/dist/utils/tree/collect-prop-value-deep.d.ts +29 -0
  288. package/dist/utils/tree/collect-prop-value-deep.d.ts.map +1 -0
  289. package/dist/utils/tree/collect-prop-value-deep.js +1 -0
  290. package/dist/utils/tree/collect-prop-value-deep.js.map +1 -0
  291. package/dist/utils/tree/find-deep-first.d.ts +23 -0
  292. package/dist/utils/tree/find-deep-first.d.ts.map +1 -0
  293. package/dist/utils/tree/find-deep-first.js +1 -0
  294. package/dist/utils/tree/find-deep-first.js.map +1 -0
  295. package/dist/utils/url/compare-uris.d.ts +19 -0
  296. package/dist/utils/url/compare-uris.d.ts.map +1 -0
  297. package/dist/utils/url/compare-uris.js +1 -0
  298. package/dist/utils/url/compare-uris.js.map +1 -0
  299. package/dist/utils/url/remove-trailing-slash.d.ts +16 -0
  300. package/dist/utils/url/remove-trailing-slash.d.ts.map +1 -0
  301. package/dist/utils/url/remove-trailing-slash.js +1 -0
  302. package/dist/utils/url/remove-trailing-slash.js.map +1 -0
  303. package/package.json +5 -5
  304. package/dist/server/plugins/markdown/attribute-resolvers/resolve-inline-svg-or-image-link.d.ts +0 -4
  305. package/dist/server/plugins/markdown/attribute-resolvers/resolve-inline-svg-or-image-link.d.ts.map +0 -1
  306. package/dist/server/plugins/markdown/attribute-resolvers/resolve-inline-svg-or-image-link.js +0 -1
  307. package/dist/server/plugins/markdown/attribute-resolvers/resolve-inline-svg-or-image-link.js.map +0 -1
  308. package/dist/server/utils/map.d.ts +0 -5
  309. package/dist/server/utils/map.d.ts.map +0 -1
  310. package/dist/server/utils/map.js.map +0 -1
  311. package/dist/shared/jsUtils.d.ts +0 -84
  312. package/dist/shared/jsUtils.d.ts.map +0 -1
  313. package/dist/shared/jsUtils.js +0 -1
  314. package/dist/shared/jsUtils.js.map +0 -1
  315. /package/dist/{server/utils/map.js → utils/collection/set-map-value.js} +0 -0
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Ensures that the input value is always returned as an array.
3
+ *
4
+ * If the input is already an array, it is returned unchanged.
5
+ * If the input is a single value, it is wrapped in an array.
6
+ *
7
+ * @template T The type of the value or array elements.
8
+ * @param maybeArray - A single item or an array of items.
9
+ * @returns An array containing the input value(s).
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * ensureArray(5); // [5]
14
+ * ensureArray([1, 2, 3]); // [1, 2, 3]
15
+ * ```
16
+ */
17
+ export declare function ensureArray<T>(maybeArray: T | T[]): T[];
18
+ //# sourceMappingURL=ensure-array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure-array.d.ts","sourceRoot":"","sources":["../../../../../src/utils/array/ensure-array.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAEvD"}
@@ -0,0 +1 @@
1
+ function n(r){return Array.isArray(r)?r:[r]}export{n as ensureArray};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure-array.js","sourceRoot":"","sources":["../../../../../src/utils/array/ensure-array.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,WAAW,CAAI,UAAmB;IAChD,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Groups elements of an array into an object based on a key function.
3
+ *
4
+ * Iterates over the input array and groups items by the string key returned by the key function.
5
+ * Each key maps to an array of items that share that key.
6
+ *
7
+ * @template T The type of elements in the input array.
8
+ * @param array - The array of items to group.
9
+ * @param keyFn - A function that takes an item and returns a string key to group by.
10
+ * @returns An object where each key is associated with an array of items that share that key.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const data = [
15
+ * { type: 'fruit', name: 'apple' },
16
+ * { type: 'vegetable', name: 'carrot' },
17
+ * { type: 'fruit', name: 'banana' }
18
+ * ];
19
+ *
20
+ * const grouped = groupBy(data, item => item.type);
21
+ * // {
22
+ * // fruit: [
23
+ * // { type: 'fruit', name: 'apple' },
24
+ * // { type: 'fruit', name: 'banana' }
25
+ * // ],
26
+ * // vegetable: [
27
+ * // { type: 'vegetable', name: 'carrot' }
28
+ * // ]
29
+ * // }
30
+ * ```
31
+ */
32
+ export declare function groupBy<T>(array: T[], keyFn: (item: T) => string): Record<string, T[]>;
33
+ //# sourceMappingURL=group-by.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../../../../../src/utils/array/group-by.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAUtF"}
@@ -0,0 +1 @@
1
+ function s(r,e){const o={};for(const n of r){const t=e(n);o[t]||(o[t]=[]),o[t].push(n)}return o}export{s as groupBy};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-by.js","sourceRoot":"","sources":["../../../../../src/utils/array/group-by.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,MAAM,UAAU,OAAO,CAAI,KAAU,EAAE,KAA0B;IAC/D,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YACjB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;QACnB,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Partitions a list into multiple groups based on a key returned by the given predicate function.
3
+ *
4
+ * For each item in the input list, the predicate is called to produce a grouping key.
5
+ * Items with the same key are placed in the same group (array).
6
+ * Items for which the predicate returns `undefined` are each placed into their own single-item group.
7
+ *
8
+ * @template T The type of items in the input list.
9
+ * @param list - The array of items to partition.
10
+ * @param predicate - A function that takes an item and returns a grouping key (string) or undefined.
11
+ * @returns An array of groups. Each group is an array of items that share the same key.
12
+ * Items without a key are grouped individually.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const data = ['apple', 'banana', 'apricot', 'blueberry', ''];
17
+ * const result = partition(data, item => item[0] || undefined);
18
+ * // result: [['apple', 'apricot'], ['banana', 'blueberry'], ['']]
19
+ * ```
20
+ */
21
+ export declare function partition<T>(list: T[], predicate: (item: T) => string | undefined): T[][];
22
+ //# sourceMappingURL=partition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partition.d.ts","sourceRoot":"","sources":["../../../../../src/utils/array/partition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,GAAG,CAAC,EAAE,EAAE,CAiBzF"}
@@ -0,0 +1 @@
1
+ function i(e,s){const t={},c=[];for(const o of e){const n=s(o);if(!n){c.push([o]);continue}t[n]||(t[n]=[]),t[n].push(o)}return Object.values(t).concat(c)}export{i as partition};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partition.js","sourceRoot":"","sources":["../../../../../src/utils/array/partition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,SAAS,CAAI,IAAS,EAAE,SAA0C;IAChF,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,EAAE,CAAC;IAEjB,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;QACxB,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACnB,SAAS;QACX,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YACjB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;QACnB,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Splits an array into two arrays based on an asynchronous or synchronous predicate.
3
+ *
4
+ * Iterates through the input array, applying the given predicate function to each item.
5
+ * If the predicate resolves to `true`, the item is placed in the first output array (positive).
6
+ * If the predicate resolves to `false`, the item is placed in the second output array (negative).
7
+ *
8
+ * The predicate may return a boolean directly or a Promise that resolves to a boolean.
9
+ *
10
+ * @template T The type of items in the input array.
11
+ * @param inputArray - The array to split.
12
+ * @param predicate - A function that takes an item and returns a boolean or a Promise<boolean>.
13
+ * @returns A Promise that resolves to a tuple: [items that matched, items that did not match].
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const numbers = [1, 2, 3, 4, 5];
18
+ * const [even, odd] = await splitArrayAsync(numbers, async (n) => n % 2 === 0);
19
+ * // even: [2, 4]
20
+ * // odd: [1, 3, 5]
21
+ * ```
22
+ */
23
+ export declare function splitArrayAsync<T>(inputArray: T[], predicate: (arrayItem: T) => boolean | Promise<boolean>): Promise<[T[], T[]]>;
24
+ //# sourceMappingURL=split-array-async.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-array-async.d.ts","sourceRoot":"","sources":["../../../../../src/utils/array/split-array-async.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,eAAe,CAAC,CAAC,EACrC,UAAU,EAAE,CAAC,EAAE,EACf,SAAS,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GACtD,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAarB"}
@@ -0,0 +1 @@
1
+ async function e(a,n){const t=[],s=[];for(const r of a)await n(r)?t.push(r):s.push(r);return[t,s]}export{e as splitArrayAsync};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-array-async.js","sourceRoot":"","sources":["../../../../../src/utils/array/split-array-async.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,UAAe,EACf,SAAuD;IAEvD,MAAM,aAAa,GAAQ,EAAE,CAAC;IAC9B,MAAM,aAAa,GAAQ,EAAE,CAAC;IAE9B,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAAI,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;YAC/B,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChC,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,OAAO,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;AACxC,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Removes duplicate items from an array, optionally using a custom key extractor.
3
+ *
4
+ * Iterates through the input array and returns a new array containing only the first
5
+ * occurrence of each unique item. If a predicate function is provided, its return value
6
+ * is used as the unique key for comparison instead of the item itself.
7
+ *
8
+ * @template T The type of the items in the input array.
9
+ * @param array - The array to deduplicate.
10
+ * @param predicate - Optional. A function that returns the value to use for uniqueness checks.
11
+ * @returns A new array containing only unique items.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * unique([1, 2, 2, 3]); // [1, 2, 3]
16
+ *
17
+ * unique(
18
+ * [{ id: 1, name: 'A' }, { id: 1, name: 'B' }, { id: 2, name: 'C' }],
19
+ * item => item.id
20
+ * );
21
+ * // [{ id: 1, name: 'A' }, { id: 2, name: 'C' }]
22
+ * ```
23
+ */
24
+ export declare function unique<T>(array: T[], predicate?: (item: T) => unknown): T[];
25
+ //# sourceMappingURL=unique.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../../../src/utils/array/unique.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,CAAC,EAAE,CAa3E"}
@@ -0,0 +1 @@
1
+ function c(u,n){const o=new Set,s=[];for(const t of u){const e=n?n(t):t;o.has(e)||s.push(t),o.add(e)}return s}export{c as unique};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unique.js","sourceRoot":"","sources":["../../../../../src/utils/array/unique.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,MAAM,CAAI,KAAU,EAAE,SAAgC;IACpE,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;IACtB,MAAM,MAAM,GAAG,EAAE,CAAC;IAElB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Finds and returns the first element in an iterable that matches the given predicate.
3
+ *
4
+ * Iterates over the provided iterable and applies the predicate function to each item.
5
+ * Returns the first item for which the predicate returns true. If no item matches,
6
+ * it returns undefined.
7
+ *
8
+ * @param iter - The iterable to search through (e.g. an array, Set, or generator).
9
+ * @param predicate - A function that tests each element. Should return true for the desired item.
10
+ * @returns The first matching item, or undefined if none match.
11
+ */
12
+ export declare function findInIterable<T>(iter: Iterable<T>, predicate: (item: T) => boolean | undefined): T | undefined;
13
+ //# sourceMappingURL=find-in-iterable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-in-iterable.d.ts","sourceRoot":"","sources":["../../../../../src/utils/collection/find-in-iterable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,SAAS,GAC1C,CAAC,GAAG,SAAS,CAMf"}
@@ -0,0 +1 @@
1
+ function f(t,e){for(const n of t)if(e(n))return n}export{f as findInIterable};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-in-iterable.js","sourceRoot":"","sources":["../../../../../src/utils/collection/find-in-iterable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,UAAU,cAAc,CAC5B,IAAiB,EACjB,SAA2C;IAE3C,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;QACxB,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Sets a value for the given key in a Map and returns the value.
3
+ *
4
+ * This is useful when you want to chain map setting with inline assignment,
5
+ * for example when building up a Map in a functional style.
6
+ *
7
+ * @param map - The Map to update.
8
+ * @param key - The key to set.
9
+ * @param value - The value to set for the key.
10
+ * @returns The same value that was set.
11
+ */
12
+ export declare function setMapValue<K, T>(map: Map<K, T>, key: K, value: T): T;
13
+ //# sourceMappingURL=set-map-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-map-value.d.ts","sourceRoot":"","sources":["../../../../../src/utils/collection/set-map-value.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAGrE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-map-value.js","sourceRoot":"","sources":["../../../../../src/utils/collection/set-map-value.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,UAAU,WAAW,CAAO,GAAc,EAAE,GAAM,EAAE,KAAQ;IAChE,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACpB,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Checks if the current environment is a browser.
3
+ *
4
+ * Returns `true` if the global `window` object exists and has the `HTMLElement` property,
5
+ * which is a good indication that the code is running in a browser context.
6
+ * Otherwise, returns `false` (e.g., Node.js or other non-browser environments).
7
+ *
8
+ * @returns `true` if running in a browser environment; otherwise `false`.
9
+ */
10
+ export declare function isBrowser(): boolean;
11
+ //# sourceMappingURL=is-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-browser.d.ts","sourceRoot":"","sources":["../../../../../src/utils/env/is-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,SAAS,YAExB"}
@@ -0,0 +1 @@
1
+ function n(){return typeof window<"u"&&"HTMLElement"in window}export{n as isBrowser};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-browser.js","sourceRoot":"","sources":["../../../../../src/utils/env/is-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,SAAS;IACvB,OAAO,OAAO,MAAM,KAAK,WAAW,IAAI,aAAa,IAAI,MAAM,CAAC;AAClE,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Type guard that checks if a value is not `undefined` or `null`.
3
+ *
4
+ * Useful for filtering out nullable values while preserving type safety.
5
+ *
6
+ * @template T The value type.
7
+ * @param value The value to check.
8
+ * @returns `true` if the value is neither `undefined` nor `null`; otherwise `false`.
9
+ *
10
+ * @example
11
+ * const arr = [1, null, 2, undefined, 3];
12
+ * const filtered = arr.filter(isDefined); // [1, 2, 3]
13
+ */
14
+ export declare function isDefined<T>(value: T | undefined | null): value is T;
15
+ //# sourceMappingURL=is-defined.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-defined.d.ts","sourceRoot":"","sources":["../../../../../src/utils/guards/is-defined.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,IAAI,CAAC,CAEpE"}
@@ -0,0 +1 @@
1
+ function e(n){return n!=null}export{e as isDefined};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-defined.js","sourceRoot":"","sources":["../../../../../src/utils/guards/is-defined.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,SAAS,CAAI,KAA2B;IACtD,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Type guard that checks if a value is a function.
3
+ *
4
+ * Useful for safely calling or handling values that may or may not be functions.
5
+
6
+ * @template T The return type of the function.
7
+ * @param value The value to check.
8
+ * @returns `true` if the value is a function; otherwise `false`.
9
+ *
10
+ * @example
11
+ * const maybeFn: unknown = () => 42;
12
+ * if (isFunction(maybeFn)) {
13
+ * const result = maybeFn(); // Safe to call
14
+ * }
15
+ */
16
+ export declare function isFunction<T>(value: any): value is (...args: any[]) => T;
17
+ //# sourceMappingURL=is-function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-function.d.ts","sourceRoot":"","sources":["../../../../../src/utils/guards/is-function.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAExE"}
@@ -0,0 +1 @@
1
+ function t(n){return typeof n=="function"}export{t as isFunction};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-function.js","sourceRoot":"","sources":["../../../../../src/utils/guards/is-function.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,UAAU,CAAI,KAAU;IACtC,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC;AACrC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Determines whether a given value is a plain object.
3
+ *
4
+ * Checks that the value is of type 'object', not null,
5
+ * and has either Object.prototype or null as its prototype.
6
+ * This excludes arrays, functions, and other built-in objects.
7
+ *
8
+ * @param obj - The value to check.
9
+ * @returns True if the value is a plain object, otherwise false.
10
+ *
11
+ * Example:
12
+ * ```ts
13
+ * isObject({}); // true
14
+ * isObject(Object.create(null)); // true
15
+ * isObject([]); // false
16
+ * isObject(null); // false
17
+ * isObject(() => {}); // false
18
+ * ```
19
+ */
20
+ export declare function isObject(obj: unknown): obj is object;
21
+ //# sourceMappingURL=is-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-object.d.ts","sourceRoot":"","sources":["../../../../../src/utils/guards/is-object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAWpD"}
@@ -0,0 +1 @@
1
+ function o(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1}export{o as isObject};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-object.js","sourceRoot":"","sources":["../../../../../src/utils/guards/is-object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,UAAU,QAAQ,CAAC,GAAY;IACnC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,UAAU,EAAE,CAAC;YAChD,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;QAC9D,CAAC;QAED,0BAA0B;QAC1B,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;IACnE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,18 @@
1
+ type Falsy = undefined | null | false | '' | 0;
2
+ /**
3
+ * Type guard that checks if a value is *truthy*.
4
+ *
5
+ * This narrows out common falsy values: `undefined`, `null`, `false`, `''` (empty string), and `0`.
6
+ * It’s especially useful for filtering arrays to remove falsy values with proper TypeScript narrowing.
7
+ *
8
+ * @template Truthy The inferred type of a truthy value.
9
+ * @param value The value to check.
10
+ * @returns `true` if the value is truthy; otherwise `false`.
11
+ *
12
+ * @example
13
+ * const arr = [0, 1, '', 'hello', false, true];
14
+ * const truthyValues = arr.filter(isTruthy); // [1, 'hello', true]
15
+ */
16
+ export declare function isTruthy<Truthy>(value: Truthy | Falsy): value is Truthy;
17
+ export {};
18
+ //# sourceMappingURL=is-truthy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-truthy.d.ts","sourceRoot":"","sources":["../../../../../src/utils/guards/is-truthy.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,GAAG,CAAC,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,IAAI,MAAM,CAEvE"}
@@ -0,0 +1 @@
1
+ function t(r){return!!r}export{t as isTruthy};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-truthy.js","sourceRoot":"","sources":["../../../../../src/utils/guards/is-truthy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,QAAQ,CAAS,KAAqB;IACpD,OAAO,CAAC,CAAC,KAAK,CAAC;AACjB,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Converts a union type to an intersection type.
3
+ *
4
+ * This utility type is used internally to represent the result of merging multiple
5
+ * object types into a single type containing all their properties.
6
+ *
7
+ * Example:
8
+ * ```ts
9
+ * type A = { a: number };
10
+ * type B = { b: string };
11
+ * type C = TUnionToIntersection<A | B>; // { a: number } & { b: string }
12
+ * ```
13
+ */
14
+ type TUnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
15
+ /**
16
+ * Deeply merges multiple plain objects into a single object.
17
+ *
18
+ * For each property:
19
+ * - If both source and target properties are plain objects, they are merged recursively.
20
+ * - If both are arrays, the source array overwrites the target array.
21
+ * - Otherwise, the source property overwrites the target property.
22
+ *
23
+ * This function skips dangerous keys like `__proto__`, `constructor`, and `prototype`
24
+ * to prevent prototype pollution.
25
+ *
26
+ * @param objects - Two or more plain objects to merge.
27
+ * @returns A new object that is the deep merge of all input objects.
28
+ *
29
+ * Example:
30
+ * ```ts
31
+ * const a = { x: 1, nested: { y: 2 } };
32
+ * const b = { nested: { z: 3 }, arr: [1, 2] };
33
+ * const merged = deepMerge(a, b); // { x: 1, nested: { y: 2, z: 3 }, arr: [1, 2] }
34
+ * ```
35
+ */
36
+ export declare function deepMerge<T extends object[]>(...objects: T): TUnionToIntersection<T[number]>;
37
+ export {};
38
+ //# sourceMappingURL=deep-merge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deep-merge.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object/deep-merge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,KAAK,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,GAChG,CAAC,GACD,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAqB5F"}
@@ -0,0 +1 @@
1
+ import{isObject as f}from"../guards/is-object.js";function p(...y){return y.reduce((i,e={})=>{for(const o of Object.keys(e))["__proto__","constructor","prototype"].includes(o)||(Array.isArray(i[o])&&Array.isArray(e[o])?i[o]=e[o]:f(i[o])&&f(e[o])?i[o]=p(i[o],e[o]):i[o]=e[o]);return i},{})}export{p as deepMerge};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deep-merge.js","sourceRoot":"","sources":["../../../../../src/utils/object/deep-merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAmBlD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,UAAU,SAAS,CAAqB,GAAG,OAAU;IACzD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAe,EAAE,EAAE,EAAE;QAClD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5D,SAAS;YACX,CAAC;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBAC9D,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;YAC7B,CAAC;iBAAM,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBAC3D,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CACrB,MAAM,CAAC,GAAG,CAA4B,EACtC,OAAO,CAAC,GAAG,CAA4B,CACxC,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAAS,CAAQ,CAAC;AACvB,CAAC"}
@@ -0,0 +1,22 @@
1
+ type GetValueDeep<T> = {
2
+ error: null;
3
+ value: T;
4
+ } | {
5
+ error: Error;
6
+ value: null;
7
+ };
8
+ /**
9
+ * Retrieves a value from a nested object structure using an array of property names as a path.
10
+ * Returns an object containing either the result or any error encountered during traversal.
11
+ *
12
+ * @param {any} obj - The object to traverse
13
+ * @param {string[]} path - Array of property names defining the path to the desired value
14
+ * @returns {GetValueDeep} - Object containing the result or error
15
+ *
16
+ * @example
17
+ * const obj = { user: { address: { city: 'New York' } } };
18
+ * getValueDeep(obj, ['user', 'address', 'city']); // { error: null, value: 'New York' }
19
+ */
20
+ export declare function getValueDeep<T>(obj: any, path: string[]): GetValueDeep<T>;
21
+ export {};
22
+ //# sourceMappingURL=get-value-deep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-value-deep.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object/get-value-deep.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,CAAC,CAAC,IAAI;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC;AAEjF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC,CAWzE"}
@@ -0,0 +1 @@
1
+ function u(t,l){let r=t;try{for(let e=0;e<l.length;e++)r=r[l[e]]}catch(e){return{error:e,value:null}}return{error:null,value:r}}export{u as getValueDeep};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-value-deep.js","sourceRoot":"","sources":["../../../../../src/utils/object/get-value-deep.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY,CAAI,GAAQ,EAAE,IAAc;IACtD,IAAI,GAAG,GAAG,GAAG,CAAC;IACd,IAAI,CAAC;QACH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAChC,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAQ,EAAE,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Asynchronously maps the values of an object using an async mapping function.
3
+ *
4
+ * Iterates over the object's own enumerable string keys,
5
+ * calls the given async function for each `[key, value]` pair,
6
+ * and returns a Promise that resolves to a new object with the same keys
7
+ * and the resolved mapped values.
8
+ *
9
+ * All mapping operations run in parallel using `Promise.all`.
10
+ *
11
+ * @typeParam T - The type of the input object’s values.
12
+ * @typeParam P - The type of the resolved output object’s values.
13
+ * @param obj - The object whose values should be mapped.
14
+ * @param fn - An async function that receives the value and key, and resolves to a new value.
15
+ * @returns A Promise that resolves to a new object with the same keys and transformed values.
16
+ *
17
+ * Example:
18
+ * ```ts
19
+ * const input = { a: 1, b: 2 };
20
+ * const result = await mapObjectAsync(input, async (v) => v * 2);
21
+ * console.log(result); // { a: 2, b: 4 }
22
+ * ```
23
+ */
24
+ export declare function mapObjectAsync<T, P>(obj: Record<string, T>, fn: (v: T, k: string) => Promise<P>): Promise<Record<string, P>>;
25
+ //# sourceMappingURL=map-object-async.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-object-async.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object/map-object-async.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,CAAC,EACvC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EACtB,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAClC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAQ5B"}
@@ -0,0 +1 @@
1
+ async function r(a,e){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([t,n])=>[t,await e(n,t)])))}export{r as mapObjectAsync};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-object-async.js","sourceRoot":"","sources":["../../../../../src/utils/object/map-object-async.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,GAAsB,EACtB,EAAmC;IAEnC,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE;QAC3C,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,CACH,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Creates a new object by applying a mapping function to each value of the input object.
3
+ *
4
+ * Iterates over the object's own enumerable string keys,
5
+ * applies the given callback to each `[key, value]` pair,
6
+ * and returns a new object with the same keys and transformed values.
7
+ *
8
+ * @typeParam T - The type of the input object’s values.
9
+ * @typeParam P - The type of the output object’s values.
10
+ * @param obj - The object to map over.
11
+ * @param fn - A function that receives the value and key, and returns a new value.
12
+ * @returns A new object with the same keys and transformed values.
13
+ *
14
+ * Example:
15
+ * ```ts
16
+ * const input = { a: 1, b: 2 };
17
+ * const result = mapObject(input, (v) => v * 2);
18
+ * console.log(result); // { a: 2, b: 4 }
19
+ * ```
20
+ */
21
+ export declare function mapObject<T, P>(obj: Record<string, T>, fn: (v: T, k: string) => P): Record<string, P>;
22
+ //# sourceMappingURL=map-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-object.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object/map-object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EACtB,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,GACzB,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAMnB"}
@@ -0,0 +1 @@
1
+ function c(e,r){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,r(n,t)]))}export{c as mapObject};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-object.js","sourceRoot":"","sources":["../../../../../src/utils/object/map-object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,SAAS,CACvB,GAAsB,EACtB,EAA0B;IAE1B,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE;QACrC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Converts a Map to a plain object with string keys and values of type T.
3
+ *
4
+ * @param map - A Map or an object with an `entries` method that returns key-value pairs.
5
+ * @returns A plain object containing the same entries as the Map.
6
+ *
7
+ * Example:
8
+ * ```ts
9
+ * const map = new Map([['a', 1], ['b', 2]]);
10
+ * const obj = mapToObject(map); // { a: 1, b: 2 }
11
+ * ```
12
+ */
13
+ export declare function mapToObject<T>(map: Pick<Map<string, T>, 'entries'>): Record<string, T>;
14
+ //# sourceMappingURL=map-to-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-to-object.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object/map-to-object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAEtF"}
@@ -0,0 +1 @@
1
+ function t(e){return Object.fromEntries(e.entries())}export{t as mapToObject};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-to-object.js","sourceRoot":"","sources":["../../../../../src/utils/object/map-to-object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,UAAU,WAAW,CAAI,GAAoC;IACjE,OAAO,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,21 @@
1
+ type ObjectOrArray = Record<string, unknown> | unknown[];
2
+ /**
3
+ * Recursively removes a deeply nested property from an object or array.
4
+ *
5
+ * Given a path (as an array of keys), it traverses the object and deletes
6
+ * the target property when the path is fully resolved.
7
+ * If any part of the path does not exist, the function does nothing.
8
+ *
9
+ * @param obj - The object or array to modify.
10
+ * @param path - An array of keys representing the path to the property to remove.
11
+ *
12
+ * Example:
13
+ * ```ts
14
+ * const data = { a: { b: { c: 1 } } };
15
+ * removeDeepProperty(data, ['a', 'b', 'c']);
16
+ * console.log(data); // { a: { b: {} } }
17
+ * ```
18
+ */
19
+ export declare function removeDeepProperty(obj: ObjectOrArray | unknown, [field, ...path]: string[]): void;
20
+ export {};
21
+ //# sourceMappingURL=remove-deep-property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-deep-property.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object/remove-deep-property.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,CAAC;AACzD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,EAAE,MAAM,EAAE,QAU1F"}
@@ -0,0 +1 @@
1
+ function r(e,[t,...n]){typeof e!="object"||!e||e?.[t]===void 0||(n.length===0?delete e?.[t]:e?.[t]&&r(e?.[t],n))}export{r as removeDeepProperty};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-deep-property.js","sourceRoot":"","sources":["../../../../../src/utils/object/remove-deep-property.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAA4B,EAAE,CAAC,KAAK,EAAE,GAAG,IAAI,CAAW;IACzF,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,GAAG,IAAK,GAA+B,EAAE,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;QAC/F,OAAO;IACT,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAQ,GAA+B,EAAE,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;SAAM,IAAK,GAA+B,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QACrD,kBAAkB,CAAE,GAA+B,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;AACH,CAAC"}