@koine/utils 2.0.0-beta.37 → 2.0.0-beta.39

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 (602) hide show
  1. package/Defer.d.ts +0 -1
  2. package/Emitter.d.ts +2 -3
  3. package/README.md +48 -0
  4. package/accentSets.d.ts +1 -2
  5. package/addOrReplaceAtIdx.d.ts +1 -2
  6. package/areEqual.d.ts +2 -2
  7. package/arrayFilterFalsy.d.ts +1 -2
  8. package/arrayOfAll.d.ts +1 -2
  9. package/arraySum.d.ts +1 -2
  10. package/arrayToLookup.d.ts +1 -2
  11. package/arrayUniqueByProperties.d.ts +1 -2
  12. package/buildUrlQueryString.d.ts +2 -3
  13. package/capitalize.d.ts +1 -2
  14. package/changeCaseCamel.d.ts +2 -0
  15. package/changeCaseCapital.d.ts +2 -0
  16. package/changeCaseConstant.d.ts +2 -0
  17. package/changeCaseDot.d.ts +2 -0
  18. package/changeCaseHelpers.d.ts +19 -0
  19. package/changeCaseKebab.d.ts +2 -0
  20. package/changeCaseNone.d.ts +2 -0
  21. package/changeCasePascal.d.ts +2 -0
  22. package/changeCasePascalSnake.d.ts +2 -0
  23. package/changeCasePath.d.ts +2 -0
  24. package/changeCaseSentence.d.ts +2 -0
  25. package/changeCaseSnake.d.ts +2 -0
  26. package/changeCaseTrain.d.ts +2 -0
  27. package/chunkByChunks.d.ts +1 -2
  28. package/chunkBySize.d.ts +1 -2
  29. package/clamp.d.ts +1 -2
  30. package/clsx.d.ts +2 -2
  31. package/convertRange.d.ts +1 -2
  32. package/cookie.d.ts +1 -1
  33. package/createPalette.d.ts +2 -2
  34. package/debounce.d.ts +1 -2
  35. package/debouncePromise.d.ts +1 -2
  36. package/debounceRaf.d.ts +0 -1
  37. package/decode.d.ts +1 -2
  38. package/encode.d.ts +1 -2
  39. package/ensureInt.d.ts +1 -2
  40. package/errorToString.d.ts +1 -2
  41. package/findDuplicatedIndexes.d.ts +1 -2
  42. package/forin.d.ts +1 -2
  43. package/gbToBytes.d.ts +1 -2
  44. package/getEmptyArray.d.ts +1 -2
  45. package/getKeys.d.ts +1 -2
  46. package/getMediaQueryWidthResolvers.d.ts +1 -2
  47. package/getMediaQueryWidthTailwindScreens.d.ts +2 -3
  48. package/getNonce.d.ts +1 -2
  49. package/getParamAmong.d.ts +1 -2
  50. package/getParamAsInt.d.ts +1 -2
  51. package/getParamAsString.d.ts +1 -2
  52. package/getType.d.ts +1 -2
  53. package/getUrlHashParams.d.ts +1 -3
  54. package/getUrlHashPathname.d.ts +1 -2
  55. package/getUrlPathnameParts.d.ts +1 -2
  56. package/getUrlQueryParams.d.ts +1 -3
  57. package/imgEmptyPixel.d.ts +1 -2
  58. package/index.cjs.d.ts +1 -0
  59. package/index.cjs.default.js +1 -0
  60. package/index.cjs.js +473 -0
  61. package/index.cjs.mjs +2 -0
  62. package/index.d.ts +149 -140
  63. package/index.esm.js +324 -0
  64. package/invariant.d.ts +1 -2
  65. package/isAnyObject.d.ts +2 -3
  66. package/isArray.d.ts +1 -2
  67. package/isBlob.d.ts +1 -2
  68. package/isBoolean.d.ts +1 -2
  69. package/isBrowser.d.ts +1 -2
  70. package/isBrowserNow.d.ts +1 -2
  71. package/isDate.d.ts +1 -2
  72. package/isEmptyArray.d.ts +1 -2
  73. package/isEmptyObject.d.ts +4 -3
  74. package/isEmptyString.d.ts +1 -2
  75. package/isError.d.ts +1 -2
  76. package/isExternalUrl.d.ts +1 -2
  77. package/isFile.d.ts +1 -2
  78. package/isFloat.d.ts +1 -2
  79. package/isFormData.d.ts +1 -2
  80. package/isFullArray.d.ts +1 -2
  81. package/isFullObject.d.ts +2 -3
  82. package/isFullString.d.ts +1 -2
  83. package/isFunction.d.ts +2 -3
  84. package/isInt.d.ts +1 -2
  85. package/isMap.d.ts +1 -2
  86. package/isNaNValue.d.ts +1 -2
  87. package/isNegativeNumber.d.ts +1 -2
  88. package/isNull.d.ts +1 -2
  89. package/isNullOrUndefined.d.ts +1 -2
  90. package/isNumber.d.ts +1 -2
  91. package/isNumericLiteral.d.ts +1 -2
  92. package/isObject.d.ts +2 -3
  93. package/isObjectLike.d.ts +2 -3
  94. package/isOneOf.d.ts +1 -2
  95. package/isPlainObject.d.ts +2 -3
  96. package/isPositiveNumber.d.ts +1 -2
  97. package/isPrimitive.d.ts +1 -2
  98. package/isPromise.d.ts +1 -2
  99. package/isRegExp.d.ts +1 -2
  100. package/isServer.d.ts +1 -2
  101. package/isServerNow.d.ts +1 -2
  102. package/isSet.d.ts +1 -2
  103. package/isString.d.ts +1 -2
  104. package/isSymbol.d.ts +1 -2
  105. package/isType.d.ts +2 -3
  106. package/isUndefined.d.ts +1 -2
  107. package/isWeakMap.d.ts +1 -2
  108. package/isWeakSet.d.ts +1 -2
  109. package/kbToBytes.d.ts +1 -2
  110. package/lowercase.d.ts +1 -2
  111. package/mapListBy.d.ts +1 -2
  112. package/matchSorter.d.ts +2 -3
  113. package/mbToBytes.d.ts +1 -2
  114. package/mergeObjects.d.ts +1 -1
  115. package/mergeUrlQueryParams.d.ts +2 -3
  116. package/moveSortableArrayItemByKey.d.ts +1 -2
  117. package/noop.d.ts +1 -2
  118. package/normaliseUrl.d.ts +1 -2
  119. package/normaliseUrlPathname.d.ts +1 -2
  120. package/objectFlat.d.ts +3 -0
  121. package/objectFlip.d.ts +1 -2
  122. package/objectOmit.d.ts +1 -2
  123. package/objectPick.d.ts +1 -2
  124. package/objectToArray.d.ts +1 -2
  125. package/package.json +10 -590
  126. package/parseCookie.d.ts +2 -3
  127. package/parseURL.d.ts +1 -2
  128. package/quaranteneProps.d.ts +2 -2
  129. package/randomInt.d.ts +1 -2
  130. package/randomKey.d.ts +1 -2
  131. package/readCookie.d.ts +0 -1
  132. package/removeAccents.d.ts +2 -3
  133. package/removeCookie.d.ts +2 -3
  134. package/removeDuplicatesByKey.d.ts +1 -2
  135. package/removeDuplicatesComparing.d.ts +1 -2
  136. package/removeIndexesFromArray.d.ts +1 -2
  137. package/removeTrailingSlash.d.ts +1 -2
  138. package/removeUrlQueryParams.d.ts +1 -2
  139. package/render.d.ts +2 -2
  140. package/round.d.ts +2 -3
  141. package/roundTo.d.ts +1 -2
  142. package/serializeCookie.d.ts +2 -3
  143. package/setCookie.d.ts +2 -3
  144. package/shuffle.d.ts +1 -2
  145. package/slugify.d.ts +1 -2
  146. package/split.d.ts +1 -2
  147. package/swapMap.d.ts +1 -2
  148. package/throttle.d.ts +1 -2
  149. package/titleCase.d.ts +1 -2
  150. package/toNumber.d.ts +1 -2
  151. package/toRgba.d.ts +1 -2
  152. package/transformToUrlPathname.d.ts +1 -2
  153. package/truncate.d.ts +1 -2
  154. package/tryUntil.d.ts +1 -2
  155. package/uid.d.ts +1 -2
  156. package/updateLinkParams.d.ts +2 -3
  157. package/updateUrlQueryParams.d.ts +2 -3
  158. package/uppercase.d.ts +1 -2
  159. package/uuid.d.ts +1 -2
  160. package/uuidNumeric.d.ts +1 -2
  161. package/wait.d.ts +1 -2
  162. package/Defer.js +0 -11
  163. package/Emitter.js +0 -20
  164. package/accentSets.js +0 -30
  165. package/addOrReplaceAtIdx.js +0 -16
  166. package/areEqual.js +0 -58
  167. package/arrayFilterFalsy.js +0 -4
  168. package/arrayOfAll.js +0 -6
  169. package/arraySum.js +0 -4
  170. package/arrayToLookup.js +0 -8
  171. package/arrayUniqueByProperties.js +0 -8
  172. package/buildUrlQueryString.js +0 -21
  173. package/capitalize.js +0 -6
  174. package/changeUrlPath.d.ts +0 -2
  175. package/changeUrlPath.js +0 -10
  176. package/chunkByChunks.js +0 -32
  177. package/chunkBySize.js +0 -8
  178. package/cjs/Defer.d.ts +0 -6
  179. package/cjs/Defer.js +0 -15
  180. package/cjs/Emitter.d.ts +0 -7
  181. package/cjs/Emitter.js +0 -24
  182. package/cjs/accentSets.d.ts +0 -3
  183. package/cjs/accentSets.js +0 -33
  184. package/cjs/addOrReplaceAtIdx.d.ts +0 -2
  185. package/cjs/addOrReplaceAtIdx.js +0 -20
  186. package/cjs/areEqual.d.ts +0 -4
  187. package/cjs/areEqual.js +0 -62
  188. package/cjs/arrayFilterFalsy.d.ts +0 -2
  189. package/cjs/arrayFilterFalsy.js +0 -8
  190. package/cjs/arrayOfAll.d.ts +0 -2
  191. package/cjs/arrayOfAll.js +0 -10
  192. package/cjs/arraySum.d.ts +0 -2
  193. package/cjs/arraySum.js +0 -8
  194. package/cjs/arrayToLookup.d.ts +0 -2
  195. package/cjs/arrayToLookup.js +0 -12
  196. package/cjs/arrayUniqueByProperties.d.ts +0 -2
  197. package/cjs/arrayUniqueByProperties.js +0 -12
  198. package/cjs/buildUrlQueryString.d.ts +0 -3
  199. package/cjs/buildUrlQueryString.js +0 -25
  200. package/cjs/capitalize.d.ts +0 -2
  201. package/cjs/capitalize.js +0 -10
  202. package/cjs/changeUrlPath.d.ts +0 -2
  203. package/cjs/changeUrlPath.js +0 -14
  204. package/cjs/chunkByChunks.d.ts +0 -2
  205. package/cjs/chunkByChunks.js +0 -36
  206. package/cjs/chunkBySize.d.ts +0 -2
  207. package/cjs/chunkBySize.js +0 -12
  208. package/cjs/clamp.d.ts +0 -2
  209. package/cjs/clamp.js +0 -8
  210. package/cjs/clsx.d.ts +0 -6
  211. package/cjs/clsx.js +0 -44
  212. package/cjs/convertRange.d.ts +0 -2
  213. package/cjs/convertRange.js +0 -8
  214. package/cjs/cookie.d.ts +0 -18
  215. package/cjs/cookie.js +0 -4
  216. package/cjs/createPalette.d.ts +0 -10
  217. package/cjs/createPalette.js +0 -16
  218. package/cjs/debounce.d.ts +0 -2
  219. package/cjs/debounce.js +0 -26
  220. package/cjs/debouncePromise.d.ts +0 -11
  221. package/cjs/debouncePromise.js +0 -69
  222. package/cjs/debounceRaf.d.ts +0 -2
  223. package/cjs/debounceRaf.js +0 -21
  224. package/cjs/decode.d.ts +0 -2
  225. package/cjs/decode.js +0 -10
  226. package/cjs/encode.d.ts +0 -2
  227. package/cjs/encode.js +0 -10
  228. package/cjs/ensureInt.d.ts +0 -2
  229. package/cjs/ensureInt.js +0 -8
  230. package/cjs/env.d.ts +0 -0
  231. package/cjs/env.js +0 -1
  232. package/cjs/errorToString.d.ts +0 -2
  233. package/cjs/errorToString.js +0 -9
  234. package/cjs/findDuplicatedIndexes.d.ts +0 -2
  235. package/cjs/findDuplicatedIndexes.js +0 -15
  236. package/cjs/forin.d.ts +0 -2
  237. package/cjs/forin.js +0 -10
  238. package/cjs/gbToBytes.d.ts +0 -2
  239. package/cjs/gbToBytes.js +0 -6
  240. package/cjs/getEmptyArray.d.ts +0 -2
  241. package/cjs/getEmptyArray.js +0 -12
  242. package/cjs/getKeys.d.ts +0 -2
  243. package/cjs/getKeys.js +0 -5
  244. package/cjs/getMediaQueryWidthResolvers.d.ts +0 -10
  245. package/cjs/getMediaQueryWidthResolvers.js +0 -44
  246. package/cjs/getMediaQueryWidthTailwindScreens.d.ts +0 -5
  247. package/cjs/getMediaQueryWidthTailwindScreens.js +0 -31
  248. package/cjs/getNonce.d.ts +0 -2
  249. package/cjs/getNonce.js +0 -9
  250. package/cjs/getParamAmong.d.ts +0 -2
  251. package/cjs/getParamAmong.js +0 -11
  252. package/cjs/getParamAsInt.d.ts +0 -2
  253. package/cjs/getParamAsInt.js +0 -14
  254. package/cjs/getParamAsString.d.ts +0 -2
  255. package/cjs/getParamAsString.js +0 -9
  256. package/cjs/getType.d.ts +0 -7
  257. package/cjs/getType.js +0 -8
  258. package/cjs/getUrlHashParams.d.ts +0 -3
  259. package/cjs/getUrlHashParams.js +0 -14
  260. package/cjs/getUrlHashPathname.d.ts +0 -2
  261. package/cjs/getUrlHashPathname.js +0 -10
  262. package/cjs/getUrlPathnameParts.d.ts +0 -2
  263. package/cjs/getUrlPathnameParts.js +0 -14
  264. package/cjs/getUrlQueryParams.d.ts +0 -3
  265. package/cjs/getUrlQueryParams.js +0 -29
  266. package/cjs/imgEmptyPixel.d.ts +0 -2
  267. package/cjs/imgEmptyPixel.js +0 -5
  268. package/cjs/index.d.ts +0 -141
  269. package/cjs/index.js +0 -279
  270. package/cjs/invariant.d.ts +0 -2
  271. package/cjs/invariant.js +0 -21
  272. package/cjs/isAnyObject.d.ts +0 -3
  273. package/cjs/isAnyObject.js +0 -9
  274. package/cjs/isArray.d.ts +0 -2
  275. package/cjs/isArray.js +0 -9
  276. package/cjs/isBlob.d.ts +0 -2
  277. package/cjs/isBlob.js +0 -9
  278. package/cjs/isBoolean.d.ts +0 -2
  279. package/cjs/isBoolean.js +0 -9
  280. package/cjs/isBrowser.d.ts +0 -2
  281. package/cjs/isBrowser.js +0 -5
  282. package/cjs/isBrowserNow.d.ts +0 -2
  283. package/cjs/isBrowserNow.js +0 -7
  284. package/cjs/isDate.d.ts +0 -2
  285. package/cjs/isDate.js +0 -9
  286. package/cjs/isEmptyArray.d.ts +0 -2
  287. package/cjs/isEmptyArray.js +0 -9
  288. package/cjs/isEmptyObject.d.ts +0 -4
  289. package/cjs/isEmptyObject.js +0 -9
  290. package/cjs/isEmptyString.d.ts +0 -2
  291. package/cjs/isEmptyString.js +0 -8
  292. package/cjs/isError.d.ts +0 -2
  293. package/cjs/isError.js +0 -9
  294. package/cjs/isExternalUrl.d.ts +0 -2
  295. package/cjs/isExternalUrl.js +0 -16
  296. package/cjs/isFile.d.ts +0 -2
  297. package/cjs/isFile.js +0 -9
  298. package/cjs/isFloat.d.ts +0 -2
  299. package/cjs/isFloat.js +0 -9
  300. package/cjs/isFormData.d.ts +0 -2
  301. package/cjs/isFormData.js +0 -9
  302. package/cjs/isFullArray.d.ts +0 -2
  303. package/cjs/isFullArray.js +0 -9
  304. package/cjs/isFullObject.d.ts +0 -3
  305. package/cjs/isFullObject.js +0 -9
  306. package/cjs/isFullString.d.ts +0 -2
  307. package/cjs/isFullString.js +0 -9
  308. package/cjs/isFunction.d.ts +0 -3
  309. package/cjs/isFunction.js +0 -8
  310. package/cjs/isInt.d.ts +0 -2
  311. package/cjs/isInt.js +0 -9
  312. package/cjs/isMap.d.ts +0 -2
  313. package/cjs/isMap.js +0 -9
  314. package/cjs/isNaNValue.d.ts +0 -2
  315. package/cjs/isNaNValue.js +0 -9
  316. package/cjs/isNegativeNumber.d.ts +0 -2
  317. package/cjs/isNegativeNumber.js +0 -9
  318. package/cjs/isNull.d.ts +0 -2
  319. package/cjs/isNull.js +0 -9
  320. package/cjs/isNullOrUndefined.d.ts +0 -2
  321. package/cjs/isNullOrUndefined.js +0 -8
  322. package/cjs/isNumber.d.ts +0 -2
  323. package/cjs/isNumber.js +0 -9
  324. package/cjs/isNumericLiteral.d.ts +0 -2
  325. package/cjs/isNumericLiteral.js +0 -8
  326. package/cjs/isObject.d.ts +0 -3
  327. package/cjs/isObject.js +0 -9
  328. package/cjs/isObjectLike.d.ts +0 -3
  329. package/cjs/isObjectLike.js +0 -9
  330. package/cjs/isOneOf.d.ts +0 -6
  331. package/cjs/isOneOf.js +0 -14
  332. package/cjs/isPlainObject.d.ts +0 -3
  333. package/cjs/isPlainObject.js +0 -12
  334. package/cjs/isPositiveNumber.d.ts +0 -2
  335. package/cjs/isPositiveNumber.js +0 -9
  336. package/cjs/isPrimitive.d.ts +0 -2
  337. package/cjs/isPrimitive.js +0 -19
  338. package/cjs/isPromise.d.ts +0 -2
  339. package/cjs/isPromise.js +0 -9
  340. package/cjs/isRegExp.d.ts +0 -2
  341. package/cjs/isRegExp.js +0 -9
  342. package/cjs/isServer.d.ts +0 -2
  343. package/cjs/isServer.js +0 -6
  344. package/cjs/isServerNow.d.ts +0 -2
  345. package/cjs/isServerNow.js +0 -7
  346. package/cjs/isSet.d.ts +0 -2
  347. package/cjs/isSet.js +0 -9
  348. package/cjs/isString.d.ts +0 -2
  349. package/cjs/isString.js +0 -9
  350. package/cjs/isSymbol.d.ts +0 -2
  351. package/cjs/isSymbol.js +0 -9
  352. package/cjs/isType.d.ts +0 -3
  353. package/cjs/isType.js +0 -17
  354. package/cjs/isUndefined.d.ts +0 -2
  355. package/cjs/isUndefined.js +0 -9
  356. package/cjs/isWeakMap.d.ts +0 -2
  357. package/cjs/isWeakMap.js +0 -9
  358. package/cjs/isWeakSet.d.ts +0 -2
  359. package/cjs/isWeakSet.js +0 -9
  360. package/cjs/kbToBytes.d.ts +0 -2
  361. package/cjs/kbToBytes.js +0 -6
  362. package/cjs/location.d.ts +0 -1
  363. package/cjs/location.js +0 -2
  364. package/cjs/lowercase.d.ts +0 -2
  365. package/cjs/lowercase.js +0 -8
  366. package/cjs/mapListBy.d.ts +0 -2
  367. package/cjs/mapListBy.js +0 -13
  368. package/cjs/matchSorter.d.ts +0 -54
  369. package/cjs/matchSorter.js +0 -259
  370. package/cjs/mbToBytes.d.ts +0 -2
  371. package/cjs/mbToBytes.js +0 -6
  372. package/cjs/mergeObjects.d.ts +0 -1
  373. package/cjs/mergeObjects.js +0 -37
  374. package/cjs/mergeUrlQueryParams.d.ts +0 -3
  375. package/cjs/mergeUrlQueryParams.js +0 -20
  376. package/cjs/moveSortableArrayItemByKey.d.ts +0 -2
  377. package/cjs/moveSortableArrayItemByKey.js +0 -14
  378. package/cjs/noop.d.ts +0 -2
  379. package/cjs/noop.js +0 -6
  380. package/cjs/normaliseUrl.d.ts +0 -2
  381. package/cjs/normaliseUrl.js +0 -10
  382. package/cjs/normaliseUrlPathname.d.ts +0 -2
  383. package/cjs/normaliseUrlPathname.js +0 -10
  384. package/cjs/objectFlip.d.ts +0 -2
  385. package/cjs/objectFlip.js +0 -15
  386. package/cjs/objectOmit.d.ts +0 -2
  387. package/cjs/objectOmit.js +0 -14
  388. package/cjs/objectPick.d.ts +0 -2
  389. package/cjs/objectPick.js +0 -13
  390. package/cjs/objectToArray.d.ts +0 -2
  391. package/cjs/objectToArray.js +0 -8
  392. package/cjs/package.json +0 -9
  393. package/cjs/parseCookie.d.ts +0 -3
  394. package/cjs/parseCookie.js +0 -38
  395. package/cjs/parseURL.d.ts +0 -11
  396. package/cjs/parseURL.js +0 -18
  397. package/cjs/quaranteneProps.d.ts +0 -7
  398. package/cjs/quaranteneProps.js +0 -20
  399. package/cjs/randomInt.d.ts +0 -2
  400. package/cjs/randomInt.js +0 -8
  401. package/cjs/randomKey.d.ts +0 -2
  402. package/cjs/randomKey.js +0 -9
  403. package/cjs/readCookie.d.ts +0 -3
  404. package/cjs/readCookie.js +0 -38
  405. package/cjs/removeAccents.d.ts +0 -3
  406. package/cjs/removeAccents.js +0 -17
  407. package/cjs/removeCookie.d.ts +0 -3
  408. package/cjs/removeCookie.js +0 -12
  409. package/cjs/removeDuplicates.d.ts +0 -0
  410. package/cjs/removeDuplicates.js +0 -1
  411. package/cjs/removeDuplicatesByKey.d.ts +0 -2
  412. package/cjs/removeDuplicatesByKey.js +0 -18
  413. package/cjs/removeDuplicatesComparing.d.ts +0 -2
  414. package/cjs/removeDuplicatesComparing.js +0 -11
  415. package/cjs/removeIndexesFromArray.d.ts +0 -2
  416. package/cjs/removeIndexesFromArray.js +0 -14
  417. package/cjs/removeTrailingSlash.d.ts +0 -2
  418. package/cjs/removeTrailingSlash.js +0 -9
  419. package/cjs/removeUrlQueryParams.d.ts +0 -2
  420. package/cjs/removeUrlQueryParams.js +0 -19
  421. package/cjs/render.d.ts +0 -13
  422. package/cjs/render.js +0 -123
  423. package/cjs/round.d.ts +0 -3
  424. package/cjs/round.js +0 -10
  425. package/cjs/roundTo.d.ts +0 -2
  426. package/cjs/roundTo.js +0 -16
  427. package/cjs/serializeCookie.d.ts +0 -3
  428. package/cjs/serializeCookie.js +0 -74
  429. package/cjs/setCookie.d.ts +0 -3
  430. package/cjs/setCookie.js +0 -47
  431. package/cjs/shuffle.d.ts +0 -2
  432. package/cjs/shuffle.js +0 -22
  433. package/cjs/slugify.d.ts +0 -2
  434. package/cjs/slugify.js +0 -18
  435. package/cjs/split.d.ts +0 -3
  436. package/cjs/split.js +0 -6
  437. package/cjs/swapMap.d.ts +0 -2
  438. package/cjs/swapMap.js +0 -13
  439. package/cjs/throttle.d.ts +0 -3
  440. package/cjs/throttle.js +0 -24
  441. package/cjs/titleCase.d.ts +0 -2
  442. package/cjs/titleCase.js +0 -10
  443. package/cjs/toNumber.d.ts +0 -2
  444. package/cjs/toNumber.js +0 -9
  445. package/cjs/toRgba.d.ts +0 -2
  446. package/cjs/toRgba.js +0 -13
  447. package/cjs/transformToUrlPathname.d.ts +0 -2
  448. package/cjs/transformToUrlPathname.js +0 -11
  449. package/cjs/truncate.d.ts +0 -2
  450. package/cjs/truncate.js +0 -12
  451. package/cjs/tryUntil.d.ts +0 -2
  452. package/cjs/tryUntil.js +0 -19
  453. package/cjs/types.d.ts +0 -10
  454. package/cjs/types.js +0 -2
  455. package/cjs/uid.d.ts +0 -2
  456. package/cjs/uid.js +0 -11
  457. package/cjs/updateLinkParams.d.ts +0 -3
  458. package/cjs/updateLinkParams.js +0 -11
  459. package/cjs/updateUrlQueryParams.d.ts +0 -3
  460. package/cjs/updateUrlQueryParams.js +0 -16
  461. package/cjs/uppercase.d.ts +0 -2
  462. package/cjs/uppercase.js +0 -8
  463. package/cjs/uuid.d.ts +0 -2
  464. package/cjs/uuid.js +0 -11
  465. package/cjs/uuidNumeric.d.ts +0 -2
  466. package/cjs/uuidNumeric.js +0 -6
  467. package/cjs/wait.d.ts +0 -2
  468. package/cjs/wait.js +0 -8
  469. package/cjs/without.d.ts +0 -0
  470. package/cjs/without.js +0 -1
  471. package/clamp.js +0 -4
  472. package/clsx.js +0 -40
  473. package/convertRange.js +0 -4
  474. package/cookie.js +0 -1
  475. package/createPalette.js +0 -12
  476. package/debounce.js +0 -22
  477. package/debouncePromise.js +0 -65
  478. package/debounceRaf.js +0 -17
  479. package/decode.js +0 -6
  480. package/encode.js +0 -6
  481. package/ensureInt.js +0 -4
  482. package/env.js +0 -1
  483. package/errorToString.js +0 -5
  484. package/findDuplicatedIndexes.js +0 -11
  485. package/forin.js +0 -6
  486. package/gbToBytes.js +0 -2
  487. package/getEmptyArray.js +0 -8
  488. package/getKeys.js +0 -2
  489. package/getMediaQueryWidthResolvers.js +0 -40
  490. package/getMediaQueryWidthTailwindScreens.js +0 -27
  491. package/getNonce.js +0 -5
  492. package/getParamAmong.js +0 -7
  493. package/getParamAsInt.js +0 -10
  494. package/getParamAsString.js +0 -5
  495. package/getType.js +0 -4
  496. package/getUrlHashParams.js +0 -10
  497. package/getUrlHashPathname.js +0 -6
  498. package/getUrlPathnameParts.js +0 -10
  499. package/getUrlQueryParams.js +0 -25
  500. package/imgEmptyPixel.js +0 -2
  501. package/index.js +0 -137
  502. package/invariant.js +0 -17
  503. package/isAnyObject.js +0 -5
  504. package/isArray.js +0 -5
  505. package/isBlob.js +0 -5
  506. package/isBoolean.js +0 -5
  507. package/isBrowser.js +0 -2
  508. package/isBrowserNow.js +0 -3
  509. package/isDate.js +0 -5
  510. package/isEmptyArray.js +0 -5
  511. package/isEmptyObject.js +0 -5
  512. package/isEmptyString.js +0 -4
  513. package/isError.js +0 -5
  514. package/isExternalUrl.js +0 -12
  515. package/isFile.js +0 -5
  516. package/isFloat.js +0 -5
  517. package/isFormData.js +0 -5
  518. package/isFullArray.js +0 -5
  519. package/isFullObject.js +0 -5
  520. package/isFullString.js +0 -5
  521. package/isFunction.js +0 -4
  522. package/isInt.js +0 -5
  523. package/isMap.js +0 -5
  524. package/isNaNValue.js +0 -5
  525. package/isNegativeNumber.js +0 -5
  526. package/isNull.js +0 -5
  527. package/isNullOrUndefined.js +0 -5
  528. package/isNumber.js +0 -5
  529. package/isNumericLiteral.js +0 -4
  530. package/isObject.js +0 -5
  531. package/isObjectLike.js +0 -5
  532. package/isOneOf.js +0 -10
  533. package/isPlainObject.js +0 -8
  534. package/isPositiveNumber.js +0 -5
  535. package/isPrimitive.js +0 -15
  536. package/isPromise.js +0 -5
  537. package/isRegExp.js +0 -5
  538. package/isServer.js +0 -3
  539. package/isServerNow.js +0 -3
  540. package/isSet.js +0 -5
  541. package/isString.js +0 -5
  542. package/isSymbol.js +0 -5
  543. package/isType.js +0 -13
  544. package/isUndefined.js +0 -5
  545. package/isWeakMap.js +0 -5
  546. package/isWeakSet.js +0 -5
  547. package/kbToBytes.js +0 -2
  548. package/location.js +0 -1
  549. package/lowercase.js +0 -4
  550. package/mapListBy.js +0 -9
  551. package/matchSorter.js +0 -255
  552. package/mbToBytes.js +0 -2
  553. package/mergeObjects.js +0 -33
  554. package/mergeUrlQueryParams.js +0 -16
  555. package/moveSortableArrayItemByKey.js +0 -10
  556. package/noop.js +0 -2
  557. package/normaliseUrl.js +0 -6
  558. package/normaliseUrlPathname.js +0 -6
  559. package/objectFlip.js +0 -11
  560. package/objectOmit.js +0 -10
  561. package/objectPick.js +0 -9
  562. package/objectToArray.js +0 -4
  563. package/parseCookie.js +0 -34
  564. package/parseURL.js +0 -14
  565. package/quaranteneProps.js +0 -16
  566. package/randomInt.js +0 -4
  567. package/randomKey.js +0 -5
  568. package/readCookie.js +0 -34
  569. package/removeAccents.js +0 -13
  570. package/removeCookie.js +0 -8
  571. package/removeDuplicates.js +0 -1
  572. package/removeDuplicatesByKey.js +0 -14
  573. package/removeDuplicatesComparing.js +0 -7
  574. package/removeIndexesFromArray.js +0 -10
  575. package/removeTrailingSlash.js +0 -5
  576. package/removeUrlQueryParams.js +0 -15
  577. package/render.js +0 -119
  578. package/round.js +0 -6
  579. package/roundTo.js +0 -12
  580. package/serializeCookie.js +0 -70
  581. package/setCookie.js +0 -43
  582. package/shuffle.js +0 -18
  583. package/slugify.js +0 -14
  584. package/split.js +0 -2
  585. package/swapMap.js +0 -9
  586. package/throttle.js +0 -20
  587. package/titleCase.js +0 -6
  588. package/toNumber.js +0 -5
  589. package/toRgba.js +0 -9
  590. package/transformToUrlPathname.js +0 -7
  591. package/truncate.js +0 -8
  592. package/tryUntil.js +0 -15
  593. package/types.js +0 -1
  594. package/typings.d.ts +0 -35
  595. package/uid.js +0 -7
  596. package/updateLinkParams.js +0 -7
  597. package/updateUrlQueryParams.js +0 -12
  598. package/uppercase.js +0 -4
  599. package/uuid.js +0 -7
  600. package/uuidNumeric.js +0 -2
  601. package/wait.js +0 -4
  602. package/without.js +0 -1
