@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
@@ -1,2 +1 @@
1
- export declare function removeTralingSlash(urlLike?: string): string;
2
- export default removeTralingSlash;
1
+ export declare let removeTralingSlash: (urlLike?: string | null) => string;
@@ -1,2 +1 @@
1
- export declare function removeUrlQueryParams(url: string, paramsToRemove?: string[]): string;
2
- export default removeUrlQueryParams;
1
+ export declare let removeUrlQueryParams: (url: string, paramsToRemove?: string[]) => string;
package/render.d.ts CHANGED
@@ -9,5 +9,5 @@ type Definitions = {
9
9
  [key: string]: DefinitionExtended;
10
10
  } & DefinitionExtended;
11
11
  type RenderFunction = (data: object) => string;
12
- export declare const render: (tmpl: string, def?: Definitions) => RenderFunction;
13
- export default render;
12
+ export declare let render: (tmpl: string, def?: Definitions) => RenderFunction;
13
+ export {};
package/round.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import type { AnythingFalsy } from "./types.js";
2
- export declare const round: (number: number, decimals?: AnythingFalsy | number, trailingZeroes?: 1 | boolean | AnythingFalsy) => number;
3
- export default round;
1
+ import type { AnythingFalsy } from "./types";
2
+ export declare let round: (number: number, decimals?: AnythingFalsy | number, trailingZeroes?: 1 | boolean | AnythingFalsy) => number;
package/roundTo.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function roundTo(num: number, decimals?: number): string;
2
- export default roundTo;
1
+ export declare let roundTo: (num: number, decimals?: number) => string;
@@ -1,3 +1,2 @@
1
- import { type CookieAttributesServer } from "./cookie.js";
2
- export declare function serializeCookie(name: string, val: string, attributes?: CookieAttributesServer): string;
3
- export default serializeCookie;
1
+ import type { CookieAttributesServer } from "./cookie";
2
+ export declare let serializeCookie: (name: string, val: string, attributes?: CookieAttributesServer) => string;
package/setCookie.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import { type CookieAttributesClient } from "./cookie.js";
2
- export declare function setCookie<T extends string = string>(name: string, value: string | T, attributes?: CookieAttributesClient): string | undefined;
3
- export default setCookie;
1
+ import { type CookieAttributesClient } from "./cookie";
2
+ export declare let setCookie: <T extends string = string>(name: string, value: string | T, attributes?: CookieAttributesClient) => string | undefined;
package/shuffle.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function shuffle<T>(array: T[]): T[];
2
- export default shuffle;
1
+ export declare let shuffle: <T>(array: T[]) => T[];
package/slugify.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function slugify(text: string, separator?: string): string;
2
- export default slugify;
1
+ export declare let slugify: (text: string, separator?: string) => string;
package/split.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export type Split<S extends string, D extends string> = string extends S ? string[] : S extends "" ? [] : S extends `${infer T}${D}${infer U}` ? [T, ...Split<U, D>] : [S];
2
- export declare const split: <T extends string, D extends string>(string: T, delimiter: D) => Split<T, D>;
3
- export default split;
2
+ export declare let split: <T extends string, D extends string>(string: T, delimiter: D) => Split<T, D>;
package/swapMap.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function swapMap<T extends Record<string, string | number | symbol> = Record<string, string | number | symbol>>(map?: T): Record<T[keyof T], keyof T>;
2
- export default swapMap;
1
+ export declare let swapMap: <T extends Record<string, string | number | symbol> = Record<string, string | number | symbol>>(map?: T) => Record<T[keyof T], keyof T>;
package/throttle.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  /// <reference types="node" />
2
- export declare function throttle<TFn extends Function, TContext>(fn: TFn, limit: number, context?: TContext): (this: TContext, ...args: any[]) => NodeJS.Timeout | undefined;
3
- export default throttle;
2
+ export declare let throttle: <TFn extends Function, TContext>(fn: TFn, limit: number, context?: TContext | undefined) => (this: TContext, ...args: any[]) => NodeJS.Timeout | undefined;
package/titleCase.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const titleCase: (input?: null | string) => string;
2
- export default titleCase;
1
+ export declare let titleCase: (input?: null | string) => string;
package/toNumber.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function toNumber(input?: string | number, fallback?: number): number;
2
- export default toNumber;
1
+ export declare let toNumber: (input?: string | number, fallback?: number) => number;
package/toRgba.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function toRgba(hex: string, alpha?: number): string;
2
- export default toRgba;
1
+ export declare let toRgba: (hex: string, alpha?: number) => string;
@@ -1,2 +1 @@
1
- export declare function transformToUrlPathname(toPathname?: string): string;
2
- export default transformToUrlPathname;
1
+ export declare let transformToUrlPathname: (toPathname?: string) => string;
package/truncate.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const truncate: (input: undefined | null | string, length: number) => string;
2
- export default truncate;
1
+ export declare let truncate: (input: undefined | null | string, length: number) => string;
package/tryUntil.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const tryUntil: (test: () => boolean, timeout: number, interval: number, resolve: () => void, reject?: () => void) => void;
2
- export default tryUntil;
1
+ export declare let tryUntil: (test: () => boolean, timeout: number, interval: number, resolve: () => void, reject?: () => void) => void;
package/uid.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const uid: (prefix?: string) => string;
2
- export default uid;
1
+ export declare let uid: (prefix?: string) => string;
@@ -1,3 +1,2 @@
1
- import { type AnyQueryParams } from "./location.js";
2
- export declare function updateLinkParams($anchor: HTMLAnchorElement, newParams: NonNullable<AnyQueryParams>): string;
3
- export default updateLinkParams;
1
+ import type { AnyQueryParams } from "./location";
2
+ export declare let updateLinkParams: ($anchor: HTMLAnchorElement, newParams: NonNullable<AnyQueryParams>) => string;
@@ -1,3 +1,2 @@
1
- import { type AnyQueryParams } from "./location.js";
2
- export declare function updateUrlQueryParams(url: string, newParams?: NonNullable<AnyQueryParams>): string;
3
- export default updateUrlQueryParams;
1
+ import type { AnyQueryParams } from "./location";
2
+ export declare let updateUrlQueryParams: (url: string, newParams?: NonNullable<AnyQueryParams>) => string;
package/uppercase.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const uppercase: <T extends string>(str?: T | null | undefined) => Uppercase<T>;
2
- export default uppercase;
1
+ export declare let uppercase: <T extends string>(str?: T | null | undefined) => Uppercase<T>;
package/uuid.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const uuid: () => string;
2
- export default uuid;
1
+ export declare let uuid: () => string;
package/uuidNumeric.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const uuidNumeric: () => number;
2
- export default uuidNumeric;
1
+ export declare let uuidNumeric: () => number;
package/wait.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare const wait: (milliseconds: number) => Promise<unknown>;
2
- export default wait;
1
+ export declare let wait: (milliseconds: number) => Promise<unknown>;
package/Defer.js DELETED
@@ -1,11 +0,0 @@
1
- export function Defer() {
2
- var self = this || {};
3
- var p = (self.promise = new Promise(function (resolve, reject) {
4
- self.resolve = resolve;
5
- self.reject = reject;
6
- }));
7
- self.then = p.then.bind(p);
8
- self.catch = p.catch.bind(p);
9
- return self;
10
- }
11
- export default Defer;
package/Emitter.js DELETED
@@ -1,20 +0,0 @@
1
- export function Emitter(namespace) {
2
- var all = new Map();
3
- return {
4
- on: function (name, handler) {
5
- var handlers = all.get("".concat(namespace, ".").concat(String(name)));
6
- var added = handlers && handlers.push(handler);
7
- if (!added) {
8
- all.set("".concat(namespace, ".").concat(String(name)), [handler]);
9
- }
10
- },
11
- emit: function (name, data) {
12
- (all.get("".concat(namespace, ".").concat(String(name))) || [])
13
- .slice()
14
- .map(function (handler) {
15
- handler(data);
16
- });
17
- },
18
- };
19
- }
20
- export default Emitter;
package/accentSets.js DELETED
@@ -1,30 +0,0 @@
1
- export var accentsSets = [
2
- ["a", "ÀÁÂÃÅÆĀĂĄẠẢẤẦẨẪẬẮẰẲẴẶ"],
3
- ["ae", "Ä"],
4
- ["c", "ÇĆĈČ"],
5
- ["d", "ÐĎĐÞ"],
6
- ["e", "ÈÉÊËĒĔĖĘĚẸẺẼẾỀỂỄỆ"],
7
- ["g", "ĜĞĢǴ"],
8
- ["h", "ĤḦ"],
9
- ["i", "ÌÍÎÏĨĪĮİỈỊ"],
10
- ["j", "Ĵ"],
11
- ["ij", "IJ"],
12
- ["k", "Ķ"],
13
- ["l", "ĹĻĽŁ"],
14
- ["m", "Ḿ"],
15
- ["n", "ÑŃŅŇ"],
16
- ["o", "ÒÓÔÕØŌŎŐỌỎỐỒỔỖỘỚỜỞỠỢǪǬƠ"],
17
- ["oe", "΅"],
18
- ["p", "ṕ"],
19
- ["r", "ŔŖŘ"],
20
- ["s", "ŚŜŞŠ"],
21
- ["ss", "ß"],
22
- ["t", "ŢŤ"],
23
- ["u", "ÙÚÛŨŪŬŮŰŲỤỦỨỪỬỮỰƯ"],
24
- ["ue", "Ü"],
25
- ["w", "ẂŴẀẄ"],
26
- ["x", "ẍ"],
27
- ["y", "ÝŶŸỲỴỶỸ"],
28
- ["z", "ŹŻŽ"],
29
- ];
30
- export default accentsSets;
@@ -1,16 +0,0 @@
1
- import { __read, __spreadArray } from "tslib";
2
- export function addOrReplaceAtIdx(list, newItem, newIdx) {
3
- if (list.length === 0) {
4
- return [newItem];
5
- }
6
- if (typeof newIdx === "undefined" || list.length - 1 < newIdx) {
7
- return __spreadArray(__spreadArray([], __read(list), false), [newItem], false);
8
- }
9
- return list.map(function (item, idx) {
10
- if (idx === newIdx) {
11
- return newItem;
12
- }
13
- return item;
14
- });
15
- }
16
- export default addOrReplaceAtIdx;
package/areEqual.js DELETED
@@ -1,58 +0,0 @@
1
- import { __values } from "tslib";
2
- import { isArray } from "./isArray.js";
3
- import { isObject } from "./isObject.js";
4
- function areEqualArrays(a, b) {
5
- if (!b)
6
- return false;
7
- if (a.length !== b.length)
8
- return false;
9
- for (var i = 0; i < a.length; i++) {
10
- if (!areEqual(a[i], b[i]))
11
- return false;
12
- }
13
- return true;
14
- }
15
- function areEqualObjects(a, b) {
16
- var e_1, _a;
17
- if (!b)
18
- return false;
19
- var aKeys = Object.keys(a);
20
- try {
21
- for (var aKeys_1 = __values(aKeys), aKeys_1_1 = aKeys_1.next(); !aKeys_1_1.done; aKeys_1_1 = aKeys_1.next()) {
22
- var _key = aKeys_1_1.value;
23
- var key = _key;
24
- if (!areEqual(a[key], b[key])) {
25
- return false;
26
- }
27
- }
28
- }
29
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
30
- finally {
31
- try {
32
- if (aKeys_1_1 && !aKeys_1_1.done && (_a = aKeys_1.return)) _a.call(aKeys_1);
33
- }
34
- finally { if (e_1) throw e_1.error; }
35
- }
36
- return true;
37
- }
38
- export function areEqual(a, b) {
39
- if (!a && !b) {
40
- return true;
41
- }
42
- if (!b && a !== b) {
43
- return false;
44
- }
45
- var areObjects = isObject(a) && isObject(b);
46
- if (areObjects && !areEqualObjects(a, b)) {
47
- return false;
48
- }
49
- var areArrays = isArray(a) && isArray(b);
50
- if (areArrays && !areEqualArrays(a, b)) {
51
- return false;
52
- }
53
- if (!areObjects && !areArrays && a !== b) {
54
- return false;
55
- }
56
- return true;
57
- }
58
- export default areEqual;
@@ -1,4 +0,0 @@
1
- export function arrayFilterFalsy(list) {
2
- return (list ? list.filter(function (r) { return !!r; }) : []);
3
- }
4
- export default arrayFilterFalsy;
package/arrayOfAll.js DELETED
@@ -1,6 +0,0 @@
1
- export var arrayOfAll = function () {
2
- return function (array) {
3
- return array;
4
- };
5
- };
6
- export default arrayOfAll;
package/arraySum.js DELETED
@@ -1,4 +0,0 @@
1
- export var arraySum = function (numbers) {
2
- return numbers.reduce(function (sum, current) { return sum + current; }, 0);
3
- };
4
- export default arraySum;
package/arrayToLookup.js DELETED
@@ -1,8 +0,0 @@
1
- export function arrayToLookup(array) {
2
- if (array === void 0) { array = []; }
3
- return array.reduce(function (obj, item) {
4
- obj[item] = 1;
5
- return obj;
6
- }, {});
7
- }
8
- export default arrayToLookup;
@@ -1,8 +0,0 @@
1
- export var arrayUniqueByProperties = function (array, keys) {
2
- return array.filter(function (item, idx, arr) {
3
- return arr.findIndex(function (itemWith) {
4
- return keys.every(function (k) { return itemWith[k] === item[k]; });
5
- }) === idx;
6
- });
7
- };
8
- export default arrayUniqueByProperties;
@@ -1,21 +0,0 @@
1
- import isArray from "./isArray.js";
2
- import isNull from "./isNull.js";
3
- import isUndefined from "./isUndefined.js";
4
- export function buildUrlQueryString(params) {
5
- var output = "";
6
- if (!params)
7
- return output;
8
- for (var key in params) {
9
- var value = params[key];
10
- if (isArray(value)) {
11
- for (var i = 0; i < value.length; i++) {
12
- output += "".concat(key, "=").concat(encodeURIComponent(value[i] + ""), "&");
13
- }
14
- }
15
- else if (!isNull(value) && !isUndefined(value)) {
16
- output += "".concat(key, "=").concat(encodeURIComponent(value + ""), "&");
17
- }
18
- }
19
- return output ? "?".concat(output.replace(/&+$/, "")) : "";
20
- }
21
- export default buildUrlQueryString;
package/capitalize.js DELETED
@@ -1,6 +0,0 @@
1
- export function capitalize(string) {
2
- var ensuredString = string || "";
3
- return (ensuredString.charAt(0).toUpperCase() +
4
- ensuredString.slice(1));
5
- }
6
- export default capitalize;
@@ -1,2 +0,0 @@
1
- export declare function changeUrlPath(pathname: string, state?: object, replace?: boolean): string;
2
- export default changeUrlPath;
package/changeUrlPath.js DELETED
@@ -1,10 +0,0 @@
1
- import isBrowser from "./isBrowser.js";
2
- import normaliseUrlPathname from "./normaliseUrlPathname.js";
3
- export function changeUrlPath(pathname, state, replace) {
4
- var path = normaliseUrlPathname("/".concat(pathname, "/"));
5
- if (isBrowser) {
6
- history[replace ? "replaceState" : "pushState"](state, "", path);
7
- }
8
- return path;
9
- }
10
- export default changeUrlPath;
package/chunkByChunks.js DELETED
@@ -1,32 +0,0 @@
1
- export function chunkByChunks(arr, nrOfChunks, balanced) {
2
- if (nrOfChunks < 2)
3
- return [arr];
4
- var len = arr.length;
5
- var output = [];
6
- var i = 0;
7
- var size;
8
- if (len % nrOfChunks === 0) {
9
- size = Math.floor(len / nrOfChunks);
10
- while (i < len) {
11
- output.push(arr.slice(i, (i += size)));
12
- }
13
- }
14
- else if (balanced) {
15
- while (i < len) {
16
- size = Math.ceil((len - i) / nrOfChunks--);
17
- output.push(arr.slice(i, (i += size)));
18
- }
19
- }
20
- else {
21
- nrOfChunks--;
22
- size = Math.floor(len / nrOfChunks);
23
- if (len % size === 0)
24
- size--;
25
- while (i < size * nrOfChunks) {
26
- output.push(arr.slice(i, (i += size)));
27
- }
28
- output.push(arr.slice(size * nrOfChunks));
29
- }
30
- return output;
31
- }
32
- export default chunkByChunks;
package/chunkBySize.js DELETED
@@ -1,8 +0,0 @@
1
- export function chunkBySize(arr, size) {
2
- var output = [];
3
- for (var i = 0; i < arr.length; i += size) {
4
- output.push(arr.slice(i, i + size));
5
- }
6
- return output;
7
- }
8
- export default chunkBySize;
package/cjs/Defer.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export type Deferred<T> = Promise<T> & {
2
- resolve: PromiseConstructor["resolve"];
3
- reject: PromiseConstructor["reject"];
4
- };
5
- export declare function Defer<T>(): Deferred<T>;
6
- export default Defer;
package/cjs/Defer.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Defer = void 0;
4
- function Defer() {
5
- var self = this || {};
6
- var p = (self.promise = new Promise(function (resolve, reject) {
7
- self.resolve = resolve;
8
- self.reject = reject;
9
- }));
10
- self.then = p.then.bind(p);
11
- self.catch = p.catch.bind(p);
12
- return self;
13
- }
14
- exports.Defer = Defer;
15
- exports.default = Defer;
package/cjs/Emitter.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export declare function Emitter<EventMap extends {
2
- [key: string]: any;
3
- }>(namespace: string): {
4
- on<EventName extends keyof EventMap>(name: EventName, handler: (data?: EventMap[EventName] | undefined) => any): void;
5
- emit<EventName_1 extends keyof EventMap>(name: EventName_1, data?: EventMap[EventName_1] | undefined): void;
6
- };
7
- export default Emitter;
package/cjs/Emitter.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Emitter = void 0;
4
- function Emitter(namespace) {
5
- var all = new Map();
6
- return {
7
- on: function (name, handler) {
8
- var handlers = all.get("".concat(namespace, ".").concat(String(name)));
9
- var added = handlers && handlers.push(handler);
10
- if (!added) {
11
- all.set("".concat(namespace, ".").concat(String(name)), [handler]);
12
- }
13
- },
14
- emit: function (name, data) {
15
- (all.get("".concat(namespace, ".").concat(String(name))) || [])
16
- .slice()
17
- .map(function (handler) {
18
- handler(data);
19
- });
20
- },
21
- };
22
- }
23
- exports.Emitter = Emitter;
24
- exports.default = Emitter;
@@ -1,3 +0,0 @@
1
- export type AccentsSet = [string, string];
2
- export declare const accentsSets: AccentsSet[];
3
- export default accentsSets;
package/cjs/accentSets.js DELETED
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.accentsSets = void 0;
4
- exports.accentsSets = [
5
- ["a", "ÀÁÂÃÅÆĀĂĄẠẢẤẦẨẪẬẮẰẲẴẶ"],
6
- ["ae", "Ä"],
7
- ["c", "ÇĆĈČ"],
8
- ["d", "ÐĎĐÞ"],
9
- ["e", "ÈÉÊËĒĔĖĘĚẸẺẼẾỀỂỄỆ"],
10
- ["g", "ĜĞĢǴ"],
11
- ["h", "ĤḦ"],
12
- ["i", "ÌÍÎÏĨĪĮİỈỊ"],
13
- ["j", "Ĵ"],
14
- ["ij", "IJ"],
15
- ["k", "Ķ"],
16
- ["l", "ĹĻĽŁ"],
17
- ["m", "Ḿ"],
18
- ["n", "ÑŃŅŇ"],
19
- ["o", "ÒÓÔÕØŌŎŐỌỎỐỒỔỖỘỚỜỞỠỢǪǬƠ"],
20
- ["oe", "΅"],
21
- ["p", "ṕ"],
22
- ["r", "ŔŖŘ"],
23
- ["s", "ŚŜŞŠ"],
24
- ["ss", "ß"],
25
- ["t", "ŢŤ"],
26
- ["u", "ÙÚÛŨŪŬŮŰŲỤỦỨỪỬỮỰƯ"],
27
- ["ue", "Ü"],
28
- ["w", "ẂŴẀẄ"],
29
- ["x", "ẍ"],
30
- ["y", "ÝŶŸỲỴỶỸ"],
31
- ["z", "ŹŻŽ"],
32
- ];
33
- exports.default = exports.accentsSets;
@@ -1,2 +0,0 @@
1
- export declare function addOrReplaceAtIdx<T>(list: T[], newItem: T, newIdx?: number): T[];
2
- export default addOrReplaceAtIdx;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addOrReplaceAtIdx = void 0;
4
- var tslib_1 = require("tslib");
5
- function addOrReplaceAtIdx(list, newItem, newIdx) {
6
- if (list.length === 0) {
7
- return [newItem];
8
- }
9
- if (typeof newIdx === "undefined" || list.length - 1 < newIdx) {
10
- return tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(list), false), [newItem], false);
11
- }
12
- return list.map(function (item, idx) {
13
- if (idx === newIdx) {
14
- return newItem;
15
- }
16
- return item;
17
- });
18
- }
19
- exports.addOrReplaceAtIdx = addOrReplaceAtIdx;
20
- exports.default = addOrReplaceAtIdx;
package/cjs/areEqual.d.ts DELETED
@@ -1,4 +0,0 @@
1
- type ComparablePrimitive = string | number | boolean;
2
- type Comparable = ComparablePrimitive | object | Record<string, ComparablePrimitive> | Array<ComparablePrimitive>;
3
- export declare function areEqual(a: Comparable, b?: Comparable): boolean;
4
- export default areEqual;
package/cjs/areEqual.js DELETED
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.areEqual = void 0;
4
- var tslib_1 = require("tslib");
5
- var isArray_1 = require("./isArray");
6
- var isObject_1 = require("./isObject");
7
- function areEqualArrays(a, b) {
8
- if (!b)
9
- return false;
10
- if (a.length !== b.length)
11
- return false;
12
- for (var i = 0; i < a.length; i++) {
13
- if (!areEqual(a[i], b[i]))
14
- return false;
15
- }
16
- return true;
17
- }
18
- function areEqualObjects(a, b) {
19
- var e_1, _a;
20
- if (!b)
21
- return false;
22
- var aKeys = Object.keys(a);
23
- try {
24
- for (var aKeys_1 = tslib_1.__values(aKeys), aKeys_1_1 = aKeys_1.next(); !aKeys_1_1.done; aKeys_1_1 = aKeys_1.next()) {
25
- var _key = aKeys_1_1.value;
26
- var key = _key;
27
- if (!areEqual(a[key], b[key])) {
28
- return false;
29
- }
30
- }
31
- }
32
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
- finally {
34
- try {
35
- if (aKeys_1_1 && !aKeys_1_1.done && (_a = aKeys_1.return)) _a.call(aKeys_1);
36
- }
37
- finally { if (e_1) throw e_1.error; }
38
- }
39
- return true;
40
- }
41
- function areEqual(a, b) {
42
- if (!a && !b) {
43
- return true;
44
- }
45
- if (!b && a !== b) {
46
- return false;
47
- }
48
- var areObjects = (0, isObject_1.isObject)(a) && (0, isObject_1.isObject)(b);
49
- if (areObjects && !areEqualObjects(a, b)) {
50
- return false;
51
- }
52
- var areArrays = (0, isArray_1.isArray)(a) && (0, isArray_1.isArray)(b);
53
- if (areArrays && !areEqualArrays(a, b)) {
54
- return false;
55
- }
56
- if (!areObjects && !areArrays && a !== b) {
57
- return false;
58
- }
59
- return true;
60
- }
61
- exports.areEqual = areEqual;
62
- exports.default = areEqual;
@@ -1,2 +0,0 @@
1
- export declare function arrayFilterFalsy<T extends unknown[]>(list?: null | T): Exclude<NonNullable<T>[number], false | "" | 0 | undefined>[];
2
- export default arrayFilterFalsy;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.arrayFilterFalsy = void 0;
4
- function arrayFilterFalsy(list) {
5
- return (list ? list.filter(function (r) { return !!r; }) : []);
6
- }
7
- exports.arrayFilterFalsy = arrayFilterFalsy;
8
- exports.default = arrayFilterFalsy;
@@ -1,2 +0,0 @@
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;
package/cjs/arrayOfAll.js DELETED
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.arrayOfAll = void 0;
4
- var arrayOfAll = function () {
5
- return function (array) {
6
- return array;
7
- };
8
- };
9
- exports.arrayOfAll = arrayOfAll;
10
- exports.default = exports.arrayOfAll;