@pezkuwi/util 14.0.23 → 14.0.26

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 (1380) hide show
  1. package/bundle-pezkuwi-util.js +42 -9
  2. package/cjs/format/formatDecimal.js +46 -5
  3. package/cjs/packageInfo.js +1 -1
  4. package/cjs/u8a/wrap.d.ts +3 -3
  5. package/format/formatDecimal.js +46 -5
  6. package/package.json +13 -18
  7. package/packageInfo.js +1 -1
  8. package/u8a/wrap.d.ts +3 -3
  9. package/build/LICENSE +0 -201
  10. package/build/README.md +0 -17
  11. package/build/array/chunk.d.ts +0 -15
  12. package/build/array/chunk.js +0 -27
  13. package/build/array/filter.d.ts +0 -16
  14. package/build/array/filter.js +0 -19
  15. package/build/array/flatten.d.ts +0 -15
  16. package/build/array/flatten.js +0 -39
  17. package/build/array/index.d.ts +0 -10
  18. package/build/array/index.js +0 -10
  19. package/build/array/range.d.ts +0 -16
  20. package/build/array/range.js +0 -25
  21. package/build/array/shuffle.d.ts +0 -5
  22. package/build/array/shuffle.js +0 -19
  23. package/build/array/unzip.d.ts +0 -5
  24. package/build/array/unzip.js +0 -13
  25. package/build/array/zip.d.ts +0 -5
  26. package/build/array/zip.js +0 -12
  27. package/build/assert.d.ts +0 -29
  28. package/build/assert.js +0 -39
  29. package/build/bi/consts.d.ts +0 -90
  30. package/build/bi/consts.js +0 -91
  31. package/build/bi/helpers.d.ts +0 -2
  32. package/build/bi/helpers.js +0 -16
  33. package/build/bi/index.d.ts +0 -9
  34. package/build/bi/index.js +0 -9
  35. package/build/bi/min.d.ts +0 -10
  36. package/build/bi/min.js +0 -11
  37. package/build/bi/sqrt.d.ts +0 -7
  38. package/build/bi/sqrt.js +0 -29
  39. package/build/bi/toBigInt.d.ts +0 -7
  40. package/build/bi/toBigInt.js +0 -25
  41. package/build/bi/toHex.d.ts +0 -7
  42. package/build/bi/toHex.js +0 -9
  43. package/build/bi/toU8a.d.ts +0 -7
  44. package/build/bi/toU8a.js +0 -49
  45. package/build/bn/bn.d.ts +0 -2
  46. package/build/bn/bn.js +0 -2
  47. package/build/bn/consts.d.ts +0 -91
  48. package/build/bn/consts.js +0 -91
  49. package/build/bn/fromHex.d.ts +0 -1
  50. package/build/bn/fromHex.js +0 -1
  51. package/build/bn/index.d.ts +0 -11
  52. package/build/bn/index.js +0 -11
  53. package/build/bn/min.d.ts +0 -29
  54. package/build/bn/min.js +0 -29
  55. package/build/bn/sqrt.d.ts +0 -16
  56. package/build/bn/sqrt.js +0 -38
  57. package/build/bn/toBn.d.ts +0 -19
  58. package/build/bn/toBn.js +0 -37
  59. package/build/bn/toHex.d.ts +0 -18
  60. package/build/bn/toHex.js +0 -20
  61. package/build/bn/toU8a.d.ts +0 -17
  62. package/build/bn/toU8a.js +0 -33
  63. package/build/buffer/index.d.ts +0 -4
  64. package/build/buffer/index.js +0 -4
  65. package/build/buffer/toU8a.d.ts +0 -15
  66. package/build/buffer/toU8a.js +0 -17
  67. package/build/bundle.d.ts +0 -28
  68. package/build/bundle.js +0 -28
  69. package/build/cjs/array/chunk.d.ts +0 -15
  70. package/build/cjs/array/chunk.js +0 -30
  71. package/build/cjs/array/filter.d.ts +0 -16
  72. package/build/cjs/array/filter.js +0 -22
  73. package/build/cjs/array/flatten.d.ts +0 -15
  74. package/build/cjs/array/flatten.js +0 -42
  75. package/build/cjs/array/index.d.ts +0 -10
  76. package/build/cjs/array/index.js +0 -20
  77. package/build/cjs/array/range.d.ts +0 -16
  78. package/build/cjs/array/range.js +0 -28
  79. package/build/cjs/array/shuffle.d.ts +0 -5
  80. package/build/cjs/array/shuffle.js +0 -22
  81. package/build/cjs/array/unzip.d.ts +0 -5
  82. package/build/cjs/array/unzip.js +0 -16
  83. package/build/cjs/array/zip.d.ts +0 -5
  84. package/build/cjs/array/zip.js +0 -15
  85. package/build/cjs/assert.d.ts +0 -29
  86. package/build/cjs/assert.js +0 -44
  87. package/build/cjs/bi/consts.d.ts +0 -90
  88. package/build/cjs/bi/consts.js +0 -94
  89. package/build/cjs/bi/helpers.d.ts +0 -2
  90. package/build/cjs/bi/helpers.js +0 -19
  91. package/build/cjs/bi/index.d.ts +0 -9
  92. package/build/cjs/bi/index.js +0 -19
  93. package/build/cjs/bi/min.d.ts +0 -10
  94. package/build/cjs/bi/min.js +0 -14
  95. package/build/cjs/bi/sqrt.d.ts +0 -7
  96. package/build/cjs/bi/sqrt.js +0 -32
  97. package/build/cjs/bi/toBigInt.d.ts +0 -7
  98. package/build/cjs/bi/toBigInt.js +0 -28
  99. package/build/cjs/bi/toHex.d.ts +0 -7
  100. package/build/cjs/bi/toHex.js +0 -12
  101. package/build/cjs/bi/toU8a.d.ts +0 -7
  102. package/build/cjs/bi/toU8a.js +0 -52
  103. package/build/cjs/bn/bn.d.ts +0 -2
  104. package/build/cjs/bn/bn.js +0 -6
  105. package/build/cjs/bn/consts.d.ts +0 -91
  106. package/build/cjs/bn/consts.js +0 -94
  107. package/build/cjs/bn/fromHex.d.ts +0 -1
  108. package/build/cjs/bn/fromHex.js +0 -5
  109. package/build/cjs/bn/index.d.ts +0 -11
  110. package/build/cjs/bn/index.js +0 -23
  111. package/build/cjs/bn/min.d.ts +0 -29
  112. package/build/cjs/bn/min.js +0 -32
  113. package/build/cjs/bn/sqrt.d.ts +0 -16
  114. package/build/cjs/bn/sqrt.js +0 -41
  115. package/build/cjs/bn/toBn.d.ts +0 -19
  116. package/build/cjs/bn/toBn.js +0 -40
  117. package/build/cjs/bn/toHex.d.ts +0 -18
  118. package/build/cjs/bn/toHex.js +0 -23
  119. package/build/cjs/bn/toU8a.d.ts +0 -17
  120. package/build/cjs/bn/toU8a.js +0 -36
  121. package/build/cjs/buffer/index.d.ts +0 -4
  122. package/build/cjs/buffer/index.js +0 -8
  123. package/build/cjs/buffer/toU8a.d.ts +0 -15
  124. package/build/cjs/buffer/toU8a.js +0 -20
  125. package/build/cjs/bundle.d.ts +0 -28
  126. package/build/cjs/bundle.js +0 -33
  127. package/build/cjs/compact/addLength.d.ts +0 -13
  128. package/build/cjs/compact/addLength.js +0 -23
  129. package/build/cjs/compact/defaults.d.ts +0 -3
  130. package/build/cjs/compact/defaults.js +0 -5
  131. package/build/cjs/compact/fromU8a.d.ts +0 -22
  132. package/build/cjs/compact/fromU8a.js +0 -92
  133. package/build/cjs/compact/index.d.ts +0 -24
  134. package/build/cjs/compact/index.js +0 -32
  135. package/build/cjs/compact/stripLength.d.ts +0 -13
  136. package/build/cjs/compact/stripLength.js +0 -24
  137. package/build/cjs/compact/toU8a.d.ts +0 -14
  138. package/build/cjs/compact/toU8a.js +0 -48
  139. package/build/cjs/compact/types.d.ts +0 -1
  140. package/build/cjs/compact/types.js +0 -2
  141. package/build/cjs/detectPackage.d.ts +0 -17
  142. package/build/cjs/detectPackage.js +0 -100
  143. package/build/cjs/extractTime.d.ts +0 -14
  144. package/build/cjs/extractTime.js +0 -56
  145. package/build/cjs/float/index.d.ts +0 -1
  146. package/build/cjs/float/index.js +0 -5
  147. package/build/cjs/float/toU8a.d.ts +0 -11
  148. package/build/cjs/float/toU8a.js +0 -22
  149. package/build/cjs/format/formatBalance.d.ts +0 -54
  150. package/build/cjs/format/formatBalance.js +0 -88
  151. package/build/cjs/format/formatDate.d.ts +0 -5
  152. package/build/cjs/format/formatDate.js +0 -20
  153. package/build/cjs/format/formatDecimal.d.ts +0 -5
  154. package/build/cjs/format/formatDecimal.js +0 -19
  155. package/build/cjs/format/formatElapsed.d.ts +0 -7
  156. package/build/cjs/format/formatElapsed.js +0 -30
  157. package/build/cjs/format/formatNumber.d.ts +0 -14
  158. package/build/cjs/format/formatNumber.js +0 -14
  159. package/build/cjs/format/getSeparator.d.ts +0 -9
  160. package/build/cjs/format/getSeparator.js +0 -14
  161. package/build/cjs/format/index.d.ts +0 -6
  162. package/build/cjs/format/index.js +0 -16
  163. package/build/cjs/format/si.d.ts +0 -9
  164. package/build/cjs/format/si.js +0 -45
  165. package/build/cjs/has.d.ts +0 -14
  166. package/build/cjs/has.js +0 -19
  167. package/build/cjs/hex/addPrefix.d.ts +0 -16
  168. package/build/cjs/hex/addPrefix.js +0 -23
  169. package/build/cjs/hex/fixLength.d.ts +0 -18
  170. package/build/cjs/hex/fixLength.js +0 -30
  171. package/build/cjs/hex/hasPrefix.d.ts +0 -16
  172. package/build/cjs/hex/hasPrefix.js +0 -21
  173. package/build/cjs/hex/index.d.ts +0 -12
  174. package/build/cjs/hex/index.js +0 -24
  175. package/build/cjs/hex/stripPrefix.d.ts +0 -15
  176. package/build/cjs/hex/stripPrefix.js +0 -30
  177. package/build/cjs/hex/toBigInt.d.ts +0 -6
  178. package/build/cjs/hex/toBigInt.js +0 -15
  179. package/build/cjs/hex/toBn.d.ts +0 -21
  180. package/build/cjs/hex/toBn.js +0 -35
  181. package/build/cjs/hex/toNumber.d.ts +0 -15
  182. package/build/cjs/hex/toNumber.js +0 -23
  183. package/build/cjs/hex/toString.d.ts +0 -15
  184. package/build/cjs/hex/toString.js +0 -22
  185. package/build/cjs/hex/toU8a.d.ts +0 -16
  186. package/build/cjs/hex/toU8a.js +0 -57
  187. package/build/cjs/hex/toU8aBuffer.d.ts +0 -16
  188. package/build/cjs/hex/toU8aBuffer.js +0 -43
  189. package/build/cjs/index.d.ts +0 -2
  190. package/build/cjs/index.js +0 -5
  191. package/build/cjs/is/array.d.ts +0 -5
  192. package/build/cjs/is/array.js +0 -10
  193. package/build/cjs/is/ascii.d.ts +0 -8
  194. package/build/cjs/is/ascii.js +0 -43
  195. package/build/cjs/is/bigInt.d.ts +0 -15
  196. package/build/cjs/is/bigInt.js +0 -20
  197. package/build/cjs/is/bn.d.ts +0 -17
  198. package/build/cjs/is/bn.js +0 -22
  199. package/build/cjs/is/boolean.d.ts +0 -15
  200. package/build/cjs/is/boolean.js +0 -20
  201. package/build/cjs/is/buffer.d.ts +0 -16
  202. package/build/cjs/is/buffer.js +0 -24
  203. package/build/cjs/is/childClass.d.ts +0 -17
  204. package/build/cjs/is/childClass.js +0 -26
  205. package/build/cjs/is/class.d.ts +0 -6
  206. package/build/cjs/is/class.js +0 -9
  207. package/build/cjs/is/codec.d.ts +0 -12
  208. package/build/cjs/is/codec.js +0 -9
  209. package/build/cjs/is/compact.d.ts +0 -13
  210. package/build/cjs/is/compact.js +0 -9
  211. package/build/cjs/is/error.d.ts +0 -15
  212. package/build/cjs/is/error.js +0 -21
  213. package/build/cjs/is/function.d.ts +0 -17
  214. package/build/cjs/is/function.js +0 -20
  215. package/build/cjs/is/helpers.d.ts +0 -3
  216. package/build/cjs/is/helpers.js +0 -19
  217. package/build/cjs/is/hex.d.ts +0 -19
  218. package/build/cjs/is/hex.js +0 -27
  219. package/build/cjs/is/index.d.ts +0 -33
  220. package/build/cjs/is/index.js +0 -66
  221. package/build/cjs/is/instanceOf.d.ts +0 -15
  222. package/build/cjs/is/instanceOf.js +0 -21
  223. package/build/cjs/is/ip.d.ts +0 -18
  224. package/build/cjs/is/ip.js +0 -44
  225. package/build/cjs/is/jsonObject.d.ts +0 -27
  226. package/build/cjs/is/jsonObject.js +0 -40
  227. package/build/cjs/is/null.d.ts +0 -15
  228. package/build/cjs/is/null.js +0 -20
  229. package/build/cjs/is/number.d.ts +0 -15
  230. package/build/cjs/is/number.js +0 -20
  231. package/build/cjs/is/object.d.ts +0 -18
  232. package/build/cjs/is/object.js +0 -21
  233. package/build/cjs/is/observable.d.ts +0 -16
  234. package/build/cjs/is/observable.js +0 -19
  235. package/build/cjs/is/promise.d.ts +0 -1
  236. package/build/cjs/is/promise.js +0 -5
  237. package/build/cjs/is/riscv.d.ts +0 -7
  238. package/build/cjs/is/riscv.js +0 -20
  239. package/build/cjs/is/string.d.ts +0 -16
  240. package/build/cjs/is/string.js +0 -20
  241. package/build/cjs/is/testChain.d.ts +0 -1
  242. package/build/cjs/is/testChain.js +0 -10
  243. package/build/cjs/is/toBigInt.d.ts +0 -2
  244. package/build/cjs/is/toBigInt.js +0 -5
  245. package/build/cjs/is/toBn.d.ts +0 -2
  246. package/build/cjs/is/toBn.js +0 -5
  247. package/build/cjs/is/u8a.d.ts +0 -15
  248. package/build/cjs/is/u8a.js +0 -23
  249. package/build/cjs/is/undefined.d.ts +0 -15
  250. package/build/cjs/is/undefined.js +0 -20
  251. package/build/cjs/is/utf8.d.ts +0 -7
  252. package/build/cjs/is/utf8.js +0 -200
  253. package/build/cjs/is/wasm.d.ts +0 -7
  254. package/build/cjs/is/wasm.js +0 -15
  255. package/build/cjs/lazy.d.ts +0 -14
  256. package/build/cjs/lazy.js +0 -55
  257. package/build/cjs/logger.d.ts +0 -17
  258. package/build/cjs/logger.js +0 -122
  259. package/build/cjs/memoize.d.ts +0 -10
  260. package/build/cjs/memoize.js +0 -33
  261. package/build/cjs/nextTick.d.ts +0 -5
  262. package/build/cjs/nextTick.js +0 -27
  263. package/build/cjs/noop.d.ts +0 -8
  264. package/build/cjs/noop.js +0 -16
  265. package/build/cjs/number/index.d.ts +0 -5
  266. package/build/cjs/number/index.js +0 -10
  267. package/build/cjs/number/toHex.d.ts +0 -17
  268. package/build/cjs/number/toHex.js +0 -23
  269. package/build/cjs/number/toU8a.d.ts +0 -15
  270. package/build/cjs/number/toU8a.js +0 -22
  271. package/build/cjs/object/clear.d.ts +0 -5
  272. package/build/cjs/object/clear.js +0 -14
  273. package/build/cjs/object/copy.d.ts +0 -5
  274. package/build/cjs/object/copy.js +0 -11
  275. package/build/cjs/object/entries.d.ts +0 -9
  276. package/build/cjs/object/entries.js +0 -10
  277. package/build/cjs/object/index.d.ts +0 -7
  278. package/build/cjs/object/index.js +0 -18
  279. package/build/cjs/object/keys.d.ts +0 -5
  280. package/build/cjs/object/keys.js +0 -10
  281. package/build/cjs/object/property.d.ts +0 -10
  282. package/build/cjs/object/property.js +0 -38
  283. package/build/cjs/object/spread.d.ts +0 -6
  284. package/build/cjs/object/spread.js +0 -34
  285. package/build/cjs/object/values.d.ts +0 -5
  286. package/build/cjs/object/values.js +0 -10
  287. package/build/cjs/package.json +0 -3
  288. package/build/cjs/packageDetect.d.ts +0 -1
  289. package/build/cjs/packageDetect.js +0 -7
  290. package/build/cjs/packageInfo.d.ts +0 -6
  291. package/build/cjs/packageInfo.js +0 -4
  292. package/build/cjs/promisify.d.ts +0 -16
  293. package/build/cjs/promisify.js +0 -30
  294. package/build/cjs/string/camelCase.d.ts +0 -13
  295. package/build/cjs/string/camelCase.js +0 -62
  296. package/build/cjs/string/index.d.ts +0 -8
  297. package/build/cjs/string/index.js +0 -18
  298. package/build/cjs/string/lowerFirst.d.ts +0 -31
  299. package/build/cjs/string/lowerFirst.js +0 -40
  300. package/build/cjs/string/shorten.d.ts +0 -16
  301. package/build/cjs/string/shorten.js +0 -22
  302. package/build/cjs/string/toHex.d.ts +0 -16
  303. package/build/cjs/string/toHex.js +0 -22
  304. package/build/cjs/string/toU8a.d.ts +0 -16
  305. package/build/cjs/string/toU8a.js +0 -24
  306. package/build/cjs/stringify.d.ts +0 -6
  307. package/build/cjs/stringify.js +0 -18
  308. package/build/cjs/types.d.ts +0 -62
  309. package/build/cjs/types.js +0 -2
  310. package/build/cjs/u8a/cmp.d.ts +0 -17
  311. package/build/cjs/u8a/cmp.js +0 -49
  312. package/build/cjs/u8a/concat.d.ts +0 -24
  313. package/build/cjs/u8a/concat.js +0 -51
  314. package/build/cjs/u8a/concatBuffer.d.ts +0 -19
  315. package/build/cjs/u8a/concatBuffer.js +0 -29
  316. package/build/cjs/u8a/empty.d.ts +0 -7
  317. package/build/cjs/u8a/empty.js +0 -20
  318. package/build/cjs/u8a/eq.d.ts +0 -15
  319. package/build/cjs/u8a/eq.js +0 -40
  320. package/build/cjs/u8a/fixLength.d.ts +0 -17
  321. package/build/cjs/u8a/fixLength.js +0 -31
  322. package/build/cjs/u8a/index.d.ts +0 -18
  323. package/build/cjs/u8a/index.js +0 -42
  324. package/build/cjs/u8a/sorted.d.ts +0 -15
  325. package/build/cjs/u8a/sorted.js +0 -21
  326. package/build/cjs/u8a/toBigInt.d.ts +0 -6
  327. package/build/cjs/u8a/toBigInt.js +0 -73
  328. package/build/cjs/u8a/toBn.d.ts +0 -21
  329. package/build/cjs/u8a/toBn.js +0 -81
  330. package/build/cjs/u8a/toBuffer.d.ts +0 -16
  331. package/build/cjs/u8a/toBuffer.js +0 -24
  332. package/build/cjs/u8a/toFloat.d.ts +0 -11
  333. package/build/cjs/u8a/toFloat.js +0 -20
  334. package/build/cjs/u8a/toHex.d.ts +0 -16
  335. package/build/cjs/u8a/toHex.js +0 -56
  336. package/build/cjs/u8a/toHexBuffer.d.ts +0 -16
  337. package/build/cjs/u8a/toHexBuffer.js +0 -25
  338. package/build/cjs/u8a/toNumber.d.ts +0 -6
  339. package/build/cjs/u8a/toNumber.js +0 -61
  340. package/build/cjs/u8a/toString.d.ts +0 -15
  341. package/build/cjs/u8a/toString.js +0 -24
  342. package/build/cjs/u8a/toU8a.d.ts +0 -19
  343. package/build/cjs/u8a/toU8a.js +0 -42
  344. package/build/cjs/u8a/wrap.d.ts +0 -22
  345. package/build/cjs/u8a/wrap.js +0 -49
  346. package/build/compact/addLength.d.ts +0 -13
  347. package/build/compact/addLength.js +0 -20
  348. package/build/compact/defaults.d.ts +0 -3
  349. package/build/compact/defaults.js +0 -2
  350. package/build/compact/fromU8a.d.ts +0 -22
  351. package/build/compact/fromU8a.js +0 -88
  352. package/build/compact/index.d.ts +0 -24
  353. package/build/compact/index.js +0 -24
  354. package/build/compact/stripLength.d.ts +0 -13
  355. package/build/compact/stripLength.js +0 -21
  356. package/build/compact/toU8a.d.ts +0 -14
  357. package/build/compact/toU8a.js +0 -45
  358. package/build/compact/types.d.ts +0 -1
  359. package/build/compact/types.js +0 -1
  360. package/build/detectPackage.d.ts +0 -17
  361. package/build/detectPackage.js +0 -96
  362. package/build/extractTime.d.ts +0 -14
  363. package/build/extractTime.js +0 -53
  364. package/build/float/index.d.ts +0 -1
  365. package/build/float/index.js +0 -1
  366. package/build/float/toU8a.d.ts +0 -11
  367. package/build/float/toU8a.js +0 -19
  368. package/build/format/formatBalance.d.ts +0 -54
  369. package/build/format/formatBalance.js +0 -85
  370. package/build/format/formatDate.d.ts +0 -5
  371. package/build/format/formatDate.js +0 -17
  372. package/build/format/formatDecimal.d.ts +0 -5
  373. package/build/format/formatDecimal.js +0 -16
  374. package/build/format/formatElapsed.d.ts +0 -7
  375. package/build/format/formatElapsed.js +0 -27
  376. package/build/format/formatNumber.d.ts +0 -14
  377. package/build/format/formatNumber.js +0 -11
  378. package/build/format/getSeparator.d.ts +0 -9
  379. package/build/format/getSeparator.js +0 -11
  380. package/build/format/index.d.ts +0 -6
  381. package/build/format/index.js +0 -6
  382. package/build/format/si.d.ts +0 -9
  383. package/build/format/si.js +0 -40
  384. package/build/has.d.ts +0 -14
  385. package/build/has.js +0 -16
  386. package/build/hex/addPrefix.d.ts +0 -16
  387. package/build/hex/addPrefix.js +0 -20
  388. package/build/hex/fixLength.d.ts +0 -18
  389. package/build/hex/fixLength.js +0 -27
  390. package/build/hex/hasPrefix.d.ts +0 -16
  391. package/build/hex/hasPrefix.js +0 -18
  392. package/build/hex/index.d.ts +0 -12
  393. package/build/hex/index.js +0 -12
  394. package/build/hex/stripPrefix.d.ts +0 -15
  395. package/build/hex/stripPrefix.js +0 -27
  396. package/build/hex/toBigInt.d.ts +0 -6
  397. package/build/hex/toBigInt.js +0 -12
  398. package/build/hex/toBn.d.ts +0 -21
  399. package/build/hex/toBn.js +0 -32
  400. package/build/hex/toNumber.d.ts +0 -15
  401. package/build/hex/toNumber.js +0 -20
  402. package/build/hex/toString.d.ts +0 -15
  403. package/build/hex/toString.js +0 -19
  404. package/build/hex/toU8a.d.ts +0 -16
  405. package/build/hex/toU8a.js +0 -54
  406. package/build/hex/toU8aBuffer.d.ts +0 -16
  407. package/build/hex/toU8aBuffer.js +0 -40
  408. package/build/index.d.ts +0 -2
  409. package/build/index.js +0 -2
  410. package/build/is/array.d.ts +0 -5
  411. package/build/is/array.js +0 -7
  412. package/build/is/ascii.d.ts +0 -8
  413. package/build/is/ascii.js +0 -40
  414. package/build/is/bigInt.d.ts +0 -15
  415. package/build/is/bigInt.js +0 -17
  416. package/build/is/bn.d.ts +0 -17
  417. package/build/is/bn.js +0 -19
  418. package/build/is/boolean.d.ts +0 -15
  419. package/build/is/boolean.js +0 -17
  420. package/build/is/buffer.d.ts +0 -16
  421. package/build/is/buffer.js +0 -21
  422. package/build/is/childClass.d.ts +0 -17
  423. package/build/is/childClass.js +0 -23
  424. package/build/is/class.d.ts +0 -6
  425. package/build/is/class.js +0 -6
  426. package/build/is/codec.d.ts +0 -12
  427. package/build/is/codec.js +0 -6
  428. package/build/is/compact.d.ts +0 -13
  429. package/build/is/compact.js +0 -6
  430. package/build/is/error.d.ts +0 -15
  431. package/build/is/error.js +0 -18
  432. package/build/is/function.d.ts +0 -17
  433. package/build/is/function.js +0 -17
  434. package/build/is/helpers.d.ts +0 -3
  435. package/build/is/helpers.js +0 -14
  436. package/build/is/hex.d.ts +0 -19
  437. package/build/is/hex.js +0 -23
  438. package/build/is/index.d.ts +0 -33
  439. package/build/is/index.js +0 -33
  440. package/build/is/instanceOf.d.ts +0 -15
  441. package/build/is/instanceOf.js +0 -18
  442. package/build/is/ip.d.ts +0 -18
  443. package/build/is/ip.js +0 -41
  444. package/build/is/jsonObject.d.ts +0 -27
  445. package/build/is/jsonObject.js +0 -37
  446. package/build/is/null.d.ts +0 -15
  447. package/build/is/null.js +0 -17
  448. package/build/is/number.d.ts +0 -15
  449. package/build/is/number.js +0 -17
  450. package/build/is/object.d.ts +0 -18
  451. package/build/is/object.js +0 -18
  452. package/build/is/observable.d.ts +0 -16
  453. package/build/is/observable.js +0 -16
  454. package/build/is/promise.d.ts +0 -1
  455. package/build/is/promise.js +0 -2
  456. package/build/is/riscv.d.ts +0 -7
  457. package/build/is/riscv.js +0 -17
  458. package/build/is/string.d.ts +0 -16
  459. package/build/is/string.js +0 -17
  460. package/build/is/testChain.d.ts +0 -1
  461. package/build/is/testChain.js +0 -7
  462. package/build/is/toBigInt.d.ts +0 -2
  463. package/build/is/toBigInt.js +0 -2
  464. package/build/is/toBn.d.ts +0 -2
  465. package/build/is/toBn.js +0 -2
  466. package/build/is/u8a.d.ts +0 -15
  467. package/build/is/u8a.js +0 -20
  468. package/build/is/undefined.d.ts +0 -15
  469. package/build/is/undefined.js +0 -17
  470. package/build/is/utf8.d.ts +0 -7
  471. package/build/is/utf8.js +0 -197
  472. package/build/is/wasm.d.ts +0 -7
  473. package/build/is/wasm.js +0 -12
  474. package/build/lazy.d.ts +0 -14
  475. package/build/lazy.js +0 -51
  476. package/build/logger.d.ts +0 -17
  477. package/build/logger.js +0 -118
  478. package/build/memoize.d.ts +0 -10
  479. package/build/memoize.js +0 -30
  480. package/build/nextTick.d.ts +0 -5
  481. package/build/nextTick.js +0 -24
  482. package/build/noop.d.ts +0 -8
  483. package/build/noop.js +0 -12
  484. package/build/number/index.d.ts +0 -5
  485. package/build/number/index.js +0 -5
  486. package/build/number/toHex.d.ts +0 -17
  487. package/build/number/toHex.js +0 -20
  488. package/build/number/toU8a.d.ts +0 -15
  489. package/build/number/toU8a.js +0 -19
  490. package/build/object/clear.d.ts +0 -5
  491. package/build/object/clear.js +0 -11
  492. package/build/object/copy.d.ts +0 -5
  493. package/build/object/copy.js +0 -8
  494. package/build/object/entries.d.ts +0 -9
  495. package/build/object/entries.js +0 -7
  496. package/build/object/index.d.ts +0 -7
  497. package/build/object/index.js +0 -7
  498. package/build/object/keys.d.ts +0 -5
  499. package/build/object/keys.js +0 -7
  500. package/build/object/property.d.ts +0 -10
  501. package/build/object/property.js +0 -34
  502. package/build/object/spread.d.ts +0 -6
  503. package/build/object/spread.js +0 -31
  504. package/build/object/values.d.ts +0 -5
  505. package/build/object/values.js +0 -7
  506. package/build/package.json +0 -1998
  507. package/build/packageDetect.d.ts +0 -1
  508. package/build/packageDetect.js +0 -5
  509. package/build/packageInfo.d.ts +0 -6
  510. package/build/packageInfo.js +0 -1
  511. package/build/promisify.d.ts +0 -16
  512. package/build/promisify.js +0 -27
  513. package/build/string/camelCase.d.ts +0 -13
  514. package/build/string/camelCase.js +0 -59
  515. package/build/string/index.d.ts +0 -8
  516. package/build/string/index.js +0 -8
  517. package/build/string/lowerFirst.d.ts +0 -31
  518. package/build/string/lowerFirst.js +0 -37
  519. package/build/string/shorten.d.ts +0 -16
  520. package/build/string/shorten.js +0 -19
  521. package/build/string/toHex.d.ts +0 -16
  522. package/build/string/toHex.js +0 -19
  523. package/build/string/toU8a.d.ts +0 -16
  524. package/build/string/toU8a.js +0 -21
  525. package/build/stringify.d.ts +0 -6
  526. package/build/stringify.js +0 -15
  527. package/build/types.d.ts +0 -62
  528. package/build/types.js +0 -1
  529. package/build/u8a/cmp.d.ts +0 -17
  530. package/build/u8a/cmp.js +0 -46
  531. package/build/u8a/concat.d.ts +0 -24
  532. package/build/u8a/concat.js +0 -47
  533. package/build/u8a/concatBuffer.d.ts +0 -19
  534. package/build/u8a/concatBuffer.js +0 -26
  535. package/build/u8a/empty.d.ts +0 -7
  536. package/build/u8a/empty.js +0 -17
  537. package/build/u8a/eq.d.ts +0 -15
  538. package/build/u8a/eq.js +0 -37
  539. package/build/u8a/fixLength.d.ts +0 -17
  540. package/build/u8a/fixLength.js +0 -28
  541. package/build/u8a/index.d.ts +0 -18
  542. package/build/u8a/index.js +0 -18
  543. package/build/u8a/sorted.d.ts +0 -15
  544. package/build/u8a/sorted.js +0 -18
  545. package/build/u8a/toBigInt.d.ts +0 -6
  546. package/build/u8a/toBigInt.js +0 -70
  547. package/build/u8a/toBn.d.ts +0 -21
  548. package/build/u8a/toBn.js +0 -78
  549. package/build/u8a/toBuffer.d.ts +0 -16
  550. package/build/u8a/toBuffer.js +0 -21
  551. package/build/u8a/toFloat.d.ts +0 -11
  552. package/build/u8a/toFloat.js +0 -17
  553. package/build/u8a/toHex.d.ts +0 -16
  554. package/build/u8a/toHex.js +0 -53
  555. package/build/u8a/toHexBuffer.d.ts +0 -16
  556. package/build/u8a/toHexBuffer.js +0 -22
  557. package/build/u8a/toNumber.d.ts +0 -6
  558. package/build/u8a/toNumber.js +0 -58
  559. package/build/u8a/toString.d.ts +0 -15
  560. package/build/u8a/toString.js +0 -21
  561. package/build/u8a/toU8a.d.ts +0 -19
  562. package/build/u8a/toU8a.js +0 -39
  563. package/build/u8a/wrap.d.ts +0 -22
  564. package/build/u8a/wrap.js +0 -43
  565. package/build-deno/README.md +0 -17
  566. package/build-deno/array/chunk.ts +0 -33
  567. package/build-deno/array/filter.ts +0 -22
  568. package/build-deno/array/flatten.ts +0 -47
  569. package/build-deno/array/index.ts +0 -12
  570. package/build-deno/array/range.ts +0 -29
  571. package/build-deno/array/shuffle.ts +0 -25
  572. package/build-deno/array/unzip.ts +0 -16
  573. package/build-deno/array/zip.ts +0 -15
  574. package/build-deno/assert.ts +0 -48
  575. package/build-deno/bi/consts.ts +0 -110
  576. package/build-deno/bi/helpers.ts +0 -21
  577. package/build-deno/bi/index.ts +0 -12
  578. package/build-deno/bi/min.ts +0 -14
  579. package/build-deno/bi/sqrt.ts +0 -41
  580. package/build-deno/bi/toBigInt.ts +0 -31
  581. package/build-deno/bi/toHex.ts +0 -14
  582. package/build-deno/bi/toU8a.ts +0 -70
  583. package/build-deno/bn/bn.ts +0 -4
  584. package/build-deno/bn/consts.ts +0 -110
  585. package/build-deno/bn/fromHex.ts +0 -2
  586. package/build-deno/bn/index.ts +0 -14
  587. package/build-deno/bn/min.ts +0 -34
  588. package/build-deno/bn/sqrt.ts +0 -48
  589. package/build-deno/bn/toBn.ts +0 -41
  590. package/build-deno/bn/toHex.ts +0 -25
  591. package/build-deno/bn/toU8a.ts +0 -43
  592. package/build-deno/buffer/index.ts +0 -8
  593. package/build-deno/buffer/toU8a.ts +0 -20
  594. package/build-deno/bundle.ts +0 -31
  595. package/build-deno/compact/addLength.ts +0 -22
  596. package/build-deno/compact/defaults.ts +0 -5
  597. package/build-deno/compact/fromU8a.ts +0 -107
  598. package/build-deno/compact/index.ts +0 -26
  599. package/build-deno/compact/stripLength.ts +0 -24
  600. package/build-deno/compact/toU8a.ts +0 -51
  601. package/build-deno/compact/types.ts +0 -2
  602. package/build-deno/detectPackage.ts +0 -136
  603. package/build-deno/extractTime.ts +0 -69
  604. package/build-deno/float/index.ts +0 -2
  605. package/build-deno/float/toU8a.ts +0 -27
  606. package/build-deno/format/formatBalance.ts +0 -172
  607. package/build-deno/format/formatDate.ts +0 -20
  608. package/build-deno/format/formatDecimal.ts +0 -19
  609. package/build-deno/format/formatElapsed.ts +0 -33
  610. package/build-deno/format/formatNumber.ts +0 -27
  611. package/build-deno/format/getSeparator.ts +0 -13
  612. package/build-deno/format/index.ts +0 -7
  613. package/build-deno/format/si.ts +0 -49
  614. package/build-deno/has.ts +0 -33
  615. package/build-deno/hex/addPrefix.ts +0 -24
  616. package/build-deno/hex/fixLength.ts +0 -34
  617. package/build-deno/hex/hasPrefix.ts +0 -22
  618. package/build-deno/hex/index.ts +0 -14
  619. package/build-deno/hex/stripPrefix.ts +0 -28
  620. package/build-deno/hex/toBigInt.ts +0 -17
  621. package/build-deno/hex/toBn.ts +0 -38
  622. package/build-deno/hex/toNumber.ts +0 -24
  623. package/build-deno/hex/toString.ts +0 -23
  624. package/build-deno/hex/toU8a.ts +0 -66
  625. package/build-deno/hex/toU8aBuffer.ts +0 -52
  626. package/build-deno/index.ts +0 -4
  627. package/build-deno/is/array.ts +0 -8
  628. package/build-deno/is/ascii.ts +0 -50
  629. package/build-deno/is/bigInt.ts +0 -18
  630. package/build-deno/is/bn.ts +0 -21
  631. package/build-deno/is/boolean.ts +0 -18
  632. package/build-deno/is/buffer.ts +0 -28
  633. package/build-deno/is/childClass.ts +0 -27
  634. package/build-deno/is/class.ts +0 -10
  635. package/build-deno/is/codec.ts +0 -24
  636. package/build-deno/is/compact.ts +0 -17
  637. package/build-deno/is/error.ts +0 -21
  638. package/build-deno/is/function.ts +0 -20
  639. package/build-deno/is/helpers.ts +0 -21
  640. package/build-deno/is/hex.ts +0 -34
  641. package/build-deno/is/index.ts +0 -36
  642. package/build-deno/is/instanceOf.ts +0 -21
  643. package/build-deno/is/ip.ts +0 -44
  644. package/build-deno/is/jsonObject.ts +0 -42
  645. package/build-deno/is/null.ts +0 -18
  646. package/build-deno/is/number.ts +0 -18
  647. package/build-deno/is/object.ts +0 -21
  648. package/build-deno/is/observable.ts +0 -20
  649. package/build-deno/is/promise.ts +0 -4
  650. package/build-deno/is/riscv.ts +0 -23
  651. package/build-deno/is/string.ts +0 -20
  652. package/build-deno/is/testChain.ts +0 -10
  653. package/build-deno/is/toBigInt.ts +0 -6
  654. package/build-deno/is/toBn.ts +0 -6
  655. package/build-deno/is/u8a.ts +0 -23
  656. package/build-deno/is/undefined.ts +0 -18
  657. package/build-deno/is/utf8.ts +0 -204
  658. package/build-deno/is/wasm.ts +0 -15
  659. package/build-deno/lazy.ts +0 -61
  660. package/build-deno/logger.ts +0 -160
  661. package/build-deno/memoize.ts +0 -46
  662. package/build-deno/mod.ts +0 -2
  663. package/build-deno/nextTick.ts +0 -24
  664. package/build-deno/noop.ts +0 -14
  665. package/build-deno/number/index.ts +0 -7
  666. package/build-deno/number/toHex.ts +0 -25
  667. package/build-deno/number/toU8a.ts +0 -23
  668. package/build-deno/object/clear.ts +0 -14
  669. package/build-deno/object/copy.ts +0 -10
  670. package/build-deno/object/entries.ts +0 -10
  671. package/build-deno/object/index.ts +0 -8
  672. package/build-deno/object/keys.ts +0 -8
  673. package/build-deno/object/property.ts +0 -37
  674. package/build-deno/object/spread.ts +0 -36
  675. package/build-deno/object/values.ts +0 -8
  676. package/build-deno/packageDetect.ts +0 -9
  677. package/build-deno/packageInfo.ts +0 -3
  678. package/build-deno/promisify.ts +0 -27
  679. package/build-deno/string/camelCase.ts +0 -77
  680. package/build-deno/string/index.ts +0 -10
  681. package/build-deno/string/lowerFirst.ts +0 -44
  682. package/build-deno/string/shorten.ts +0 -22
  683. package/build-deno/string/toHex.ts +0 -25
  684. package/build-deno/string/toU8a.ts +0 -26
  685. package/build-deno/stringify.ts +0 -18
  686. package/build-deno/test/index.ts +0 -2
  687. package/build-deno/test/performance.ts +0 -88
  688. package/build-deno/types.ts +0 -90
  689. package/build-deno/u8a/cmp.ts +0 -48
  690. package/build-deno/u8a/concat.ts +0 -58
  691. package/build-deno/u8a/concatBuffer.ts +0 -34
  692. package/build-deno/u8a/empty.ts +0 -20
  693. package/build-deno/u8a/eq.ts +0 -44
  694. package/build-deno/u8a/fixLength.ts +0 -32
  695. package/build-deno/u8a/index.ts +0 -22
  696. package/build-deno/u8a/sorted.ts +0 -20
  697. package/build-deno/u8a/toBigInt.ts +0 -98
  698. package/build-deno/u8a/toBn.ts +0 -99
  699. package/build-deno/u8a/toBuffer.ts +0 -28
  700. package/build-deno/u8a/toFloat.ts +0 -24
  701. package/build-deno/u8a/toHex.ts +0 -66
  702. package/build-deno/u8a/toHexBuffer.ts +0 -30
  703. package/build-deno/u8a/toNumber.ts +0 -78
  704. package/build-deno/u8a/toString.ts +0 -24
  705. package/build-deno/u8a/toU8a.ts +0 -46
  706. package/build-deno/u8a/wrap.ts +0 -62
  707. package/build-tsc/array/chunk.d.ts +0 -15
  708. package/build-tsc/array/filter.d.ts +0 -16
  709. package/build-tsc/array/flatten.d.ts +0 -15
  710. package/build-tsc/array/index.d.ts +0 -10
  711. package/build-tsc/array/range.d.ts +0 -16
  712. package/build-tsc/array/shuffle.d.ts +0 -5
  713. package/build-tsc/array/unzip.d.ts +0 -5
  714. package/build-tsc/array/zip.d.ts +0 -5
  715. package/build-tsc/assert.d.ts +0 -29
  716. package/build-tsc/bi/consts.d.ts +0 -90
  717. package/build-tsc/bi/helpers.d.ts +0 -2
  718. package/build-tsc/bi/index.d.ts +0 -9
  719. package/build-tsc/bi/min.d.ts +0 -10
  720. package/build-tsc/bi/sqrt.d.ts +0 -7
  721. package/build-tsc/bi/toBigInt.d.ts +0 -7
  722. package/build-tsc/bi/toHex.d.ts +0 -7
  723. package/build-tsc/bi/toU8a.d.ts +0 -7
  724. package/build-tsc/bn/bn.d.ts +0 -2
  725. package/build-tsc/bn/consts.d.ts +0 -91
  726. package/build-tsc/bn/fromHex.d.ts +0 -1
  727. package/build-tsc/bn/index.d.ts +0 -11
  728. package/build-tsc/bn/min.d.ts +0 -29
  729. package/build-tsc/bn/sqrt.d.ts +0 -16
  730. package/build-tsc/bn/toBn.d.ts +0 -19
  731. package/build-tsc/bn/toHex.d.ts +0 -18
  732. package/build-tsc/bn/toU8a.d.ts +0 -17
  733. package/build-tsc/buffer/index.d.ts +0 -4
  734. package/build-tsc/buffer/toU8a.d.ts +0 -15
  735. package/build-tsc/bundle.d.ts +0 -28
  736. package/build-tsc/compact/addLength.d.ts +0 -13
  737. package/build-tsc/compact/defaults.d.ts +0 -3
  738. package/build-tsc/compact/fromU8a.d.ts +0 -22
  739. package/build-tsc/compact/index.d.ts +0 -24
  740. package/build-tsc/compact/stripLength.d.ts +0 -13
  741. package/build-tsc/compact/toU8a.d.ts +0 -14
  742. package/build-tsc/compact/types.d.ts +0 -1
  743. package/build-tsc/detectPackage.d.ts +0 -17
  744. package/build-tsc/extractTime.d.ts +0 -14
  745. package/build-tsc/float/index.d.ts +0 -1
  746. package/build-tsc/float/toU8a.d.ts +0 -11
  747. package/build-tsc/format/formatBalance.d.ts +0 -54
  748. package/build-tsc/format/formatDate.d.ts +0 -5
  749. package/build-tsc/format/formatDecimal.d.ts +0 -5
  750. package/build-tsc/format/formatElapsed.d.ts +0 -7
  751. package/build-tsc/format/formatNumber.d.ts +0 -14
  752. package/build-tsc/format/getSeparator.d.ts +0 -9
  753. package/build-tsc/format/index.d.ts +0 -6
  754. package/build-tsc/format/si.d.ts +0 -9
  755. package/build-tsc/has.d.ts +0 -14
  756. package/build-tsc/hex/addPrefix.d.ts +0 -16
  757. package/build-tsc/hex/fixLength.d.ts +0 -18
  758. package/build-tsc/hex/hasPrefix.d.ts +0 -16
  759. package/build-tsc/hex/index.d.ts +0 -12
  760. package/build-tsc/hex/stripPrefix.d.ts +0 -15
  761. package/build-tsc/hex/toBigInt.d.ts +0 -6
  762. package/build-tsc/hex/toBn.d.ts +0 -21
  763. package/build-tsc/hex/toNumber.d.ts +0 -15
  764. package/build-tsc/hex/toString.d.ts +0 -15
  765. package/build-tsc/hex/toU8a.d.ts +0 -16
  766. package/build-tsc/hex/toU8aBuffer.d.ts +0 -16
  767. package/build-tsc/index.d.ts +0 -2
  768. package/build-tsc/is/array.d.ts +0 -5
  769. package/build-tsc/is/ascii.d.ts +0 -8
  770. package/build-tsc/is/bigInt.d.ts +0 -15
  771. package/build-tsc/is/bn.d.ts +0 -17
  772. package/build-tsc/is/boolean.d.ts +0 -15
  773. package/build-tsc/is/buffer.d.ts +0 -16
  774. package/build-tsc/is/childClass.d.ts +0 -17
  775. package/build-tsc/is/class.d.ts +0 -6
  776. package/build-tsc/is/codec.d.ts +0 -12
  777. package/build-tsc/is/compact.d.ts +0 -13
  778. package/build-tsc/is/error.d.ts +0 -15
  779. package/build-tsc/is/function.d.ts +0 -17
  780. package/build-tsc/is/helpers.d.ts +0 -3
  781. package/build-tsc/is/hex.d.ts +0 -19
  782. package/build-tsc/is/index.d.ts +0 -33
  783. package/build-tsc/is/instanceOf.d.ts +0 -15
  784. package/build-tsc/is/ip.d.ts +0 -18
  785. package/build-tsc/is/jsonObject.d.ts +0 -27
  786. package/build-tsc/is/null.d.ts +0 -15
  787. package/build-tsc/is/number.d.ts +0 -15
  788. package/build-tsc/is/object.d.ts +0 -18
  789. package/build-tsc/is/observable.d.ts +0 -16
  790. package/build-tsc/is/promise.d.ts +0 -1
  791. package/build-tsc/is/riscv.d.ts +0 -7
  792. package/build-tsc/is/string.d.ts +0 -16
  793. package/build-tsc/is/testChain.d.ts +0 -1
  794. package/build-tsc/is/toBigInt.d.ts +0 -2
  795. package/build-tsc/is/toBn.d.ts +0 -2
  796. package/build-tsc/is/u8a.d.ts +0 -15
  797. package/build-tsc/is/undefined.d.ts +0 -15
  798. package/build-tsc/is/utf8.d.ts +0 -7
  799. package/build-tsc/is/wasm.d.ts +0 -7
  800. package/build-tsc/lazy.d.ts +0 -14
  801. package/build-tsc/logger.d.ts +0 -17
  802. package/build-tsc/memoize.d.ts +0 -10
  803. package/build-tsc/nextTick.d.ts +0 -5
  804. package/build-tsc/noop.d.ts +0 -8
  805. package/build-tsc/number/index.d.ts +0 -5
  806. package/build-tsc/number/toHex.d.ts +0 -17
  807. package/build-tsc/number/toU8a.d.ts +0 -15
  808. package/build-tsc/object/clear.d.ts +0 -5
  809. package/build-tsc/object/copy.d.ts +0 -5
  810. package/build-tsc/object/entries.d.ts +0 -9
  811. package/build-tsc/object/index.d.ts +0 -7
  812. package/build-tsc/object/keys.d.ts +0 -5
  813. package/build-tsc/object/property.d.ts +0 -10
  814. package/build-tsc/object/spread.d.ts +0 -6
  815. package/build-tsc/object/values.d.ts +0 -5
  816. package/build-tsc/packageDetect.d.ts +0 -1
  817. package/build-tsc/packageInfo.d.ts +0 -6
  818. package/build-tsc/promisify.d.ts +0 -16
  819. package/build-tsc/string/camelCase.d.ts +0 -13
  820. package/build-tsc/string/index.d.ts +0 -8
  821. package/build-tsc/string/lowerFirst.d.ts +0 -31
  822. package/build-tsc/string/shorten.d.ts +0 -16
  823. package/build-tsc/string/toHex.d.ts +0 -16
  824. package/build-tsc/string/toU8a.d.ts +0 -16
  825. package/build-tsc/stringify.d.ts +0 -6
  826. package/build-tsc/types.d.ts +0 -62
  827. package/build-tsc/u8a/cmp.d.ts +0 -17
  828. package/build-tsc/u8a/concat.d.ts +0 -24
  829. package/build-tsc/u8a/concatBuffer.d.ts +0 -19
  830. package/build-tsc/u8a/empty.d.ts +0 -7
  831. package/build-tsc/u8a/eq.d.ts +0 -15
  832. package/build-tsc/u8a/fixLength.d.ts +0 -17
  833. package/build-tsc/u8a/index.d.ts +0 -18
  834. package/build-tsc/u8a/sorted.d.ts +0 -15
  835. package/build-tsc/u8a/toBigInt.d.ts +0 -6
  836. package/build-tsc/u8a/toBn.d.ts +0 -21
  837. package/build-tsc/u8a/toBuffer.d.ts +0 -16
  838. package/build-tsc/u8a/toFloat.d.ts +0 -11
  839. package/build-tsc/u8a/toHex.d.ts +0 -16
  840. package/build-tsc/u8a/toHexBuffer.d.ts +0 -16
  841. package/build-tsc/u8a/toNumber.d.ts +0 -6
  842. package/build-tsc/u8a/toString.d.ts +0 -15
  843. package/build-tsc/u8a/toU8a.d.ts +0 -19
  844. package/build-tsc/u8a/wrap.d.ts +0 -22
  845. package/build-tsc-cjs/array/chunk.js +0 -30
  846. package/build-tsc-cjs/array/filter.js +0 -22
  847. package/build-tsc-cjs/array/flatten.js +0 -42
  848. package/build-tsc-cjs/array/index.js +0 -20
  849. package/build-tsc-cjs/array/range.js +0 -28
  850. package/build-tsc-cjs/array/shuffle.js +0 -22
  851. package/build-tsc-cjs/array/unzip.js +0 -16
  852. package/build-tsc-cjs/array/zip.js +0 -15
  853. package/build-tsc-cjs/assert.js +0 -44
  854. package/build-tsc-cjs/bi/consts.js +0 -94
  855. package/build-tsc-cjs/bi/helpers.js +0 -19
  856. package/build-tsc-cjs/bi/index.js +0 -19
  857. package/build-tsc-cjs/bi/min.js +0 -14
  858. package/build-tsc-cjs/bi/sqrt.js +0 -32
  859. package/build-tsc-cjs/bi/toBigInt.js +0 -28
  860. package/build-tsc-cjs/bi/toHex.js +0 -12
  861. package/build-tsc-cjs/bi/toU8a.js +0 -52
  862. package/build-tsc-cjs/bn/bn.js +0 -6
  863. package/build-tsc-cjs/bn/consts.js +0 -94
  864. package/build-tsc-cjs/bn/fromHex.js +0 -5
  865. package/build-tsc-cjs/bn/index.js +0 -23
  866. package/build-tsc-cjs/bn/min.js +0 -32
  867. package/build-tsc-cjs/bn/sqrt.js +0 -41
  868. package/build-tsc-cjs/bn/toBn.js +0 -40
  869. package/build-tsc-cjs/bn/toHex.js +0 -23
  870. package/build-tsc-cjs/bn/toU8a.js +0 -36
  871. package/build-tsc-cjs/buffer/index.js +0 -8
  872. package/build-tsc-cjs/buffer/toU8a.js +0 -20
  873. package/build-tsc-cjs/bundle.js +0 -33
  874. package/build-tsc-cjs/compact/addLength.js +0 -23
  875. package/build-tsc-cjs/compact/defaults.js +0 -5
  876. package/build-tsc-cjs/compact/fromU8a.js +0 -92
  877. package/build-tsc-cjs/compact/index.js +0 -32
  878. package/build-tsc-cjs/compact/stripLength.js +0 -24
  879. package/build-tsc-cjs/compact/toU8a.js +0 -48
  880. package/build-tsc-cjs/compact/types.js +0 -2
  881. package/build-tsc-cjs/detectPackage.js +0 -100
  882. package/build-tsc-cjs/extractTime.js +0 -56
  883. package/build-tsc-cjs/float/index.js +0 -5
  884. package/build-tsc-cjs/float/toU8a.js +0 -22
  885. package/build-tsc-cjs/format/formatBalance.js +0 -88
  886. package/build-tsc-cjs/format/formatDate.js +0 -20
  887. package/build-tsc-cjs/format/formatDecimal.js +0 -19
  888. package/build-tsc-cjs/format/formatElapsed.js +0 -30
  889. package/build-tsc-cjs/format/formatNumber.js +0 -14
  890. package/build-tsc-cjs/format/getSeparator.js +0 -14
  891. package/build-tsc-cjs/format/index.js +0 -16
  892. package/build-tsc-cjs/format/si.js +0 -45
  893. package/build-tsc-cjs/has.js +0 -19
  894. package/build-tsc-cjs/hex/addPrefix.js +0 -23
  895. package/build-tsc-cjs/hex/fixLength.js +0 -30
  896. package/build-tsc-cjs/hex/hasPrefix.js +0 -21
  897. package/build-tsc-cjs/hex/index.js +0 -24
  898. package/build-tsc-cjs/hex/stripPrefix.js +0 -30
  899. package/build-tsc-cjs/hex/toBigInt.js +0 -15
  900. package/build-tsc-cjs/hex/toBn.js +0 -35
  901. package/build-tsc-cjs/hex/toNumber.js +0 -23
  902. package/build-tsc-cjs/hex/toString.js +0 -22
  903. package/build-tsc-cjs/hex/toU8a.js +0 -57
  904. package/build-tsc-cjs/hex/toU8aBuffer.js +0 -43
  905. package/build-tsc-cjs/index.js +0 -5
  906. package/build-tsc-cjs/is/array.js +0 -10
  907. package/build-tsc-cjs/is/ascii.js +0 -43
  908. package/build-tsc-cjs/is/bigInt.js +0 -20
  909. package/build-tsc-cjs/is/bn.js +0 -22
  910. package/build-tsc-cjs/is/boolean.js +0 -20
  911. package/build-tsc-cjs/is/buffer.js +0 -24
  912. package/build-tsc-cjs/is/childClass.js +0 -26
  913. package/build-tsc-cjs/is/class.js +0 -9
  914. package/build-tsc-cjs/is/codec.js +0 -9
  915. package/build-tsc-cjs/is/compact.js +0 -9
  916. package/build-tsc-cjs/is/error.js +0 -21
  917. package/build-tsc-cjs/is/function.js +0 -20
  918. package/build-tsc-cjs/is/helpers.js +0 -19
  919. package/build-tsc-cjs/is/hex.js +0 -27
  920. package/build-tsc-cjs/is/index.js +0 -66
  921. package/build-tsc-cjs/is/instanceOf.js +0 -21
  922. package/build-tsc-cjs/is/ip.js +0 -44
  923. package/build-tsc-cjs/is/jsonObject.js +0 -40
  924. package/build-tsc-cjs/is/null.js +0 -20
  925. package/build-tsc-cjs/is/number.js +0 -20
  926. package/build-tsc-cjs/is/object.js +0 -21
  927. package/build-tsc-cjs/is/observable.js +0 -19
  928. package/build-tsc-cjs/is/promise.js +0 -5
  929. package/build-tsc-cjs/is/riscv.js +0 -20
  930. package/build-tsc-cjs/is/string.js +0 -20
  931. package/build-tsc-cjs/is/testChain.js +0 -10
  932. package/build-tsc-cjs/is/toBigInt.js +0 -5
  933. package/build-tsc-cjs/is/toBn.js +0 -5
  934. package/build-tsc-cjs/is/u8a.js +0 -23
  935. package/build-tsc-cjs/is/undefined.js +0 -20
  936. package/build-tsc-cjs/is/utf8.js +0 -200
  937. package/build-tsc-cjs/is/wasm.js +0 -15
  938. package/build-tsc-cjs/lazy.js +0 -55
  939. package/build-tsc-cjs/logger.js +0 -122
  940. package/build-tsc-cjs/memoize.js +0 -33
  941. package/build-tsc-cjs/nextTick.js +0 -27
  942. package/build-tsc-cjs/noop.js +0 -16
  943. package/build-tsc-cjs/number/index.js +0 -10
  944. package/build-tsc-cjs/number/toHex.js +0 -23
  945. package/build-tsc-cjs/number/toU8a.js +0 -22
  946. package/build-tsc-cjs/object/clear.js +0 -14
  947. package/build-tsc-cjs/object/copy.js +0 -11
  948. package/build-tsc-cjs/object/entries.js +0 -10
  949. package/build-tsc-cjs/object/index.js +0 -18
  950. package/build-tsc-cjs/object/keys.js +0 -10
  951. package/build-tsc-cjs/object/property.js +0 -38
  952. package/build-tsc-cjs/object/spread.js +0 -34
  953. package/build-tsc-cjs/object/values.js +0 -10
  954. package/build-tsc-cjs/packageDetect.js +0 -7
  955. package/build-tsc-cjs/packageInfo.js +0 -4
  956. package/build-tsc-cjs/promisify.js +0 -30
  957. package/build-tsc-cjs/string/camelCase.js +0 -62
  958. package/build-tsc-cjs/string/index.js +0 -18
  959. package/build-tsc-cjs/string/lowerFirst.js +0 -40
  960. package/build-tsc-cjs/string/shorten.js +0 -22
  961. package/build-tsc-cjs/string/toHex.js +0 -22
  962. package/build-tsc-cjs/string/toU8a.js +0 -24
  963. package/build-tsc-cjs/stringify.js +0 -18
  964. package/build-tsc-cjs/types.js +0 -2
  965. package/build-tsc-cjs/u8a/cmp.js +0 -49
  966. package/build-tsc-cjs/u8a/concat.js +0 -51
  967. package/build-tsc-cjs/u8a/concatBuffer.js +0 -29
  968. package/build-tsc-cjs/u8a/empty.js +0 -20
  969. package/build-tsc-cjs/u8a/eq.js +0 -40
  970. package/build-tsc-cjs/u8a/fixLength.js +0 -31
  971. package/build-tsc-cjs/u8a/index.js +0 -42
  972. package/build-tsc-cjs/u8a/sorted.js +0 -21
  973. package/build-tsc-cjs/u8a/toBigInt.js +0 -73
  974. package/build-tsc-cjs/u8a/toBn.js +0 -81
  975. package/build-tsc-cjs/u8a/toBuffer.js +0 -24
  976. package/build-tsc-cjs/u8a/toFloat.js +0 -20
  977. package/build-tsc-cjs/u8a/toHex.js +0 -56
  978. package/build-tsc-cjs/u8a/toHexBuffer.js +0 -25
  979. package/build-tsc-cjs/u8a/toNumber.js +0 -61
  980. package/build-tsc-cjs/u8a/toString.js +0 -24
  981. package/build-tsc-cjs/u8a/toU8a.js +0 -42
  982. package/build-tsc-cjs/u8a/wrap.js +0 -49
  983. package/build-tsc-esm/array/chunk.js +0 -27
  984. package/build-tsc-esm/array/filter.js +0 -19
  985. package/build-tsc-esm/array/flatten.js +0 -39
  986. package/build-tsc-esm/array/index.js +0 -10
  987. package/build-tsc-esm/array/range.js +0 -25
  988. package/build-tsc-esm/array/shuffle.js +0 -19
  989. package/build-tsc-esm/array/unzip.js +0 -13
  990. package/build-tsc-esm/array/zip.js +0 -12
  991. package/build-tsc-esm/assert.js +0 -39
  992. package/build-tsc-esm/bi/consts.js +0 -91
  993. package/build-tsc-esm/bi/helpers.js +0 -16
  994. package/build-tsc-esm/bi/index.js +0 -9
  995. package/build-tsc-esm/bi/min.js +0 -11
  996. package/build-tsc-esm/bi/sqrt.js +0 -29
  997. package/build-tsc-esm/bi/toBigInt.js +0 -25
  998. package/build-tsc-esm/bi/toHex.js +0 -9
  999. package/build-tsc-esm/bi/toU8a.js +0 -49
  1000. package/build-tsc-esm/bn/bn.js +0 -2
  1001. package/build-tsc-esm/bn/consts.js +0 -91
  1002. package/build-tsc-esm/bn/fromHex.js +0 -1
  1003. package/build-tsc-esm/bn/index.js +0 -11
  1004. package/build-tsc-esm/bn/min.js +0 -29
  1005. package/build-tsc-esm/bn/sqrt.js +0 -38
  1006. package/build-tsc-esm/bn/toBn.js +0 -37
  1007. package/build-tsc-esm/bn/toHex.js +0 -20
  1008. package/build-tsc-esm/bn/toU8a.js +0 -33
  1009. package/build-tsc-esm/buffer/index.js +0 -4
  1010. package/build-tsc-esm/buffer/toU8a.js +0 -17
  1011. package/build-tsc-esm/bundle.js +0 -28
  1012. package/build-tsc-esm/compact/addLength.js +0 -20
  1013. package/build-tsc-esm/compact/defaults.js +0 -2
  1014. package/build-tsc-esm/compact/fromU8a.js +0 -88
  1015. package/build-tsc-esm/compact/index.js +0 -24
  1016. package/build-tsc-esm/compact/stripLength.js +0 -21
  1017. package/build-tsc-esm/compact/toU8a.js +0 -45
  1018. package/build-tsc-esm/compact/types.js +0 -1
  1019. package/build-tsc-esm/detectPackage.js +0 -96
  1020. package/build-tsc-esm/extractTime.js +0 -53
  1021. package/build-tsc-esm/float/index.js +0 -1
  1022. package/build-tsc-esm/float/toU8a.js +0 -19
  1023. package/build-tsc-esm/format/formatBalance.js +0 -85
  1024. package/build-tsc-esm/format/formatDate.js +0 -17
  1025. package/build-tsc-esm/format/formatDecimal.js +0 -16
  1026. package/build-tsc-esm/format/formatElapsed.js +0 -27
  1027. package/build-tsc-esm/format/formatNumber.js +0 -11
  1028. package/build-tsc-esm/format/getSeparator.js +0 -11
  1029. package/build-tsc-esm/format/index.js +0 -6
  1030. package/build-tsc-esm/format/si.js +0 -40
  1031. package/build-tsc-esm/has.js +0 -16
  1032. package/build-tsc-esm/hex/addPrefix.js +0 -20
  1033. package/build-tsc-esm/hex/fixLength.js +0 -27
  1034. package/build-tsc-esm/hex/hasPrefix.js +0 -18
  1035. package/build-tsc-esm/hex/index.js +0 -12
  1036. package/build-tsc-esm/hex/stripPrefix.js +0 -27
  1037. package/build-tsc-esm/hex/toBigInt.js +0 -12
  1038. package/build-tsc-esm/hex/toBn.js +0 -32
  1039. package/build-tsc-esm/hex/toNumber.js +0 -20
  1040. package/build-tsc-esm/hex/toString.js +0 -19
  1041. package/build-tsc-esm/hex/toU8a.js +0 -54
  1042. package/build-tsc-esm/hex/toU8aBuffer.js +0 -40
  1043. package/build-tsc-esm/index.js +0 -2
  1044. package/build-tsc-esm/is/array.js +0 -7
  1045. package/build-tsc-esm/is/ascii.js +0 -40
  1046. package/build-tsc-esm/is/bigInt.js +0 -17
  1047. package/build-tsc-esm/is/bn.js +0 -19
  1048. package/build-tsc-esm/is/boolean.js +0 -17
  1049. package/build-tsc-esm/is/buffer.js +0 -21
  1050. package/build-tsc-esm/is/childClass.js +0 -23
  1051. package/build-tsc-esm/is/class.js +0 -6
  1052. package/build-tsc-esm/is/codec.js +0 -6
  1053. package/build-tsc-esm/is/compact.js +0 -6
  1054. package/build-tsc-esm/is/error.js +0 -18
  1055. package/build-tsc-esm/is/function.js +0 -17
  1056. package/build-tsc-esm/is/helpers.js +0 -14
  1057. package/build-tsc-esm/is/hex.js +0 -23
  1058. package/build-tsc-esm/is/index.js +0 -33
  1059. package/build-tsc-esm/is/instanceOf.js +0 -18
  1060. package/build-tsc-esm/is/ip.js +0 -41
  1061. package/build-tsc-esm/is/jsonObject.js +0 -37
  1062. package/build-tsc-esm/is/null.js +0 -17
  1063. package/build-tsc-esm/is/number.js +0 -17
  1064. package/build-tsc-esm/is/object.js +0 -18
  1065. package/build-tsc-esm/is/observable.js +0 -16
  1066. package/build-tsc-esm/is/promise.js +0 -2
  1067. package/build-tsc-esm/is/riscv.js +0 -17
  1068. package/build-tsc-esm/is/string.js +0 -17
  1069. package/build-tsc-esm/is/testChain.js +0 -7
  1070. package/build-tsc-esm/is/toBigInt.js +0 -2
  1071. package/build-tsc-esm/is/toBn.js +0 -2
  1072. package/build-tsc-esm/is/u8a.js +0 -20
  1073. package/build-tsc-esm/is/undefined.js +0 -17
  1074. package/build-tsc-esm/is/utf8.js +0 -197
  1075. package/build-tsc-esm/is/wasm.js +0 -12
  1076. package/build-tsc-esm/lazy.js +0 -51
  1077. package/build-tsc-esm/logger.js +0 -118
  1078. package/build-tsc-esm/memoize.js +0 -30
  1079. package/build-tsc-esm/nextTick.js +0 -24
  1080. package/build-tsc-esm/noop.js +0 -12
  1081. package/build-tsc-esm/number/index.js +0 -5
  1082. package/build-tsc-esm/number/toHex.js +0 -20
  1083. package/build-tsc-esm/number/toU8a.js +0 -19
  1084. package/build-tsc-esm/object/clear.js +0 -11
  1085. package/build-tsc-esm/object/copy.js +0 -8
  1086. package/build-tsc-esm/object/entries.js +0 -7
  1087. package/build-tsc-esm/object/index.js +0 -7
  1088. package/build-tsc-esm/object/keys.js +0 -7
  1089. package/build-tsc-esm/object/property.js +0 -34
  1090. package/build-tsc-esm/object/spread.js +0 -31
  1091. package/build-tsc-esm/object/values.js +0 -7
  1092. package/build-tsc-esm/packageDetect.js +0 -5
  1093. package/build-tsc-esm/packageInfo.js +0 -1
  1094. package/build-tsc-esm/promisify.js +0 -27
  1095. package/build-tsc-esm/string/camelCase.js +0 -59
  1096. package/build-tsc-esm/string/index.js +0 -8
  1097. package/build-tsc-esm/string/lowerFirst.js +0 -37
  1098. package/build-tsc-esm/string/shorten.js +0 -19
  1099. package/build-tsc-esm/string/toHex.js +0 -19
  1100. package/build-tsc-esm/string/toU8a.js +0 -21
  1101. package/build-tsc-esm/stringify.js +0 -15
  1102. package/build-tsc-esm/types.js +0 -1
  1103. package/build-tsc-esm/u8a/cmp.js +0 -46
  1104. package/build-tsc-esm/u8a/concat.js +0 -47
  1105. package/build-tsc-esm/u8a/concatBuffer.js +0 -26
  1106. package/build-tsc-esm/u8a/empty.js +0 -17
  1107. package/build-tsc-esm/u8a/eq.js +0 -37
  1108. package/build-tsc-esm/u8a/fixLength.js +0 -28
  1109. package/build-tsc-esm/u8a/index.js +0 -18
  1110. package/build-tsc-esm/u8a/sorted.js +0 -18
  1111. package/build-tsc-esm/u8a/toBigInt.js +0 -70
  1112. package/build-tsc-esm/u8a/toBn.js +0 -78
  1113. package/build-tsc-esm/u8a/toBuffer.js +0 -21
  1114. package/build-tsc-esm/u8a/toFloat.js +0 -17
  1115. package/build-tsc-esm/u8a/toHex.js +0 -53
  1116. package/build-tsc-esm/u8a/toHexBuffer.js +0 -22
  1117. package/build-tsc-esm/u8a/toNumber.js +0 -58
  1118. package/build-tsc-esm/u8a/toString.js +0 -21
  1119. package/build-tsc-esm/u8a/toU8a.js +0 -39
  1120. package/build-tsc-esm/u8a/wrap.js +0 -43
  1121. package/src/array/chunk.spec.ts +0 -29
  1122. package/src/array/chunk.ts +0 -35
  1123. package/src/array/filter.spec.ts +0 -20
  1124. package/src/array/filter.ts +0 -24
  1125. package/src/array/flatten.spec.ts +0 -33
  1126. package/src/array/flatten.ts +0 -51
  1127. package/src/array/index.ts +0 -14
  1128. package/src/array/range.spec.ts +0 -29
  1129. package/src/array/range.ts +0 -31
  1130. package/src/array/shuffle.spec.ts +0 -39
  1131. package/src/array/shuffle.ts +0 -27
  1132. package/src/array/unzip.spec.ts +0 -14
  1133. package/src/array/unzip.ts +0 -18
  1134. package/src/array/zip.spec.ts +0 -26
  1135. package/src/array/zip.ts +0 -17
  1136. package/src/assert.spec.ts +0 -40
  1137. package/src/assert.ts +0 -50
  1138. package/src/bi/consts.ts +0 -112
  1139. package/src/bi/helpers.ts +0 -23
  1140. package/src/bi/index.ts +0 -16
  1141. package/src/bi/max.spec.ts +0 -32
  1142. package/src/bi/min.spec.ts +0 -26
  1143. package/src/bi/min.ts +0 -16
  1144. package/src/bi/sqrt.spec.ts +0 -59
  1145. package/src/bi/sqrt.ts +0 -43
  1146. package/src/bi/toBigInt.spec.ts +0 -69
  1147. package/src/bi/toBigInt.ts +0 -33
  1148. package/src/bi/toHex.spec.ts +0 -56
  1149. package/src/bi/toHex.ts +0 -16
  1150. package/src/bi/toU8a.spec.ts +0 -99
  1151. package/src/bi/toU8a.ts +0 -72
  1152. package/src/bn/bn.ts +0 -6
  1153. package/src/bn/consts.spec.ts +0 -38
  1154. package/src/bn/consts.ts +0 -112
  1155. package/src/bn/fromHex.spec.ts +0 -15
  1156. package/src/bn/fromHex.ts +0 -4
  1157. package/src/bn/index.ts +0 -18
  1158. package/src/bn/max.spec.ts +0 -32
  1159. package/src/bn/min.spec.ts +0 -26
  1160. package/src/bn/min.ts +0 -36
  1161. package/src/bn/sqrt.spec.ts +0 -37
  1162. package/src/bn/sqrt.ts +0 -50
  1163. package/src/bn/toBn.spec.ts +0 -53
  1164. package/src/bn/toBn.ts +0 -43
  1165. package/src/bn/toHex.spec.ts +0 -50
  1166. package/src/bn/toHex.ts +0 -27
  1167. package/src/bn/toU8a.spec.ts +0 -60
  1168. package/src/bn/toU8a.ts +0 -45
  1169. package/src/buffer/index.ts +0 -8
  1170. package/src/buffer/toU8a.spec.ts +0 -20
  1171. package/src/buffer/toU8a.ts +0 -20
  1172. package/src/bundle.ts +0 -35
  1173. package/src/compact/addLength.spec.ts +0 -14
  1174. package/src/compact/addLength.ts +0 -24
  1175. package/src/compact/defaults.ts +0 -7
  1176. package/src/compact/fromU8a.spec.ts +0 -84
  1177. package/src/compact/fromU8a.ts +0 -109
  1178. package/src/compact/index.ts +0 -28
  1179. package/src/compact/stripLength.spec.ts +0 -17
  1180. package/src/compact/stripLength.ts +0 -26
  1181. package/src/compact/toU8a.spec.ts +0 -59
  1182. package/src/compact/toU8a.ts +0 -53
  1183. package/src/compact/types.ts +0 -4
  1184. package/src/detectPackage.spec.ts +0 -110
  1185. package/src/detectPackage.ts +0 -138
  1186. package/src/extractTime.spec.ts +0 -21
  1187. package/src/extractTime.ts +0 -71
  1188. package/src/float/index.ts +0 -4
  1189. package/src/float/toU8a.spec.ts +0 -52
  1190. package/src/float/toU8a.ts +0 -30
  1191. package/src/format/formatBalance.spec.ts +0 -296
  1192. package/src/format/formatBalance.ts +0 -177
  1193. package/src/format/formatDate.spec.ts +0 -17
  1194. package/src/format/formatDate.ts +0 -22
  1195. package/src/format/formatDecimal.spec.ts +0 -28
  1196. package/src/format/formatDecimal.ts +0 -22
  1197. package/src/format/formatElapsed.spec.ts +0 -44
  1198. package/src/format/formatElapsed.ts +0 -35
  1199. package/src/format/formatNumber.spec.ts +0 -60
  1200. package/src/format/formatNumber.ts +0 -29
  1201. package/src/format/getSeparator.spec.ts +0 -53
  1202. package/src/format/getSeparator.ts +0 -15
  1203. package/src/format/index.ts +0 -9
  1204. package/src/format/si.ts +0 -52
  1205. package/src/has.spec.ts +0 -12
  1206. package/src/has.ts +0 -38
  1207. package/src/hex/addPrefix.spec.ts +0 -32
  1208. package/src/hex/addPrefix.ts +0 -26
  1209. package/src/hex/fixLength.spec.ts +0 -38
  1210. package/src/hex/fixLength.ts +0 -36
  1211. package/src/hex/hasPrefix.spec.ts +0 -32
  1212. package/src/hex/hasPrefix.ts +0 -24
  1213. package/src/hex/index.ts +0 -16
  1214. package/src/hex/stripPrefix.spec.ts +0 -44
  1215. package/src/hex/stripPrefix.ts +0 -30
  1216. package/src/hex/toBigInt.spec.ts +0 -74
  1217. package/src/hex/toBigInt.ts +0 -19
  1218. package/src/hex/toBn.spec.ts +0 -74
  1219. package/src/hex/toBn.ts +0 -40
  1220. package/src/hex/toNumber.spec.ts +0 -20
  1221. package/src/hex/toNumber.ts +0 -24
  1222. package/src/hex/toString.spec.ts +0 -20
  1223. package/src/hex/toString.ts +0 -25
  1224. package/src/hex/toU8a.spec.ts +0 -76
  1225. package/src/hex/toU8a.ts +0 -68
  1226. package/src/hex/toU8aBuffer.spec.ts +0 -38
  1227. package/src/hex/toU8aBuffer.ts +0 -52
  1228. package/src/index.spec.ts +0 -12
  1229. package/src/index.ts +0 -6
  1230. package/src/is/array.spec.ts +0 -20
  1231. package/src/is/array.ts +0 -10
  1232. package/src/is/ascii.spec.ts +0 -49
  1233. package/src/is/ascii.ts +0 -52
  1234. package/src/is/bigInt.spec.ts +0 -26
  1235. package/src/is/bigInt.ts +0 -20
  1236. package/src/is/bn.spec.ts +0 -21
  1237. package/src/is/bn.ts +0 -23
  1238. package/src/is/boolean.spec.ts +0 -26
  1239. package/src/is/boolean.ts +0 -20
  1240. package/src/is/buffer.spec.ts +0 -26
  1241. package/src/is/buffer.ts +0 -28
  1242. package/src/is/childClass.spec.ts +0 -36
  1243. package/src/is/childClass.ts +0 -29
  1244. package/src/is/class.spec.ts +0 -37
  1245. package/src/is/class.ts +0 -12
  1246. package/src/is/codec.spec.ts +0 -52
  1247. package/src/is/codec.ts +0 -26
  1248. package/src/is/compact.spec.ts +0 -27
  1249. package/src/is/compact.ts +0 -19
  1250. package/src/is/error.spec.ts +0 -20
  1251. package/src/is/error.ts +0 -23
  1252. package/src/is/function.spec.ts +0 -20
  1253. package/src/is/function.ts +0 -23
  1254. package/src/is/helpers.ts +0 -23
  1255. package/src/is/hex.spec.ts +0 -77
  1256. package/src/is/hex.ts +0 -36
  1257. package/src/is/index.ts +0 -36
  1258. package/src/is/instanceOf.spec.ts +0 -48
  1259. package/src/is/instanceOf.ts +0 -24
  1260. package/src/is/ip.spec.ts +0 -50
  1261. package/src/is/ip.ts +0 -56
  1262. package/src/is/jsonObject.spec.ts +0 -51
  1263. package/src/is/jsonObject.ts +0 -45
  1264. package/src/is/null.spec.ts +0 -20
  1265. package/src/is/null.ts +0 -20
  1266. package/src/is/number.spec.ts +0 -20
  1267. package/src/is/number.ts +0 -20
  1268. package/src/is/object.spec.ts +0 -32
  1269. package/src/is/object.ts +0 -24
  1270. package/src/is/observable.spec.ts +0 -26
  1271. package/src/is/observable.ts +0 -22
  1272. package/src/is/promise.spec.ts +0 -32
  1273. package/src/is/promise.ts +0 -6
  1274. package/src/is/riscv.spec.ts +0 -36
  1275. package/src/is/riscv.ts +0 -27
  1276. package/src/is/string.spec.ts +0 -32
  1277. package/src/is/string.ts +0 -22
  1278. package/src/is/testChain.spec.ts +0 -25
  1279. package/src/is/testChain.ts +0 -12
  1280. package/src/is/toBigInt.spec.ts +0 -22
  1281. package/src/is/toBigInt.ts +0 -8
  1282. package/src/is/toBn.spec.ts +0 -25
  1283. package/src/is/toBn.ts +0 -8
  1284. package/src/is/u8a.spec.ts +0 -42
  1285. package/src/is/u8a.ts +0 -25
  1286. package/src/is/undefined.spec.ts +0 -23
  1287. package/src/is/undefined.ts +0 -21
  1288. package/src/is/utf8.spec.ts +0 -42
  1289. package/src/is/utf8.ts +0 -207
  1290. package/src/is/wasm.spec.ts +0 -20
  1291. package/src/is/wasm.ts +0 -17
  1292. package/src/lazy.spec.ts +0 -71
  1293. package/src/lazy.ts +0 -63
  1294. package/src/logger.spec.ts +0 -188
  1295. package/src/logger.ts +0 -160
  1296. package/src/memoize.spec.ts +0 -79
  1297. package/src/memoize.ts +0 -49
  1298. package/src/mod.ts +0 -4
  1299. package/src/nextTick.ts +0 -26
  1300. package/src/noop.ts +0 -16
  1301. package/src/number/index.ts +0 -9
  1302. package/src/number/toHex.spec.ts +0 -44
  1303. package/src/number/toHex.ts +0 -27
  1304. package/src/number/toU8a.spec.ts +0 -50
  1305. package/src/number/toU8a.ts +0 -25
  1306. package/src/object/clear.spec.ts +0 -14
  1307. package/src/object/clear.ts +0 -16
  1308. package/src/object/copy.spec.ts +0 -17
  1309. package/src/object/copy.ts +0 -12
  1310. package/src/object/entries.spec.ts +0 -20
  1311. package/src/object/entries.ts +0 -12
  1312. package/src/object/index.ts +0 -10
  1313. package/src/object/keys.spec.ts +0 -19
  1314. package/src/object/keys.ts +0 -10
  1315. package/src/object/property.spec.ts +0 -149
  1316. package/src/object/property.ts +0 -39
  1317. package/src/object/spread.spec.ts +0 -36
  1318. package/src/object/spread.ts +0 -38
  1319. package/src/object/values.spec.ts +0 -19
  1320. package/src/object/values.ts +0 -10
  1321. package/src/packageDetect.ts +0 -13
  1322. package/src/packageInfo.ts +0 -6
  1323. package/src/promisify.spec.ts +0 -50
  1324. package/src/promisify.ts +0 -30
  1325. package/src/string/camelCase.spec.ts +0 -119
  1326. package/src/string/camelCase.ts +0 -79
  1327. package/src/string/index.ts +0 -12
  1328. package/src/string/lowerFirst.spec.ts +0 -41
  1329. package/src/string/lowerFirst.ts +0 -46
  1330. package/src/string/pascalCase.spec.ts +0 -26
  1331. package/src/string/shorten.spec.ts +0 -38
  1332. package/src/string/shorten.ts +0 -24
  1333. package/src/string/toHex.spec.ts +0 -26
  1334. package/src/string/toHex.ts +0 -27
  1335. package/src/string/toU8a.spec.ts +0 -31
  1336. package/src/string/toU8a.ts +0 -28
  1337. package/src/string/upperFirst.spec.ts +0 -41
  1338. package/src/stringify.spec.ts +0 -33
  1339. package/src/stringify.ts +0 -20
  1340. package/src/test/index.ts +0 -4
  1341. package/src/test/performance.ts +0 -92
  1342. package/src/types.ts +0 -100
  1343. package/src/u8a/cmp.spec.ts +0 -62
  1344. package/src/u8a/cmp.ts +0 -50
  1345. package/src/u8a/concat.spec.ts +0 -42
  1346. package/src/u8a/concat.ts +0 -60
  1347. package/src/u8a/concatBuffer.ts +0 -34
  1348. package/src/u8a/empty.spec.ts +0 -46
  1349. package/src/u8a/empty.ts +0 -22
  1350. package/src/u8a/eq.spec.ts +0 -113
  1351. package/src/u8a/eq.ts +0 -46
  1352. package/src/u8a/fixLength.spec.ts +0 -34
  1353. package/src/u8a/fixLength.ts +0 -34
  1354. package/src/u8a/index.ts +0 -22
  1355. package/src/u8a/sorted.spec.ts +0 -20
  1356. package/src/u8a/sorted.ts +0 -22
  1357. package/src/u8a/toBigInt.spec.ts +0 -106
  1358. package/src/u8a/toBigInt.ts +0 -100
  1359. package/src/u8a/toBn.spec.ts +0 -106
  1360. package/src/u8a/toBn.ts +0 -101
  1361. package/src/u8a/toBuffer.spec.ts +0 -20
  1362. package/src/u8a/toBuffer.ts +0 -28
  1363. package/src/u8a/toFloat.spec.ts +0 -86
  1364. package/src/u8a/toFloat.ts +0 -26
  1365. package/src/u8a/toHex.spec.ts +0 -94
  1366. package/src/u8a/toHex.ts +0 -68
  1367. package/src/u8a/toHexBuffer.spec.ts +0 -63
  1368. package/src/u8a/toHexBuffer.ts +0 -30
  1369. package/src/u8a/toNumber.spec.ts +0 -47
  1370. package/src/u8a/toNumber.ts +0 -80
  1371. package/src/u8a/toString.spec.ts +0 -36
  1372. package/src/u8a/toString.ts +0 -26
  1373. package/src/u8a/toU8a.spec.ts +0 -63
  1374. package/src/u8a/toU8a.ts +0 -46
  1375. package/src/u8a/wrap.spec.ts +0 -139
  1376. package/src/u8a/wrap.ts +0 -65
  1377. package/tsconfig.build.json +0 -19
  1378. package/tsconfig.build.tsbuildinfo +0 -1
  1379. package/tsconfig.spec.json +0 -17
  1380. package/tsconfig.spec.tsbuildinfo +0 -1