package/Defer.d.ts CHANGED
@@ -3,4 +3,3 @@ export type Deferred<T> = Promise<T> & {
3
3
  reject: PromiseConstructor["reject"];
4
4
  };
5
5
  export declare function Defer<T>(): Deferred<T>;
6
- export default Defer;
package/Emitter.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- export declare function Emitter<EventMap extends {
1
+ export declare let Emitter: <EventMap extends {
2
2
  [key: string]: any;
3
- }>(namespace: string): {
3
+ }>(namespace: string) => {
4
4
  on<EventName extends keyof EventMap>(name: EventName, handler: (data?: EventMap[EventName] | undefined) => any): void;
5
5
  emit<EventName_1 extends keyof EventMap>(name: EventName_1, data?: EventMap[EventName_1] | undefined): void;
6
6
  };
7
- export default Emitter;
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @koine/utils
2
+
3
+ Libraries to encapsulate and re-export from here, the selection is based on:
4
+
5
+ - [x] full typescript support
6
+ - [x] treeshake-ability
7
+ - [x] docs in source comments
8
+
9
+ - [dhmk-utils](https://github.com/dhmk083/dhmk-utils)
10
+ - [mesqueeb/merge-anything](https://github.com/mesqueeb/merge-anything)
11
+ - [mesqueeb/filter-anything](https://github.com/mesqueeb/filter-anything)
12
+ - [mesqueeb/case-anything](https://github.com/mesqueeb/case-anything)
13
+ - [mesqueeb/nestify-anything](https://github.com/mesqueeb/nestify-anything)
14
+ - [mesqueeb/fast-sort (fork)](https://github.com/mesqueeb/fast-sort "fork")
15
+ - [mesqueeb/compare-anything](https://github.com/mesqueeb/compare-anything)
16
+ - [mesqueeb/copy-anything](https://github.com/mesqueeb/copy-anything)
17
+ - [mesqueeb/flatten-anything](https://github.com/mesqueeb/flatten-anything)
18
+
19
+ To consider:
20
+
21
+ - [dlv](https://www.npmjs.com/package/dlv)
22
+ - [lukeed/dset](https://github.com/lukeed/dset)
23
+ - [angus-c/just](https://github.com/angus-c/just)
24
+
25
+ About ts utilities types @see:
26
+
27
+ - [sindresorhus/type-fest](https://github.com/sindresorhus/type-fest)
28
+ - [millsp/ts-toolbelt](https://github.com/millsp/ts-toolbelt)
29
+ - [ts-essentials](https://github.com/ts-essentials/ts-essentials)
30
+
31
+ For inspiration look at [1loc.dev](https://1loc.dev).
32
+
33
+ About utilities useful examples @see:
34
+
35
+ - [chakra-ui](https://github.com/chakra-ui/chakra-ui/blob/main/packages/utils/src)
36
+
37
+ TODO: We could also re-exports direct dependencies of packages that we often use
38
+ anyway like [those of `yup`](https://github.com/jquense/yup/blob/master/package.json#L103):
39
+
40
+ - [tiny-case](https://github.com/jquense/tiny-case)
41
+ - [property-expr](https://github.com/jquense/expr/blob/master/index.js)
42
+ - [toposort](https://github.com/marcelklehr/toposort)
43
+
44
+ TODO: check typescript utilities in [TypeScript core](https://github.com/microsoft/TypeScript/blob/main/src/compiler/core.ts)
45
+
46
+ ## Code
47
+
48
+ - Transformative functions like `truncate` or `titleCase` should allow for nullable inputs as much as possible, acceptin both `undefined` and `null`.
package/accentSets.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export type AccentsSet = [string, string];
2
- export declare const accentsSets: AccentsSet[];
3
- export default accentsSets;
2
+ export declare let accentsSets: AccentsSet[];
@@ -1,2 +1 @@
1
- export declare function addOrReplaceAtIdx<T>(list: T[], newItem: T, newIdx?: number): T[];
2
- export default addOrReplaceAtIdx;
1
+ export declare let addOrReplaceAtIdx: <T>(list: T[], newItem: T, newIdx?: number) => T[];
package/areEqual.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  type ComparablePrimitive = string | number | boolean;
2
2
  type Comparable = ComparablePrimitive | object | Record<string, ComparablePrimitive> | Array<ComparablePrimitive>;
3
- export declare function areEqual(a: Comparable, b?: Comparable): boolean;
4
- export default areEqual;
3
+ export declare let areEqual: (a: Comparable, b?: Comparable) => boolean;
4
+ export {};
@@ -1,2 +1 @@
1
- export declare function arrayFilterFalsy<T extends unknown[]>(list?: null | T): Exclude<NonNullable<T>[number], false | "" | 0 | undefined>[];
2
- export default arrayFilterFalsy;
1
+ export declare let arrayFilterFalsy: <T extends unknown[]>(list?: T | null | undefined) => Exclude<NonNullable<T>[number], false | "" | 0 | undefined>[];
package/arrayOfAll.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const arrayOfAll: <T>() => <U extends T[]>(array: U & ([T] extends [U[number]] ? unknown : "Invalid")) => U & ([T] extends [U[number]] ? unknown : "Invalid");
2
- export default arrayOfAll;
1
+ export declare let arrayOfAll: <T>() => <U extends T[]>(array: U & ([T] extends [U[number]] ? unknown : "Invalid")) => U & ([T] extends [U[number]] ? unknown : "Invalid");
package/arraySum.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const arraySum: (numbers: number[]) => number;
2
- export default arraySum;
1
+ export declare let arraySum: (numbers: number[]) => number;
@@ -1,2 +1 @@
1
- export declare function arrayToLookup<T extends string | number | symbol>(array?: T[]): Record<T, 1>;
2
- export default arrayToLookup;
1
+ export declare let arrayToLookup: <T extends string | number | symbol>(array?: T[]) => Record<T, 1>;
@@ -1,2 +1 @@
1
- export declare const arrayUniqueByProperties: <T extends any[]>(array: T, keys: (keyof T[number])[]) => T;
2
- export default arrayUniqueByProperties;
1
+ export declare let arrayUniqueByProperties: <T extends any[]>(array: T, keys: (keyof T[number])[]) => T;
@@ -1,3 +1,2 @@
1
- import { type AnyQueryParams } from "./location.js";
2
- export declare function buildUrlQueryString<T extends AnyQueryParams>(params: T): string;
3
- export default buildUrlQueryString;
1
+ import type { AnyQueryParams } from "./location";
2
+ export declare let buildUrlQueryString: <T extends AnyQueryParams>(params: T) => string;
package/capitalize.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function capitalize<T extends string>(string?: null | T): Capitalize<T>;
2
- export default capitalize;
1
+ export declare let capitalize: <T extends string>(string?: T | null | undefined) => Capitalize<T>;
@@ -0,0 +1,2 @@
1
+ import { type PascalCaseOptions } from "./changeCaseHelpers";
2
+ export declare let changeCaseCamel: (input: string, options?: PascalCaseOptions) => string;
@@ -0,0 +1,2 @@
1
+ import { type Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseCapital: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import { type Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseConstant: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import type { Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseDot: (input: string, options?: Options) => string;
@@ -0,0 +1,19 @@
1
+ export type Locale = string[] | string | false | undefined;
2
+ export interface PascalCaseOptions extends Options {
3
+ mergeAmbiguousCharacters?: boolean;
4
+ }
5
+ export interface Options {
6
+ locale?: Locale;
7
+ split?: (value: string) => string[];
8
+ separateNumbers?: boolean;
9
+ delimiter?: string;
10
+ prefixCharacters?: string;
11
+ suffixCharacters?: string;
12
+ }
13
+ export declare let split: (value: string) => string[];
14
+ export declare let splitSeparateNumbers: (value: string) => string[];
15
+ export declare let lowerFactory: (locale: Locale) => (input: string) => string;
16
+ export declare let upperFactory: (locale: Locale) => (input: string) => string;
17
+ export declare let capitalCaseTransformFactory: (lower: (input: string) => string, upper: (input: string) => string) => (word: string) => string;
18
+ export declare let pascalCaseTransformFactory: (lower: (input: string) => string, upper: (input: string) => string) => (word: string, index: number) => string;
19
+ export declare let splitPrefixSuffix: (input: string, options?: Options) => [string, string[], string];
@@ -0,0 +1,2 @@
1
+ import type { Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseKebab: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import { type Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseNone: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import { PascalCaseOptions } from "./changeCaseHelpers";
2
+ export declare let changeCasePascal: (input: string, options?: PascalCaseOptions) => string;
@@ -0,0 +1,2 @@
1
+ import type { Options } from "./changeCaseHelpers";
2
+ export declare let changeCasePascalSnake: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import type { Options } from "./changeCaseHelpers";
2
+ export declare let changeCasePath: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import { type Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseSentence: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import type { Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseSnake: (input: string, options?: Options) => string;
@@ -0,0 +1,2 @@
1
+ import type { Options } from "./changeCaseHelpers";
2
+ export declare let changeCaseTrain: (input: string, options?: Options) => string;
@@ -1,2 +1 @@
1
- export declare function chunkByChunks<T>(arr: T[], nrOfChunks: number, balanced?: boolean): T[][];
2
- export default chunkByChunks;
1
+ export declare let chunkByChunks: <T>(arr: T[], nrOfChunks: number, balanced?: boolean) => T[][];
package/chunkBySize.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function chunkBySize<T>(arr: T[], size: number): T[][];
2
- export default chunkBySize;
1
+ export declare let chunkBySize: <T>(arr: T[], size: number) => T[][];
package/clamp.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function clamp(num: number, min: number, max: number): number;
2
- export default clamp;
1
+ export declare let clamp: (num: number, min: number, max: number) => number;
package/clsx.d.ts CHANGED
@@ -2,5 +2,5 @@ type ClassValue = ClassArray | ClassDictionary | string | number | null | boolea
2
2
  type ClassDictionary = Record<string, any>;
3
3
  type ClassArray = ClassValue[];
4
4
  export type ClsxClassValue = ClassValue;
5
- export declare const clsx: (...args: ClassValue[]) => string;
6
- export default clsx;
5
+ export declare let clsx: (...args: ClassValue[]) => string;
6
+ export {};
package/convertRange.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function convertRange(num: number, r1: number[], r2: number[]): number;
2
- export default convertRange;
1
+ export declare let convertRange: (num: number, r1: number[], r2: number[]) => number;
package/cookie.d.ts CHANGED
@@ -12,7 +12,7 @@ export type CookieAttributesServer = CookieAttributes & {
12
12
  decode?: (input: string) => string;
13
13
  };
14
14
  export type CookieAttributesClient = CookieAttributes;
15
- export declare const defaultAttributesClient: {
15
+ export declare let defaultAttributesClient: {
16
16
  path: string;
17
17
  };
18
18
  export {};
@@ -6,5 +6,5 @@ type PaletteMapPair<T extends PaletteShade> = {
6
6
  type PaletteMap<T extends PaletteShades> = {
7
7
  [PS in T[number] as keyof PaletteMapPair<PS>]: PaletteMapPair<PS>[keyof PaletteMapPair<PS>];
8
8
  };
9
- export declare const createPalette: <TName extends string, TShades extends PaletteShades, TColor = TShades[number][1], TMap = PaletteMap<TShades>>(name: TName, shades: TShades) => readonly [TMap, Record<`${TName}-${TShades[number][0]}`, string>, TColor[]];
10
- export default createPalette;
9
+ export declare let createPalette: <TName extends string, TShades extends PaletteShades, TColor = TShades[number][1], TMap = PaletteMap<TShades>>(name: TName, shades: TShades) => readonly [TMap, Record<`${TName}-${TShades[number][0]}`, string>, TColor[]];
10
+ export {};
package/debounce.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function debounce<T extends (...args: any[]) => any>(fn: T, wait?: number, immediate?: boolean): (this: unknown, ...args: Parameters<T>) => void;
2
- export default debounce;
1
+ export declare let debounce: <T extends (...args: any[]) => any>(fn: T, wait?: number, immediate?: boolean) => (this: unknown, ...args: Parameters<T>) => void;
@@ -7,5 +7,4 @@ export interface DebouncedFunction<Args extends any[], F extends (...args: Args)
7
7
  (this: ThisParameterType<F>, ...args: Args & Parameters<F>): Promise<ReturnType<F>>;
8
8
  cancel: (reason?: any) => void;
9
9
  }
10
- export declare function debouncePromise<Args extends any[], F extends (...args: Args) => any>(func: F, waitMilliseconds?: number, options?: DebounceOptions<ReturnType<F>>): DebouncedFunction<Args, F>;
11
- export default debouncePromise;
10
+ export declare let debouncePromise: <Args extends any[], F extends (...args: Args) => any>(func: F, waitMilliseconds?: number, options?: DebounceOptions<ReturnType<F>>) => DebouncedFunction<Args, F>;
package/debounceRaf.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export declare function debounceRaf<T extends (...args: any[]) => any>(this: unknown, fn: T): (this: unknown, ...args: Parameters<T>) => void;
2
- export default debounceRaf;
package/decode.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function decode<TReturn extends string>(str: string): TReturn;
2
- export default decode;
1
+ export declare let decode: <TReturn extends string>(str: string) => TReturn;
package/encode.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function encode<TReturn extends string>(str: string): TReturn;
2
- export default encode;
1
+ export declare let encode: <TReturn extends string>(str: string) => TReturn;
package/ensureInt.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const ensureInt: (input: string | number) => number;
2
- export default ensureInt;
1
+ export declare let ensureInt: (input: string | number) => number;
@@ -1,2 +1 @@
1
- export declare const errorToString: (e: unknown) => string;
2
- export default errorToString;
1
+ export declare let errorToString: (e: unknown) => string;
@@ -1,2 +1 @@
1
- export declare function findDuplicatedIndexes(arr: any[]): Record<number, true>;
2
- export default findDuplicatedIndexes;
1
+ export declare let findDuplicatedIndexes: (arr: any[]) => Record<number, true>;
package/forin.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function forin<T>(object: T, cb: <K extends keyof T>(key: K, value: T[K]) => void): void;
2
- export default forin;
1
+ export declare let forin: <T>(object: T, cb: <K extends keyof T>(key: K, value: T[K]) => void) => void;
package/gbToBytes.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const gbToBytes: (bytes: number) => number;
2
- export default gbToBytes;
1
+ export declare let gbToBytes: (bytes: number) => number;
@@ -1,2 +1 @@
1
- export declare function getEmptyArray(length: number | string): undefined[];
2
- export default getEmptyArray;
1
+ export declare let getEmptyArray: (length: number | string) => undefined[];
package/getKeys.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const getKeys: <T extends object>(obj: T) => (keyof T)[];
2
- export default getKeys;
1
+ export declare let getKeys: <T extends object>(obj: T) => (keyof T)[];
@@ -1,5 +1,5 @@
1
1
  export type GetMediaQueryWidthResolversBreakpoints = Record<string, number>;
2
- export declare function getMediaQueryWidthResolvers<TBreakpointsConfig extends GetMediaQueryWidthResolversBreakpoints>(customBreakpoints: TBreakpointsConfig): {
2
+ export declare let getMediaQueryWidthResolvers: <TBreakpointsConfig extends GetMediaQueryWidthResolversBreakpoints>(customBreakpoints: TBreakpointsConfig) => {
3
3
  max: (br: Extract<keyof TBreakpointsConfig, string>) => string;
4
4
  min: (br: Extract<keyof TBreakpointsConfig, string>) => string;
5
5
  down: (br: Extract<keyof TBreakpointsConfig, string>) => string;
@@ -7,4 +7,3 @@ export declare function getMediaQueryWidthResolvers<TBreakpointsConfig extends G
7
7
  between: (br1: Extract<keyof TBreakpointsConfig, string>, br2?: Extract<keyof TBreakpointsConfig, string> | undefined) => string;
8
8
  only: (br: Extract<keyof TBreakpointsConfig, string>) => string;
9
9
  };
10
- export default getMediaQueryWidthResolvers;
@@ -1,5 +1,4 @@
1
- import { type GetMediaQueryWidthResolversBreakpoints } from "./getMediaQueryWidthResolvers.js";
2
- export declare function getMediaQueryWidthTailwindScreens(breakpoints: GetMediaQueryWidthResolversBreakpoints): Record<string, {
1
+ import { type GetMediaQueryWidthResolversBreakpoints } from "./getMediaQueryWidthResolvers";
2
+ export declare let getMediaQueryWidthTailwindScreens: (breakpoints: GetMediaQueryWidthResolversBreakpoints) => Record<string, {
3
3
  raw: string;
4
4
  }>;
5
- export default getMediaQueryWidthTailwindScreens;
package/getNonce.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function getNonce(): string | null;
2
- export default getNonce;
1
+ export declare let getNonce: () => string | null;
@@ -1,2 +1 @@
1
- export declare function getParamAmong<T extends string[]>(raw?: string | string[], allowedValues?: T): T[number] | null;
2
- export default getParamAmong;
1
+ export declare let getParamAmong: <T extends string[]>(raw?: string | string[], allowedValues?: T) => T[number] | null;
@@ -1,2 +1 @@
1
- export declare function getParamAsInt<TFallback extends number | null | undefined>(raw?: string | string[], fallback?: TFallback): number | TFallback;
2
- export default getParamAsInt;
1
+ export declare let getParamAsInt: <TFallback extends number | null | undefined>(raw?: string | string[], fallback?: TFallback) => number | TFallback;
@@ -1,2 +1 @@
1
- export declare function getParamAsString(raw?: string | string[]): string;
2
- export default getParamAsString;
1
+ export declare let getParamAsString: (raw?: string | string[]) => string;
package/getType.d.ts CHANGED
@@ -3,5 +3,4 @@ export type AnyAsyncFunction = (...args: any[]) => Promise<any>;
3
3
  export type AnyClass = new (...args: any[]) => any;
4
4
  export type PlainObject = Record<string | number | symbol, any>;
5
5
  export type TypeGuard<A, B extends A> = (payload: A) => payload is B;
6
- export declare function getType(payload: any): string;
7
- export default getType;
6
+ export declare let getType: (payload: any) => string;
@@ -1,3 +1 @@
1
- import { type AnyQueryParams } from "./location.js";
2
- export declare function getUrlHashParams<T extends NonNullable<AnyQueryParams>>(hash?: string): T;
3
- export default getUrlHashParams;
1
+ export declare let getUrlHashParams: <T extends Record<string | number, unknown>>(hash?: string) => T;
@@ -1,2 +1 @@
1
- export declare function getUrlHashPathname(hash?: string): string;
2
- export default getUrlHashPathname;
1
+ export declare let getUrlHashPathname: (hash?: string) => string;
@@ -1,2 +1 @@
1
- export declare function getUrlPathnameParts(pathname?: string): string[];
2
- export default getUrlPathnameParts;
1
+ export declare let getUrlPathnameParts: (pathname?: string) => string[];
@@ -1,3 +1 @@
1
- import { type AnyQueryParams } from "./location.js";
2
- export declare function getUrlQueryParams<T extends NonNullable<AnyQueryParams>>(url?: string): T;
3
- export default getUrlQueryParams;
1
+ export declare let getUrlQueryParams: <T extends Record<string | number, unknown>>(url?: string) => T;
@@ -1,2 +1 @@
1
- export declare const imgEmptyPixel = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
2
- export default imgEmptyPixel;
1
+ export declare let imgEmptyPixel: string;
package/index.cjs.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./index";
@@ -0,0 +1 @@
1
+ exports._default = require('./index.cjs.js').default;