@mainsail/utils 0.0.1-alpha.1

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 (793) hide show
  1. package/distribution/assign.d.ts +2 -0
  2. package/distribution/assign.d.ts.map +1 -0
  3. package/distribution/assign.js +14 -0
  4. package/distribution/assign.js.map +1 -0
  5. package/distribution/at.d.ts +2 -0
  6. package/distribution/at.d.ts.map +1 -0
  7. package/distribution/at.js +8 -0
  8. package/distribution/at.js.map +1 -0
  9. package/distribution/base64.d.ts +5 -0
  10. package/distribution/base64.d.ts.map +1 -0
  11. package/distribution/base64.js +7 -0
  12. package/distribution/base64.js.map +1 -0
  13. package/distribution/big-number.d.ts +29 -0
  14. package/distribution/big-number.d.ts.map +1 -0
  15. package/distribution/big-number.js +80 -0
  16. package/distribution/big-number.js.map +1 -0
  17. package/distribution/binary.d.ts +5 -0
  18. package/distribution/binary.d.ts.map +1 -0
  19. package/distribution/binary.js +13 -0
  20. package/distribution/binary.js.map +1 -0
  21. package/distribution/byte-buffer.d.ts +29 -0
  22. package/distribution/byte-buffer.d.ts.map +1 -0
  23. package/distribution/byte-buffer.js +134 -0
  24. package/distribution/byte-buffer.js.map +1 -0
  25. package/distribution/camel-case.d.ts +2 -0
  26. package/distribution/camel-case.d.ts.map +1 -0
  27. package/distribution/camel-case.js +8 -0
  28. package/distribution/camel-case.js.map +1 -0
  29. package/distribution/capped-map.d.ts +17 -0
  30. package/distribution/capped-map.d.ts.map +1 -0
  31. package/distribution/capped-map.js +68 -0
  32. package/distribution/capped-map.js.map +1 -0
  33. package/distribution/capped-set.d.ts +7 -0
  34. package/distribution/capped-set.d.ts.map +1 -0
  35. package/distribution/capped-set.js +36 -0
  36. package/distribution/capped-set.js.map +1 -0
  37. package/distribution/cast-array.d.ts +2 -0
  38. package/distribution/cast-array.d.ts.map +1 -0
  39. package/distribution/cast-array.js +25 -0
  40. package/distribution/cast-array.js.map +1 -0
  41. package/distribution/chars.d.ts +2 -0
  42. package/distribution/chars.d.ts.map +1 -0
  43. package/distribution/chars.js +6 -0
  44. package/distribution/chars.js.map +1 -0
  45. package/distribution/chunk.d.ts +2 -0
  46. package/distribution/chunk.d.ts.map +1 -0
  47. package/distribution/chunk.js +19 -0
  48. package/distribution/chunk.js.map +1 -0
  49. package/distribution/clone-array.d.ts +2 -0
  50. package/distribution/clone-array.d.ts.map +1 -0
  51. package/distribution/clone-array.js +12 -0
  52. package/distribution/clone-array.js.map +1 -0
  53. package/distribution/clone-deep.d.ts +2 -0
  54. package/distribution/clone-deep.d.ts.map +1 -0
  55. package/distribution/clone-deep.js +10 -0
  56. package/distribution/clone-deep.js.map +1 -0
  57. package/distribution/clone-object.d.ts +2 -0
  58. package/distribution/clone-object.d.ts.map +1 -0
  59. package/distribution/clone-object.js +13 -0
  60. package/distribution/clone-object.js.map +1 -0
  61. package/distribution/clone.d.ts +2 -0
  62. package/distribution/clone.d.ts.map +1 -0
  63. package/distribution/clone.js +9 -0
  64. package/distribution/clone.js.map +1 -0
  65. package/distribution/collection.d.ts +20 -0
  66. package/distribution/collection.d.ts.map +1 -0
  67. package/distribution/collection.js +83 -0
  68. package/distribution/collection.js.map +1 -0
  69. package/distribution/concat.d.ts +2 -0
  70. package/distribution/concat.d.ts.map +1 -0
  71. package/distribution/concat.js +21 -0
  72. package/distribution/concat.js.map +1 -0
  73. package/distribution/constant-case.d.ts +2 -0
  74. package/distribution/constant-case.d.ts.map +1 -0
  75. package/distribution/constant-case.js +7 -0
  76. package/distribution/constant-case.js.map +1 -0
  77. package/distribution/dot-case.d.ts +2 -0
  78. package/distribution/dot-case.d.ts.map +1 -0
  79. package/distribution/dot-case.js +7 -0
  80. package/distribution/dot-case.js.map +1 -0
  81. package/distribution/dot-env.d.ts +7 -0
  82. package/distribution/dot-env.d.ts.map +1 -0
  83. package/distribution/dot-env.js +39 -0
  84. package/distribution/dot-env.js.map +1 -0
  85. package/distribution/every.d.ts +3 -0
  86. package/distribution/every.d.ts.map +1 -0
  87. package/distribution/every.js +13 -0
  88. package/distribution/every.js.map +1 -0
  89. package/distribution/expand-tilde.d.ts +2 -0
  90. package/distribution/expand-tilde.d.ts.map +1 -0
  91. package/distribution/expand-tilde.js +18 -0
  92. package/distribution/expand-tilde.js.map +1 -0
  93. package/distribution/extension.d.ts +2 -0
  94. package/distribution/extension.d.ts.map +1 -0
  95. package/distribution/extension.js +7 -0
  96. package/distribution/extension.js.map +1 -0
  97. package/distribution/fill.d.ts +2 -0
  98. package/distribution/fill.d.ts.map +1 -0
  99. package/distribution/fill.js +18 -0
  100. package/distribution/fill.js.map +1 -0
  101. package/distribution/filter-array.d.ts +3 -0
  102. package/distribution/filter-array.d.ts.map +1 -0
  103. package/distribution/filter-array.js +14 -0
  104. package/distribution/filter-array.js.map +1 -0
  105. package/distribution/filter-object.d.ts +3 -0
  106. package/distribution/filter-object.d.ts.map +1 -0
  107. package/distribution/filter-object.js +17 -0
  108. package/distribution/filter-object.js.map +1 -0
  109. package/distribution/filter.d.ts +3 -0
  110. package/distribution/filter.d.ts.map +1 -0
  111. package/distribution/filter.js +9 -0
  112. package/distribution/filter.js.map +1 -0
  113. package/distribution/find-index.d.ts +3 -0
  114. package/distribution/find-index.d.ts.map +1 -0
  115. package/distribution/find-index.js +13 -0
  116. package/distribution/find-index.js.map +1 -0
  117. package/distribution/find-key.d.ts +3 -0
  118. package/distribution/find-key.d.ts.map +1 -0
  119. package/distribution/find-key.js +7 -0
  120. package/distribution/find-key.js.map +1 -0
  121. package/distribution/find.d.ts +3 -0
  122. package/distribution/find.d.ts.map +1 -0
  123. package/distribution/find.js +14 -0
  124. package/distribution/find.js.map +1 -0
  125. package/distribution/first-map-entry.d.ts +2 -0
  126. package/distribution/first-map-entry.d.ts.map +1 -0
  127. package/distribution/first-map-entry.js +6 -0
  128. package/distribution/first-map-entry.js.map +1 -0
  129. package/distribution/first-map-key.d.ts +2 -0
  130. package/distribution/first-map-key.d.ts.map +1 -0
  131. package/distribution/first-map-key.js +7 -0
  132. package/distribution/first-map-key.js.map +1 -0
  133. package/distribution/first-map-value.d.ts +2 -0
  134. package/distribution/first-map-value.d.ts.map +1 -0
  135. package/distribution/first-map-value.js +7 -0
  136. package/distribution/first-map-value.js.map +1 -0
  137. package/distribution/flatten.d.ts +2 -0
  138. package/distribution/flatten.d.ts.map +1 -0
  139. package/distribution/flatten.js +12 -0
  140. package/distribution/flatten.js.map +1 -0
  141. package/distribution/format-number.d.ts +2 -0
  142. package/distribution/format-number.d.ts.map +1 -0
  143. package/distribution/format-number.js +6 -0
  144. package/distribution/format-number.js.map +1 -0
  145. package/distribution/format-string.d.ts +2 -0
  146. package/distribution/format-string.d.ts.map +1 -0
  147. package/distribution/format-string.js +13 -0
  148. package/distribution/format-string.js.map +1 -0
  149. package/distribution/get-path-segments.d.ts +2 -0
  150. package/distribution/get-path-segments.d.ts.map +1 -0
  151. package/distribution/get-path-segments.js +10 -0
  152. package/distribution/get-path-segments.js.map +1 -0
  153. package/distribution/get-type.d.ts +2 -0
  154. package/distribution/get-type.d.ts.map +1 -0
  155. package/distribution/get-type.js +6 -0
  156. package/distribution/get-type.js.map +1 -0
  157. package/distribution/get.d.ts +2 -0
  158. package/distribution/get.d.ts.map +1 -0
  159. package/distribution/get.js +28 -0
  160. package/distribution/get.js.map +1 -0
  161. package/distribution/group-by.d.ts +3 -0
  162. package/distribution/group-by.d.ts.map +1 -0
  163. package/distribution/group-by.js +16 -0
  164. package/distribution/group-by.js.map +1 -0
  165. package/distribution/has-property.d.ts +2 -0
  166. package/distribution/has-property.d.ts.map +1 -0
  167. package/distribution/has-property.js +6 -0
  168. package/distribution/has-property.js.map +1 -0
  169. package/distribution/has-some-property.d.ts +2 -0
  170. package/distribution/has-some-property.d.ts.map +1 -0
  171. package/distribution/has-some-property.js +8 -0
  172. package/distribution/has-some-property.js.map +1 -0
  173. package/distribution/has.d.ts +2 -0
  174. package/distribution/has.d.ts.map +1 -0
  175. package/distribution/has.js +24 -0
  176. package/distribution/has.js.map +1 -0
  177. package/distribution/hash-string.d.ts +2 -0
  178. package/distribution/hash-string.d.ts.map +1 -0
  179. package/distribution/hash-string.js +13 -0
  180. package/distribution/hash-string.js.map +1 -0
  181. package/distribution/head.d.ts +2 -0
  182. package/distribution/head.d.ts.map +1 -0
  183. package/distribution/head.js +6 -0
  184. package/distribution/head.js.map +1 -0
  185. package/distribution/header-case.d.ts +2 -0
  186. package/distribution/header-case.d.ts.map +1 -0
  187. package/distribution/header-case.js +8 -0
  188. package/distribution/header-case.js.map +1 -0
  189. package/distribution/hex.d.ts +5 -0
  190. package/distribution/hex.d.ts.map +1 -0
  191. package/distribution/hex.js +7 -0
  192. package/distribution/hex.js.map +1 -0
  193. package/distribution/http.d.ts +26 -0
  194. package/distribution/http.d.ts.map +1 -0
  195. package/distribution/http.js +103 -0
  196. package/distribution/http.js.map +1 -0
  197. package/distribution/immutable/index.d.ts +4 -0
  198. package/distribution/immutable/index.d.ts.map +1 -0
  199. package/distribution/immutable/index.js +20 -0
  200. package/distribution/immutable/index.js.map +1 -0
  201. package/distribution/immutable/order-by.d.ts +3 -0
  202. package/distribution/immutable/order-by.d.ts.map +1 -0
  203. package/distribution/immutable/order-by.js +7 -0
  204. package/distribution/immutable/order-by.js.map +1 -0
  205. package/distribution/immutable/sort-by-desc.d.ts +3 -0
  206. package/distribution/immutable/sort-by-desc.d.ts.map +1 -0
  207. package/distribution/immutable/sort-by-desc.js +7 -0
  208. package/distribution/immutable/sort-by-desc.js.map +1 -0
  209. package/distribution/immutable/sort-by.d.ts +3 -0
  210. package/distribution/immutable/sort-by.d.ts.map +1 -0
  211. package/distribution/immutable/sort-by.js +7 -0
  212. package/distribution/immutable/sort-by.js.map +1 -0
  213. package/distribution/includes.d.ts +2 -0
  214. package/distribution/includes.d.ts.map +1 -0
  215. package/distribution/includes.js +20 -0
  216. package/distribution/includes.js.map +1 -0
  217. package/distribution/index-of.d.ts +2 -0
  218. package/distribution/index-of.d.ts.map +1 -0
  219. package/distribution/index-of.js +24 -0
  220. package/distribution/index-of.js.map +1 -0
  221. package/distribution/index.d.ts +192 -0
  222. package/distribution/index.d.ts.map +1 -0
  223. package/distribution/index.js +221 -0
  224. package/distribution/index.js.map +1 -0
  225. package/distribution/internal/compound-words.d.ts +2 -0
  226. package/distribution/internal/compound-words.d.ts.map +1 -0
  227. package/distribution/internal/compound-words.js +15 -0
  228. package/distribution/internal/compound-words.js.map +1 -0
  229. package/distribution/internal/index.d.ts +3 -0
  230. package/distribution/internal/index.d.ts.map +1 -0
  231. package/distribution/internal/index.js +19 -0
  232. package/distribution/internal/index.js.map +1 -0
  233. package/distribution/internal/types.d.ts +3 -0
  234. package/distribution/internal/types.d.ts.map +1 -0
  235. package/distribution/internal/types.js +3 -0
  236. package/distribution/internal/types.js.map +1 -0
  237. package/distribution/intersection.d.ts +2 -0
  238. package/distribution/intersection.d.ts.map +1 -0
  239. package/distribution/intersection.js +17 -0
  240. package/distribution/intersection.js.map +1 -0
  241. package/distribution/is-arguments.d.ts +2 -0
  242. package/distribution/is-arguments.d.ts.map +1 -0
  243. package/distribution/is-arguments.js +7 -0
  244. package/distribution/is-arguments.js.map +1 -0
  245. package/distribution/is-array-of-type.d.ts +2 -0
  246. package/distribution/is-array-of-type.d.ts.map +1 -0
  247. package/distribution/is-array-of-type.js +7 -0
  248. package/distribution/is-array-of-type.js.map +1 -0
  249. package/distribution/is-array.d.ts +2 -0
  250. package/distribution/is-array.d.ts.map +1 -0
  251. package/distribution/is-array.js +6 -0
  252. package/distribution/is-array.js.map +1 -0
  253. package/distribution/is-async-function.d.ts +2 -0
  254. package/distribution/is-async-function.d.ts.map +1 -0
  255. package/distribution/is-async-function.js +7 -0
  256. package/distribution/is-async-function.js.map +1 -0
  257. package/distribution/is-between.d.ts +2 -0
  258. package/distribution/is-between.d.ts.map +1 -0
  259. package/distribution/is-between.js +6 -0
  260. package/distribution/is-between.js.map +1 -0
  261. package/distribution/is-bigint.d.ts +2 -0
  262. package/distribution/is-bigint.d.ts.map +1 -0
  263. package/distribution/is-bigint.js +6 -0
  264. package/distribution/is-bigint.js.map +1 -0
  265. package/distribution/is-boolean-array.d.ts +2 -0
  266. package/distribution/is-boolean-array.d.ts.map +1 -0
  267. package/distribution/is-boolean-array.js +7 -0
  268. package/distribution/is-boolean-array.js.map +1 -0
  269. package/distribution/is-boolean.d.ts +2 -0
  270. package/distribution/is-boolean.d.ts.map +1 -0
  271. package/distribution/is-boolean.js +6 -0
  272. package/distribution/is-boolean.js.map +1 -0
  273. package/distribution/is-buffer.d.ts +2 -0
  274. package/distribution/is-buffer.d.ts.map +1 -0
  275. package/distribution/is-buffer.js +6 -0
  276. package/distribution/is-buffer.js.map +1 -0
  277. package/distribution/is-constructor.d.ts +2 -0
  278. package/distribution/is-constructor.d.ts.map +1 -0
  279. package/distribution/is-constructor.js +6 -0
  280. package/distribution/is-constructor.js.map +1 -0
  281. package/distribution/is-date.d.ts +2 -0
  282. package/distribution/is-date.d.ts.map +1 -0
  283. package/distribution/is-date.js +6 -0
  284. package/distribution/is-date.js.map +1 -0
  285. package/distribution/is-empty-array.d.ts +2 -0
  286. package/distribution/is-empty-array.d.ts.map +1 -0
  287. package/distribution/is-empty-array.js +7 -0
  288. package/distribution/is-empty-array.js.map +1 -0
  289. package/distribution/is-empty-map.d.ts +2 -0
  290. package/distribution/is-empty-map.d.ts.map +1 -0
  291. package/distribution/is-empty-map.js +7 -0
  292. package/distribution/is-empty-map.js.map +1 -0
  293. package/distribution/is-empty-object.d.ts +2 -0
  294. package/distribution/is-empty-object.d.ts.map +1 -0
  295. package/distribution/is-empty-object.js +7 -0
  296. package/distribution/is-empty-object.js.map +1 -0
  297. package/distribution/is-empty-set.d.ts +2 -0
  298. package/distribution/is-empty-set.d.ts.map +1 -0
  299. package/distribution/is-empty-set.js +7 -0
  300. package/distribution/is-empty-set.js.map +1 -0
  301. package/distribution/is-empty.d.ts +2 -0
  302. package/distribution/is-empty.d.ts.map +1 -0
  303. package/distribution/is-empty.js +17 -0
  304. package/distribution/is-empty.js.map +1 -0
  305. package/distribution/is-enumerable.d.ts +2 -0
  306. package/distribution/is-enumerable.d.ts.map +1 -0
  307. package/distribution/is-enumerable.js +6 -0
  308. package/distribution/is-enumerable.js.map +1 -0
  309. package/distribution/is-equal.d.ts +3 -0
  310. package/distribution/is-equal.d.ts.map +1 -0
  311. package/distribution/is-equal.js +9 -0
  312. package/distribution/is-equal.js.map +1 -0
  313. package/distribution/is-error.d.ts +2 -0
  314. package/distribution/is-error.d.ts.map +1 -0
  315. package/distribution/is-error.js +6 -0
  316. package/distribution/is-error.js.map +1 -0
  317. package/distribution/is-false.d.ts +2 -0
  318. package/distribution/is-false.d.ts.map +1 -0
  319. package/distribution/is-false.js +6 -0
  320. package/distribution/is-false.js.map +1 -0
  321. package/distribution/is-function.d.ts +2 -0
  322. package/distribution/is-function.d.ts.map +1 -0
  323. package/distribution/is-function.js +8 -0
  324. package/distribution/is-function.js.map +1 -0
  325. package/distribution/is-git.d.ts +2 -0
  326. package/distribution/is-git.d.ts.map +1 -0
  327. package/distribution/is-git.js +6 -0
  328. package/distribution/is-git.js.map +1 -0
  329. package/distribution/is-greater-than-or-equal.d.ts +2 -0
  330. package/distribution/is-greater-than-or-equal.d.ts.map +1 -0
  331. package/distribution/is-greater-than-or-equal.js +6 -0
  332. package/distribution/is-greater-than-or-equal.js.map +1 -0
  333. package/distribution/is-greater-than.d.ts +2 -0
  334. package/distribution/is-greater-than.d.ts.map +1 -0
  335. package/distribution/is-greater-than.js +6 -0
  336. package/distribution/is-greater-than.js.map +1 -0
  337. package/distribution/is-less-than-or-equal.d.ts +2 -0
  338. package/distribution/is-less-than-or-equal.d.ts.map +1 -0
  339. package/distribution/is-less-than-or-equal.js +6 -0
  340. package/distribution/is-less-than-or-equal.js.map +1 -0
  341. package/distribution/is-less-than.d.ts +2 -0
  342. package/distribution/is-less-than.d.ts.map +1 -0
  343. package/distribution/is-less-than.js +6 -0
  344. package/distribution/is-less-than.js.map +1 -0
  345. package/distribution/is-map.d.ts +2 -0
  346. package/distribution/is-map.d.ts.map +1 -0
  347. package/distribution/is-map.js +6 -0
  348. package/distribution/is-map.js.map +1 -0
  349. package/distribution/is-match.d.ts +2 -0
  350. package/distribution/is-match.d.ts.map +1 -0
  351. package/distribution/is-match.js +6 -0
  352. package/distribution/is-match.js.map +1 -0
  353. package/distribution/is-negative-zero.d.ts +2 -0
  354. package/distribution/is-negative-zero.d.ts.map +1 -0
  355. package/distribution/is-negative-zero.js +6 -0
  356. package/distribution/is-negative-zero.js.map +1 -0
  357. package/distribution/is-negative.d.ts +2 -0
  358. package/distribution/is-negative.d.ts.map +1 -0
  359. package/distribution/is-negative.js +7 -0
  360. package/distribution/is-negative.js.map +1 -0
  361. package/distribution/is-nil.d.ts +2 -0
  362. package/distribution/is-nil.d.ts.map +1 -0
  363. package/distribution/is-nil.js +7 -0
  364. package/distribution/is-nil.js.map +1 -0
  365. package/distribution/is-not-between.d.ts +2 -0
  366. package/distribution/is-not-between.d.ts.map +1 -0
  367. package/distribution/is-not-between.js +7 -0
  368. package/distribution/is-not-between.js.map +1 -0
  369. package/distribution/is-not-equal.d.ts +2 -0
  370. package/distribution/is-not-equal.d.ts.map +1 -0
  371. package/distribution/is-not-equal.js +7 -0
  372. package/distribution/is-not-equal.js.map +1 -0
  373. package/distribution/is-null.d.ts +2 -0
  374. package/distribution/is-null.d.ts.map +1 -0
  375. package/distribution/is-null.js +6 -0
  376. package/distribution/is-null.js.map +1 -0
  377. package/distribution/is-number-array.d.ts +2 -0
  378. package/distribution/is-number-array.d.ts.map +1 -0
  379. package/distribution/is-number-array.js +7 -0
  380. package/distribution/is-number-array.js.map +1 -0
  381. package/distribution/is-number.d.ts +2 -0
  382. package/distribution/is-number.d.ts.map +1 -0
  383. package/distribution/is-number.js +6 -0
  384. package/distribution/is-number.js.map +1 -0
  385. package/distribution/is-object.d.ts +2 -0
  386. package/distribution/is-object.d.ts.map +1 -0
  387. package/distribution/is-object.js +6 -0
  388. package/distribution/is-object.js.map +1 -0
  389. package/distribution/is-positive-zero.d.ts +2 -0
  390. package/distribution/is-positive-zero.d.ts.map +1 -0
  391. package/distribution/is-positive-zero.js +6 -0
  392. package/distribution/is-positive-zero.js.map +1 -0
  393. package/distribution/is-positive.d.ts +2 -0
  394. package/distribution/is-positive.d.ts.map +1 -0
  395. package/distribution/is-positive.js +7 -0
  396. package/distribution/is-positive.js.map +1 -0
  397. package/distribution/is-promise.d.ts +2 -0
  398. package/distribution/is-promise.d.ts.map +1 -0
  399. package/distribution/is-promise.js +6 -0
  400. package/distribution/is-promise.js.map +1 -0
  401. package/distribution/is-reg-exp.d.ts +2 -0
  402. package/distribution/is-reg-exp.d.ts.map +1 -0
  403. package/distribution/is-reg-exp.js +6 -0
  404. package/distribution/is-reg-exp.js.map +1 -0
  405. package/distribution/is-set.d.ts +2 -0
  406. package/distribution/is-set.d.ts.map +1 -0
  407. package/distribution/is-set.js +6 -0
  408. package/distribution/is-set.js.map +1 -0
  409. package/distribution/is-ssh.d.ts +2 -0
  410. package/distribution/is-ssh.d.ts.map +1 -0
  411. package/distribution/is-ssh.js +14 -0
  412. package/distribution/is-ssh.js.map +1 -0
  413. package/distribution/is-string-array.d.ts +2 -0
  414. package/distribution/is-string-array.d.ts.map +1 -0
  415. package/distribution/is-string-array.js +7 -0
  416. package/distribution/is-string-array.js.map +1 -0
  417. package/distribution/is-string.d.ts +2 -0
  418. package/distribution/is-string.d.ts.map +1 -0
  419. package/distribution/is-string.js +6 -0
  420. package/distribution/is-string.js.map +1 -0
  421. package/distribution/is-symbol.d.ts +2 -0
  422. package/distribution/is-symbol.d.ts.map +1 -0
  423. package/distribution/is-symbol.js +6 -0
  424. package/distribution/is-symbol.js.map +1 -0
  425. package/distribution/is-sync-function.d.ts +2 -0
  426. package/distribution/is-sync-function.d.ts.map +1 -0
  427. package/distribution/is-sync-function.js +7 -0
  428. package/distribution/is-sync-function.js.map +1 -0
  429. package/distribution/is-true.d.ts +2 -0
  430. package/distribution/is-true.d.ts.map +1 -0
  431. package/distribution/is-true.js +6 -0
  432. package/distribution/is-true.js.map +1 -0
  433. package/distribution/is-undefined.d.ts +2 -0
  434. package/distribution/is-undefined.d.ts.map +1 -0
  435. package/distribution/is-undefined.js +6 -0
  436. package/distribution/is-undefined.js.map +1 -0
  437. package/distribution/is-uri.d.ts +2 -0
  438. package/distribution/is-uri.d.ts.map +1 -0
  439. package/distribution/is-uri.js +6 -0
  440. package/distribution/is-uri.js.map +1 -0
  441. package/distribution/is-url.d.ts +4 -0
  442. package/distribution/is-url.d.ts.map +1 -0
  443. package/distribution/is-url.js +7 -0
  444. package/distribution/is-url.js.map +1 -0
  445. package/distribution/is-weak-map.d.ts +2 -0
  446. package/distribution/is-weak-map.d.ts.map +1 -0
  447. package/distribution/is-weak-map.js +6 -0
  448. package/distribution/is-weak-map.js.map +1 -0
  449. package/distribution/is-weak-set.d.ts +2 -0
  450. package/distribution/is-weak-set.d.ts.map +1 -0
  451. package/distribution/is-weak-set.js +6 -0
  452. package/distribution/is-weak-set.js.map +1 -0
  453. package/distribution/kebab-case.d.ts +2 -0
  454. package/distribution/kebab-case.d.ts.map +1 -0
  455. package/distribution/kebab-case.js +7 -0
  456. package/distribution/kebab-case.js.map +1 -0
  457. package/distribution/key-by.d.ts +3 -0
  458. package/distribution/key-by.d.ts.map +1 -0
  459. package/distribution/key-by.js +9 -0
  460. package/distribution/key-by.js.map +1 -0
  461. package/distribution/keys-in.d.ts +2 -0
  462. package/distribution/keys-in.d.ts.map +1 -0
  463. package/distribution/keys-in.js +9 -0
  464. package/distribution/keys-in.js.map +1 -0
  465. package/distribution/keys.d.ts +2 -0
  466. package/distribution/keys.d.ts.map +1 -0
  467. package/distribution/keys.js +6 -0
  468. package/distribution/keys.js.map +1 -0
  469. package/distribution/last-index-of.d.ts +2 -0
  470. package/distribution/last-index-of.d.ts.map +1 -0
  471. package/distribution/last-index-of.js +21 -0
  472. package/distribution/last-index-of.js.map +1 -0
  473. package/distribution/last-map-entry.d.ts +2 -0
  474. package/distribution/last-map-entry.d.ts.map +1 -0
  475. package/distribution/last-map-entry.js +6 -0
  476. package/distribution/last-map-entry.js.map +1 -0
  477. package/distribution/last-map-key.d.ts +2 -0
  478. package/distribution/last-map-key.d.ts.map +1 -0
  479. package/distribution/last-map-key.js +7 -0
  480. package/distribution/last-map-key.js.map +1 -0
  481. package/distribution/last-map-value.d.ts +2 -0
  482. package/distribution/last-map-value.d.ts.map +1 -0
  483. package/distribution/last-map-value.js +7 -0
  484. package/distribution/last-map-value.js.map +1 -0
  485. package/distribution/last.d.ts +2 -0
  486. package/distribution/last.d.ts.map +1 -0
  487. package/distribution/last.js +7 -0
  488. package/distribution/last.js.map +1 -0
  489. package/distribution/lower-case.d.ts +2 -0
  490. package/distribution/lower-case.d.ts.map +1 -0
  491. package/distribution/lower-case.js +7 -0
  492. package/distribution/lower-case.js.map +1 -0
  493. package/distribution/lower-first.d.ts +2 -0
  494. package/distribution/lower-first.d.ts.map +1 -0
  495. package/distribution/lower-first.js +6 -0
  496. package/distribution/lower-first.js.map +1 -0
  497. package/distribution/map-array.d.ts +3 -0
  498. package/distribution/map-array.d.ts.map +1 -0
  499. package/distribution/map-array.js +12 -0
  500. package/distribution/map-array.js.map +1 -0
  501. package/distribution/map-object.d.ts +3 -0
  502. package/distribution/map-object.d.ts.map +1 -0
  503. package/distribution/map-object.js +13 -0
  504. package/distribution/map-object.js.map +1 -0
  505. package/distribution/map-values.d.ts +3 -0
  506. package/distribution/map-values.d.ts.map +1 -0
  507. package/distribution/map-values.js +13 -0
  508. package/distribution/map-values.js.map +1 -0
  509. package/distribution/map.d.ts +3 -0
  510. package/distribution/map.d.ts.map +1 -0
  511. package/distribution/map.js +9 -0
  512. package/distribution/map.js.map +1 -0
  513. package/distribution/match.d.ts +2 -0
  514. package/distribution/match.d.ts.map +1 -0
  515. package/distribution/match.js +13 -0
  516. package/distribution/match.js.map +1 -0
  517. package/distribution/max-by.d.ts +3 -0
  518. package/distribution/max-by.d.ts.map +1 -0
  519. package/distribution/max-by.js +18 -0
  520. package/distribution/max-by.js.map +1 -0
  521. package/distribution/max.d.ts +2 -0
  522. package/distribution/max.d.ts.map +1 -0
  523. package/distribution/max.js +12 -0
  524. package/distribution/max.js.map +1 -0
  525. package/distribution/merge.d.ts +2 -0
  526. package/distribution/merge.d.ts.map +1 -0
  527. package/distribution/merge.js +9 -0
  528. package/distribution/merge.js.map +1 -0
  529. package/distribution/min-by.d.ts +3 -0
  530. package/distribution/min-by.d.ts.map +1 -0
  531. package/distribution/min-by.js +18 -0
  532. package/distribution/min-by.js.map +1 -0
  533. package/distribution/min.d.ts +2 -0
  534. package/distribution/min.d.ts.map +1 -0
  535. package/distribution/min.js +12 -0
  536. package/distribution/min.js.map +1 -0
  537. package/distribution/nsect.d.ts +8 -0
  538. package/distribution/nsect.d.ts.map +1 -0
  539. package/distribution/nsect.js +99 -0
  540. package/distribution/nsect.js.map +1 -0
  541. package/distribution/number-array.d.ts +2 -0
  542. package/distribution/number-array.d.ts.map +1 -0
  543. package/distribution/number-array.js +6 -0
  544. package/distribution/number-array.js.map +1 -0
  545. package/distribution/number-to-hex.d.ts +2 -0
  546. package/distribution/number-to-hex.d.ts.map +1 -0
  547. package/distribution/number-to-hex.js +9 -0
  548. package/distribution/number-to-hex.js.map +1 -0
  549. package/distribution/omit-by.d.ts +3 -0
  550. package/distribution/omit-by.d.ts.map +1 -0
  551. package/distribution/omit-by.js +7 -0
  552. package/distribution/omit-by.js.map +1 -0
  553. package/distribution/order-by.d.ts +3 -0
  554. package/distribution/order-by.d.ts.map +1 -0
  555. package/distribution/order-by.js +21 -0
  556. package/distribution/order-by.js.map +1 -0
  557. package/distribution/ordinal.d.ts +2 -0
  558. package/distribution/ordinal.d.ts.map +1 -0
  559. package/distribution/ordinal.js +7 -0
  560. package/distribution/ordinal.js.map +1 -0
  561. package/distribution/parse-git-url.d.ts +8 -0
  562. package/distribution/parse-git-url.d.ts.map +1 -0
  563. package/distribution/parse-git-url.js +37 -0
  564. package/distribution/parse-git-url.js.map +1 -0
  565. package/distribution/parse-uri.d.ts +10 -0
  566. package/distribution/parse-uri.d.ts.map +1 -0
  567. package/distribution/parse-uri.js +19 -0
  568. package/distribution/parse-uri.js.map +1 -0
  569. package/distribution/parse.d.ts +2 -0
  570. package/distribution/parse.d.ts.map +1 -0
  571. package/distribution/parse.js +7 -0
  572. package/distribution/parse.js.map +1 -0
  573. package/distribution/partition.d.ts +3 -0
  574. package/distribution/partition.d.ts.map +1 -0
  575. package/distribution/partition.js +9 -0
  576. package/distribution/partition.js.map +1 -0
  577. package/distribution/pascal-case.d.ts +2 -0
  578. package/distribution/pascal-case.d.ts.map +1 -0
  579. package/distribution/pascal-case.js +8 -0
  580. package/distribution/pascal-case.js.map +1 -0
  581. package/distribution/path-case.d.ts +2 -0
  582. package/distribution/path-case.d.ts.map +1 -0
  583. package/distribution/path-case.js +7 -0
  584. package/distribution/path-case.js.map +1 -0
  585. package/distribution/pick-by.d.ts +3 -0
  586. package/distribution/pick-by.d.ts.map +1 -0
  587. package/distribution/pick-by.js +7 -0
  588. package/distribution/pick-by.js.map +1 -0
  589. package/distribution/pick.d.ts +2 -0
  590. package/distribution/pick.d.ts.map +1 -0
  591. package/distribution/pick.js +12 -0
  592. package/distribution/pick.js.map +1 -0
  593. package/distribution/pluck.d.ts +2 -0
  594. package/distribution/pluck.d.ts.map +1 -0
  595. package/distribution/pluck.js +15 -0
  596. package/distribution/pluck.js.map +1 -0
  597. package/distribution/pluralize.d.ts +2 -0
  598. package/distribution/pluralize.d.ts.map +1 -0
  599. package/distribution/pluralize.js +12 -0
  600. package/distribution/pluralize.js.map +1 -0
  601. package/distribution/pretty-bytes.d.ts +2 -0
  602. package/distribution/pretty-bytes.d.ts.map +1 -0
  603. package/distribution/pretty-bytes.js +13 -0
  604. package/distribution/pretty-bytes.js.map +1 -0
  605. package/distribution/pretty-time.d.ts +2 -0
  606. package/distribution/pretty-time.d.ts.map +1 -0
  607. package/distribution/pretty-time.js +34 -0
  608. package/distribution/pretty-time.js.map +1 -0
  609. package/distribution/protocols.d.ts +2 -0
  610. package/distribution/protocols.d.ts.map +1 -0
  611. package/distribution/protocols.js +9 -0
  612. package/distribution/protocols.js.map +1 -0
  613. package/distribution/pull-all-by.d.ts +3 -0
  614. package/distribution/pull-all-by.d.ts.map +1 -0
  615. package/distribution/pull-all-by.js +16 -0
  616. package/distribution/pull-all-by.js.map +1 -0
  617. package/distribution/pull-all.d.ts +2 -0
  618. package/distribution/pull-all.d.ts.map +1 -0
  619. package/distribution/pull-all.js +7 -0
  620. package/distribution/pull-all.js.map +1 -0
  621. package/distribution/pull.d.ts +2 -0
  622. package/distribution/pull.d.ts.map +1 -0
  623. package/distribution/pull.js +7 -0
  624. package/distribution/pull.js.map +1 -0
  625. package/distribution/random-base64.d.ts +2 -0
  626. package/distribution/random-base64.d.ts.map +1 -0
  627. package/distribution/random-base64.js +11 -0
  628. package/distribution/random-base64.js.map +1 -0
  629. package/distribution/random-bits.d.ts +3 -0
  630. package/distribution/random-bits.d.ts.map +1 -0
  631. package/distribution/random-bits.js +7 -0
  632. package/distribution/random-bits.js.map +1 -0
  633. package/distribution/random-hex.d.ts +2 -0
  634. package/distribution/random-hex.d.ts.map +1 -0
  635. package/distribution/random-hex.js +9 -0
  636. package/distribution/random-hex.js.map +1 -0
  637. package/distribution/random-number.d.ts +2 -0
  638. package/distribution/random-number.d.ts.map +1 -0
  639. package/distribution/random-number.js +6 -0
  640. package/distribution/random-number.js.map +1 -0
  641. package/distribution/reduce-array.d.ts +3 -0
  642. package/distribution/reduce-array.d.ts.map +1 -0
  643. package/distribution/reduce-array.js +12 -0
  644. package/distribution/reduce-array.js.map +1 -0
  645. package/distribution/reduce-object.d.ts +3 -0
  646. package/distribution/reduce-object.d.ts.map +1 -0
  647. package/distribution/reduce-object.js +13 -0
  648. package/distribution/reduce-object.js.map +1 -0
  649. package/distribution/reduce-right-array.d.ts +3 -0
  650. package/distribution/reduce-right-array.d.ts.map +1 -0
  651. package/distribution/reduce-right-array.js +12 -0
  652. package/distribution/reduce-right-array.js.map +1 -0
  653. package/distribution/reduce-right-object.d.ts +3 -0
  654. package/distribution/reduce-right-object.d.ts.map +1 -0
  655. package/distribution/reduce-right-object.js +14 -0
  656. package/distribution/reduce-right-object.js.map +1 -0
  657. package/distribution/reduce-right.d.ts +3 -0
  658. package/distribution/reduce-right.d.ts.map +1 -0
  659. package/distribution/reduce-right.js +11 -0
  660. package/distribution/reduce-right.js.map +1 -0
  661. package/distribution/reduce.d.ts +3 -0
  662. package/distribution/reduce.d.ts.map +1 -0
  663. package/distribution/reduce.js +9 -0
  664. package/distribution/reduce.js.map +1 -0
  665. package/distribution/reject.d.ts +3 -0
  666. package/distribution/reject.d.ts.map +1 -0
  667. package/distribution/reject.js +7 -0
  668. package/distribution/reject.js.map +1 -0
  669. package/distribution/reverse.d.ts +2 -0
  670. package/distribution/reverse.d.ts.map +1 -0
  671. package/distribution/reverse.js +6 -0
  672. package/distribution/reverse.js.map +1 -0
  673. package/distribution/safe-equal.d.ts +2 -0
  674. package/distribution/safe-equal.d.ts.map +1 -0
  675. package/distribution/safe-equal.js +14 -0
  676. package/distribution/safe-equal.js.map +1 -0
  677. package/distribution/sample.d.ts +2 -0
  678. package/distribution/sample.d.ts.map +1 -0
  679. package/distribution/sample.js +6 -0
  680. package/distribution/sample.js.map +1 -0
  681. package/distribution/semver.d.ts +9 -0
  682. package/distribution/semver.d.ts.map +1 -0
  683. package/distribution/semver.js +32 -0
  684. package/distribution/semver.js.map +1 -0
  685. package/distribution/set.d.ts +2 -0
  686. package/distribution/set.d.ts.map +1 -0
  687. package/distribution/set.js +25 -0
  688. package/distribution/set.js.map +1 -0
  689. package/distribution/shuffle.d.ts +2 -0
  690. package/distribution/shuffle.d.ts.map +1 -0
  691. package/distribution/shuffle.js +16 -0
  692. package/distribution/shuffle.js.map +1 -0
  693. package/distribution/sleep.d.ts +3 -0
  694. package/distribution/sleep.d.ts.map +1 -0
  695. package/distribution/sleep.js +6 -0
  696. package/distribution/sleep.js.map +1 -0
  697. package/distribution/slice.d.ts +2 -0
  698. package/distribution/slice.d.ts.map +1 -0
  699. package/distribution/slice.js +24 -0
  700. package/distribution/slice.js.map +1 -0
  701. package/distribution/snake-case.d.ts +2 -0
  702. package/distribution/snake-case.d.ts.map +1 -0
  703. package/distribution/snake-case.js +7 -0
  704. package/distribution/snake-case.js.map +1 -0
  705. package/distribution/some.d.ts +3 -0
  706. package/distribution/some.d.ts.map +1 -0
  707. package/distribution/some.js +13 -0
  708. package/distribution/some.js.map +1 -0
  709. package/distribution/sort-by-desc.d.ts +3 -0
  710. package/distribution/sort-by-desc.d.ts.map +1 -0
  711. package/distribution/sort-by-desc.js +7 -0
  712. package/distribution/sort-by-desc.js.map +1 -0
  713. package/distribution/sort-by.d.ts +3 -0
  714. package/distribution/sort-by.d.ts.map +1 -0
  715. package/distribution/sort-by.js +7 -0
  716. package/distribution/sort-by.js.map +1 -0
  717. package/distribution/start-case.d.ts +2 -0
  718. package/distribution/start-case.d.ts.map +1 -0
  719. package/distribution/start-case.js +8 -0
  720. package/distribution/start-case.js.map +1 -0
  721. package/distribution/stringify.d.ts +2 -0
  722. package/distribution/stringify.d.ts.map +1 -0
  723. package/distribution/stringify.js +13 -0
  724. package/distribution/stringify.js.map +1 -0
  725. package/distribution/tail.d.ts +2 -0
  726. package/distribution/tail.d.ts.map +1 -0
  727. package/distribution/tail.js +7 -0
  728. package/distribution/tail.js.map +1 -0
  729. package/distribution/take.d.ts +2 -0
  730. package/distribution/take.d.ts.map +1 -0
  731. package/distribution/take.js +7 -0
  732. package/distribution/take.js.map +1 -0
  733. package/distribution/to-lower.d.ts +2 -0
  734. package/distribution/to-lower.d.ts.map +1 -0
  735. package/distribution/to-lower.js +7 -0
  736. package/distribution/to-lower.js.map +1 -0
  737. package/distribution/to-string.d.ts +2 -0
  738. package/distribution/to-string.d.ts.map +1 -0
  739. package/distribution/to-string.js +13 -0
  740. package/distribution/to-string.js.map +1 -0
  741. package/distribution/to-upper.d.ts +2 -0
  742. package/distribution/to-upper.d.ts.map +1 -0
  743. package/distribution/to-upper.js +7 -0
  744. package/distribution/to-upper.js.map +1 -0
  745. package/distribution/trim-trailing-slash.d.ts +2 -0
  746. package/distribution/trim-trailing-slash.d.ts.map +1 -0
  747. package/distribution/trim-trailing-slash.js +6 -0
  748. package/distribution/trim-trailing-slash.js.map +1 -0
  749. package/distribution/truncate.d.ts +6 -0
  750. package/distribution/truncate.d.ts.map +1 -0
  751. package/distribution/truncate.js +32 -0
  752. package/distribution/truncate.js.map +1 -0
  753. package/distribution/union-by.d.ts +2 -0
  754. package/distribution/union-by.d.ts.map +1 -0
  755. package/distribution/union-by.js +11 -0
  756. package/distribution/union-by.js.map +1 -0
  757. package/distribution/union.d.ts +2 -0
  758. package/distribution/union.d.ts.map +1 -0
  759. package/distribution/union.js +8 -0
  760. package/distribution/union.js.map +1 -0
  761. package/distribution/uniq-by.d.ts +3 -0
  762. package/distribution/uniq-by.d.ts.map +1 -0
  763. package/distribution/uniq-by.js +18 -0
  764. package/distribution/uniq-by.js.map +1 -0
  765. package/distribution/uniq.d.ts +2 -0
  766. package/distribution/uniq.d.ts.map +1 -0
  767. package/distribution/uniq.js +16 -0
  768. package/distribution/uniq.js.map +1 -0
  769. package/distribution/unset.d.ts +2 -0
  770. package/distribution/unset.d.ts.map +1 -0
  771. package/distribution/unset.js +26 -0
  772. package/distribution/unset.js.map +1 -0
  773. package/distribution/upper-case.d.ts +2 -0
  774. package/distribution/upper-case.d.ts.map +1 -0
  775. package/distribution/upper-case.js +7 -0
  776. package/distribution/upper-case.js.map +1 -0
  777. package/distribution/upper-first.d.ts +2 -0
  778. package/distribution/upper-first.d.ts.map +1 -0
  779. package/distribution/upper-first.js +6 -0
  780. package/distribution/upper-first.js.map +1 -0
  781. package/distribution/validator-set-pack.d.ts +3 -0
  782. package/distribution/validator-set-pack.d.ts.map +1 -0
  783. package/distribution/validator-set-pack.js +24 -0
  784. package/distribution/validator-set-pack.js.map +1 -0
  785. package/distribution/words.d.ts +2 -0
  786. package/distribution/words.d.ts.map +1 -0
  787. package/distribution/words.js +6 -0
  788. package/distribution/words.js.map +1 -0
  789. package/distribution/zip-object.d.ts +2 -0
  790. package/distribution/zip-object.d.ts.map +1 -0
  791. package/distribution/zip-object.js +12 -0
  792. package/distribution/zip-object.js.map +1 -0
  793. package/package.json +43 -0
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findKey = void 0;
4
+ const filter_object_1 = require("./filter-object");
5
+ const findKey = (iterable, iteratee) => Object.keys((0, filter_object_1.filterObject)(iterable, iteratee))[0];
6
+ exports.findKey = findKey;
7
+ //# sourceMappingURL=find-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-key.js","sourceRoot":"","sources":["../source/find-key.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAGxC,MAAM,OAAO,GAAG,CAAe,QAAW,EAAE,QAA2B,EAAU,EAAE,CACzF,MAAM,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AADrC,QAAA,OAAO,WAC8B"}
@@ -0,0 +1,3 @@
1
+ import { FunctionReturning } from "./internal";
2
+ export declare const find: <T>(iterable: T[], iteratee: FunctionReturning) => T | undefined;
3
+ //# sourceMappingURL=find.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../source/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,IAAI,+BAAgC,iBAAiB,kBAUjE,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.find = void 0;
4
+ const find = (iterable, iteratee) => {
5
+ for (let index = 0; index < iterable.length; index++) {
6
+ const item = iterable[index];
7
+ if (iteratee(item, index, iterable)) {
8
+ return item;
9
+ }
10
+ }
11
+ return undefined;
12
+ };
13
+ exports.find = find;
14
+ //# sourceMappingURL=find.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.js","sourceRoot":"","sources":["../source/find.ts"],"names":[],"mappings":";;;AAEO,MAAM,IAAI,GAAG,CAAI,QAAa,EAAE,QAA2B,EAAiB,EAAE;IACpF,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACtD,MAAM,IAAI,GAAM,QAAQ,CAAC,KAAK,CAAC,CAAC;QAEhC,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC;AAVW,QAAA,IAAI,QAUf"}
@@ -0,0 +1,2 @@
1
+ export declare const firstMapEntry: <K, V>(map: Map<K, V>) => [K, V];
2
+ //# sourceMappingURL=first-map-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-map-entry.d.ts","sourceRoot":"","sources":["../source/first-map-entry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kCAAgD,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firstMapEntry = void 0;
4
+ const firstMapEntry = (map) => [...map][0];
5
+ exports.firstMapEntry = firstMapEntry;
6
+ //# sourceMappingURL=first-map-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-map-entry.js","sourceRoot":"","sources":["../source/first-map-entry.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,CAAO,GAAc,EAAU,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAA9D,QAAA,aAAa,iBAAiD"}
@@ -0,0 +1,2 @@
1
+ export declare const firstMapKey: <K, V>(map: Map<K, V>) => K;
2
+ //# sourceMappingURL=first-map-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-map-key.d.ts","sourceRoot":"","sources":["../source/first-map-key.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,6BAAqD,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firstMapKey = void 0;
4
+ const first_map_entry_1 = require("./first-map-entry");
5
+ const firstMapKey = (map) => (0, first_map_entry_1.firstMapEntry)(map)[0];
6
+ exports.firstMapKey = firstMapKey;
7
+ //# sourceMappingURL=first-map-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-map-key.js","sourceRoot":"","sources":["../source/first-map-key.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAE3C,MAAM,WAAW,GAAG,CAAO,GAAc,EAAK,EAAE,CAAC,IAAA,+BAAa,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAAjE,QAAA,WAAW,eAAsD"}
@@ -0,0 +1,2 @@
1
+ export declare const firstMapValue: <K, V>(map: Map<K, V>) => V;
2
+ //# sourceMappingURL=first-map-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-map-value.d.ts","sourceRoot":"","sources":["../source/first-map-value.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,6BAAqD,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firstMapValue = void 0;
4
+ const first_map_entry_1 = require("./first-map-entry");
5
+ const firstMapValue = (map) => (0, first_map_entry_1.firstMapEntry)(map)[1];
6
+ exports.firstMapValue = firstMapValue;
7
+ //# sourceMappingURL=first-map-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-map-value.js","sourceRoot":"","sources":["../source/first-map-value.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAE3C,MAAM,aAAa,GAAG,CAAO,GAAc,EAAK,EAAE,CAAC,IAAA,+BAAa,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAAnE,QAAA,aAAa,iBAAsD"}
@@ -0,0 +1,2 @@
1
+ export declare const flatten: <T>(iterable: T[]) => T[];
2
+ //# sourceMappingURL=flatten.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../source/flatten.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO,2BAAgD,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.flatten = void 0;
4
+ const flat = (iterable, stash) => {
5
+ for (const element of iterable) {
6
+ Array.isArray(element) ? flat(element, stash) : stash.push(element);
7
+ }
8
+ return stash;
9
+ };
10
+ const flatten = (iterable) => flat(iterable, []);
11
+ exports.flatten = flatten;
12
+ //# sourceMappingURL=flatten.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flatten.js","sourceRoot":"","sources":["../source/flatten.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,CAAI,QAAa,EAAE,KAAU,EAAO,EAAE;IAClD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAChC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAEK,MAAM,OAAO,GAAG,CAAI,QAAa,EAAO,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAAxD,QAAA,OAAO,WAAiD"}
@@ -0,0 +1,2 @@
1
+ export declare const formatNumber: (value: number, locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
2
+ //# sourceMappingURL=format-number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-number.d.ts","sourceRoot":"","sources":["../source/format-number.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,UAAW,MAAM,YAAY,MAAM,GAAG,MAAM,EAAE,YAAY,KAAK,mBAAmB,KAAG,MACxD,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatNumber = void 0;
4
+ const formatNumber = (value, locales, options) => new Intl.NumberFormat(locales, options).format(value);
5
+ exports.formatNumber = formatNumber;
6
+ //# sourceMappingURL=format-number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-number.js","sourceRoot":"","sources":["../source/format-number.ts"],"names":[],"mappings":";;;AAAO,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,OAA2B,EAAE,OAAkC,EAAU,EAAE,CACtH,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAD1C,QAAA,YAAY,gBAC8B"}
@@ -0,0 +1,2 @@
1
+ export declare const formatString: (...arguments_: any[]) => string;
2
+ //# sourceMappingURL=format-string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-string.d.ts","sourceRoot":"","sources":["../source/format-string.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,kBAAmB,GAAG,EAAE,KAAG,MAUnD,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatString = void 0;
4
+ const formatString = (...arguments_) => {
5
+ let output = arguments_[0];
6
+ arguments_.shift();
7
+ for (const [index, element] of arguments_.entries()) {
8
+ output = output.replace(`{${index}}`, element);
9
+ }
10
+ return output;
11
+ };
12
+ exports.formatString = formatString;
13
+ //# sourceMappingURL=format-string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-string.js","sourceRoot":"","sources":["../source/format-string.ts"],"names":[],"mappings":";;;AAAO,MAAM,YAAY,GAAG,CAAC,GAAG,UAAiB,EAAU,EAAE;IAC5D,IAAI,MAAM,GAAW,UAAU,CAAC,CAAC,CAAC,CAAC;IAEnC,UAAU,CAAC,KAAK,EAAE,CAAC;IAEnB,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;QACrD,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,GAAG,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAVW,QAAA,YAAY,gBAUvB"}
@@ -0,0 +1,2 @@
1
+ export declare const getPathSegments: (value: string | string[]) => string[];
2
+ //# sourceMappingURL=get-path-segments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-path-segments.d.ts","sourceRoot":"","sources":["../source/get-path-segments.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,UAAW,MAAM,GAAG,MAAM,EAAE,KAAG,MAAM,EAIhE,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPathSegments = void 0;
4
+ const disallowedKeys = new Set(["__proto__", "prototype", "constructor"]);
5
+ const getPathSegments = (value) => {
6
+ const segments = Array.isArray(value) ? value : value.split(".");
7
+ return segments.some((segment) => disallowedKeys.has(segment)) ? [] : segments;
8
+ };
9
+ exports.getPathSegments = getPathSegments;
10
+ //# sourceMappingURL=get-path-segments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-path-segments.js","sourceRoot":"","sources":["../source/get-path-segments.ts"],"names":[],"mappings":";;;AAAA,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;AAEnE,MAAM,eAAe,GAAG,CAAC,KAAwB,EAAY,EAAE;IACrE,MAAM,QAAQ,GAAa,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE3E,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;AACxF,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B"}
@@ -0,0 +1,2 @@
1
+ export declare const getType: (value: unknown) => string;
2
+ //# sourceMappingURL=get-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-type.d.ts","sourceRoot":"","sources":["../source/get-type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAW,OAAO,KAAG,MAA+C,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getType = void 0;
4
+ const getType = (value) => Object.prototype.toString.call(value);
5
+ exports.getType = getType;
6
+ //# sourceMappingURL=get-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-type.js","sourceRoot":"","sources":["../source/get-type.ts"],"names":[],"mappings":";;;AAAO,MAAM,OAAO,GAAG,CAAC,KAAc,EAAU,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAA5E,QAAA,OAAO,WAAqE"}
@@ -0,0 +1,2 @@
1
+ export declare const get: <T, V>(object: T, path: string | string[], defaultValue?: V | undefined) => V | undefined;
2
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../source/get.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,0BAA2B,MAAM,GAAG,MAAM,EAAE,gDAwB3D,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.get = void 0;
4
+ const get_path_segments_1 = require("./get-path-segments");
5
+ const is_enumerable_1 = require("./is-enumerable");
6
+ const is_object_1 = require("./is-object");
7
+ const is_string_1 = require("./is-string");
8
+ const get = (object, path, defaultValue) => {
9
+ if (!(0, is_object_1.isObject)(object) || !(0, is_string_1.isString)(path)) {
10
+ return defaultValue;
11
+ }
12
+ const pathSegments = (0, get_path_segments_1.getPathSegments)(path);
13
+ for (let index = 0; index < pathSegments.length; index++) {
14
+ if (!(0, is_enumerable_1.isEnumerable)(object, pathSegments[index])) {
15
+ return defaultValue;
16
+ }
17
+ object = object[pathSegments[index]];
18
+ if (object === undefined || object === null) {
19
+ if (index !== pathSegments.length - 1) {
20
+ return defaultValue;
21
+ }
22
+ break;
23
+ }
24
+ }
25
+ return object;
26
+ };
27
+ exports.get = get;
28
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../source/get.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,mDAA+C;AAC/C,2CAAuC;AACvC,2CAAuC;AAEhC,MAAM,GAAG,GAAG,CAAO,MAAS,EAAE,IAAuB,EAAE,YAAgB,EAAiB,EAAE;IAChG,IAAI,CAAC,IAAA,oBAAQ,EAAC,MAAM,CAAC,IAAI,CAAC,IAAA,oBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,YAAY,CAAC;IACrB,CAAC;IAED,MAAM,YAAY,GAAa,IAAA,mCAAe,EAAC,IAAI,CAAC,CAAC;IAErD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QAC1D,IAAI,CAAC,IAAA,4BAAY,EAAC,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAChD,OAAO,YAAY,CAAC;QACrB,CAAC;QAED,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QAErC,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAC7C,IAAI,KAAK,KAAK,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvC,OAAO,YAAY,CAAC;YACrB,CAAC;YAED,MAAM;QACP,CAAC;IACF,CAAC;IAED,OAAO,MAAsB,CAAC;AAC/B,CAAC,CAAC;AAxBW,QAAA,GAAG,OAwBd"}
@@ -0,0 +1,3 @@
1
+ import { FunctionReturning } from "./internal";
2
+ export declare const groupBy: <T>(iterable: T[], iteratee: FunctionReturning) => object;
3
+ //# sourceMappingURL=group-by.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../source/group-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,OAAO,+BAAgC,iBAAiB,KAAG,MAcvE,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.groupBy = void 0;
4
+ const groupBy = (iterable, iteratee) => {
5
+ const groupedValues = {};
6
+ for (const value of iterable) {
7
+ const keyValue = iteratee(value);
8
+ if (!groupedValues[keyValue]) {
9
+ groupedValues[keyValue] = [];
10
+ }
11
+ groupedValues[keyValue].push(value);
12
+ }
13
+ return groupedValues;
14
+ };
15
+ exports.groupBy = groupBy;
16
+ //# sourceMappingURL=group-by.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-by.js","sourceRoot":"","sources":["../source/group-by.ts"],"names":[],"mappings":";;;AAEO,MAAM,OAAO,GAAG,CAAI,QAAa,EAAE,QAA2B,EAAU,EAAE;IAChF,MAAM,aAAa,GAAW,EAAE,CAAC;IAEjC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE,CAAC;QAC9B,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAEjC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC9B,aAAa,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;QAC9B,CAAC;QAED,aAAa,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,aAAa,CAAC;AACtB,CAAC,CAAC;AAdW,QAAA,OAAO,WAclB"}
@@ -0,0 +1,2 @@
1
+ export declare const hasProperty: <T>(object: T, property: string) => boolean;
2
+ //# sourceMappingURL=has-property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-property.d.ts","sourceRoot":"","sources":["../source/has-property.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,2BAA4B,MAAM,KAAG,OACN,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasProperty = void 0;
4
+ const hasProperty = (object, property) => Object.prototype.hasOwnProperty.call(object, property);
5
+ exports.hasProperty = hasProperty;
6
+ //# sourceMappingURL=has-property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-property.js","sourceRoot":"","sources":["../source/has-property.ts"],"names":[],"mappings":";;;AAAO,MAAM,WAAW,GAAG,CAAI,MAAS,EAAE,QAAgB,EAAW,EAAE,CACtE,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAD3C,QAAA,WAAW,eACgC"}
@@ -0,0 +1,2 @@
1
+ export declare const hasSomeProperty: <T>(object: T, properties: string[]) => boolean;
2
+ //# sourceMappingURL=has-some-property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-some-property.d.ts","sourceRoot":"","sources":["../source/has-some-property.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,6BAA8B,MAAM,EAAE,KAAG,OACC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasSomeProperty = void 0;
4
+ const has_property_1 = require("./has-property");
5
+ const some_1 = require("./some");
6
+ const hasSomeProperty = (object, properties) => (0, some_1.some)(properties, (property) => (0, has_property_1.hasProperty)(object, property));
7
+ exports.hasSomeProperty = hasSomeProperty;
8
+ //# sourceMappingURL=has-some-property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-some-property.js","sourceRoot":"","sources":["../source/has-some-property.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAC7C,iCAA8B;AAEvB,MAAM,eAAe,GAAG,CAAI,MAAS,EAAE,UAAoB,EAAW,EAAE,CAC9E,IAAA,WAAI,EAAC,UAAU,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,0BAAW,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAD1D,QAAA,eAAe,mBAC2C"}
@@ -0,0 +1,2 @@
1
+ export declare const has: <T>(object: T, path: string | string[]) => boolean;
2
+ //# sourceMappingURL=has.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has.d.ts","sourceRoot":"","sources":["../source/has.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,uBAAwB,MAAM,GAAG,MAAM,EAAE,KAAG,OAoB3D,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.has = void 0;
4
+ const get_path_segments_1 = require("./get-path-segments");
5
+ const is_object_1 = require("./is-object");
6
+ const is_string_1 = require("./is-string");
7
+ const has = (object, path) => {
8
+ if (!(0, is_object_1.isObject)(object) || !(0, is_string_1.isString)(path)) {
9
+ return false;
10
+ }
11
+ const pathSegments = (0, get_path_segments_1.getPathSegments)(path);
12
+ for (const pathSegment of pathSegments) {
13
+ if (!(0, is_object_1.isObject)(object)) {
14
+ return false;
15
+ }
16
+ if (!(pathSegment in object)) {
17
+ return false;
18
+ }
19
+ object = object[pathSegment];
20
+ }
21
+ return true;
22
+ };
23
+ exports.has = has;
24
+ //# sourceMappingURL=has.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has.js","sourceRoot":"","sources":["../source/has.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,2CAAuC;AACvC,2CAAuC;AAEhC,MAAM,GAAG,GAAG,CAAI,MAAS,EAAE,IAAuB,EAAW,EAAE;IACrE,IAAI,CAAC,IAAA,oBAAQ,EAAC,MAAM,CAAC,IAAI,CAAC,IAAA,oBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,YAAY,GAAa,IAAA,mCAAe,EAAC,IAAI,CAAC,CAAC;IAErD,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,IAAI,CAAC,IAAA,oBAAQ,EAAC,MAAM,CAAC,EAAE,CAAC;YACvB,OAAO,KAAK,CAAC;QACd,CAAC;QAED,IAAI,CAAC,CAAC,WAAW,IAAI,MAAM,CAAC,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC;QACd,CAAC;QAED,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AApBW,QAAA,GAAG,OAoBd"}
@@ -0,0 +1,2 @@
1
+ export declare const hashString: (value: string) => number;
2
+ //# sourceMappingURL=hash-string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash-string.d.ts","sourceRoot":"","sources":["../source/hash-string.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,MAS1C,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hashString = void 0;
4
+ const hashString = (value) => {
5
+ let hash = 5381;
6
+ let remaining = value.length;
7
+ while (remaining) {
8
+ hash = (hash * 33) ^ value.codePointAt(--remaining);
9
+ }
10
+ return hash >>> 0;
11
+ };
12
+ exports.hashString = hashString;
13
+ //# sourceMappingURL=hash-string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash-string.js","sourceRoot":"","sources":["../source/hash-string.ts"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,CAAC,KAAa,EAAU,EAAE;IACnD,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,IAAI,SAAS,GAAW,KAAK,CAAC,MAAM,CAAC;IAErC,OAAO,SAAS,EAAE,CAAC;QAClB,IAAI,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,EAAE,SAAS,CAAE,CAAC;IACtD,CAAC;IAED,OAAO,IAAI,KAAK,CAAC,CAAC;AACnB,CAAC,CAAC;AATW,QAAA,UAAU,cASrB"}
@@ -0,0 +1,2 @@
1
+ export declare const head: <T>(values: T[]) => T;
2
+ //# sourceMappingURL=head.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../source/head.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,uBAAmC,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.head = void 0;
4
+ const head = (values) => values[0];
5
+ exports.head = head;
6
+ //# sourceMappingURL=head.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"head.js","sourceRoot":"","sources":["../source/head.ts"],"names":[],"mappings":";;;AAAO,MAAM,IAAI,GAAG,CAAI,MAAW,EAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAAxC,QAAA,IAAI,QAAoC"}
@@ -0,0 +1,2 @@
1
+ export declare const headerCase: (value: string) => string | undefined;
2
+ //# sourceMappingURL=header-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-case.d.ts","sourceRoot":"","sources":["../source/header-case.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,MAAM,GAAG,SAIlD,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.headerCase = void 0;
4
+ const internal_1 = require("./internal");
5
+ const upper_first_1 = require("./upper-first");
6
+ const headerCase = (value) => (0, internal_1.compoundWords)(value, (result, word, index) => result + (index ? "-" : "") + (0, upper_first_1.upperFirst)(word));
7
+ exports.headerCase = headerCase;
8
+ //# sourceMappingURL=header-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-case.js","sourceRoot":"","sources":["../source/header-case.ts"],"names":[],"mappings":";;;AAAA,yCAA2C;AAC3C,+CAA2C;AAEpC,MAAM,UAAU,GAAG,CAAC,KAAa,EAAsB,EAAE,CAC/D,IAAA,wBAAa,EACZ,KAAK,EACL,CAAC,MAAc,EAAE,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAA,wBAAU,EAAC,IAAI,CAAC,CAC/F,CAAC;AAJU,QAAA,UAAU,cAIpB"}
@@ -0,0 +1,5 @@
1
+ export declare const hex: {
2
+ decode: (value: string) => string;
3
+ encode: (value: string) => string;
4
+ };
5
+ //# sourceMappingURL=hex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../source/hex.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG;oBAFO,MAAM,KAAG,MAAM;oBAFf,MAAM,KAAG,MAAM;CAID,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hex = void 0;
4
+ const encode = (value) => Buffer.from(value, "utf8").toString("hex");
5
+ const decode = (value) => Buffer.from(value, "hex").toString();
6
+ exports.hex = { decode, encode };
7
+ //# sourceMappingURL=hex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex.js","sourceRoot":"","sources":["../source/hex.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAErF,MAAM,MAAM,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;AAElE,QAAA,GAAG,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ /// <reference types="node" />
2
+ import { RequestOptions } from "https";
3
+ import { Primitive } from "type-fest";
4
+ export type HttpOptions = RequestOptions & {
5
+ maxContentLength?: number;
6
+ body?: Record<string, Primitive>;
7
+ };
8
+ export type HttpResponse = {
9
+ method: string | undefined;
10
+ statusCode: number | undefined;
11
+ statusMessage: string | undefined;
12
+ data: any;
13
+ headers: string[];
14
+ };
15
+ export declare class HttpError extends Error {
16
+ constructor(response: HttpResponse, error?: Error);
17
+ }
18
+ export declare const http: {
19
+ delete: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
20
+ get: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
21
+ head: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
22
+ patch: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
23
+ post: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
24
+ put: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
25
+ };
26
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../source/http.ts"],"names":[],"mappings":";AACA,OAAO,EAAW,cAAc,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAuFtC,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;CAAE,CAAC;AAE3G,MAAM,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,qBAAa,SAAU,SAAQ,KAAK;gBAChB,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,KAAK;CA2BxD;AAED,eAAO,MAAM,IAAI;kBACF,MAAM,YAAY,WAAW,KAAG,QAAQ,YAAY,CAAC;eACxD,MAAM,YAAY,WAAW,KAAG,QAAQ,YAAY,CAAC;gBACpD,MAAM,YAAY,WAAW,KAAG,QAAQ,YAAY,CAAC;iBACpD,MAAM,YAAY,WAAW,KAAG,QAAQ,YAAY,CAAC;gBACtD,MAAM,YAAY,WAAW,KAAG,QAAQ,YAAY,CAAC;eACtD,MAAM,YAAY,WAAW,KAAG,QAAQ,YAAY,CAAC;CAChE,CAAC"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.http = exports.HttpError = void 0;
4
+ const http_1 = require("http");
5
+ const https_1 = require("https");
6
+ const url_1 = require("url");
7
+ const is_object_1 = require("./is-object");
8
+ const is_undefined_1 = require("./is-undefined");
9
+ const sendRequest = (method, url, options) => new Promise((resolve, reject) => {
10
+ if (!(0, is_object_1.isObject)(options)) {
11
+ options = {};
12
+ }
13
+ options = { ...options, ...(0, url_1.parse)(url) };
14
+ options.method = method.toLowerCase();
15
+ if (options.protocol === "http:") {
16
+ options.agent = http_1.globalAgent;
17
+ }
18
+ if ((0, is_undefined_1.isUndefined)(options.timeout)) {
19
+ options.timeout = 1500;
20
+ }
21
+ const maxContentLength = options.maxContentLength ?? Number.MAX_SAFE_INTEGER;
22
+ const request_ = (0, https_1.request)(options, (r) => {
23
+ let accumulator = "";
24
+ let readBytes = 0;
25
+ r.setEncoding("utf8");
26
+ r.on("data", (chunk) => {
27
+ readBytes += Buffer.byteLength(chunk, "utf8");
28
+ if (readBytes > maxContentLength) {
29
+ r.destroy(new Error("response too large"));
30
+ return;
31
+ }
32
+ accumulator += chunk;
33
+ });
34
+ r.on("end", () => {
35
+ const response = {
36
+ data: "",
37
+ headers: r.rawHeaders,
38
+ method,
39
+ statusCode: r.statusCode,
40
+ statusMessage: r.statusMessage,
41
+ };
42
+ const type = r.headers["content-type"];
43
+ if (type && accumulator && type.includes("application/json")) {
44
+ try {
45
+ accumulator = JSON.parse(accumulator);
46
+ }
47
+ catch (error) {
48
+ return reject(new HttpError(response, error));
49
+ }
50
+ }
51
+ response.statusCode = r.statusCode;
52
+ response.statusMessage = r.statusMessage;
53
+ response.data = accumulator;
54
+ if (r.statusCode && r.statusCode >= 400) {
55
+ return reject(new HttpError(response));
56
+ }
57
+ return resolve(response);
58
+ });
59
+ });
60
+ request_.on("error", reject);
61
+ request_.on("timeout", () => request_.abort());
62
+ if (options.body) {
63
+ const body = JSON.stringify(options.body);
64
+ request_.setHeader("content-type", "application/json");
65
+ request_.setHeader("content-length", Buffer.byteLength(body));
66
+ request_.write(body);
67
+ }
68
+ request_.end();
69
+ });
70
+ class HttpError extends Error {
71
+ constructor(response, error) {
72
+ const message = error ? error.message : response.statusMessage;
73
+ super(message);
74
+ Object.defineProperty(this, "message", {
75
+ enumerable: false,
76
+ value: message,
77
+ });
78
+ Object.defineProperty(this, "name", {
79
+ enumerable: false,
80
+ value: this.constructor.name,
81
+ });
82
+ Object.defineProperty(this, "response", {
83
+ enumerable: false,
84
+ value: {
85
+ data: response.data,
86
+ headers: response.headers,
87
+ statusCode: response.statusCode,
88
+ statusMessage: response.statusMessage,
89
+ },
90
+ });
91
+ Error.captureStackTrace(this, this.constructor);
92
+ }
93
+ }
94
+ exports.HttpError = HttpError;
95
+ exports.http = {
96
+ delete: (url, options) => sendRequest("DELETE", url, options),
97
+ get: (url, options) => sendRequest("GET", url, options),
98
+ head: (url, options) => sendRequest("HEAD", url, options),
99
+ patch: (url, options) => sendRequest("PATCH", url, options),
100
+ post: (url, options) => sendRequest("POST", url, options),
101
+ put: (url, options) => sendRequest("PUT", url, options),
102
+ };
103
+ //# sourceMappingURL=http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../source/http.ts"],"names":[],"mappings":"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"}