@@ -7,7 +7,7 @@
7
7
  const global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : window;
8
8
 
9
9
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
10
- const packageInfo$3 = { name: '@pezkuwi/util', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
10
+ const packageInfo$3 = { name: '@pezkuwi/util', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.26' };
11
11
 
12
12
  function arrayChunk(array, chunkSize) {
13
13
  const outputSize = Math.ceil(array.length / chunkSize);
@@ -132,7 +132,7 @@
132
132
  const nMax = createCmp((a, b) => a > b);
133
133
  const nMin = createCmp((a, b) => a < b);
134
134
 
135
- const packageInfo$2 = { name: '@pezkuwi/x-global', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
135
+ const packageInfo$2 = { name: '@pezkuwi/x-global', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.26' };
136
136
 
137
137
  function evaluateThis(fn) {
138
138
  return fn('return this');
@@ -3122,7 +3122,7 @@
3122
3122
 
3123
3123
  Object.defineProperty(packageInfo$1, "__esModule", { value: true });
3124
3124
  packageInfo$1.packageInfo = void 0;
3125
- packageInfo$1.packageInfo = { name: '@pezkuwi/x-textencoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
3125
+ packageInfo$1.packageInfo = { name: '@pezkuwi/x-textencoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.26' };
3126
3126
 
3127
3127
  (function (exports$1) {
3128
3128
  Object.defineProperty(exports$1, "__esModule", { value: true });
@@ -3430,7 +3430,7 @@
3430
3430
 
3431
3431
  Object.defineProperty(packageInfo, "__esModule", { value: true });
3432
3432
  packageInfo.packageInfo = void 0;
3433
- packageInfo.packageInfo = { name: '@pezkuwi/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
3433
+ packageInfo.packageInfo = { name: '@pezkuwi/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.26' };
3434
3434
 
3435
3435
  (function (exports$1) {
3436
3436
  Object.defineProperty(exports$1, "__esModule", { value: true });
@@ -3866,13 +3866,46 @@
3866
3866
  return typeof value === 'boolean';
3867
3867
  }
3868
3868
 
3869
- const NUMBER_REGEX = new RegExp('(\\d+?)(?=(\\d{3})+(?!\\d)|$)', 'g');
3869
+ function isDigit(c) {
3870
+ return c >= '0' && c <= '9';
3871
+ }
3872
+ function groups(value) {
3873
+ const out = [];
3874
+ const end = value.length;
3875
+ let i = 0;
3876
+ while (i < end) {
3877
+ if (!isDigit(value[i])) {
3878
+ i++;
3879
+ continue;
3880
+ }
3881
+ let j = i;
3882
+ while (j < end && isDigit(value[j])) {
3883
+ j++;
3884
+ }
3885
+ let start = i;
3886
+ while (start < j) {
3887
+ let stop = -1;
3888
+ for (let q = start + 1; q <= j; q++) {
3889
+ const left = j - q;
3890
+ if ((left > 0 && left % 3 === 0) || (left === 0 && j === end)) {
3891
+ stop = q;
3892
+ break;
3893
+ }
3894
+ }
3895
+ if (stop === -1) {
3896
+ break;
3897
+ }
3898
+ out.push(value.slice(start, stop));
3899
+ start = stop;
3900
+ }
3901
+ i = j;
3902
+ }
3903
+ return out;
3904
+ }
3870
3905
  function formatDecimal(value, separator = ',') {
3871
3906
  const isNegative = value[0].startsWith('-');
3872
- const matched = isNegative
3873
- ? value.substring(1).match(NUMBER_REGEX)
3874
- : value.match(NUMBER_REGEX);
3875
- return matched
3907
+ const matched = groups(isNegative ? value.substring(1) : value);
3908
+ return matched.length
3876
3909
  ? `${isNegative ? '-' : ''}${matched.join(separator)}`
3877
3910
  : value;
3878
3911
  }
@@ -1,7 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.formatDecimal = formatDecimal;
4
- const NUMBER_REGEX = new RegExp('(\\d+?)(?=(\\d{3})+(?!\\d)|$)', 'g');
4
+ function isDigit(c) {
5
+ return c >= '0' && c <= '9';
6
+ }
7
+ /**
8
+ * Splits the digits of value into thousands groups, exactly as the pattern
9
+ * /(\d+?)(?=(\d{3})+(?!\d)|$)/g matched them, without its quadratic cost
10
+ * on long digit runs (CodeQL js/polynomial-redos): within each run of digits,
11
+ * a group ends where the digits left in the run are a positive multiple of
12
+ * three, or at the end of the string. A run that never reaches such a point
13
+ * (two digits followed by a letter, say) contributes nothing.
14
+ */
15
+ function groups(value) {
16
+ const out = [];
17
+ const end = value.length;
18
+ let i = 0;
19
+ while (i < end) {
20
+ if (!isDigit(value[i])) {
21
+ i++;
22
+ continue;
23
+ }
24
+ let j = i;
25
+ while (j < end && isDigit(value[j])) {
26
+ j++;
27
+ }
28
+ let start = i;
29
+ while (start < j) {
30
+ let stop = -1;
31
+ for (let q = start + 1; q <= j; q++) {
32
+ const left = j - q;
33
+ if ((left > 0 && left % 3 === 0) || (left === 0 && j === end)) {
34
+ stop = q;
35
+ break;
36
+ }
37
+ }
38
+ if (stop === -1) {
39
+ break;
40
+ }
41
+ out.push(value.slice(start, stop));
42
+ start = stop;
43
+ }
44
+ i = j;
45
+ }
46
+ return out;
47
+ }
5
48
  /**
6
49
  * @name formatDecimal
7
50
  * @description Formats a number into string format with thousand separators
@@ -10,10 +53,8 @@ function formatDecimal(value, separator = ',') {
10
53
  // We can do this by adjusting the regx, however for the sake of clarity
11
54
  // we rather strip and re-add the negative sign in the output
12
55
  const isNegative = value[0].startsWith('-');
13
- const matched = isNegative
14
- ? value.substring(1).match(NUMBER_REGEX)
15
- : value.match(NUMBER_REGEX);
16
- return matched
56
+ const matched = groups(isNegative ? value.substring(1) : value);
57
+ return matched.length
17
58
  ? `${isNegative ? '-' : ''}${matched.join(separator)}`
18
59
  : value;
19
60
  }
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
4
+ exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.26' };
package/cjs/u8a/wrap.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { U8aLike } from '../types.js';
2
2
  /** @internal */
3
- export declare const U8A_WRAP_ETHEREUM: Uint8Array;
3
+ export declare const U8A_WRAP_ETHEREUM: Uint8Array<ArrayBufferLike>;
4
4
  /** @internal */
5
- export declare const U8A_WRAP_PREFIX: Uint8Array;
5
+ export declare const U8A_WRAP_PREFIX: Uint8Array<ArrayBufferLike>;
6
6
  /** @internal */
7
- export declare const U8A_WRAP_POSTFIX: Uint8Array;
7
+ export declare const U8A_WRAP_POSTFIX: Uint8Array<ArrayBufferLike>;
8
8
  /** @internal */
9
9
  export declare function u8aIsWrapped(u8a: Uint8Array, withEthereum: boolean): boolean;
10
10
  /**
@@ -1,4 +1,47 @@
1
- const NUMBER_REGEX = new RegExp('(\\d+?)(?=(\\d{3})+(?!\\d)|$)', 'g');
1
+ function isDigit(c) {
2
+ return c >= '0' && c <= '9';
3
+ }
4
+ /**
5
+ * Splits the digits of value into thousands groups, exactly as the pattern
6
+ * /(\d+?)(?=(\d{3})+(?!\d)|$)/g matched them, without its quadratic cost
7
+ * on long digit runs (CodeQL js/polynomial-redos): within each run of digits,
8
+ * a group ends where the digits left in the run are a positive multiple of
9
+ * three, or at the end of the string. A run that never reaches such a point
10
+ * (two digits followed by a letter, say) contributes nothing.
11
+ */
12
+ function groups(value) {
13
+ const out = [];
14
+ const end = value.length;
15
+ let i = 0;
16
+ while (i < end) {
17
+ if (!isDigit(value[i])) {
18
+ i++;
19
+ continue;
20
+ }
21
+ let j = i;
22
+ while (j < end && isDigit(value[j])) {
23
+ j++;
24
+ }
25
+ let start = i;
26
+ while (start < j) {
27
+ let stop = -1;
28
+ for (let q = start + 1; q <= j; q++) {
29
+ const left = j - q;
30
+ if ((left > 0 && left % 3 === 0) || (left === 0 && j === end)) {
31
+ stop = q;
32
+ break;
33
+ }
34
+ }
35
+ if (stop === -1) {
36
+ break;
37
+ }
38
+ out.push(value.slice(start, stop));
39
+ start = stop;
40
+ }
41
+ i = j;
42
+ }
43
+ return out;
44
+ }
2
45
  /**
3
46
  * @name formatDecimal
4
47
  * @description Formats a number into string format with thousand separators
@@ -7,10 +50,8 @@ export function formatDecimal(value, separator = ',') {
7
50
  // We can do this by adjusting the regx, however for the sake of clarity
8
51
  // we rather strip and re-add the negative sign in the output
9
52
  const isNegative = value[0].startsWith('-');
10
- const matched = isNegative
11
- ? value.substring(1).match(NUMBER_REGEX)
12
- : value.match(NUMBER_REGEX);
13
- return matched
53
+ const matched = groups(isNegative ? value.substring(1) : value);
54
+ return matched.length
14
55
  ? `${isNegative ? '-' : ''}${matched.join(separator)}`
15
56
  : value;
16
57
  }
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
2
  "author": "Dijital Kurdistan Tech Institute <dev@pezkuwichain.io>",
3
- "bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
3
+ "bugs": "https://git.pezkuwichain.io/pezkuwichain/pezkuwi-common/issues",
4
4
  "description": "A collection of useful utilities for @pezkuwi",
5
5
  "engines": {
6
6
  "node": ">=18"
7
7
  },
8
- "homepage": "https://github.com/pezkuwichain/pezkuwi-common/tree/master/packages/util#readme",
8
+ "homepage": "https://git.pezkuwichain.io/pezkuwichain/pezkuwi-common/tree/master/packages/util#readme",
9
9
  "license": "Apache-2.0",
10
10
  "name": "@pezkuwi/util",
11
11
  "repository": {
12
12
  "directory": "packages/util",
13
13
  "type": "git",
14
- "url": "https://github.com/pezkuwichain/pezkuwi-common.git"
14
+ "url": "https://git.pezkuwichain.io/pezkuwichain/pezkuwi-common.git"
15
15
  },
16
16
  "sideEffects": [
17
17
  "./packageDetect.js",
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "types": "./index.d.ts",
22
- "version": "14.0.23",
21
+ "version": "14.0.26",
23
22
  "main": "./cjs/index.js",
24
23
  "module": "./index.js",
24
+ "types": "./index.d.ts",
25
25
  "exports": {
26
+ "./cjs/package.json": "./cjs/package.json",
27
+ "./cjs/*": "./cjs/*.js",
26
28
  ".": {
27
- "types": "./index.d.ts",
28
29
  "module": {
29
30
  "types": "./index.d.ts",
30
31
  "default": "./index.js"
31
32
  },
32
- "import": "./index.js",
33
33
  "require": {
34
34
  "types": "./cjs/index.d.ts",
35
35
  "default": "./cjs/index.js"
@@ -445,8 +445,6 @@
445
445
  "default": "./bundle.js"
446
446
  }
447
447
  },
448
- "./cjs/*": "./cjs/*.js",
449
- "./cjs/package.json": "./cjs/package.json",
450
448
  "./compact": {
451
449
  "module": {
452
450
  "types": "./compact/index.d.ts",
@@ -1575,7 +1573,7 @@
1575
1573
  "default": "./packageDetect.js"
1576
1574
  }
1577
1575
  },
1578
- "./packageInfo": {
1576
+ "./packageInfo.js": {
1579
1577
  "module": {
1580
1578
  "types": "./packageInfo.d.ts",
1581
1579
  "default": "./packageInfo.js"
@@ -1589,7 +1587,7 @@
1589
1587
  "default": "./packageInfo.js"
1590
1588
  }
1591
1589
  },
1592
- "./packageInfo.js": {
1590
+ "./packageInfo": {
1593
1591
  "module": {
1594
1592
  "types": "./packageInfo.d.ts",
1595
1593
  "default": "./packageInfo.js"
@@ -1987,15 +1985,12 @@
1987
1985
  }
1988
1986
  },
1989
1987
  "dependencies": {
1990
- "@pezkuwi/x-bigint": "14.0.23",
1991
- "@pezkuwi/x-global": "14.0.23",
1992
- "@pezkuwi/x-textdecoder": "14.0.23",
1993
- "@pezkuwi/x-textencoder": "14.0.23",
1988
+ "@pezkuwi/x-bigint": "14.0.26",
1989
+ "@pezkuwi/x-global": "14.0.26",
1990
+ "@pezkuwi/x-textdecoder": "14.0.26",
1991
+ "@pezkuwi/x-textencoder": "14.0.26",
1994
1992
  "@types/bn.js": "^5.1.6",
1995
1993
  "bn.js": "^5.2.1",
1996
1994
  "tslib": "^2.8.0"
1997
- },
1998
- "devDependencies": {
1999
- "@pezkuwi/x-randomvalues": "14.0.23"
2000
1995
  }
2001
1996
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
1
+ export const packageInfo = { name: '@pezkuwi/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.26' };
package/u8a/wrap.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { U8aLike } from '../types.js';
2
2
  /** @internal */
3
- export declare const U8A_WRAP_ETHEREUM: Uint8Array;
3
+ export declare const U8A_WRAP_ETHEREUM: Uint8Array<ArrayBufferLike>;
4
4
  /** @internal */
5
- export declare const U8A_WRAP_PREFIX: Uint8Array;
5
+ export declare const U8A_WRAP_PREFIX: Uint8Array<ArrayBufferLike>;
6
6
  /** @internal */
7
- export declare const U8A_WRAP_POSTFIX: Uint8Array;
7
+ export declare const U8A_WRAP_POSTFIX: Uint8Array<ArrayBufferLike>;
8
8
  /** @internal */
9
9
  export declare function u8aIsWrapped(u8a: Uint8Array, withEthereum: boolean): boolean;
10
10
  /**
package/build/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
package/build/README.md DELETED
@@ -1,17 +0,0 @@
1
- # @pezkuwi/util
2
-
3
- Various useful utility functions that are used across all projects in the [@pezkuwi](https://pezkuwi.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
4
-
5
- ## Usage
6
-
7
- Installation -
8
-
9
- ```
10
- yarn add @pezkuwi/util
11
- ```
12
-
13
- Functions can be imported directly from the package, e.g.
14
-
15
- ```js
16
- import { isHex } from '@pezkuwi/util';
17
- ```
@@ -1,15 +0,0 @@
1
- /**
2
- * @name arrayChunk
3
- * @summary Split T[] into T[][] based on the defind size
4
- * @description
5
- * Returns a set ao arrays based on the chunksize
6
- * @example
7
- * <BR>
8
- *
9
- * ```javascript
10
- * import { arrayChunk } from '@pezkuwi/util';
11
- *
12
- * arrayChunk([1, 2, 3, 4, 5]); // [[1, 2], [3, 4], [5]]
13
- * ```
14
- */
15
- export declare function arrayChunk<T>(array: T[], chunkSize: number): T[][];
@@ -1,27 +0,0 @@
1
- /**
2
- * @name arrayChunk
3
- * @summary Split T[] into T[][] based on the defind size
4
- * @description
5
- * Returns a set ao arrays based on the chunksize
6
- * @example
7
- * <BR>
8
- *
9
- * ```javascript
10
- * import { arrayChunk } from '@pezkuwi/util';
11
- *
12
- * arrayChunk([1, 2, 3, 4, 5]); // [[1, 2], [3, 4], [5]]
13
- * ```
14
- */
15
- export function arrayChunk(array, chunkSize) {
16
- const outputSize = Math.ceil(array.length / chunkSize);
17
- // shortcut for the single-split case
18
- if (outputSize === 1) {
19
- return [array];
20
- }
21
- const output = Array(outputSize);
22
- for (let i = 0; i < outputSize; i++) {
23
- const offset = i * chunkSize;
24
- output[i] = array.slice(offset, offset + chunkSize);
25
- }
26
- return output;
27
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @name arrayFilter
3
- * @summary Filters undefined and (optionally) null values from an array
4
- * @description
5
- * Returns a new array with all `undefined` values removed. Optionally, when `allowNulls = false`, it removes the `null` values as well
6
- * @example
7
- * <BR>
8
- *
9
- * ```javascript
10
- * import { arrayFilter } from '@pezkuwi/util';
11
- *
12
- * arrayFilter([0, void 0, true, null, false, '']); // [0, true, null, false, '']
13
- * arrayFilter([0, void 0, true, null, false, ''], false); // [0, true, false, '']
14
- * ```
15
- */
16
- export declare function arrayFilter<T = unknown>(array: readonly (T | null | undefined)[], allowNulls?: boolean): T[];
@@ -1,19 +0,0 @@
1
- /**
2
- * @name arrayFilter
3
- * @summary Filters undefined and (optionally) null values from an array
4
- * @description
5
- * Returns a new array with all `undefined` values removed. Optionally, when `allowNulls = false`, it removes the `null` values as well
6
- * @example
7
- * <BR>
8
- *
9
- * ```javascript
10
- * import { arrayFilter } from '@pezkuwi/util';
11
- *
12
- * arrayFilter([0, void 0, true, null, false, '']); // [0, true, null, false, '']
13
- * arrayFilter([0, void 0, true, null, false, ''], false); // [0, true, false, '']
14
- * ```
15
- */
16
- export function arrayFilter(array, allowNulls = true) {
17
- return array.filter((v) => v !== undefined &&
18
- (allowNulls || v !== null));
19
- }