@koine/utils 2.0.0-beta.133 → 2.0.0-beta.135

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 (327) hide show
  1. package/Defer.cjs.js +1 -20
  2. package/Defer.esm.js +1 -20
  3. package/Emitter.cjs.js +1 -18
  4. package/Emitter.esm.js +1 -18
  5. package/accentsSets.cjs.js +1 -13
  6. package/accentsSets.esm.js +1 -13
  7. package/addOrReplaceAtIdx.cjs.js +1 -7
  8. package/addOrReplaceAtIdx.esm.js +1 -7
  9. package/areEqual.cjs.js +1 -28
  10. package/areEqual.esm.js +1 -28
  11. package/arrayFilterFalsy.cjs.js +1 -6
  12. package/arrayFilterFalsy.esm.js +1 -6
  13. package/arrayFindLastIndex.cjs.js +1 -13
  14. package/arrayFindLastIndex.esm.js +1 -13
  15. package/arrayOfAll.cjs.js +1 -16
  16. package/arrayOfAll.esm.js +1 -16
  17. package/arraySum.cjs.js +1 -6
  18. package/arraySum.esm.js +1 -6
  19. package/arrayToLookup.cjs.js +1 -5
  20. package/arrayToLookup.esm.js +1 -5
  21. package/arrayUniqueByProperties.cjs.js +1 -8
  22. package/arrayUniqueByProperties.esm.js +1 -8
  23. package/buildUrlQueryString.cjs.js +1 -10
  24. package/buildUrlQueryString.esm.js +1 -10
  25. package/capitalize.cjs.js +1 -7
  26. package/capitalize.esm.js +1 -7
  27. package/changeCaseCamel.cjs.js +1 -7
  28. package/changeCaseCamel.esm.js +1 -7
  29. package/changeCaseCapital.cjs.js +1 -7
  30. package/changeCaseCapital.esm.js +1 -7
  31. package/changeCaseConstant.cjs.js +1 -7
  32. package/changeCaseConstant.esm.js +1 -7
  33. package/changeCaseDot.cjs.js +1 -7
  34. package/changeCaseDot.esm.js +1 -7
  35. package/changeCaseHelpers.cjs.js +1 -32
  36. package/changeCaseHelpers.esm.js +1 -32
  37. package/changeCaseKebab.cjs.js +1 -7
  38. package/changeCaseKebab.esm.js +1 -7
  39. package/changeCaseNone.cjs.js +1 -7
  40. package/changeCaseNone.esm.js +1 -7
  41. package/changeCasePascal.cjs.js +1 -7
  42. package/changeCasePascal.esm.js +1 -7
  43. package/changeCasePascalSnake.cjs.js +1 -7
  44. package/changeCasePascalSnake.esm.js +1 -7
  45. package/changeCasePath.cjs.js +1 -7
  46. package/changeCasePath.esm.js +1 -7
  47. package/changeCaseSentence.cjs.js +1 -7
  48. package/changeCaseSentence.esm.js +1 -7
  49. package/changeCaseSnake.cjs.js +1 -7
  50. package/changeCaseSnake.esm.js +1 -7
  51. package/changeCaseTrain.cjs.js +1 -7
  52. package/changeCaseTrain.esm.js +1 -7
  53. package/chunkByChunks.cjs.js +1 -5
  54. package/chunkByChunks.esm.js +1 -5
  55. package/chunkBySize.cjs.js +1 -4
  56. package/chunkBySize.esm.js +1 -4
  57. package/clamp.cjs.js +1 -6
  58. package/clamp.esm.js +1 -6
  59. package/clsx.cjs.js +1 -7
  60. package/clsx.esm.js +1 -7
  61. package/convertRange.cjs.js +1 -14
  62. package/convertRange.esm.js +1 -14
  63. package/cookie.cjs.js +1 -44
  64. package/cookie.esm.js +1 -44
  65. package/createPalette.cjs.js +1 -17
  66. package/createPalette.esm.js +1 -17
  67. package/debounce.cjs.js +1 -7
  68. package/debounce.esm.js +1 -7
  69. package/debouncePromise.cjs.js +1 -15
  70. package/debouncePromise.esm.js +1 -15
  71. package/debounceRaf.cjs.js +1 -9
  72. package/debounceRaf.esm.js +1 -9
  73. package/decode.cjs.js +1 -4
  74. package/decode.esm.js +1 -4
  75. package/encode.cjs.js +1 -4
  76. package/encode.esm.js +1 -4
  77. package/ensureInt.cjs.js +1 -5
  78. package/ensureInt.esm.js +1 -5
  79. package/errorToString.cjs.js +1 -6
  80. package/errorToString.esm.js +1 -6
  81. package/escapeRegExp.cjs.js +1 -7
  82. package/escapeRegExp.esm.js +1 -7
  83. package/findDuplicatedIndexes.cjs.js +1 -3
  84. package/findDuplicatedIndexes.esm.js +1 -3
  85. package/forin.cjs.js +1 -6
  86. package/forin.esm.js +1 -6
  87. package/gbToBytes.cjs.js +1 -5
  88. package/gbToBytes.esm.js +1 -5
  89. package/getEmptyArray.cjs.js +1 -6
  90. package/getEmptyArray.esm.js +1 -6
  91. package/getKeys.cjs.js +1 -8
  92. package/getKeys.esm.js +1 -8
  93. package/getMediaQueryWidthResolvers.cjs.js +1 -27
  94. package/getMediaQueryWidthResolvers.esm.js +1 -27
  95. package/getMediaQueryWidthTailwindScreens.cjs.js +1 -6
  96. package/getMediaQueryWidthTailwindScreens.esm.js +1 -6
  97. package/getNonce.cjs.js +1 -4
  98. package/getNonce.esm.js +1 -4
  99. package/getParamAmong.cjs.js +1 -11
  100. package/getParamAmong.esm.js +1 -11
  101. package/getParamAsInt.cjs.js +1 -10
  102. package/getParamAsInt.esm.js +1 -10
  103. package/getParamAsString.cjs.js +1 -9
  104. package/getParamAsString.esm.js +1 -9
  105. package/getType.cjs.js +1 -13
  106. package/getType.esm.js +1 -13
  107. package/getUrlHashParams.cjs.js +1 -6
  108. package/getUrlHashParams.esm.js +1 -6
  109. package/getUrlHashPathname.cjs.js +1 -7
  110. package/getUrlHashPathname.esm.js +1 -7
  111. package/getUrlPathnameParts.cjs.js +1 -10
  112. package/getUrlPathnameParts.esm.js +1 -10
  113. package/getUrlQueryParams.cjs.js +1 -12
  114. package/getUrlQueryParams.esm.js +1 -12
  115. package/hashAny.cjs.js +1 -30
  116. package/hashAny.esm.js +1 -30
  117. package/imgEmptyPixel.cjs.js +1 -5
  118. package/imgEmptyPixel.esm.js +1 -5
  119. package/invariant.cjs.js +1 -17
  120. package/invariant.esm.js +1 -17
  121. package/isAbsoluteUrl.cjs.js +1 -10
  122. package/isAbsoluteUrl.esm.js +1 -10
  123. package/isAnyObject.cjs.js +1 -5
  124. package/isAnyObject.esm.js +1 -5
  125. package/isArray.cjs.js +1 -5
  126. package/isArray.esm.js +1 -5
  127. package/isBlob.cjs.js +1 -5
  128. package/isBlob.esm.js +1 -5
  129. package/isBoolean.cjs.js +1 -5
  130. package/isBoolean.esm.js +1 -5
  131. package/isBrowser.cjs.js +1 -4
  132. package/isBrowser.esm.js +1 -4
  133. package/isBrowserNow.cjs.js +1 -4
  134. package/isBrowserNow.esm.js +1 -4
  135. package/isDate.cjs.js +1 -5
  136. package/isDate.esm.js +1 -5
  137. package/isEmptyArray.cjs.js +1 -5
  138. package/isEmptyArray.esm.js +1 -5
  139. package/isEmptyObject.cjs.js +1 -5
  140. package/isEmptyObject.esm.js +1 -5
  141. package/isEmptyString.cjs.js +1 -5
  142. package/isEmptyString.esm.js +1 -5
  143. package/isError.cjs.js +1 -5
  144. package/isError.esm.js +1 -5
  145. package/isExternalUrl.cjs.js +1 -9
  146. package/isExternalUrl.esm.js +1 -9
  147. package/isFile.cjs.js +1 -5
  148. package/isFile.esm.js +1 -5
  149. package/isFloat.cjs.js +1 -5
  150. package/isFloat.esm.js +1 -5
  151. package/isFormData.cjs.js +1 -5
  152. package/isFormData.esm.js +1 -5
  153. package/isFullArray.cjs.js +1 -5
  154. package/isFullArray.esm.js +1 -5
  155. package/isFullObject.cjs.js +1 -5
  156. package/isFullObject.esm.js +1 -5
  157. package/isFullString.cjs.js +1 -5
  158. package/isFullString.esm.js +1 -5
  159. package/isFunction.cjs.js +1 -5
  160. package/isFunction.esm.js +1 -5
  161. package/isInt.cjs.js +1 -5
  162. package/isInt.esm.js +1 -5
  163. package/isMap.cjs.js +1 -5
  164. package/isMap.esm.js +1 -5
  165. package/isNaNValue.cjs.js +1 -5
  166. package/isNaNValue.esm.js +1 -5
  167. package/isNegativeNumber.cjs.js +1 -5
  168. package/isNegativeNumber.esm.js +1 -5
  169. package/isNull.cjs.js +1 -5
  170. package/isNull.esm.js +1 -5
  171. package/isNullOrUndefined.cjs.js +1 -5
  172. package/isNullOrUndefined.esm.js +1 -5
  173. package/isNumber.cjs.js +1 -7
  174. package/isNumber.esm.js +1 -7
  175. package/isNumericLiteral.cjs.js +1 -8
  176. package/isNumericLiteral.esm.js +1 -8
  177. package/isObject.cjs.js +1 -5
  178. package/isObject.esm.js +1 -5
  179. package/isObjectLike.cjs.js +1 -7
  180. package/isObjectLike.esm.js +1 -7
  181. package/isObjectStringKeyed.cjs.js +1 -9
  182. package/isObjectStringKeyed.esm.js +1 -9
  183. package/isOneOf.cjs.js +1 -3
  184. package/isOneOf.esm.js +1 -3
  185. package/isPlainObject.cjs.js +1 -5
  186. package/isPlainObject.esm.js +1 -5
  187. package/isPositiveNumber.cjs.js +1 -5
  188. package/isPositiveNumber.esm.js +1 -5
  189. package/isPrimitive.cjs.js +1 -5
  190. package/isPrimitive.esm.js +1 -5
  191. package/isPromise.cjs.js +1 -5
  192. package/isPromise.esm.js +1 -5
  193. package/isRegExp.cjs.js +1 -5
  194. package/isRegExp.esm.js +1 -5
  195. package/isServer.cjs.js +1 -4
  196. package/isServer.esm.js +1 -4
  197. package/isServerNow.cjs.js +1 -4
  198. package/isServerNow.esm.js +1 -4
  199. package/isSet.cjs.js +1 -5
  200. package/isSet.esm.js +1 -5
  201. package/isString.cjs.js +1 -5
  202. package/isString.esm.js +1 -5
  203. package/isSymbol.cjs.js +1 -5
  204. package/isSymbol.esm.js +1 -5
  205. package/isType.cjs.js +1 -9
  206. package/isType.esm.js +1 -9
  207. package/isUndefined.cjs.js +1 -5
  208. package/isUndefined.esm.js +1 -5
  209. package/isWeakMap.cjs.js +1 -5
  210. package/isWeakMap.esm.js +1 -5
  211. package/isWeakSet.cjs.js +1 -5
  212. package/isWeakSet.esm.js +1 -5
  213. package/kbToBytes.cjs.js +1 -5
  214. package/kbToBytes.esm.js +1 -5
  215. package/lowercase.cjs.js +1 -5
  216. package/lowercase.esm.js +1 -5
  217. package/mapListBy.cjs.js +1 -5
  218. package/mapListBy.esm.js +1 -5
  219. package/matchSorter.cjs.js +1 -92
  220. package/matchSorter.esm.js +1 -92
  221. package/mbToBytes.cjs.js +1 -5
  222. package/mbToBytes.esm.js +1 -5
  223. package/mergeObjects.cjs.js +1 -8
  224. package/mergeObjects.esm.js +1 -8
  225. package/mergeUrlQueryParams.cjs.js +1 -5
  226. package/mergeUrlQueryParams.esm.js +1 -5
  227. package/moveSortableArrayItemByKey.cjs.js +1 -7
  228. package/moveSortableArrayItemByKey.esm.js +1 -7
  229. package/noop.cjs.js +1 -5
  230. package/noop.esm.js +1 -5
  231. package/normaliseUrl.cjs.js +1 -9
  232. package/normaliseUrl.esm.js +1 -9
  233. package/normaliseUrlPathname.cjs.js +1 -8
  234. package/normaliseUrlPathname.esm.js +1 -8
  235. package/objectFlat.cjs.js +1 -8
  236. package/objectFlat.esm.js +1 -8
  237. package/objectFlip.cjs.js +1 -4
  238. package/objectFlip.esm.js +1 -4
  239. package/objectMergeWithDefaults.cjs.js +1 -10
  240. package/objectMergeWithDefaults.esm.js +1 -10
  241. package/objectOmit.cjs.js +1 -9
  242. package/objectOmit.esm.js +1 -9
  243. package/objectPick.cjs.js +1 -6
  244. package/objectPick.esm.js +1 -6
  245. package/objectSort.cjs.js +1 -8
  246. package/objectSort.esm.js +1 -8
  247. package/objectSortByKeysMatching.cjs.js +1 -9
  248. package/objectSortByKeysMatching.esm.js +1 -9
  249. package/objectToArray.cjs.js +1 -6
  250. package/objectToArray.esm.js +1 -6
  251. package/package.json +1 -1
  252. package/parseCookie.cjs.js +1 -13
  253. package/parseCookie.esm.js +1 -13
  254. package/parseURL.cjs.js +1 -6
  255. package/parseURL.esm.js +1 -6
  256. package/quaranteneProps.cjs.js +1 -17
  257. package/quaranteneProps.esm.js +1 -17
  258. package/randomInt.cjs.js +1 -5
  259. package/randomInt.esm.js +1 -5
  260. package/randomKey.cjs.js +1 -6
  261. package/randomKey.esm.js +1 -6
  262. package/readCookie.cjs.js +1 -5
  263. package/readCookie.esm.js +1 -5
  264. package/removeAccents.cjs.js +1 -3
  265. package/removeAccents.esm.js +1 -3
  266. package/removeCookie.cjs.js +1 -3
  267. package/removeCookie.esm.js +1 -3
  268. package/removeDuplicates.cjs.js +1 -8
  269. package/removeDuplicates.esm.js +1 -8
  270. package/removeDuplicatesByKey.cjs.js +1 -6
  271. package/removeDuplicatesByKey.esm.js +1 -6
  272. package/removeDuplicatesComparing.cjs.js +1 -3
  273. package/removeDuplicatesComparing.esm.js +1 -3
  274. package/removeIndexesFromArray.cjs.js +1 -4
  275. package/removeIndexesFromArray.esm.js +1 -4
  276. package/removeTrailingSlash.cjs.js +1 -5
  277. package/removeTrailingSlash.esm.js +1 -5
  278. package/removeUrlQueryParams.cjs.js +1 -5
  279. package/removeUrlQueryParams.esm.js +1 -5
  280. package/render.cjs.js +1 -52
  281. package/render.esm.js +1 -52
  282. package/round.cjs.js +1 -11
  283. package/round.esm.js +1 -11
  284. package/roundTo.cjs.js +1 -22
  285. package/roundTo.esm.js +1 -22
  286. package/serializeCookie.cjs.js +1 -13
  287. package/serializeCookie.esm.js +1 -13
  288. package/setCookie.cjs.js +1 -10
  289. package/setCookie.esm.js +1 -10
  290. package/shuffle.cjs.js +1 -15
  291. package/shuffle.esm.js +1 -15
  292. package/slugify.cjs.js +1 -19
  293. package/slugify.esm.js +1 -19
  294. package/split.cjs.js +1 -6
  295. package/split.esm.js +1 -6
  296. package/splitReverse.cjs.js +1 -6
  297. package/splitReverse.esm.js +1 -6
  298. package/swapMap.cjs.js +1 -5
  299. package/swapMap.esm.js +1 -5
  300. package/throttle.cjs.js +1 -6
  301. package/throttle.esm.js +1 -6
  302. package/titleCase.cjs.js +1 -5
  303. package/titleCase.esm.js +1 -5
  304. package/toNumber.cjs.js +1 -5
  305. package/toNumber.esm.js +1 -5
  306. package/toRgba.cjs.js +1 -5
  307. package/toRgba.esm.js +1 -5
  308. package/transformToUrlPathname.cjs.js +1 -9
  309. package/transformToUrlPathname.esm.js +1 -9
  310. package/truncate.cjs.js +1 -5
  311. package/truncate.esm.js +1 -5
  312. package/tryUntil.cjs.js +1 -12
  313. package/tryUntil.esm.js +1 -12
  314. package/uid.cjs.js +1 -5
  315. package/uid.esm.js +1 -5
  316. package/updateLinkParams.cjs.js +1 -7
  317. package/updateLinkParams.esm.js +1 -7
  318. package/updateUrlQueryParams.cjs.js +1 -5
  319. package/updateUrlQueryParams.esm.js +1 -5
  320. package/uppercase.cjs.js +1 -6
  321. package/uppercase.esm.js +1 -6
  322. package/uuid.cjs.js +1 -6
  323. package/uuid.esm.js +1 -6
  324. package/uuidNumeric.cjs.js +1 -4
  325. package/uuidNumeric.esm.js +1 -4
  326. package/wait.cjs.js +1 -5
  327. package/wait.esm.js +1 -5
