@splendidlabz/utils 1.11.1 → 1.11.3

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 (306) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +2 -2
  3. package/src/dom/actions/masonry.js +1 -0
  4. package/src/lib/objects/omit-empty.js +1 -1
  5. package/src/lib/strings/markdown.spec.js +73 -0
  6. package/src/node/context.js +0 -0
  7. package/src/node/file-cache.js +1 -1
  8. package/src/node/pkce.js +1 -1
  9. package/tsup.config.mjs +19 -1
  10. package/dist/cjs/dom/accessibility.cjs +0 -51
  11. package/dist/cjs/dom/actions/index.cjs +0 -25
  12. package/dist/cjs/dom/actions/masonry.cjs +0 -60
  13. package/dist/cjs/dom/actions/prefer-horizontal-scroll.cjs +0 -113
  14. package/dist/cjs/dom/actions/sticky.cjs +0 -93
  15. package/dist/cjs/dom/bounding-box.cjs +0 -68
  16. package/dist/cjs/dom/clipboard.cjs +0 -35
  17. package/dist/cjs/dom/cookie.cjs +0 -55
  18. package/dist/cjs/dom/css-vars.cjs +0 -47
  19. package/dist/cjs/dom/events.cjs +0 -57
  20. package/dist/cjs/dom/focusable.cjs +0 -141
  21. package/dist/cjs/dom/font-size.cjs +0 -68
  22. package/dist/cjs/dom/get-element.cjs +0 -96
  23. package/dist/cjs/dom/hash.cjs +0 -33
  24. package/dist/cjs/dom/index.cjs +0 -65
  25. package/dist/cjs/dom/keyboard.cjs +0 -49
  26. package/dist/cjs/dom/local-store.cjs +0 -77
  27. package/dist/cjs/dom/media.cjs +0 -57
  28. package/dist/cjs/dom/observers/index.cjs +0 -27
  29. package/dist/cjs/dom/observers/intersection-observer.cjs +0 -59
  30. package/dist/cjs/dom/observers/mutation-observer.cjs +0 -63
  31. package/dist/cjs/dom/observers/observer.cjs +0 -38
  32. package/dist/cjs/dom/observers/resize-observer.cjs +0 -52
  33. package/dist/cjs/dom/observers/scroll-observer.cjs +0 -118
  34. package/dist/cjs/dom/pkce.cjs +0 -43
  35. package/dist/cjs/dom/query-params.cjs +0 -36
  36. package/dist/cjs/dom/random-string.cjs +0 -36
  37. package/dist/cjs/dom/sanitize.cjs +0 -41
  38. package/dist/cjs/dom/session-store.cjs +0 -47
  39. package/dist/cjs/dom/spam-prevention.cjs +0 -48
  40. package/dist/cjs/dom/trap-focus.cjs +0 -75
  41. package/dist/cjs/dom/ui/aria-current.cjs +0 -41
  42. package/dist/cjs/dom/ui/inconsistent-button-fix.cjs +0 -33
  43. package/dist/cjs/dom/ui/index.cjs +0 -27
  44. package/dist/cjs/dom/ui/scroll-container.cjs +0 -45
  45. package/dist/cjs/dom/ui/traverse-and-scramble.cjs +0 -48
  46. package/dist/cjs/lib/arrays/index.cjs +0 -31
  47. package/dist/cjs/lib/arrays/item-position.cjs +0 -40
  48. package/dist/cjs/lib/arrays/join.cjs +0 -35
  49. package/dist/cjs/lib/arrays/shuffle.cjs +0 -40
  50. package/dist/cjs/lib/arrays/sort.cjs +0 -59
  51. package/dist/cjs/lib/arrays/split-array.cjs +0 -39
  52. package/dist/cjs/lib/arrays/unique.cjs +0 -29
  53. package/dist/cjs/lib/auth/index.cjs +0 -21
  54. package/dist/cjs/lib/auth/route-manager.cjs +0 -49
  55. package/dist/cjs/lib/checks.cjs +0 -61
  56. package/dist/cjs/lib/date/days.cjs +0 -35
  57. package/dist/cjs/lib/date/index.cjs +0 -25
  58. package/dist/cjs/lib/date/months.cjs +0 -100
  59. package/dist/cjs/lib/date/time.cjs +0 -105
  60. package/dist/cjs/lib/form/form-data.cjs +0 -81
  61. package/dist/cjs/lib/form/index.cjs +0 -23
  62. package/dist/cjs/lib/form/sanitize.cjs +0 -59
  63. package/dist/cjs/lib/functions/callback.cjs +0 -29
  64. package/dist/cjs/lib/functions/debounce.cjs +0 -41
  65. package/dist/cjs/lib/functions/env.cjs +0 -30
  66. package/dist/cjs/lib/functions/functional.cjs +0 -80
  67. package/dist/cjs/lib/functions/index.cjs +0 -29
  68. package/dist/cjs/lib/functions/throttle.cjs +0 -36
  69. package/dist/cjs/lib/functions/timeout.cjs +0 -39
  70. package/dist/cjs/lib/hash.cjs +0 -41
  71. package/dist/cjs/lib/index.cjs +0 -47
  72. package/dist/cjs/lib/numbers/index.cjs +0 -36
  73. package/dist/cjs/lib/numbers/math.cjs +0 -34
  74. package/dist/cjs/lib/objects/camelcase-keys.cjs +0 -39
  75. package/dist/cjs/lib/objects/empty.cjs +0 -37
  76. package/dist/cjs/lib/objects/equal.cjs +0 -45
  77. package/dist/cjs/lib/objects/extend.cjs +0 -36
  78. package/dist/cjs/lib/objects/flatten.cjs +0 -40
  79. package/dist/cjs/lib/objects/index.cjs +0 -45
  80. package/dist/cjs/lib/objects/json.cjs +0 -33
  81. package/dist/cjs/lib/objects/loop.cjs +0 -38
  82. package/dist/cjs/lib/objects/mix/mix.cjs +0 -113
  83. package/dist/cjs/lib/objects/nested-property.cjs +0 -43
  84. package/dist/cjs/lib/objects/normalize-object.cjs +0 -32
  85. package/dist/cjs/lib/objects/omit-empty.cjs +0 -38
  86. package/dist/cjs/lib/objects/size.cjs +0 -61
  87. package/dist/cjs/lib/objects/split.cjs +0 -37
  88. package/dist/cjs/lib/promises/index.cjs +0 -21
  89. package/dist/cjs/lib/promises/reject.cjs +0 -50
  90. package/dist/cjs/lib/sse.cjs +0 -74
  91. package/dist/cjs/lib/strings/convert-case/convert-case.cjs +0 -94
  92. package/dist/cjs/lib/strings/index.cjs +0 -29
  93. package/dist/cjs/lib/strings/markdown.cjs +0 -74
  94. package/dist/cjs/lib/strings/name.cjs +0 -44
  95. package/dist/cjs/lib/strings/pluralize.cjs +0 -38
  96. package/dist/cjs/lib/strings/query-string.cjs +0 -41
  97. package/dist/cjs/lib/style/index.cjs +0 -35
  98. package/dist/cjs/lib/symbols/index.cjs +0 -21
  99. package/dist/cjs/lib/symbols/symbols.cjs +0 -36
  100. package/dist/cjs/node/dirname.cjs +0 -47
  101. package/dist/cjs/node/file-cache.cjs +0 -158
  102. package/dist/cjs/node/file.cjs +0 -48
  103. package/dist/cjs/node/hash.cjs +0 -40
  104. package/dist/cjs/node/index.cjs +0 -33
  105. package/dist/cjs/node/pkce.cjs +0 -52
  106. package/dist/cjs/node/random-string.cjs +0 -41
  107. package/dist/cjs/node/sanitize.cjs +0 -41
  108. package/dist/cjs/node/uuid.cjs +0 -40
  109. package/dist/esm/dom/accessibility.js +0 -26
  110. package/dist/esm/dom/actions/index.js +0 -3
  111. package/dist/esm/dom/actions/masonry.js +0 -37
  112. package/dist/esm/dom/actions/prefer-horizontal-scroll.js +0 -90
  113. package/dist/esm/dom/actions/sticky.js +0 -70
  114. package/dist/esm/dom/bounding-box.js +0 -44
  115. package/dist/esm/dom/clipboard.js +0 -12
  116. package/dist/esm/dom/cookie.js +0 -31
  117. package/dist/esm/dom/css-vars.js +0 -21
  118. package/dist/esm/dom/events.js +0 -31
  119. package/dist/esm/dom/focusable.js +0 -117
  120. package/dist/esm/dom/font-size.js +0 -40
  121. package/dist/esm/dom/get-element.js +0 -66
  122. package/dist/esm/dom/hash.js +0 -10
  123. package/dist/esm/dom/index.js +0 -23
  124. package/dist/esm/dom/keyboard.js +0 -22
  125. package/dist/esm/dom/local-store.js +0 -54
  126. package/dist/esm/dom/media.js +0 -32
  127. package/dist/esm/dom/observers/index.js +0 -4
  128. package/dist/esm/dom/observers/intersection-observer.js +0 -36
  129. package/dist/esm/dom/observers/mutation-observer.js +0 -40
  130. package/dist/esm/dom/observers/observer.js +0 -15
  131. package/dist/esm/dom/observers/resize-observer.js +0 -29
  132. package/dist/esm/dom/observers/scroll-observer.js +0 -95
  133. package/dist/esm/dom/pkce.js +0 -20
  134. package/dist/esm/dom/query-params.js +0 -13
  135. package/dist/esm/dom/random-string.js +0 -12
  136. package/dist/esm/dom/sanitize.js +0 -8
  137. package/dist/esm/dom/session-store.js +0 -24
  138. package/dist/esm/dom/spam-prevention.js +0 -25
  139. package/dist/esm/dom/trap-focus.js +0 -51
  140. package/dist/esm/dom/ui/aria-current.js +0 -17
  141. package/dist/esm/dom/ui/inconsistent-button-fix.js +0 -10
  142. package/dist/esm/dom/ui/index.js +0 -4
  143. package/dist/esm/dom/ui/scroll-container.js +0 -22
  144. package/dist/esm/dom/ui/traverse-and-scramble.js +0 -25
  145. package/dist/esm/lib/arrays/index.js +0 -6
  146. package/dist/esm/lib/arrays/item-position.js +0 -15
  147. package/dist/esm/lib/arrays/join.js +0 -12
  148. package/dist/esm/lib/arrays/shuffle.js +0 -17
  149. package/dist/esm/lib/arrays/sort.js +0 -36
  150. package/dist/esm/lib/arrays/split-array.js +0 -16
  151. package/dist/esm/lib/arrays/unique.js +0 -6
  152. package/dist/esm/lib/auth/index.js +0 -1
  153. package/dist/esm/lib/auth/route-manager.js +0 -25
  154. package/dist/esm/lib/checks.js +0 -34
  155. package/dist/esm/lib/date/days.js +0 -12
  156. package/dist/esm/lib/date/index.js +0 -3
  157. package/dist/esm/lib/date/months.js +0 -77
  158. package/dist/esm/lib/date/time.js +0 -75
  159. package/dist/esm/lib/form/form-data.js +0 -57
  160. package/dist/esm/lib/form/index.js +0 -2
  161. package/dist/esm/lib/form/sanitize.js +0 -34
  162. package/dist/esm/lib/functions/callback.js +0 -6
  163. package/dist/esm/lib/functions/debounce.js +0 -18
  164. package/dist/esm/lib/functions/env.js +0 -7
  165. package/dist/esm/lib/functions/functional.js +0 -52
  166. package/dist/esm/lib/functions/index.js +0 -5
  167. package/dist/esm/lib/functions/throttle.js +0 -13
  168. package/dist/esm/lib/functions/timeout.js +0 -14
  169. package/dist/esm/lib/hash.js +0 -18
  170. package/dist/esm/lib/index.js +0 -14
  171. package/dist/esm/lib/numbers/index.js +0 -11
  172. package/dist/esm/lib/numbers/math.js +0 -10
  173. package/dist/esm/lib/objects/camelcase-keys.js +0 -16
  174. package/dist/esm/lib/objects/empty.js +0 -13
  175. package/dist/esm/lib/objects/equal.js +0 -11
  176. package/dist/esm/lib/objects/extend.js +0 -13
  177. package/dist/esm/lib/objects/flatten.js +0 -17
  178. package/dist/esm/lib/objects/index.js +0 -13
  179. package/dist/esm/lib/objects/json.js +0 -10
  180. package/dist/esm/lib/objects/loop.js +0 -14
  181. package/dist/esm/lib/objects/mix/mix.js +0 -88
  182. package/dist/esm/lib/objects/nested-property.js +0 -18
  183. package/dist/esm/lib/objects/normalize-object.js +0 -9
  184. package/dist/esm/lib/objects/omit-empty.js +0 -15
  185. package/dist/esm/lib/objects/size.js +0 -38
  186. package/dist/esm/lib/objects/split.js +0 -14
  187. package/dist/esm/lib/promises/index.js +0 -1
  188. package/dist/esm/lib/promises/reject.js +0 -17
  189. package/dist/esm/lib/sse.js +0 -50
  190. package/dist/esm/lib/strings/convert-case/convert-case.js +0 -64
  191. package/dist/esm/lib/strings/index.js +0 -5
  192. package/dist/esm/lib/strings/markdown.js +0 -40
  193. package/dist/esm/lib/strings/name.js +0 -21
  194. package/dist/esm/lib/strings/pluralize.js +0 -5
  195. package/dist/esm/lib/strings/query-string.js +0 -16
  196. package/dist/esm/lib/style/index.js +0 -12
  197. package/dist/esm/lib/symbols/index.js +0 -1
  198. package/dist/esm/lib/symbols/symbols.js +0 -12
  199. package/dist/esm/node/dirname.js +0 -13
  200. package/dist/esm/node/file-cache.js +0 -121
  201. package/dist/esm/node/file.js +0 -14
  202. package/dist/esm/node/hash.js +0 -7
  203. package/dist/esm/node/index.js +0 -7
  204. package/dist/esm/node/pkce.js +0 -19
  205. package/dist/esm/node/random-string.js +0 -8
  206. package/dist/esm/node/sanitize.js +0 -8
  207. package/dist/esm/node/uuid.js +0 -7
  208. package/dist/types/dom/accessibility.d.cts +0 -30
  209. package/dist/types/dom/actions/index.d.cts +0 -3
  210. package/dist/types/dom/actions/masonry.d.cts +0 -5
  211. package/dist/types/dom/actions/prefer-horizontal-scroll.d.cts +0 -5
  212. package/dist/types/dom/actions/sticky.d.cts +0 -5
  213. package/dist/types/dom/bounding-box.d.cts +0 -41
  214. package/dist/types/dom/clipboard.d.cts +0 -7
  215. package/dist/types/dom/cookie.d.cts +0 -7
  216. package/dist/types/dom/css-vars.d.cts +0 -6
  217. package/dist/types/dom/events.d.cts +0 -92
  218. package/dist/types/dom/focusable.d.cts +0 -78
  219. package/dist/types/dom/font-size.d.cts +0 -8
  220. package/dist/types/dom/get-element.d.cts +0 -102
  221. package/dist/types/dom/hash.d.cts +0 -3
  222. package/dist/types/dom/index.d.cts +0 -31
  223. package/dist/types/dom/keyboard.d.cts +0 -32
  224. package/dist/types/dom/local-store.d.cts +0 -31
  225. package/dist/types/dom/media.d.cts +0 -5
  226. package/dist/types/dom/observers/index.d.cts +0 -4
  227. package/dist/types/dom/observers/intersection-observer.d.cts +0 -10
  228. package/dist/types/dom/observers/mutation-observer.d.cts +0 -9
  229. package/dist/types/dom/observers/observer.d.cts +0 -3
  230. package/dist/types/dom/observers/resize-observer.d.cts +0 -40
  231. package/dist/types/dom/observers/scroll-observer.d.cts +0 -40
  232. package/dist/types/dom/pkce.d.cts +0 -8
  233. package/dist/types/dom/query-params.d.cts +0 -6
  234. package/dist/types/dom/random-string.d.cts +0 -9
  235. package/dist/types/dom/sanitize.d.cts +0 -10
  236. package/dist/types/dom/session-store.d.cts +0 -7
  237. package/dist/types/dom/spam-prevention.d.cts +0 -14
  238. package/dist/types/dom/trap-focus.d.cts +0 -32
  239. package/dist/types/dom/ui/aria-current.d.cts +0 -7
  240. package/dist/types/dom/ui/inconsistent-button-fix.d.cts +0 -14
  241. package/dist/types/dom/ui/index.d.cts +0 -4
  242. package/dist/types/dom/ui/scroll-container.d.cts +0 -3
  243. package/dist/types/dom/ui/traverse-and-scramble.d.cts +0 -21
  244. package/dist/types/lib/arrays/index.d.cts +0 -6
  245. package/dist/types/lib/arrays/item-position.d.cts +0 -16
  246. package/dist/types/lib/arrays/join.d.cts +0 -15
  247. package/dist/types/lib/arrays/shuffle.d.cts +0 -3
  248. package/dist/types/lib/arrays/sort.d.cts +0 -32
  249. package/dist/types/lib/arrays/split-array.d.cts +0 -6
  250. package/dist/types/lib/arrays/unique.d.cts +0 -3
  251. package/dist/types/lib/auth/index.d.cts +0 -1
  252. package/dist/types/lib/auth/route-manager.d.cts +0 -28
  253. package/dist/types/lib/checks.d.cts +0 -33
  254. package/dist/types/lib/date/days.d.cts +0 -7
  255. package/dist/types/lib/date/index.d.cts +0 -3
  256. package/dist/types/lib/date/months.d.cts +0 -11
  257. package/dist/types/lib/date/time.d.cts +0 -21
  258. package/dist/types/lib/form/form-data.d.cts +0 -9
  259. package/dist/types/lib/form/index.d.cts +0 -2
  260. package/dist/types/lib/form/sanitize.d.cts +0 -60
  261. package/dist/types/lib/functions/callback.d.cts +0 -8
  262. package/dist/types/lib/functions/debounce.d.cts +0 -3
  263. package/dist/types/lib/functions/env.d.cts +0 -3
  264. package/dist/types/lib/functions/functional.d.cts +0 -72
  265. package/dist/types/lib/functions/index.d.cts +0 -5
  266. package/dist/types/lib/functions/throttle.d.cts +0 -3
  267. package/dist/types/lib/functions/timeout.d.cts +0 -5
  268. package/dist/types/lib/hash.d.cts +0 -3
  269. package/dist/types/lib/index.d.cts +0 -43
  270. package/dist/types/lib/numbers/index.d.cts +0 -5
  271. package/dist/types/lib/numbers/math.d.cts +0 -4
  272. package/dist/types/lib/objects/camelcase-keys.d.cts +0 -3
  273. package/dist/types/lib/objects/empty.d.cts +0 -4
  274. package/dist/types/lib/objects/equal.d.cts +0 -4
  275. package/dist/types/lib/objects/extend.d.cts +0 -6
  276. package/dist/types/lib/objects/flatten.d.cts +0 -6
  277. package/dist/types/lib/objects/index.d.cts +0 -13
  278. package/dist/types/lib/objects/json.d.cts +0 -3
  279. package/dist/types/lib/objects/loop.d.cts +0 -4
  280. package/dist/types/lib/objects/mix/mix.d.cts +0 -44
  281. package/dist/types/lib/objects/nested-property.d.cts +0 -24
  282. package/dist/types/lib/objects/normalize-object.d.cts +0 -3
  283. package/dist/types/lib/objects/omit-empty.d.cts +0 -3
  284. package/dist/types/lib/objects/size.d.cts +0 -3
  285. package/dist/types/lib/objects/split.d.cts +0 -14
  286. package/dist/types/lib/promises/index.d.cts +0 -1
  287. package/dist/types/lib/promises/reject.d.cts +0 -5
  288. package/dist/types/lib/sse.d.cts +0 -18
  289. package/dist/types/lib/strings/convert-case/convert-case.d.cts +0 -10
  290. package/dist/types/lib/strings/index.d.cts +0 -5
  291. package/dist/types/lib/strings/markdown.d.cts +0 -25
  292. package/dist/types/lib/strings/name.d.cts +0 -7
  293. package/dist/types/lib/strings/pluralize.d.cts +0 -3
  294. package/dist/types/lib/strings/query-string.d.cts +0 -10
  295. package/dist/types/lib/style/index.d.cts +0 -3
  296. package/dist/types/lib/symbols/index.d.cts +0 -1
  297. package/dist/types/lib/symbols/symbols.d.cts +0 -4
  298. package/dist/types/node/dirname.d.cts +0 -9
  299. package/dist/types/node/file-cache.d.cts +0 -56
  300. package/dist/types/node/file.d.cts +0 -4
  301. package/dist/types/node/hash.d.cts +0 -3
  302. package/dist/types/node/index.d.cts +0 -7
  303. package/dist/types/node/pkce.d.cts +0 -8
  304. package/dist/types/node/random-string.d.cts +0 -3
  305. package/dist/types/node/sanitize.d.cts +0 -10
  306. package/dist/types/node/uuid.d.cts +0 -3