@@ -1,9 +1,3 @@
1
- /**
2
- * It returns the "pathname" cleaned up from the `#` and the initial slashes
3
- * extracting it from the given `hash` string or, if not provided, failling
4
- * back reading the `location.hash`
5
- *
6
- * @category location
7
- */let getUrlHashPathname=(a="")=>(a||location.hash).split("?")[0].replace(/^#\//,"");
1
+ let getUrlHashPathname=(a="")=>(a||location.hash).split("?")[0].replace(/^#\//,"");
8
2
 
9
3
  export { getUrlHashPathname as default, getUrlHashPathname };
@@ -4,16 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isBrowser = require('./isBrowser.cjs.js');
6
6
 
7
- /**
8
- * Get pathname parts
9
- *
10
- * First clean the pathname from the first slash if any then split the pathname
11
- * in parts,
12
- * Given a pathname like: `"/en/{prefix}/{collection}/{slug}"` we obtain
13
- * `[locale, prefix, collection, slug]`
14
- *
15
- * @category location
16
- */let getUrlPathnameParts=(e="")=>(e||(isBrowser.isBrowser?location.pathname:"")).replace(/^\//,"").split("/").filter(Boolean);
7
+ let getUrlPathnameParts=(e="")=>(e||(isBrowser.isBrowser?location.pathname:"")).replace(/^\//,"").split("/").filter(Boolean);
17
8
 
18
9
  exports.default = getUrlPathnameParts;
19
10
  exports.getUrlPathnameParts = getUrlPathnameParts;
@@ -1,14 +1,5 @@
1
1
  import { isBrowser } from './isBrowser.esm.js';
2
2
 
3
- /**
4
- * Get pathname parts
5
- *
6
- * First clean the pathname from the first slash if any then split the pathname
7
- * in parts,
8
- * Given a pathname like: `"/en/{prefix}/{collection}/{slug}"` we obtain
9
- * `[locale, prefix, collection, slug]`
10
- *
11
- * @category location
12
- */let getUrlPathnameParts=(e="")=>(e||(isBrowser?location.pathname:"")).replace(/^\//,"").split("/").filter(Boolean);
3
+ let getUrlPathnameParts=(e="")=>(e||(isBrowser?location.pathname:"")).replace(/^\//,"").split("/").filter(Boolean);
13
4
 
14
5
  export { getUrlPathnameParts as default, getUrlPathnameParts };
@@ -4,18 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isBrowser = require('./isBrowser.cjs.js');
6
6
 
7
- /**
8
- * Get parsed query parameters as object dictionary (from URL or given query string)
9
- *
10
- * @category location
11
- * @param url A URL which contains a `?`, e.g. `?myparam=x` or `https://a.com?myparams=x`.
12
- * If not provided it defaults reading the current URL query string with
13
- * `location.search`. Through this argument you can use this same function to
14
- * parse, for instance, the query params of the `href` of a `<a href="...">` HTML tag.
15
- *
16
- */let getUrlQueryParams=r=>{let t={},a=r?r.split("?")?.[1]:isBrowser.isBrowser?location.search.substring(1):"";if(!a)return {};try{// @see https://stackoverflow.com/a/8649003/1938970
17
- let e=`{"${a.replace(/&/g,'","').replace(/=/g,'":"')}"}`;t=JSON.parse(e,(e,r)=>""===e?r:decodeURIComponent(r));}catch(e){}// do nothing or warn on process.env["NODE_ENV"] === "development"
18
- return t};
7
+ let getUrlQueryParams=r=>{let t={},a=r?r.split("?")?.[1]:isBrowser.isBrowser?location.search.substring(1):"";if(!a)return {};try{let e=`{"${a.replace(/&/g,'","').replace(/=/g,'":"')}"}`;t=JSON.parse(e,(e,r)=>""===e?r:decodeURIComponent(r));}catch(e){}return t};
19
8
 
20
9
  exports.default = getUrlQueryParams;
21
10
  exports.getUrlQueryParams = getUrlQueryParams;
@@ -1,16 +1,5 @@
1
1
  import { isBrowser } from './isBrowser.esm.js';
2
2
 
3
- /**
4
- * Get parsed query parameters as object dictionary (from URL or given query string)
5
- *
6
- * @category location
7
- * @param url A URL which contains a `?`, e.g. `?myparam=x` or `https://a.com?myparams=x`.
8
- * If not provided it defaults reading the current URL query string with
9
- * `location.search`. Through this argument you can use this same function to
10
- * parse, for instance, the query params of the `href` of a `<a href="...">` HTML tag.
11
- *
12
- */let getUrlQueryParams=r=>{let t={},a=r?r.split("?")?.[1]:isBrowser?location.search.substring(1):"";if(!a)return {};try{// @see https://stackoverflow.com/a/8649003/1938970
13
- let e=`{"${a.replace(/&/g,'","').replace(/=/g,'":"')}"}`;t=JSON.parse(e,(e,r)=>""===e?r:decodeURIComponent(r));}catch(e){}// do nothing or warn on process.env["NODE_ENV"] === "development"
14
- return t};
3
+ let getUrlQueryParams=r=>{let t={},a=r?r.split("?")?.[1]:isBrowser?location.search.substring(1):"";if(!a)return {};try{let e=`{"${a.replace(/&/g,'","').replace(/=/g,'":"')}"}`;t=JSON.parse(e,(e,r)=>""===e?r:decodeURIComponent(r));}catch(e){}return t};
15
4
 
16
5
  export { getUrlQueryParams as default, getUrlQueryParams };
package/hashAny.cjs.js CHANGED
@@ -4,36 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isUndefined = require('./isUndefined.cjs.js');
6
6
 
7
- /* eslint-disable eqeqeq */// import { OBJECT, isUndefined } from './shared'
8
- let e=Object,// use WeakMap to store the object->key mapping
9
- // so the objects can be garbage collected.
10
- // WeakMap uses a hashtable under the hood, so the lookup
11
- // complexity is almost O(1).
12
- r=new WeakMap,// counter of the key
13
- s=0;/**
14
- * A stable hash implementation that supports:
15
- * - Fast and ensures unique hash properties
16
- * - Handles unserializable values
17
- * - Handles object key ordering
18
- * - Generates short results
19
- *
20
- * This is not a serialization function, and the result is not guaranteed to be
21
- * parsable.
22
- *
23
- * @borrows [`swr`'s `stableHash`](https://github.com/vercel/swr/blob/main/src/_internal/utils/shared.ts)
24
- *
25
- * That is not exported by the package, the following is not possible:
26
- * ```js
27
- * import { stableHash } from "swr/_internal/dist";
28
- * ```
29
- */const hashAny=n=>{let o,f;let i=typeof n,a=n&&n.constructor,h=a==Date;if(e(n)!==n||h||a==RegExp)o=h?n.toJSON():"symbol"==i?n.toString():"string"==i?JSON.stringify(n):""+n;else {if(// Object/function, not null/date/regexp. Use WeakMap to store the id first.
30
- // If it's already hashed, directly return the result.
31
- o=r.get(n))return o;if(// Store the hash first for circular reference detection before entering the
32
- // recursive `hashAny` calls.
33
- // For other objects like set and map, we use this id directly as the hash.
34
- o=++s+"~",r.set(n,o),a==Array){for(f=0,// Array.
35
- o="@";f<n.length;f++)o+=hashAny(n[f])+",";r.set(n,o);}if(a==e){// Object, sort keys.
36
- o="#";let s=e.keys(n).sort();for(;!isUndefined.isUndefined(f=s.pop());)isUndefined.isUndefined(n[f])||(o+=f+":"+hashAny(n[f])+",");r.set(n,o);}}return o};
7
+ let e=Object,r=new WeakMap,s=0;const hashAny=n=>{let o,f;let i=typeof n,a=n&&n.constructor,h=a==Date;if(e(n)!==n||h||a==RegExp)o=h?n.toJSON():"symbol"==i?n.toString():"string"==i?JSON.stringify(n):""+n;else {if(o=r.get(n))return o;if(o=++s+"~",r.set(n,o),a==Array){for(f=0,o="@";f<n.length;f++)o+=hashAny(n[f])+",";r.set(n,o);}if(a==e){o="#";let s=e.keys(n).sort();for(;!isUndefined.isUndefined(f=s.pop());)isUndefined.isUndefined(n[f])||(o+=f+":"+hashAny(n[f])+",");r.set(n,o);}}return o};
37
8
 
38
9
  exports.default = hashAny;
39
10
  exports.hashAny = hashAny;
package/hashAny.esm.js CHANGED
@@ -1,34 +1,5 @@
1
1
  import { isUndefined } from './isUndefined.esm.js';
2
2
 
3
- /* eslint-disable eqeqeq */// import { OBJECT, isUndefined } from './shared'
4
- let e=Object,// use WeakMap to store the object->key mapping
5
- // so the objects can be garbage collected.
6
- // WeakMap uses a hashtable under the hood, so the lookup
7
- // complexity is almost O(1).
8
- r=new WeakMap,// counter of the key
9
- s=0;/**
10
- * A stable hash implementation that supports:
11
- * - Fast and ensures unique hash properties
12
- * - Handles unserializable values
13
- * - Handles object key ordering
14
- * - Generates short results
15
- *
16
- * This is not a serialization function, and the result is not guaranteed to be
17
- * parsable.
18
- *
19
- * @borrows [`swr`'s `stableHash`](https://github.com/vercel/swr/blob/main/src/_internal/utils/shared.ts)
20
- *
21
- * That is not exported by the package, the following is not possible:
22
- * ```js
23
- * import { stableHash } from "swr/_internal/dist";
24
- * ```
25
- */const hashAny=n=>{let o,f;let i=typeof n,a=n&&n.constructor,h=a==Date;if(e(n)!==n||h||a==RegExp)o=h?n.toJSON():"symbol"==i?n.toString():"string"==i?JSON.stringify(n):""+n;else {if(// Object/function, not null/date/regexp. Use WeakMap to store the id first.
26
- // If it's already hashed, directly return the result.
27
- o=r.get(n))return o;if(// Store the hash first for circular reference detection before entering the
28
- // recursive `hashAny` calls.
29
- // For other objects like set and map, we use this id directly as the hash.
30
- o=++s+"~",r.set(n,o),a==Array){for(f=0,// Array.
31
- o="@";f<n.length;f++)o+=hashAny(n[f])+",";r.set(n,o);}if(a==e){// Object, sort keys.
32
- o="#";let s=e.keys(n).sort();for(;!isUndefined(f=s.pop());)isUndefined(n[f])||(o+=f+":"+hashAny(n[f])+",");r.set(n,o);}}return o};
3
+ let e=Object,r=new WeakMap,s=0;const hashAny=n=>{let o,f;let i=typeof n,a=n&&n.constructor,h=a==Date;if(e(n)!==n||h||a==RegExp)o=h?n.toJSON():"symbol"==i?n.toString():"string"==i?JSON.stringify(n):""+n;else {if(o=r.get(n))return o;if(o=++s+"~",r.set(n,o),a==Array){for(f=0,o="@";f<n.length;f++)o+=hashAny(n[f])+",";r.set(n,o);}if(a==e){o="#";let s=e.keys(n).sort();for(;!isUndefined(f=s.pop());)isUndefined(n[f])||(o+=f+":"+hashAny(n[f])+",");r.set(n,o);}}return o};
33
4
 
34
5
  export { hashAny as default, hashAny };
@@ -2,11 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- /**
6
- * Empty img pixel as a string to inline
7
- *
8
- * @category img
9
- */let imgEmptyPixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
5
+ let imgEmptyPixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
10
6
 
11
7
  exports.default = imgEmptyPixel;
12
8
  exports.imgEmptyPixel = imgEmptyPixel;
@@ -1,7 +1,3 @@
1
- /**
2
- * Empty img pixel as a string to inline
3
- *
4
- * @category img
5
- */let imgEmptyPixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
1
+ let imgEmptyPixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
6
2
 
7
3
  export { imgEmptyPixel as default, imgEmptyPixel };
package/invariant.cjs.js CHANGED
@@ -2,23 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- /**
6
- * FIXME: invariant calls do not get tree shaked in minified output of projects
7
- * using it. Let's not use it internally and not export it from `@koine/utils`
8
- * until we find a tree-shakeable way of doing this. For now just wrapping
9
- * the logging code into `if (process.env["NODE_ENV"] === "development") {}`
10
- * works better despite it is more verbose.
11
- *
12
- * @resources
13
- * - https://github.com/alexreardon/tiny-invariant
14
- * - https://github.com/zertosh/invariant
15
- * - https://stackoverflow.com/q/39055159/1938970
16
- *
17
- * @param condition The condition that, if `true` will throw the error during development
18
- * @param message A string or a function that returns a string
19
- * @param lib The library name to show in the error message prefix. When `lib` is also specified it outputs `[lib:prefix]: the message`, otherwise just `[lib|prefix]: the message`)
20
- * @param prefix The library name to show in the error message prefix. When `lib` is also specified it outputs `[lib:prefix]: the message`, otherwise just `[lib|prefix]: the message`)
21
- */let invariant=(e,t,r,n)=>{if("development"===process.env.NODE_ENV){if(e)return;let o="function"==typeof t?t():t,i="";throw r&&n?i=`[${r}:${n}] `:r&&(i=`[${r}] `),Error(i+o)}};
5
+ let invariant=(e,t,r,n)=>{if("development"===process.env.NODE_ENV){if(e)return;let o="function"==typeof t?t():t,i="";throw r&&n?i=`[${r}:${n}] `:r&&(i=`[${r}] `),Error(i+o)}};
22
6
 
23
7
  exports.default = invariant;
24
8
  exports.invariant = invariant;
package/invariant.esm.js CHANGED
@@ -1,19 +1,3 @@
1
- /**
2
- * FIXME: invariant calls do not get tree shaked in minified output of projects
3
- * using it. Let's not use it internally and not export it from `@koine/utils`
4
- * until we find a tree-shakeable way of doing this. For now just wrapping
5
- * the logging code into `if (process.env["NODE_ENV"] === "development") {}`
6
- * works better despite it is more verbose.
7
- *
8
- * @resources
9
- * - https://github.com/alexreardon/tiny-invariant
10
- * - https://github.com/zertosh/invariant
11
- * - https://stackoverflow.com/q/39055159/1938970
12
- *
13
- * @param condition The condition that, if `true` will throw the error during development
14
- * @param message A string or a function that returns a string
15
- * @param lib The library name to show in the error message prefix. When `lib` is also specified it outputs `[lib:prefix]: the message`, otherwise just `[lib|prefix]: the message`)
16
- * @param prefix The library name to show in the error message prefix. When `lib` is also specified it outputs `[lib:prefix]: the message`, otherwise just `[lib|prefix]: the message`)
17
- */let invariant=(e,t,r,n)=>{if("development"===process.env.NODE_ENV){if(e)return;let o="function"==typeof t?t():t,i="";throw r&&n?i=`[${r}:${n}] `:r&&(i=`[${r}] `),Error(i+o)}};
1
+ let invariant=(e,t,r,n)=>{if("development"===process.env.NODE_ENV){if(e)return;let o="function"==typeof t?t():t,i="";throw r&&n?i=`[${r}:${n}] `:r&&(i=`[${r}] `),Error(i+o)}};
18
2
 
19
3
  export { invariant as default, invariant };
@@ -2,16 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- let t=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;// let reg = /^(?:[a-z+]+:)?\/\//i;
6
- /**
7
- * @borrows [next.js source code](https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/utils.ts#L322-L325)
8
- * @borrows [SO's answer](https://stackoverflow.com/a/19709846/1938970)
9
- *
10
- * @see Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
11
- * @see Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
12
- *
13
- * @category is
14
- */let isAbsoluteUrl=e=>t.test(e);
5
+ let t=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;let isAbsoluteUrl=e=>t.test(e);
15
6
 
16
7
  exports.default = isAbsoluteUrl;
17
8
  exports.isAbsoluteUrl = isAbsoluteUrl;
@@ -1,12 +1,3 @@
1
- let t=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;// let reg = /^(?:[a-z+]+:)?\/\//i;
2
- /**
3
- * @borrows [next.js source code](https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/utils.ts#L322-L325)
4
- * @borrows [SO's answer](https://stackoverflow.com/a/19709846/1938970)
5
- *
6
- * @see Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
7
- * @see Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
8
- *
9
- * @category is
10
- */let isAbsoluteUrl=e=>t.test(e);
1
+ let t=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;let isAbsoluteUrl=e=>t.test(e);
11
2
 
12
3
  export { isAbsoluteUrl as default, isAbsoluteUrl };
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getType = require('./getType.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is an any kind of object (including special classes or objects with different prototypes)
9
- *
10
- * @category is
11
- */let isAnyObject=t=>"Object"===getType.getType(t);
7
+ let isAnyObject=t=>"Object"===getType.getType(t);
12
8
 
13
9
  exports.default = isAnyObject;
14
10
  exports.isAnyObject = isAnyObject;
@@ -1,9 +1,5 @@
1
1
  import { getType } from './getType.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is an any kind of object (including special classes or objects with different prototypes)
5
- *
6
- * @category is
7
- */let isAnyObject=t=>"Object"===getType(t);
3
+ let isAnyObject=t=>"Object"===getType(t);
8
4
 
9
5
  export { isAnyObject as default, isAnyObject };
package/isArray.cjs.js CHANGED
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getType = require('./getType.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is an array
9
- *
10
- * @category is
11
- */let isArray=e=>"Array"===getType.getType(e);
7
+ let isArray=e=>"Array"===getType.getType(e);
12
8
 
13
9
  exports.default = isArray;
14
10
  exports.isArray = isArray;
package/isArray.esm.js CHANGED
@@ -1,9 +1,5 @@
1
1
  import { getType } from './getType.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is an array
5
- *
6
- * @category is
7
- */let isArray=e=>"Array"===getType(e);
3
+ let isArray=e=>"Array"===getType(e);
8
4
 
9
5
  export { isArray as default, isArray };
package/isBlob.cjs.js CHANGED
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getType = require('./getType.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is a Blob
9
- *
10
- * @category is
11
- */let isBlob=e=>"Blob"===getType.getType(e);
7
+ let isBlob=e=>"Blob"===getType.getType(e);
12
8
 
13
9
  exports.default = isBlob;
14
10
  exports.isBlob = isBlob;
package/isBlob.esm.js CHANGED
@@ -1,9 +1,5 @@
1
1
  import { getType } from './getType.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is a Blob
5
- *
6
- * @category is
7
- */let isBlob=e=>"Blob"===getType(e);
3
+ let isBlob=e=>"Blob"===getType(e);
8
4
 
9
5
  export { isBlob as default, isBlob };
package/isBoolean.cjs.js CHANGED
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getType = require('./getType.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is a boolean
9
- *
10
- * @category is
11
- */let isBoolean=e=>"Boolean"===getType.getType(e);
7
+ let isBoolean=e=>"Boolean"===getType.getType(e);
12
8
 
13
9
  exports.default = isBoolean;
14
10
  exports.isBoolean = isBoolean;
package/isBoolean.esm.js CHANGED
@@ -1,9 +1,5 @@
1
1
  import { getType } from './getType.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is a boolean
5
- *
6
- * @category is
7
- */let isBoolean=e=>"Boolean"===getType(e);
3
+ let isBoolean=e=>"Boolean"===getType(e);
8
4
 
9
5
  export { isBoolean as default, isBoolean };
package/isBrowser.cjs.js CHANGED
@@ -2,10 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- /**
6
- * @category ssr
7
- * @category is
8
- */let isBrowser="undefined"!=typeof window;
5
+ let isBrowser="undefined"!=typeof window;
9
6
 
10
7
  exports.default = isBrowser;
11
8
  exports.isBrowser = isBrowser;
package/isBrowser.esm.js CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * @category ssr
3
- * @category is
4
- */let isBrowser="undefined"!=typeof window;
1
+ let isBrowser="undefined"!=typeof window;
5
2
 
6
3
  export { isBrowser as default, isBrowser };
@@ -4,10 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isUndefined = require('./isUndefined.cjs.js');
6
6
 
7
- /**
8
- * @category ssr
9
- * @category is
10
- */let isBrowserNow=()=>!isUndefined.isUndefined(window);
7
+ let isBrowserNow=()=>!isUndefined.isUndefined(window);
11
8
 
12
9
  exports.default = isBrowserNow;
13
10
  exports.isBrowserNow = isBrowserNow;
@@ -1,8 +1,5 @@
1
1
  import { isUndefined } from './isUndefined.esm.js';
2
2
 
3
- /**
4
- * @category ssr
5
- * @category is
6
- */let isBrowserNow=()=>!isUndefined(window);
3
+ let isBrowserNow=()=>!isUndefined(window);
7
4
 
8
5
  export { isBrowserNow as default, isBrowserNow };
package/isDate.cjs.js CHANGED
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getType = require('./getType.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is a Date, and that the date is valid
9
- *
10
- * @category is
11
- */let isDate=t=>"Date"===getType.getType(t)&&!isNaN(t);
7
+ let isDate=t=>"Date"===getType.getType(t)&&!isNaN(t);
12
8
 
13
9
  exports.default = isDate;
14
10
  exports.isDate = isDate;
package/isDate.esm.js CHANGED
@@ -1,9 +1,5 @@
1
1
  import { getType } from './getType.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is a Date, and that the date is valid
5
- *
6
- * @category is
7
- */let isDate=t=>"Date"===getType(t)&&!isNaN(t);
3
+ let isDate=t=>"Date"===getType(t)&&!isNaN(t);
8
4
 
9
5
  export { isDate as default, isDate };
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isArray = require('./isArray.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is a an empty array
9
- *
10
- * @category is
11
- */let isEmptyArray=t=>isArray.isArray(t)&&0===t.length;
7
+ let isEmptyArray=t=>isArray.isArray(t)&&0===t.length;
12
8
 
13
9
  exports.default = isEmptyArray;
14
10
  exports.isEmptyArray = isEmptyArray;
@@ -1,9 +1,5 @@
1
1
  import { isArray } from './isArray.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is a an empty array
5
- *
6
- * @category is
7
- */let isEmptyArray=t=>isArray(t)&&0===t.length;
3
+ let isEmptyArray=t=>isArray(t)&&0===t.length;
8
4
 
9
5
  export { isEmptyArray as default, isEmptyArray };
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isPlainObject = require('./isPlainObject.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is a an empty object (excluding special classes or objects with other prototypes)
9
- *
10
- * @category is
11
- */let isEmptyObject=e=>isPlainObject.isPlainObject(e)&&0===Object.keys(e).length;
7
+ let isEmptyObject=e=>isPlainObject.isPlainObject(e)&&0===Object.keys(e).length;
12
8
 
13
9
  exports.default = isEmptyObject;
14
10
  exports.isEmptyObject = isEmptyObject;
@@ -1,9 +1,5 @@
1
1
  import { isPlainObject } from './isPlainObject.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is a an empty object (excluding special classes or objects with other prototypes)
5
- *
6
- * @category is
7
- */let isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length;
3
+ let isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length;
8
4
 
9
5
  export { isEmptyObject as default, isEmptyObject };
@@ -2,11 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- /**
6
- * Returns whether the payload is ''
7
- *
8
- * @category is
9
- */let isEmptyString=t=>""===t;
5
+ let isEmptyString=t=>""===t;
10
6
 
11
7
  exports.default = isEmptyString;
12
8
  exports.isEmptyString = isEmptyString;
@@ -1,7 +1,3 @@
1
- /**
2
- * Returns whether the payload is ''
3
- *
4
- * @category is
5
- */let isEmptyString=t=>""===t;
1
+ let isEmptyString=t=>""===t;
6
2
 
7
3
  export { isEmptyString as default, isEmptyString };
package/isError.cjs.js CHANGED
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getType = require('./getType.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is an Error
9
- *
10
- * @category is
11
- */let isError=o=>"Error"===getType.getType(o);
7
+ let isError=o=>"Error"===getType.getType(o);
12
8
 
13
9
  exports.default = isError;
14
10
  exports.isError = isError;
package/isError.esm.js CHANGED
@@ -1,9 +1,5 @@
1
1
  import { getType } from './getType.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is an Error
5
- *
6
- * @category is
7
- */let isError=o=>"Error"===getType(o);
3
+ let isError=o=>"Error"===getType(o);
8
4
 
9
5
  export { isError as default, isError };
@@ -4,15 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isBrowser = require('./isBrowser.cjs.js');
6
6
 
7
- /**
8
- * Is external url compared to the given current URL (if not provided it falls
9
- * back to `location.href`)
10
- *
11
- * @category location
12
- *
13
- */let isExternalUrl=(r,t)=>{let l=/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i,o=l.exec(r);return(// if no matches are found it means we either have an invalid URL, a relative
14
- // URL or a hash link, and those are not considered externals
15
- !!o&&(!(t=t||isBrowser.isBrowser?location.href:"")||l.exec(t)?.[1]!==o[1]))};
7
+ let isExternalUrl=(r,t)=>{let l=/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i,o=l.exec(r);return !!o&&(!(t=t||isBrowser.isBrowser?location.href:"")||l.exec(t)?.[1]!==o[1])};
16
8
 
17
9
  exports.default = isExternalUrl;
18
10
  exports.isExternalUrl = isExternalUrl;
@@ -1,13 +1,5 @@
1
1
  import { isBrowser } from './isBrowser.esm.js';
2
2
 
3
- /**
4
- * Is external url compared to the given current URL (if not provided it falls
5
- * back to `location.href`)
6
- *
7
- * @category location
8
- *
9
- */let isExternalUrl=(r,t)=>{let l=/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i,o=l.exec(r);return(// if no matches are found it means we either have an invalid URL, a relative
10
- // URL or a hash link, and those are not considered externals
11
- !!o&&(!(t=t||isBrowser?location.href:"")||l.exec(t)?.[1]!==o[1]))};
3
+ let isExternalUrl=(r,t)=>{let l=/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i,o=l.exec(r);return !!o&&(!(t=t||isBrowser?location.href:"")||l.exec(t)?.[1]!==o[1])};
12
4
 
13
5
  export { isExternalUrl as default, isExternalUrl };
package/isFile.cjs.js CHANGED
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getType = require('./getType.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is a File
9
- *
10
- * @category is
11
- */let isFile=i=>"File"===getType.getType(i);
7
+ let isFile=i=>"File"===getType.getType(i);
12
8
 
13
9
  exports.default = isFile;
14
10
  exports.isFile = isFile;
package/isFile.esm.js CHANGED
@@ -1,9 +1,5 @@
1
1
  import { getType } from './getType.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is a File
5
- *
6
- * @category is
7
- */let isFile=i=>"File"===getType(i);
3
+ let isFile=i=>"File"===getType(i);
8
4
 
9
5
  export { isFile as default, isFile };
package/isFloat.cjs.js CHANGED
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var isNumber = require('./isNumber.cjs.js');
6
6
 
7
- /**
8
- * Returns whether the payload is a float number
9
- *
10
- * @category is
11
- */let isFloat=o=>isNumber.isNumber(o)&&o%1!=0;
7
+ let isFloat=o=>isNumber.isNumber(o)&&o%1!=0;
12
8
 
13
9
  exports.default = isFloat;
14
10
  exports.isFloat = isFloat;
package/isFloat.esm.js CHANGED
@@ -1,9 +1,5 @@
1
1
  import { isNumber } from './isNumber.esm.js';
2
2
 
3
- /**
4
- * Returns whether the payload is a float number
5
- *
6
- * @category is
7
- */let isFloat=o=>isNumber(o)&&o%1!=0;
3
+ let isFloat=o=>isNumber(o)&&o%1!=0;
8
4
 
9
5
  export { isFloat as default, isFloat };