@@ -1,13 +0,0 @@
1
- export { camelCaseKeys } from './camelcase-keys.cjs';
2
- export { isEmpty, notEmpty } from './empty.cjs';
3
- export { isEqual, notEqual } from './equal.cjs';
4
- export { extendObject } from './extend.cjs';
5
- export { flattenObject } from './flatten.cjs';
6
- export { parseJSON } from './json.cjs';
7
- export { objectForEach, objectMap } from './loop.cjs';
8
- export { concatMix, createMix, mix } from './mix/mix.cjs';
9
- export { getNestedProperty, getNestedProperty2, getNestedValue } from './nested-property.cjs';
10
- export { normalizeObject } from './normalize-object.cjs';
11
- export { omitEmpty } from './omit-empty.cjs';
12
- export { sizeOf } from './size.cjs';
13
- export { splitObject } from './split.cjs';
@@ -1,3 +0,0 @@
1
- declare function parseJSON(value: any, defaultValue?: {}): any;
2
-
3
- export { parseJSON };
@@ -1,4 +0,0 @@
1
- declare function objectForEach(object: any, callback: any): void;
2
- declare function objectMap(object: any, callback: any): any[];
3
-
4
- export { objectForEach, objectMap };
@@ -1,44 +0,0 @@
1
- /**
2
- * Creates a customized mix function with specific options for array handling.
3
- *
4
- * @param {Object} [userOptions={}] - Configuration options for the mix function.
5
- * @param {('replace'|'concat')} [userOptions.array='replace'] - How to handle array merging:
6
- * - 'replace': Arrays from later sources completely replace arrays from earlier sources
7
- * - 'concat': Arrays are concatenated together
8
- * @return {Function} A mix function configured with the provided options.
9
- *
10
- * @example
11
- * // Create mix function that concatenates arrays
12
- * const concatMix = createMix({ array: 'concat' })
13
- * const obj1 = { items: [1, 2] }
14
- * const obj2 = { items: [3, 4] }
15
- * const result = concatMix(obj1, obj2)
16
- * // Returns: { items: [1, 2, 3, 4] }
17
- *
18
- * @example
19
- * // Create mix function that replaces arrays (default behavior)
20
- * const replaceMix = createMix({ array: 'replace' })
21
- * const obj1 = { items: [1, 2] }
22
- * const obj2 = { items: [3, 4] }
23
- * const result = replaceMix(obj1, obj2)
24
- * // Returns: { items: [3, 4] }
25
- */
26
- declare function createMix(userOptions?: {
27
- array?: ("replace" | "concat");
28
- }): Function;
29
- /**
30
- * Deep merges multiple objects into a new object with intelligent handling of arrays and nested objects.
31
- *
32
- * @param {...Object} sources - Objects to merge. Null and undefined values are skipped.
33
- * @return {Object} A new object containing the merged properties from all sources.
34
- *
35
- * @example
36
- * const obj1 = { a: 1, b: { x: 10 } }
37
- * const obj2 = { b: { y: 20 }, c: 3 }
38
- * const result = mix(obj1, obj2)
39
- * // Returns: { a: 1, b: { x: 10, y: 20 }, c: 3 }
40
- */
41
- declare const mix: Function;
42
- declare const concatMix: Function;
43
-
44
- export { concatMix, createMix, mix };
@@ -1,24 +0,0 @@
1
- /**
2
- * Returns the value at the given path in the object.
3
- * If the path does not exist, it returns undefined.
4
- *
5
- * @param {Object} object - The object to get the nested property from.
6
- * @param {Array} pathArr - The array representing the path to the property.
7
- * @return {*} The value at the given path in the object or undefined if the path does not exist.
8
- *
9
- * @example
10
- * let object = {
11
- * one: {
12
- * two: {
13
- * three: "value"
14
- * }
15
- * }
16
- * };
17
- * let path = ['one', 'two', 'three'];
18
- * console.log(getNestedProperty(object, path)); // Outputs: "value"
19
- */
20
- declare function getNestedProperty(object: any, pathArr: any[]): any;
21
- declare function getNestedProperty2(object: any, path: any): any;
22
- declare function getNestedValue(object: any, path: any): any;
23
-
24
- export { getNestedProperty, getNestedProperty2, getNestedValue };
@@ -1,3 +0,0 @@
1
- declare function normalizeObject(object: any): any;
2
-
3
- export { normalizeObject };
@@ -1,3 +0,0 @@
1
- declare function omitEmpty(obj: any, shallow?: boolean): any;
2
-
3
- export { omitEmpty };
@@ -1,3 +0,0 @@
1
- declare function sizeOf(obj: any): string;
2
-
3
- export { sizeOf };
@@ -1,14 +0,0 @@
1
- /**
2
- * Split on object up based on the keys provided.
3
- * @param {Object} obj
4
- * @param {Array} keys
5
- * @returns
6
- */
7
- declare function splitObject(obj: any, keys: any[]): {
8
- picked: {};
9
- omitted: any;
10
- p: {};
11
- o: any;
12
- };
13
-
14
- export { splitObject };
@@ -1 +0,0 @@
1
- export { reject } from './reject.cjs';
@@ -1,5 +0,0 @@
1
- declare function reject(props: any, { includeStack }?: {
2
- includeStack?: boolean;
3
- }): Promise<never>;
4
-
5
- export { reject };
@@ -1,18 +0,0 @@
1
- declare function createSSE({ event, data, id, retry }: {
2
- event: any;
3
- data: any;
4
- id: any;
5
- retry: any;
6
- }): string;
7
- /**
8
- * Parses a single SSE message into a structured object
9
- * @param {string} message - The raw SSE message
10
- * @returns {Object|null} The parsed message or null if invalid
11
- * @property {string} [event] - The event type if specified
12
- * @property {string|Object} data - The message data (parsed as JSON if possible)
13
- * @property {string} [id] - The message ID if specified
14
- * @property {number} [retry] - The retry interval if specified
15
- */
16
- declare function parseSSE(message: string): any | null;
17
-
18
- export { createSSE, parseSSE };
@@ -1,10 +0,0 @@
1
- declare function toKebab(string: any): any;
2
- declare function toCamel(string: any): any;
3
- declare function toPascal(string: any): any;
4
- declare function toTitle(string: any): any;
5
- declare function toSlug(string: any): any;
6
- declare function toSentence(string: any): any;
7
- declare function toUpper(string: any): any;
8
- declare function toLower(string: any): any;
9
-
10
- export { toCamel, toKebab, toLower, toPascal, toSentence, toSlug, toTitle, toUpper };
@@ -1,5 +0,0 @@
1
- export { toCamel, toKebab, toLower, toPascal, toSentence, toSlug, toTitle, toUpper } from './convert-case/convert-case.cjs';
2
- export { markdown, treatMarkdownWhitespace } from './markdown.cjs';
3
- export { parseFullName } from './name.cjs';
4
- export { pluralize } from './pluralize.cjs';
5
- export { plural, stripNumbers, toQueryString } from './query-string.cjs';
@@ -1,25 +0,0 @@
1
- /**
2
- * Converts markdown content to HTML with whitespace handling
3
- * @param {string} content - Markdown content to convert
4
- * @param {Object} [options={}] - Conversion options
5
- * @param {boolean} [options.inline=false] - Whether content should be treated as inline markdown
6
- * @returns {string} Converted HTML string
7
- */
8
- declare function markdown(content: string, options?: {
9
- inline?: boolean;
10
- }): string;
11
- /**
12
- * Handles whitespace in markdown content to ensure proper rendering
13
- * @param {string} content - Markdown content to process
14
- * @param {Object} [options={}] - Processing options
15
- * @param {boolean} [options.inline=false] - Whether content is inline markdown
16
- * @returns {{ content: string, inline: boolean }} Processed content and inline status
17
- */
18
- declare function treatMarkdownWhitespace(content: string, { inline }?: {
19
- inline?: boolean;
20
- }): {
21
- content: string;
22
- inline: boolean;
23
- };
24
-
25
- export { markdown, treatMarkdownWhitespace };
@@ -1,7 +0,0 @@
1
- declare function parseFullName(name: any): {
2
- firstName: any;
3
- middleName: any;
4
- lastName: any;
5
- };
6
-
7
- export { parseFullName };
@@ -1,3 +0,0 @@
1
- declare const pluralize: any;
2
-
3
- export { pluralize };
@@ -1,10 +0,0 @@
1
- /**
2
- * Converts object into a query string
3
- * @param {Object} object
4
- * @returns
5
- */
6
- declare function toQueryString(object: any): string;
7
- declare function plural(count: any, noun: any, suffix?: string): string;
8
- declare function stripNumbers(string: any): any;
9
-
10
- export { plural, stripNumbers, toQueryString };
@@ -1,3 +0,0 @@
1
- declare function toStyleString(style: any): string;
2
-
3
- export { toStyleString };
@@ -1 +0,0 @@
1
- export { getSymbol, getSymbolValue } from './symbols.cjs';
@@ -1,4 +0,0 @@
1
- declare function getSymbol(object: any, description: any): symbol;
2
- declare function getSymbolValue(object: any, description: any): any;
3
-
4
- export { getSymbol, getSymbolValue };
@@ -1,9 +0,0 @@
1
- /**
2
- * Returns __dirname
3
- * @param url — import.meta.url
4
- * @returns
5
- */
6
- declare function __dirname$1(url: any): string;
7
- declare function dirname(url: any): string;
8
-
9
- export { __dirname$1 as __dirname, dirname };
@@ -1,56 +0,0 @@
1
- /**
2
- * Creates a file cache instance for managing cached files in a directory
3
- * @param {string} dir - Absolute or relative path to cache directory
4
- * @returns {Promise<object>} Cache instance
5
- * @property {function(string): Promise<number>} cacheAt - Returns the cached file's modified timestamp, or directory's last modified time if no file specified
6
- * @property {function(string): string} getAbsPath - Returns absolute path for a file in cache
7
- * @property {function(string): Promise<boolean>} hasFile - Checks if a file exists in cache
8
- * @property {function(string): Promise<Buffer|undefined>} loadFile - Loads file contents from cache
9
- * @property {function(string, string|Buffer): Promise<void>} saveFile - Saves data to cache file
10
- * @property {function(string): Promise<object>} loadJSON - Loads and parses JSON from cache file
11
- * @property {function(string, object): Promise<void>} saveJSON - Saves object as JSON to cache file
12
- */
13
- declare function createCache(dir: string): Promise<object>;
14
- /**
15
- * Legacy file cache API for managing a single cached file
16
- * @param {Object} options
17
- * @param {string} options.dir - Absolute or relative path to cache directory
18
- * @param {string} options.file - Filename to cache
19
- * @returns {Promise<{
20
- * modifiedAt: number,
21
- * load: () => Promise<Buffer>,
22
- * save: (data: string|Buffer) => Promise<void>,
23
- * loadJSON: () => Promise<object>,
24
- * saveJSON: (data: object) => Promise<void>
25
- * }>}
26
- */
27
- declare function fileCache({ dir, file }: {
28
- dir: string;
29
- file: string;
30
- }): Promise<{
31
- modifiedAt: number;
32
- load: () => Promise<Buffer>;
33
- save: (data: string | Buffer) => Promise<void>;
34
- loadJSON: () => Promise<object>;
35
- saveJSON: (data: object) => Promise<void>;
36
- }>;
37
- /**
38
- * Gets the most recent modification time of files matching the glob pattern
39
- * @param {string|string[]} globPath - Glob pattern(s) to match files
40
- * @returns {Promise<number>} Timestamp of most recently modified file, or 0 if no files found
41
- */
42
- declare function getLastModifiedTime(globPath: string | string[]): Promise<number>;
43
- /**
44
- * @deprecated Use getLastModifiedTime instead
45
- * @param {string|string[]} globPath - Glob pattern(s) to match files
46
- * @returns {Promise<number>} Timestamp of most recently modified file, or 0 if no files found
47
- */
48
- declare function getLatestModifiedTime(globPath: string | string[]): Promise<number>;
49
- /**
50
- * Removes leading slash from a path string
51
- * @param {string} x - Path string to process
52
- * @returns {string} Path without leading slash
53
- */
54
- declare function removeFirstSlash(x: string): string;
55
-
56
- export { createCache, fileCache, getLastModifiedTime, getLatestModifiedTime, removeFirstSlash };
@@ -1,4 +0,0 @@
1
- declare function mkdir(path: any): Promise<string>;
2
- declare function copyFile(from: any, to: any): Promise<void>;
3
-
4
- export { copyFile, mkdir };
@@ -1,3 +0,0 @@
1
- declare function sha256Hash(string: any): string;
2
-
3
- export { sha256Hash };
@@ -1,7 +0,0 @@
1
- export { __dirname, dirname } from './dirname.cjs';
2
- export { createCache, fileCache, getLastModifiedTime, getLatestModifiedTime, removeFirstSlash } from './file-cache.cjs';
3
- export { sha256Hash } from './hash.cjs';
4
- export { PKCE } from './pkce.cjs';
5
- export { randomString } from './random-string.cjs';
6
- export { sanitize } from './sanitize.cjs';
7
- export { uuid } from './uuid.cjs';
@@ -1,8 +0,0 @@
1
- declare function PKCE(): Promise<{
2
- state: string;
3
- code_verifier: string;
4
- code_challenge: string;
5
- code_challenge_method: string;
6
- }>;
7
-
8
- export { PKCE };
@@ -1,3 +0,0 @@
1
- declare function randomString(length?: number): string;
2
-
3
- export { randomString };
@@ -1,10 +0,0 @@
1
- /**
2
- * Sanitizes values using sanitize-html
3
- * @param {*} value - Value to sanitize (string, array, or object)
4
- * @param {Object} [options={}] - sanitize-html options
5
- * @returns {*} Sanitized value
6
- * @throws {Error} If input is a string but sanitize-html fails
7
- */
8
- declare function sanitize(value: any, options?: any): any;
9
-
10
- export { sanitize };
@@ -1,3 +0,0 @@
1
- declare function uuid(): `${string}-${string}-${string}-${string}-${string}`;
2
-
3
- export { uuid };