@stryke/type-checks 0.4.4 → 0.5.6

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 (526) hide show
  1. package/CHANGELOG.md +269 -0
  2. package/README.md +18 -10
  3. package/dist/base-BghPfa26.d.mts +48 -0
  4. package/dist/base-BghPfa26.d.mts.map +1 -0
  5. package/dist/base-DsupRZHl.d.cts +48 -0
  6. package/dist/base-DsupRZHl.d.cts.map +1 -0
  7. package/dist/get-object-tag-BHnhgixj.cjs +1 -0
  8. package/dist/get-object-tag-D0q0p9ux.d.mts +11 -0
  9. package/dist/get-object-tag-D0q0p9ux.d.mts.map +1 -0
  10. package/dist/get-object-tag-DF2FAXqH.mjs +2 -0
  11. package/dist/get-object-tag-DF2FAXqH.mjs.map +1 -0
  12. package/dist/get-object-tag-Tv3TsAc5.d.cts +11 -0
  13. package/dist/get-object-tag-Tv3TsAc5.d.cts.map +1 -0
  14. package/dist/get-object-tag.cjs +1 -8
  15. package/dist/get-object-tag.d.cts +2 -0
  16. package/dist/get-object-tag.d.mts +2 -0
  17. package/dist/get-object-tag.mjs +1 -1
  18. package/dist/index.cjs +1 -467
  19. package/dist/index.d.cts +44 -0
  20. package/dist/index.d.mts +44 -0
  21. package/dist/index.mjs +1 -1
  22. package/dist/is-array-like-BlG3BXac.mjs +2 -0
  23. package/dist/is-array-like-BlG3BXac.mjs.map +1 -0
  24. package/dist/{is-array-like.d.ts → is-array-like-CWfL33X9.d.mts} +5 -1
  25. package/dist/is-array-like-CWfL33X9.d.mts.map +1 -0
  26. package/dist/is-array-like-DbVeBoEe.cjs +1 -0
  27. package/dist/is-array-like-WgfvtfKC.d.cts +11 -0
  28. package/dist/is-array-like-WgfvtfKC.d.cts.map +1 -0
  29. package/dist/is-array-like.cjs +1 -11
  30. package/dist/is-array-like.d.cts +2 -0
  31. package/dist/is-array-like.d.mts +2 -0
  32. package/dist/is-array-like.mjs +1 -1
  33. package/dist/is-async-iterable-Ba5xZQE9.cjs +1 -0
  34. package/dist/is-async-iterable-C7_r2vwP.d.cts +11 -0
  35. package/dist/is-async-iterable-C7_r2vwP.d.cts.map +1 -0
  36. package/dist/is-async-iterable-CI6-qnZ-.mjs +2 -0
  37. package/dist/is-async-iterable-CI6-qnZ-.mjs.map +1 -0
  38. package/dist/is-async-iterable-hrJii_4u.d.mts +11 -0
  39. package/dist/is-async-iterable-hrJii_4u.d.mts.map +1 -0
  40. package/dist/is-async-iterable.cjs +1 -10
  41. package/dist/is-async-iterable.d.cts +2 -0
  42. package/dist/is-async-iterable.d.mts +2 -0
  43. package/dist/is-async-iterable.mjs +1 -1
  44. package/dist/is-bigint-B0CqvS9s.cjs +1 -0
  45. package/dist/{is-bigint.d.ts → is-bigint-BlaQe4zL.d.cts} +5 -1
  46. package/dist/is-bigint-BlaQe4zL.d.cts.map +1 -0
  47. package/dist/is-bigint-C87sK5hA.mjs +2 -0
  48. package/dist/is-bigint-C87sK5hA.mjs.map +1 -0
  49. package/dist/is-bigint-VHcMqIR3.d.mts +20 -0
  50. package/dist/is-bigint-VHcMqIR3.d.mts.map +1 -0
  51. package/dist/is-bigint.cjs +1 -9
  52. package/dist/is-bigint.d.cts +2 -0
  53. package/dist/is-bigint.d.mts +2 -0
  54. package/dist/is-bigint.mjs +1 -1
  55. package/dist/is-boolean-DAXt0s9b.mjs +2 -0
  56. package/dist/is-boolean-DAXt0s9b.mjs.map +1 -0
  57. package/dist/is-boolean-DRzqWnBl.cjs +1 -0
  58. package/dist/{is-boolean.d.ts → is-boolean-Doo5mVEJ.d.mts} +5 -1
  59. package/dist/is-boolean-Doo5mVEJ.d.mts.map +1 -0
  60. package/dist/is-boolean-rsYcElxd.d.cts +11 -0
  61. package/dist/is-boolean-rsYcElxd.d.cts.map +1 -0
  62. package/dist/is-boolean.cjs +1 -14
  63. package/dist/is-boolean.d.cts +2 -0
  64. package/dist/is-boolean.d.mts +2 -0
  65. package/dist/is-boolean.mjs +1 -1
  66. package/dist/is-buffer-B3W8nBrK.d.cts +9 -0
  67. package/dist/is-buffer-B3W8nBrK.d.cts.map +1 -0
  68. package/dist/is-buffer-BhNtqu5n.mjs +2 -0
  69. package/dist/is-buffer-BhNtqu5n.mjs.map +1 -0
  70. package/dist/is-buffer-CSI0AMZS.d.mts +9 -0
  71. package/dist/is-buffer-CSI0AMZS.d.mts.map +1 -0
  72. package/dist/is-buffer-D9p_5l0d.cjs +1 -0
  73. package/dist/is-buffer.cjs +1 -10
  74. package/dist/is-buffer.d.cts +2 -0
  75. package/dist/is-buffer.d.mts +2 -0
  76. package/dist/is-buffer.mjs +1 -1
  77. package/dist/is-collection-Ceu4_dCf.d.mts +14 -0
  78. package/dist/is-collection-Ceu4_dCf.d.mts.map +1 -0
  79. package/dist/is-collection-DidPvByC.mjs +2 -0
  80. package/dist/is-collection-DidPvByC.mjs.map +1 -0
  81. package/dist/is-collection-IKoUfFa7.cjs +1 -0
  82. package/dist/is-collection-e7yAmi3F.d.cts +14 -0
  83. package/dist/is-collection-e7yAmi3F.d.cts.map +1 -0
  84. package/dist/is-collection.cjs +1 -11
  85. package/dist/is-collection.d.cts +2 -0
  86. package/dist/is-collection.d.mts +2 -0
  87. package/dist/is-collection.mjs +1 -1
  88. package/dist/{is-date.d.ts → is-date-BecRMVku.d.mts} +5 -1
  89. package/dist/is-date-BecRMVku.d.mts.map +1 -0
  90. package/dist/is-date-CWjcEKXA.cjs +1 -0
  91. package/dist/is-date-CcOOgtny.mjs +2 -0
  92. package/dist/is-date-CcOOgtny.mjs.map +1 -0
  93. package/dist/is-date-Dmz-M0ET.d.cts +20 -0
  94. package/dist/is-date-Dmz-M0ET.d.cts.map +1 -0
  95. package/dist/is-date.cjs +1 -10
  96. package/dist/is-date.d.cts +2 -0
  97. package/dist/is-date.d.mts +2 -0
  98. package/dist/is-date.mjs +1 -1
  99. package/dist/is-deep-key-CDPjONep.d.cts +52 -0
  100. package/dist/is-deep-key-CDPjONep.d.cts.map +1 -0
  101. package/dist/is-deep-key-Ck2Hz7YJ.cjs +1 -0
  102. package/dist/is-deep-key-DShi6eYB.mjs +2 -0
  103. package/dist/is-deep-key-DShi6eYB.mjs.map +1 -0
  104. package/dist/is-deep-key-R3slkUpl.d.mts +52 -0
  105. package/dist/is-deep-key-R3slkUpl.d.mts.map +1 -0
  106. package/dist/is-deep-key.cjs +1 -26
  107. package/dist/is-deep-key.d.cts +2 -0
  108. package/dist/is-deep-key.d.mts +2 -0
  109. package/dist/is-deep-key.mjs +1 -1
  110. package/dist/is-empty-CcxcCbO0.d.cts +12 -0
  111. package/dist/is-empty-CcxcCbO0.d.cts.map +1 -0
  112. package/dist/is-empty-DQObAY-0.mjs +2 -0
  113. package/dist/is-empty-DQObAY-0.mjs.map +1 -0
  114. package/dist/is-empty-DVetNKe9.cjs +1 -0
  115. package/dist/is-empty-bCaTRGIB.d.mts +12 -0
  116. package/dist/is-empty-bCaTRGIB.d.mts.map +1 -0
  117. package/dist/{is-empty-object.d.ts → is-empty-object-C4Awcmki.d.mts} +6 -2
  118. package/dist/is-empty-object-C4Awcmki.d.mts.map +1 -0
  119. package/dist/is-empty-object-DrM4h0oW.cjs +1 -0
  120. package/dist/is-empty-object-N0ex-Rjl.mjs +2 -0
  121. package/dist/is-empty-object-N0ex-Rjl.mjs.map +1 -0
  122. package/dist/is-empty-object-SnajGsQ2.d.cts +18 -0
  123. package/dist/is-empty-object-SnajGsQ2.d.cts.map +1 -0
  124. package/dist/is-empty-object.cjs +1 -23
  125. package/dist/is-empty-object.d.cts +2 -0
  126. package/dist/is-empty-object.d.mts +2 -0
  127. package/dist/is-empty-object.mjs +1 -1
  128. package/dist/is-empty-string-01PpHo0h.mjs +2 -0
  129. package/dist/is-empty-string-01PpHo0h.mjs.map +1 -0
  130. package/dist/is-empty-string-8Huv7y1z.cjs +1 -0
  131. package/dist/is-empty-string-BlLKjNEc.d.mts +11 -0
  132. package/dist/is-empty-string-BlLKjNEc.d.mts.map +1 -0
  133. package/dist/is-empty-string-CGf43g5Z.d.cts +11 -0
  134. package/dist/is-empty-string-CGf43g5Z.d.cts.map +1 -0
  135. package/dist/is-empty-string.cjs +1 -16
  136. package/dist/is-empty-string.d.cts +2 -0
  137. package/dist/is-empty-string.d.mts +2 -0
  138. package/dist/is-empty-string.mjs +1 -1
  139. package/dist/is-empty.cjs +1 -35
  140. package/dist/is-empty.d.cts +2 -0
  141. package/dist/is-empty.d.mts +2 -0
  142. package/dist/is-empty.mjs +1 -1
  143. package/dist/is-equal-BzPzI-pB.cjs +1 -0
  144. package/dist/is-equal-CYwTrE3V.d.cts +5 -0
  145. package/dist/is-equal-CYwTrE3V.d.cts.map +1 -0
  146. package/dist/is-equal-D4RPxWam.d.mts +5 -0
  147. package/dist/is-equal-D4RPxWam.d.mts.map +1 -0
  148. package/dist/is-equal-I836HuAx.mjs +2 -0
  149. package/dist/is-equal-I836HuAx.mjs.map +1 -0
  150. package/dist/is-equal.cjs +1 -18
  151. package/dist/is-equal.d.cts +2 -0
  152. package/dist/is-equal.d.mts +2 -0
  153. package/dist/is-equal.mjs +1 -1
  154. package/dist/{is-error.d.ts → is-error-CCOglM_7.d.mts} +5 -1
  155. package/dist/is-error-CCOglM_7.d.mts.map +1 -0
  156. package/dist/is-error-D1FKoV2p.cjs +1 -0
  157. package/dist/is-error-DR_jKXbr.d.cts +21 -0
  158. package/dist/is-error-DR_jKXbr.d.cts.map +1 -0
  159. package/dist/is-error-nekb2Eit.mjs +2 -0
  160. package/dist/is-error-nekb2Eit.mjs.map +1 -0
  161. package/dist/is-error.cjs +1 -15
  162. package/dist/is-error.d.cts +2 -0
  163. package/dist/is-error.d.mts +2 -0
  164. package/dist/is-error.mjs +1 -1
  165. package/dist/is-file-result-5vpaq4NL.mjs +2 -0
  166. package/dist/is-file-result-5vpaq4NL.mjs.map +1 -0
  167. package/dist/is-file-result-B-ALEhm0.d.mts +56 -0
  168. package/dist/is-file-result-B-ALEhm0.d.mts.map +1 -0
  169. package/dist/is-file-result-Bl1xTRmY.cjs +1 -0
  170. package/dist/is-file-result-DW5cnH95.d.cts +56 -0
  171. package/dist/is-file-result-DW5cnH95.d.cts.map +1 -0
  172. package/dist/is-file-result.cjs +1 -10
  173. package/dist/is-file-result.d.cts +2 -0
  174. package/dist/is-file-result.d.mts +2 -0
  175. package/dist/is-file-result.mjs +1 -1
  176. package/dist/is-float-C6J1LRqg.cjs +1 -0
  177. package/dist/is-float-CfmYc3k6.d.mts +14 -0
  178. package/dist/is-float-CfmYc3k6.d.mts.map +1 -0
  179. package/dist/is-float-DulF06Fh.mjs +2 -0
  180. package/dist/is-float-DulF06Fh.mjs.map +1 -0
  181. package/dist/is-float-DvyATqOQ.d.cts +14 -0
  182. package/dist/is-float-DvyATqOQ.d.cts.map +1 -0
  183. package/dist/is-float.cjs +1 -9
  184. package/dist/is-float.d.cts +2 -0
  185. package/dist/is-float.d.mts +2 -0
  186. package/dist/is-float.mjs +1 -1
  187. package/dist/is-function-CR97Wcb4.d.mts +15 -0
  188. package/dist/is-function-CR97Wcb4.d.mts.map +1 -0
  189. package/dist/is-function-CZGGR0qT.mjs +2 -0
  190. package/dist/is-function-CZGGR0qT.mjs.map +1 -0
  191. package/dist/is-function-Ge8gcRnx.cjs +1 -0
  192. package/dist/is-function-IbkaFS4R.d.cts +15 -0
  193. package/dist/is-function-IbkaFS4R.d.cts.map +1 -0
  194. package/dist/is-function.cjs +1 -23
  195. package/dist/is-function.d.cts +2 -0
  196. package/dist/is-function.d.mts +2 -0
  197. package/dist/is-function.mjs +1 -1
  198. package/dist/is-integer-BhXT9fEE.mjs +2 -0
  199. package/dist/is-integer-BhXT9fEE.mjs.map +1 -0
  200. package/dist/is-integer-DBgHgbTb.cjs +1 -0
  201. package/dist/{is-integer.d.ts → is-integer-kq1ee5T_.d.mts} +5 -1
  202. package/dist/is-integer-kq1ee5T_.d.mts.map +1 -0
  203. package/dist/is-integer-t2K_aeI-.d.cts +11 -0
  204. package/dist/is-integer-t2K_aeI-.d.cts.map +1 -0
  205. package/dist/is-integer.cjs +1 -10
  206. package/dist/is-integer.d.cts +2 -0
  207. package/dist/is-integer.d.mts +2 -0
  208. package/dist/is-integer.mjs +1 -1
  209. package/dist/is-mergeable-object-BKccPMFM.mjs +2 -0
  210. package/dist/is-mergeable-object-BKccPMFM.mjs.map +1 -0
  211. package/dist/is-mergeable-object-BdooAUkk.d.cts +5 -0
  212. package/dist/is-mergeable-object-BdooAUkk.d.cts.map +1 -0
  213. package/dist/is-mergeable-object-Ch4GsBfV.d.mts +5 -0
  214. package/dist/is-mergeable-object-Ch4GsBfV.d.mts.map +1 -0
  215. package/dist/is-mergeable-object-D0KYh_gn.cjs +1 -0
  216. package/dist/is-mergeable-object.cjs +1 -14
  217. package/dist/is-mergeable-object.d.cts +2 -0
  218. package/dist/is-mergeable-object.d.mts +2 -0
  219. package/dist/is-mergeable-object.mjs +1 -1
  220. package/dist/is-non-null-object-Ctm4-rn6.cjs +1 -0
  221. package/dist/is-non-null-object-DESgjZyf.mjs +2 -0
  222. package/dist/is-non-null-object-DESgjZyf.mjs.map +1 -0
  223. package/dist/is-non-null-object.cjs +1 -10
  224. package/dist/{is-non-null-object.d.ts → is-non-null-object.d.cts} +5 -1
  225. package/dist/is-non-null-object.d.cts.map +1 -0
  226. package/dist/is-non-null-object.d.mts +11 -0
  227. package/dist/is-non-null-object.d.mts.map +1 -0
  228. package/dist/is-non-null-object.mjs +1 -1
  229. package/dist/{is-not-empty.d.ts → is-not-empty-DU-gI96j.d.cts} +5 -1
  230. package/dist/is-not-empty-DU-gI96j.d.cts.map +1 -0
  231. package/dist/is-not-empty-QCNAwO70.cjs +1 -0
  232. package/dist/is-not-empty-VPPuIxfe.d.mts +11 -0
  233. package/dist/is-not-empty-VPPuIxfe.d.mts.map +1 -0
  234. package/dist/is-not-empty-_qzX24LT.mjs +2 -0
  235. package/dist/is-not-empty-_qzX24LT.mjs.map +1 -0
  236. package/dist/is-not-empty.cjs +1 -17
  237. package/dist/is-not-empty.d.cts +2 -0
  238. package/dist/is-not-empty.d.mts +2 -0
  239. package/dist/is-not-empty.mjs +1 -1
  240. package/dist/is-null-CZh6OomR.cjs +1 -0
  241. package/dist/is-null-DBoMXXAf.mjs +2 -0
  242. package/dist/is-null-DBoMXXAf.mjs.map +1 -0
  243. package/dist/is-null-envBEnO5.d.mts +5 -0
  244. package/dist/is-null-envBEnO5.d.mts.map +1 -0
  245. package/dist/is-null-mdbQqgkD.d.cts +5 -0
  246. package/dist/is-null-mdbQqgkD.d.cts.map +1 -0
  247. package/dist/is-null.cjs +1 -14
  248. package/dist/is-null.d.cts +2 -0
  249. package/dist/is-null.d.mts +2 -0
  250. package/dist/is-null.mjs +1 -1
  251. package/dist/{is-number.d.ts → is-number-B9zBD5P5.d.mts} +9 -3
  252. package/dist/is-number-B9zBD5P5.d.mts.map +1 -0
  253. package/dist/is-number-BN-mcUXr.d.cts +21 -0
  254. package/dist/is-number-BN-mcUXr.d.cts.map +1 -0
  255. package/dist/is-number-ChPAVili.mjs +2 -0
  256. package/dist/is-number-ChPAVili.mjs.map +1 -0
  257. package/dist/is-number-ijCVauur.cjs +1 -0
  258. package/dist/is-number.cjs +1 -19
  259. package/dist/is-number.d.cts +2 -0
  260. package/dist/is-number.d.mts +2 -0
  261. package/dist/is-number.mjs +1 -1
  262. package/dist/is-object-ANQi7JgS.mjs +2 -0
  263. package/dist/is-object-ANQi7JgS.mjs.map +1 -0
  264. package/dist/{is-object.d.ts → is-object-CqEZ2nHi.d.mts} +10 -5
  265. package/dist/is-object-CqEZ2nHi.d.mts.map +1 -0
  266. package/dist/is-object-Dm1523kn.cjs +1 -0
  267. package/dist/is-object-index-CaLUkJ03.d.mts +11 -0
  268. package/dist/is-object-index-CaLUkJ03.d.mts.map +1 -0
  269. package/dist/is-object-index-ClUQyslC.cjs +1 -0
  270. package/dist/is-object-index-CwTThA-X.mjs +2 -0
  271. package/dist/is-object-index-CwTThA-X.mjs.map +1 -0
  272. package/dist/is-object-index-OiD7O1-t.d.cts +11 -0
  273. package/dist/is-object-index-OiD7O1-t.d.cts.map +1 -0
  274. package/dist/is-object-index.cjs +1 -17
  275. package/dist/is-object-index.d.cts +2 -0
  276. package/dist/is-object-index.d.mts +2 -0
  277. package/dist/is-object-index.mjs +1 -1
  278. package/dist/is-object-vHTx3owB.d.cts +35 -0
  279. package/dist/is-object-vHTx3owB.d.cts.map +1 -0
  280. package/dist/is-object.cjs +1 -30
  281. package/dist/is-object.d.cts +2 -0
  282. package/dist/is-object.d.mts +2 -0
  283. package/dist/is-object.mjs +1 -1
  284. package/dist/{is-plain-object.d.ts → is-plain-object-C_RxAc-k.d.cts} +9 -3
  285. package/dist/is-plain-object-C_RxAc-k.d.cts.map +1 -0
  286. package/dist/is-plain-object-Cqr8u4ef.mjs +2 -0
  287. package/dist/is-plain-object-Cqr8u4ef.mjs.map +1 -0
  288. package/dist/is-plain-object-D0i2qmvk.d.mts +56 -0
  289. package/dist/is-plain-object-D0i2qmvk.d.mts.map +1 -0
  290. package/dist/is-plain-object-DuvbtXws.cjs +1 -0
  291. package/dist/is-plain-object.cjs +1 -17
  292. package/dist/is-plain-object.d.cts +2 -0
  293. package/dist/is-plain-object.d.mts +2 -0
  294. package/dist/is-plain-object.mjs +1 -1
  295. package/dist/is-primitive-BsdQZkNT.mjs +2 -0
  296. package/dist/is-primitive-BsdQZkNT.mjs.map +1 -0
  297. package/dist/is-primitive-C390YHii.d.cts +5 -0
  298. package/dist/is-primitive-C390YHii.d.cts.map +1 -0
  299. package/dist/is-primitive-CofpOCbi.d.mts +5 -0
  300. package/dist/is-primitive-CofpOCbi.d.mts.map +1 -0
  301. package/dist/is-primitive-DTb1k22w.cjs +1 -0
  302. package/dist/is-primitive.cjs +1 -14
  303. package/dist/is-primitive.d.cts +2 -0
  304. package/dist/is-primitive.d.mts +2 -0
  305. package/dist/is-primitive.mjs +1 -1
  306. package/dist/{is-promise.d.ts → is-promise-5PXY2aAR.d.mts} +6 -2
  307. package/dist/is-promise-5PXY2aAR.d.mts.map +1 -0
  308. package/dist/is-promise-BaPgf52D.d.cts +21 -0
  309. package/dist/is-promise-BaPgf52D.d.cts.map +1 -0
  310. package/dist/is-promise-D8fY4qSb.mjs +2 -0
  311. package/dist/is-promise-D8fY4qSb.mjs.map +1 -0
  312. package/dist/is-promise-DE9AP6eb.cjs +1 -0
  313. package/dist/is-promise.cjs +1 -12
  314. package/dist/is-promise.d.cts +2 -0
  315. package/dist/is-promise.d.mts +2 -0
  316. package/dist/is-promise.mjs +1 -1
  317. package/dist/is-react-element-BBgqI-yD.d.cts +5 -0
  318. package/dist/is-react-element-BBgqI-yD.d.cts.map +1 -0
  319. package/dist/is-react-element-CyrQE5Qy.d.mts +5 -0
  320. package/dist/is-react-element-CyrQE5Qy.d.mts.map +1 -0
  321. package/dist/is-react-element-GwN-78Xk.cjs +1 -0
  322. package/dist/is-react-element-s285_TUk.mjs +2 -0
  323. package/dist/is-react-element-s285_TUk.mjs.map +1 -0
  324. package/dist/is-react-element.cjs +1 -8
  325. package/dist/is-react-element.d.cts +2 -0
  326. package/dist/is-react-element.d.mts +2 -0
  327. package/dist/is-react-element.mjs +1 -1
  328. package/dist/is-ref-BiTQudvt.d.mts +14 -0
  329. package/dist/is-ref-BiTQudvt.d.mts.map +1 -0
  330. package/dist/is-ref-BqQN-H_W.cjs +1 -0
  331. package/dist/is-ref-C7Ce1mFX.d.cts +14 -0
  332. package/dist/is-ref-C7Ce1mFX.d.cts.map +1 -0
  333. package/dist/is-ref-DrnjEWuV.mjs +2 -0
  334. package/dist/is-ref-DrnjEWuV.mjs.map +1 -0
  335. package/dist/is-ref.cjs +1 -14
  336. package/dist/is-ref.d.cts +2 -0
  337. package/dist/is-ref.d.mts +2 -0
  338. package/dist/is-ref.mjs +1 -1
  339. package/dist/{is-regexp.d.ts → is-regexp-BRY1zuVr.d.mts} +5 -1
  340. package/dist/is-regexp-BRY1zuVr.d.mts.map +1 -0
  341. package/dist/is-regexp-BWzNkf_C.d.cts +20 -0
  342. package/dist/is-regexp-BWzNkf_C.d.cts.map +1 -0
  343. package/dist/is-regexp-Beh3UwFi.mjs +2 -0
  344. package/dist/is-regexp-Beh3UwFi.mjs.map +1 -0
  345. package/dist/is-regexp-CLE6yUfd.cjs +1 -0
  346. package/dist/is-regexp.cjs +1 -10
  347. package/dist/is-regexp.d.cts +2 -0
  348. package/dist/is-regexp.d.mts +2 -0
  349. package/dist/is-regexp.mjs +1 -1
  350. package/dist/is-select-option-B5qnA3jc.d.cts +49 -0
  351. package/dist/is-select-option-B5qnA3jc.d.cts.map +1 -0
  352. package/dist/is-select-option-DlTYFdDD.cjs +1 -0
  353. package/dist/is-select-option-DokUPHZT.d.mts +49 -0
  354. package/dist/is-select-option-DokUPHZT.d.mts.map +1 -0
  355. package/dist/is-select-option-U8pDtgdu.mjs +2 -0
  356. package/dist/is-select-option-U8pDtgdu.mjs.map +1 -0
  357. package/dist/is-select-option.cjs +1 -15
  358. package/dist/is-select-option.d.cts +2 -0
  359. package/dist/is-select-option.d.mts +2 -0
  360. package/dist/is-select-option.mjs +1 -1
  361. package/dist/is-set-BKGJRvlT.cjs +1 -0
  362. package/dist/{is-set.d.ts → is-set-DHpYu7nt.d.cts} +5 -1
  363. package/dist/is-set-DHpYu7nt.d.cts.map +1 -0
  364. package/dist/is-set-Tym9nZwJ.d.mts +11 -0
  365. package/dist/is-set-Tym9nZwJ.d.mts.map +1 -0
  366. package/dist/is-set-XlU8yblR.mjs +2 -0
  367. package/dist/is-set-XlU8yblR.mjs.map +1 -0
  368. package/dist/is-set-array-BuFd2cLT.d.cts +11 -0
  369. package/dist/is-set-array-BuFd2cLT.d.cts.map +1 -0
  370. package/dist/is-set-array-C8erkOGG.cjs +1 -0
  371. package/dist/is-set-array-D6GXc5K_.mjs +2 -0
  372. package/dist/is-set-array-D6GXc5K_.mjs.map +1 -0
  373. package/dist/is-set-array-jWb--6v8.d.mts +11 -0
  374. package/dist/is-set-array-jWb--6v8.d.mts.map +1 -0
  375. package/dist/is-set-array.cjs +1 -0
  376. package/dist/is-set-array.d.cts +2 -0
  377. package/dist/is-set-array.d.mts +2 -0
  378. package/dist/is-set-array.mjs +1 -0
  379. package/dist/{is-set-object.d.ts → is-set-object-BC019q7K.d.mts} +5 -1
  380. package/dist/is-set-object-BC019q7K.d.mts.map +1 -0
  381. package/dist/is-set-object-Cz1QFuwH.cjs +1 -0
  382. package/dist/is-set-object-DExQ3zYh.d.cts +11 -0
  383. package/dist/is-set-object-DExQ3zYh.d.cts.map +1 -0
  384. package/dist/is-set-object-m4I3zBXN.mjs +2 -0
  385. package/dist/is-set-object-m4I3zBXN.mjs.map +1 -0
  386. package/dist/is-set-object.cjs +1 -15
  387. package/dist/is-set-object.d.cts +2 -0
  388. package/dist/is-set-object.d.mts +2 -0
  389. package/dist/is-set-object.mjs +1 -1
  390. package/dist/is-set-string-B4g6w3Ao.mjs +2 -0
  391. package/dist/is-set-string-B4g6w3Ao.mjs.map +1 -0
  392. package/dist/is-set-string-BR3f8OLj.cjs +1 -0
  393. package/dist/{is-set-string.d.ts → is-set-string-D3GGXdVc.d.mts} +5 -1
  394. package/dist/is-set-string-D3GGXdVc.d.mts.map +1 -0
  395. package/dist/is-set-string-DvPRqQ7I.d.cts +11 -0
  396. package/dist/is-set-string-DvPRqQ7I.d.cts.map +1 -0
  397. package/dist/is-set-string.cjs +1 -16
  398. package/dist/is-set-string.d.cts +2 -0
  399. package/dist/is-set-string.d.mts +2 -0
  400. package/dist/is-set-string.mjs +1 -1
  401. package/dist/is-set.cjs +1 -15
  402. package/dist/is-set.d.cts +2 -0
  403. package/dist/is-set.d.mts +2 -0
  404. package/dist/is-set.mjs +1 -1
  405. package/dist/is-string-25AuUYxV.mjs +2 -0
  406. package/dist/is-string-25AuUYxV.mjs.map +1 -0
  407. package/dist/is-string-BmMYO2ay.d.cts +5 -0
  408. package/dist/is-string-BmMYO2ay.d.cts.map +1 -0
  409. package/dist/is-string-C8M6iZP3.cjs +1 -0
  410. package/dist/is-string-CHChgess.d.mts +5 -0
  411. package/dist/is-string-CHChgess.d.mts.map +1 -0
  412. package/dist/is-string.cjs +1 -14
  413. package/dist/is-string.d.cts +2 -0
  414. package/dist/is-string.d.mts +2 -0
  415. package/dist/is-string.mjs +1 -1
  416. package/dist/is-symbol-B3bYbkXB.d.cts +5 -0
  417. package/dist/is-symbol-B3bYbkXB.d.cts.map +1 -0
  418. package/dist/is-symbol-Bv9PzCUy.cjs +1 -0
  419. package/dist/is-symbol-D_u8UXTL.mjs +2 -0
  420. package/dist/is-symbol-D_u8UXTL.mjs.map +1 -0
  421. package/dist/is-symbol-Da3X6_5Z.d.mts +5 -0
  422. package/dist/is-symbol-Da3X6_5Z.d.mts.map +1 -0
  423. package/dist/is-symbol.cjs +1 -14
  424. package/dist/is-symbol.d.cts +2 -0
  425. package/dist/is-symbol.d.mts +2 -0
  426. package/dist/is-symbol.mjs +1 -1
  427. package/dist/is-typed-BqNSbnTJ.d.mts +14 -0
  428. package/dist/is-typed-BqNSbnTJ.d.mts.map +1 -0
  429. package/dist/is-typed-C4R6VJn5.mjs +2 -0
  430. package/dist/is-typed-C4R6VJn5.mjs.map +1 -0
  431. package/dist/is-typed-CxfGWrLF.d.cts +14 -0
  432. package/dist/is-typed-CxfGWrLF.d.cts.map +1 -0
  433. package/dist/is-typed-array--rJ89kK-.cjs +1 -0
  434. package/dist/is-typed-array-BElfTaKt.mjs +2 -0
  435. package/dist/is-typed-array-BElfTaKt.mjs.map +1 -0
  436. package/dist/is-typed-array-BhzKADmY.d.mts +5 -0
  437. package/dist/is-typed-array-BhzKADmY.d.mts.map +1 -0
  438. package/dist/is-typed-array-D42U77hG.d.cts +5 -0
  439. package/dist/is-typed-array-D42U77hG.d.cts.map +1 -0
  440. package/dist/is-typed-array.cjs +1 -9
  441. package/dist/is-typed-array.d.cts +2 -0
  442. package/dist/is-typed-array.d.mts +2 -0
  443. package/dist/is-typed-array.mjs +1 -1
  444. package/dist/is-typed-nhM341AY.cjs +1 -0
  445. package/dist/is-typed.cjs +1 -16
  446. package/dist/is-typed.d.cts +2 -0
  447. package/dist/is-typed.d.mts +2 -0
  448. package/dist/is-typed.mjs +1 -1
  449. package/dist/is-undefined-8YL_WG1_.d.mts +5 -0
  450. package/dist/is-undefined-8YL_WG1_.d.mts.map +1 -0
  451. package/dist/is-undefined-CocoROYF.cjs +1 -0
  452. package/dist/is-undefined-DbcFVo7P.d.cts +5 -0
  453. package/dist/is-undefined-DbcFVo7P.d.cts.map +1 -0
  454. package/dist/is-undefined-zJ4jMmsc.mjs +2 -0
  455. package/dist/is-undefined-zJ4jMmsc.mjs.map +1 -0
  456. package/dist/is-undefined.cjs +1 -8
  457. package/dist/is-undefined.d.cts +2 -0
  458. package/dist/is-undefined.d.mts +2 -0
  459. package/dist/is-undefined.mjs +1 -1
  460. package/dist/{is-url.d.ts → is-url-B232i4b5.d.mts} +5 -1
  461. package/dist/is-url-B232i4b5.d.mts.map +1 -0
  462. package/dist/is-url-BExxFY5T.cjs +1 -0
  463. package/dist/is-url-Bg2vBFiD.mjs +2 -0
  464. package/dist/is-url-Bg2vBFiD.mjs.map +1 -0
  465. package/dist/is-url-ClJ_Hmae.d.cts +11 -0
  466. package/dist/is-url-ClJ_Hmae.d.cts.map +1 -0
  467. package/dist/is-url.cjs +1 -10
  468. package/dist/is-url.d.cts +2 -0
  469. package/dist/is-url.d.mts +2 -0
  470. package/dist/is-url.mjs +1 -1
  471. package/dist/number-HSvmYyl0.d.mts +24 -0
  472. package/dist/number-HSvmYyl0.d.mts.map +1 -0
  473. package/dist/number-lymv4bwC.d.cts +24 -0
  474. package/dist/number-lymv4bwC.d.cts.map +1 -0
  475. package/dist/{property-exists.d.ts → property-exists-B4QTYKG6.d.mts} +6 -2
  476. package/dist/property-exists-B4QTYKG6.d.mts.map +1 -0
  477. package/dist/property-exists-BUPlKKW9.d.cts +20 -0
  478. package/dist/property-exists-BUPlKKW9.d.cts.map +1 -0
  479. package/dist/property-exists-YUMbdTfN.cjs +1 -0
  480. package/dist/property-exists-clG9W4n9.mjs +2 -0
  481. package/dist/property-exists-clG9W4n9.mjs.map +1 -0
  482. package/dist/property-exists.cjs +1 -17
  483. package/dist/property-exists.d.cts +2 -0
  484. package/dist/property-exists.d.mts +2 -0
  485. package/dist/property-exists.mjs +1 -1
  486. package/dist/type-detect-D9u_obxe.mjs +2 -0
  487. package/dist/type-detect-D9u_obxe.mjs.map +1 -0
  488. package/dist/type-detect-Ddd2473y.cjs +1 -0
  489. package/dist/type-detect-DkhvTvm2.d.cts +5 -0
  490. package/dist/type-detect-DkhvTvm2.d.cts.map +1 -0
  491. package/dist/type-detect-lSIXsSvX.d.mts +5 -0
  492. package/dist/type-detect-lSIXsSvX.d.mts.map +1 -0
  493. package/dist/type-detect.cjs +1 -38
  494. package/dist/type-detect.d.cts +2 -0
  495. package/dist/type-detect.d.mts +2 -0
  496. package/dist/type-detect.mjs +1 -1
  497. package/dist/utilities-BcSwta4F.d.cts +20 -0
  498. package/dist/utilities-BcSwta4F.d.cts.map +1 -0
  499. package/dist/utilities-Dj_-Bvo1.d.mts +20 -0
  500. package/dist/utilities-Dj_-Bvo1.d.mts.map +1 -0
  501. package/package.json +142 -626
  502. package/dist/get-object-tag.d.ts +0 -7
  503. package/dist/index.d.ts +0 -50
  504. package/dist/is-async-iterable.d.ts +0 -7
  505. package/dist/is-buffer.d.ts +0 -5
  506. package/dist/is-collection.d.ts +0 -8
  507. package/dist/is-deep-key.d.ts +0 -35
  508. package/dist/is-empty-string.d.ts +0 -7
  509. package/dist/is-empty.d.ts +0 -8
  510. package/dist/is-equal.d.ts +0 -1
  511. package/dist/is-file-result.d.ts +0 -8
  512. package/dist/is-float.d.ts +0 -8
  513. package/dist/is-function.d.ts +0 -10
  514. package/dist/is-mergeable-object.d.ts +0 -1
  515. package/dist/is-null.d.ts +0 -1
  516. package/dist/is-object-index.d.ts +0 -7
  517. package/dist/is-primitive.d.ts +0 -1
  518. package/dist/is-react-element.d.ts +0 -1
  519. package/dist/is-ref.d.ts +0 -8
  520. package/dist/is-select-option.d.ts +0 -8
  521. package/dist/is-string.d.ts +0 -1
  522. package/dist/is-symbol.d.ts +0 -1
  523. package/dist/is-typed-array.d.ts +0 -1
  524. package/dist/is-typed.d.ts +0 -8
  525. package/dist/is-undefined.d.ts +0 -1
  526. package/dist/type-detect.d.ts +0 -1
@@ -0,0 +1,11 @@
1
+ //#region src/is-async-iterable.d.ts
2
+ /**
3
+ * Check if the provided value's type is `AsyncIterable`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the object provided is `AsyncIterable`
7
+ */
8
+ declare const isAsyncIterable: (value: unknown) => value is AsyncIterable<unknown>;
9
+ //#endregion
10
+ export { isAsyncIterable as t };
11
+ //# sourceMappingURL=is-async-iterable-C7_r2vwP.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-async-iterable-C7_r2vwP.d.cts","names":[],"sources":["../src/is-async-iterable.ts"],"sourcesContent":[],"mappings":";;AA2BA;;;;;cAAa,8CAED"}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./is-null-DBoMXXAf.mjs";import{i as t}from"./is-object-ANQi7JgS.mjs";const n=n=>t(n)&&!e(n)&&Symbol.asyncIterator in n;export{n as t};
2
+ //# sourceMappingURL=is-async-iterable-CI6-qnZ-.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-async-iterable-CI6-qnZ-.mjs","names":[],"sources":["../src/is-async-iterable.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isNull } from \"./is-null\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is `AsyncIterable`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is `AsyncIterable`\n */\nexport const isAsyncIterable = (\n value: unknown\n): value is AsyncIterable<unknown> => {\n return isObject(value) && !isNull(value) && Symbol.asyncIterator in value;\n};\n"],"mappings":"wFA2BA,MAAa,EACX,GAEO,EAAS,EAAM,EAAI,CAAC,EAAO,EAAM,EAAI,OAAO,iBAAiB"}
@@ -0,0 +1,11 @@
1
+ //#region src/is-async-iterable.d.ts
2
+ /**
3
+ * Check if the provided value's type is `AsyncIterable`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the object provided is `AsyncIterable`
7
+ */
8
+ declare const isAsyncIterable: (value: unknown) => value is AsyncIterable<unknown>;
9
+ //#endregion
10
+ export { isAsyncIterable as t };
11
+ //# sourceMappingURL=is-async-iterable-hrJii_4u.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-async-iterable-hrJii_4u.d.mts","names":[],"sources":["../src/is-async-iterable.ts"],"sourcesContent":[],"mappings":";;AA2BA;;;;;cAAa,8CAED"}
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isAsyncIterable = void 0;
7
- var _isNull = require("./is-null.cjs");
8
- var _isObject = require("./is-object.cjs");
9
- const isAsyncIterable = n => (0, _isObject.isObject)(n) && !(0, _isNull.isNull)(n) && Symbol.asyncIterator in n;
10
- exports.isAsyncIterable = isAsyncIterable;
1
+ const e=require(`./is-async-iterable-Ba5xZQE9.cjs`);exports.isAsyncIterable=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as isAsyncIterable } from "./is-async-iterable-C7_r2vwP.cjs";
2
+ export { isAsyncIterable };
@@ -0,0 +1,2 @@
1
+ import { t as isAsyncIterable } from "./is-async-iterable-hrJii_4u.mjs";
2
+ export { isAsyncIterable };
@@ -1 +1 @@
1
- import{isNull as r}from"./is-null";import{isObject as o}from"./is-object";export const isAsyncIterable=n=>o(n)&&!r(n)&&Symbol.asyncIterator in n;
1
+ import{t as e}from"./is-async-iterable-CI6-qnZ-.mjs";export{e as isAsyncIterable};
@@ -0,0 +1 @@
1
+ const e=require(`./get-object-tag-BHnhgixj.cjs`),t=t=>typeof t==`bigint`||e.t(t)==`[object BigInt]`;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1,3 +1,4 @@
1
+ //#region src/is-bigint.d.ts
1
2
  /**
2
3
  * Checks if `value` is classified as a `bigint` object.
3
4
  *
@@ -13,4 +14,7 @@
13
14
  * @param value - The obj to check.
14
15
  * @returns Returns `true` if `value` is a bigint object, else `false`.
15
16
  */
16
- export declare const isBigInt: (value: unknown) => value is bigint;
17
+ declare const isBigInt: (value: unknown) => value is bigint;
18
+ //#endregion
19
+ export { isBigInt as t };
20
+ //# sourceMappingURL=is-bigint-BlaQe4zL.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-bigint-BlaQe4zL.d.cts","names":[],"sources":["../src/is-bigint.ts"],"sourcesContent":[],"mappings":";;AAmCA;;;;;;;;;;;;;;cAAa"}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./get-object-tag-DF2FAXqH.mjs";const t=t=>typeof t==`bigint`||e(t)==`[object BigInt]`;export{t};
2
+ //# sourceMappingURL=is-bigint-C87sK5hA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-bigint-C87sK5hA.mjs","names":[],"sources":["../src/is-bigint.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Checks if `value` is classified as a `bigint` object.\n *\n * @example\n * ```typescript\n * isDate(37n)\n * // => true\n *\n * isBigInt(37)\n * // => false\n * ```\n *\n * @param value - The obj to check.\n * @returns Returns `true` if `value` is a bigint object, else `false`.\n */\nexport const isBigInt = (value: unknown): value is bigint =>\n typeof value === \"bigint\" || getObjectTag(value) == \"[object BigInt]\";\n"],"mappings":"kDAmCA,MAAa,EAAY,GACvB,OAAO,GAAU,UAAY,EAAa,EAAM,EAAI"}
@@ -0,0 +1,20 @@
1
+ //#region src/is-bigint.d.ts
2
+ /**
3
+ * Checks if `value` is classified as a `bigint` object.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * isDate(37n)
8
+ * // => true
9
+ *
10
+ * isBigInt(37)
11
+ * // => false
12
+ * ```
13
+ *
14
+ * @param value - The obj to check.
15
+ * @returns Returns `true` if `value` is a bigint object, else `false`.
16
+ */
17
+ declare const isBigInt: (value: unknown) => value is bigint;
18
+ //#endregion
19
+ export { isBigInt as t };
20
+ //# sourceMappingURL=is-bigint-VHcMqIR3.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-bigint-VHcMqIR3.d.mts","names":[],"sources":["../src/is-bigint.ts"],"sourcesContent":[],"mappings":";;AAmCA;;;;;;;;;;;;;;cAAa"}
@@ -1,9 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isBigInt = void 0;
7
- var _getObjectTag = require("./get-object-tag.cjs");
8
- const isBigInt = t => typeof t == "bigint" || (0, _getObjectTag.getObjectTag)(t) == "[object BigInt]";
9
- exports.isBigInt = isBigInt;
1
+ const e=require(`./is-bigint-B0CqvS9s.cjs`);exports.isBigInt=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as isBigInt } from "./is-bigint-BlaQe4zL.cjs";
2
+ export { isBigInt };
@@ -0,0 +1,2 @@
1
+ import { t as isBigInt } from "./is-bigint-VHcMqIR3.mjs";
2
+ export { isBigInt };
@@ -1 +1 @@
1
- import{getObjectTag as i}from"./get-object-tag";export const isBigInt=t=>typeof t=="bigint"||i(t)=="[object BigInt]";
1
+ import{t as e}from"./is-bigint-C87sK5hA.mjs";export{e as isBigInt};
@@ -0,0 +1,2 @@
1
+ const e=e=>{try{return e instanceof Boolean||typeof e==`boolean`||!!e===e}catch{return!1}};export{e as t};
2
+ //# sourceMappingURL=is-boolean-DAXt0s9b.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-boolean-DAXt0s9b.mjs","names":[],"sources":["../src/is-boolean.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * Check if the provided value's type is `boolean`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `boolean`\n */\nexport const isBoolean = (value: unknown): value is boolean => {\n try {\n return (\n value instanceof Boolean ||\n typeof value === \"boolean\" ||\n Boolean(value) === value\n );\n } catch {\n return false;\n }\n};\n"],"mappings":"AAwBA,MAAa,EAAa,GAAqC,CAC7D,GAAI,CACF,OACE,aAAiB,SACjB,OAAO,GAAU,WACjB,EAAQ,IAAW,OAEf,CACN,MAAO"}
@@ -0,0 +1 @@
1
+ const e=e=>{try{return e instanceof Boolean||typeof e==`boolean`||!!e===e}catch{return!1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,7 +1,11 @@
1
+ //#region src/is-boolean.d.ts
1
2
  /**
2
3
  * Check if the provided value's type is `boolean`
3
4
  *
4
5
  * @param value - The value to type check
5
6
  * @returns An indicator specifying if the value provided is of type `boolean`
6
7
  */
7
- export declare const isBoolean: (value: unknown) => value is boolean;
8
+ declare const isBoolean: (value: unknown) => value is boolean;
9
+ //#endregion
10
+ export { isBoolean as t };
11
+ //# sourceMappingURL=is-boolean-Doo5mVEJ.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-boolean-Doo5mVEJ.d.mts","names":[],"sources":["../src/is-boolean.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;cAAa"}
@@ -0,0 +1,11 @@
1
+ //#region src/is-boolean.d.ts
2
+ /**
3
+ * Check if the provided value's type is `boolean`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `boolean`
7
+ */
8
+ declare const isBoolean: (value: unknown) => value is boolean;
9
+ //#endregion
10
+ export { isBoolean as t };
11
+ //# sourceMappingURL=is-boolean-rsYcElxd.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-boolean-rsYcElxd.d.cts","names":[],"sources":["../src/is-boolean.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;cAAa"}
@@ -1,14 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isBoolean = void 0;
7
- const isBoolean = o => {
8
- try {
9
- return o instanceof Boolean || typeof o == "boolean" || !!o === o;
10
- } catch {
11
- return !1;
12
- }
13
- };
14
- exports.isBoolean = isBoolean;
1
+ const e=require(`./is-boolean-DRzqWnBl.cjs`);exports.isBoolean=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as isBoolean } from "./is-boolean-rsYcElxd.cjs";
2
+ export { isBoolean };
@@ -0,0 +1,2 @@
1
+ import { t as isBoolean } from "./is-boolean-Doo5mVEJ.mjs";
2
+ export { isBoolean };
@@ -1 +1 @@
1
- export const isBoolean=o=>{try{return o instanceof Boolean||typeof o=="boolean"||!!o===o}catch{return!1}};
1
+ import{t as e}from"./is-boolean-DAXt0s9b.mjs";export{e as isBoolean};
@@ -0,0 +1,9 @@
1
+ //#region src/is-buffer.d.ts
2
+ declare const isBufferExists: boolean;
3
+ /**
4
+ * Check if the provided value's type is `Buffer`
5
+ */
6
+ declare const isBuffer: typeof Buffer.isBuffer;
7
+ //#endregion
8
+ export { isBufferExists as n, isBuffer as t };
9
+ //# sourceMappingURL=is-buffer-B3W8nBrK.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-buffer-B3W8nBrK.d.cts","names":[],"sources":["../src/is-buffer.ts"],"sourcesContent":[],"mappings":";cAkBa;AAAb;AAKA;;cAAa,iBAAiB,MAAA,CAAO"}
@@ -0,0 +1,2 @@
1
+ const e=typeof Buffer<`u`,t=e?Buffer.isBuffer.bind(Buffer):function(e){return!1};export{e as n,t};
2
+ //# sourceMappingURL=is-buffer-BhNtqu5n.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-buffer-BhNtqu5n.mjs","names":["isBuffer: typeof Buffer.isBuffer","isBuffer"],"sources":["../src/is-buffer.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isBufferExists = typeof Buffer !== \"undefined\";\n\n/**\n * Check if the provided value's type is `Buffer`\n */\nexport const isBuffer: typeof Buffer.isBuffer = isBufferExists\n ? Buffer.isBuffer.bind(Buffer)\n : /**\n * Check if the provided value's type is `Buffer`\n\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Buffer`\n */\n function isBuffer(\n value: Parameters<typeof Buffer.isBuffer>[0]\n ): value is Buffer {\n return false;\n };\n"],"mappings":"AAkBA,MAAa,EAAiB,OAAO,OAAW,IAKnCA,EAAmC,EAC5C,OAAO,SAAS,KAAK,OAAO,CAO5B,SACE,EACiB,CACjB,MAAO"}
@@ -0,0 +1,9 @@
1
+ //#region src/is-buffer.d.ts
2
+ declare const isBufferExists: boolean;
3
+ /**
4
+ * Check if the provided value's type is `Buffer`
5
+ */
6
+ declare const isBuffer: typeof Buffer.isBuffer;
7
+ //#endregion
8
+ export { isBufferExists as n, isBuffer as t };
9
+ //# sourceMappingURL=is-buffer-CSI0AMZS.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-buffer-CSI0AMZS.d.mts","names":[],"sources":["../src/is-buffer.ts"],"sourcesContent":[],"mappings":";cAkBa;AAAb;AAKA;;cAAa,iBAAiB,MAAA,CAAO"}
@@ -0,0 +1 @@
1
+ const e=typeof Buffer<`u`,t=e?Buffer.isBuffer.bind(Buffer):function(e){return!1};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isBufferExists = exports.isBuffer = void 0;
7
- const isBufferExists = exports.isBufferExists = typeof Buffer < "u",
8
- isBuffer = exports.isBuffer = isBufferExists ? Buffer.isBuffer.bind(Buffer) : function (e) {
9
- return !1;
10
- };
1
+ const e=require(`./is-buffer-D9p_5l0d.cjs`);exports.isBuffer=e.t,exports.isBufferExists=e.n;
@@ -0,0 +1,2 @@
1
+ import { n as isBufferExists, t as isBuffer } from "./is-buffer-B3W8nBrK.cjs";
2
+ export { isBuffer, isBufferExists };
@@ -0,0 +1,2 @@
1
+ import { n as isBufferExists, t as isBuffer } from "./is-buffer-CSI0AMZS.mjs";
2
+ export { isBuffer, isBufferExists };
@@ -1 +1 @@
1
- export const isBufferExists=typeof Buffer<"u",isBuffer=isBufferExists?Buffer.isBuffer.bind(Buffer):function(e){return!1};
1
+ import{n as e,t}from"./is-buffer-BhNtqu5n.mjs";export{t as isBuffer,e as isBufferExists};
@@ -0,0 +1,14 @@
1
+ import { r as Collection } from "./base-BghPfa26.mjs";
2
+
3
+ //#region src/is-collection.d.ts
4
+
5
+ /**
6
+ * Check if the provided value's type is `Collection`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `Collection`
10
+ */
11
+ declare function isCollection(value: any): value is Collection;
12
+ //#endregion
13
+ export { isCollection as t };
14
+ //# sourceMappingURL=is-collection-Ceu4_dCf.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-collection-Ceu4_dCf.d.mts","names":[],"sources":["../src/is-collection.ts"],"sourcesContent":[],"mappings":";;;;;;AAmCA;;;;iBAAgB,YAAA,uBAAmC"}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./type-detect-D9u_obxe.mjs";const t=new Set([`Arguments`,`Array`,`Map`,`Object`,`Set`]);function n(n){return t.has(e(n))}export{n as t};
2
+ //# sourceMappingURL=is-collection-DidPvByC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-collection-DidPvByC.mjs","names":[],"sources":["../src/is-collection.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Collection } from \"@stryke/types/base\";\nimport { typeDetect } from \"./type-detect\";\n\nconst COLLECTION_TYPE_SET = new Set([\n \"Arguments\",\n \"Array\",\n \"Map\",\n \"Object\",\n \"Set\"\n]);\n\n/**\n * Check if the provided value's type is `Collection`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Collection`\n */\nexport function isCollection(value: any): value is Collection {\n return COLLECTION_TYPE_SET.has(typeDetect(value));\n}\n"],"mappings":"+CAqBA,MAAM,EAAsB,IAAI,IAAI,CAClC,YACA,QACA,MACA,SACA,MACD,CAAC,CAQF,SAAgB,EAAa,EAAiC,CAC5D,OAAO,EAAoB,IAAI,EAAW,EAAM,CAAC"}
@@ -0,0 +1 @@
1
+ const e=require(`./type-detect-Ddd2473y.cjs`),t=new Set([`Arguments`,`Array`,`Map`,`Object`,`Set`]);function n(n){return t.has(e.t(n))}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -0,0 +1,14 @@
1
+ import { r as Collection } from "./base-DsupRZHl.cjs";
2
+
3
+ //#region src/is-collection.d.ts
4
+
5
+ /**
6
+ * Check if the provided value's type is `Collection`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `Collection`
10
+ */
11
+ declare function isCollection(value: any): value is Collection;
12
+ //#endregion
13
+ export { isCollection as t };
14
+ //# sourceMappingURL=is-collection-e7yAmi3F.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-collection-e7yAmi3F.d.cts","names":[],"sources":["../src/is-collection.ts"],"sourcesContent":[],"mappings":";;;;;;AAmCA;;;;iBAAgB,YAAA,uBAAmC"}
@@ -1,11 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isCollection = isCollection;
7
- var _typeDetect = require("./type-detect.cjs");
8
- const o = new Set(["Arguments", "Array", "Map", "Object", "Set"]);
9
- function isCollection(t) {
10
- return o.has((0, _typeDetect.typeDetect)(t));
11
- }
1
+ require(`./is-buffer-D9p_5l0d.cjs`),require(`./type-detect-Ddd2473y.cjs`);const e=require(`./is-collection-IKoUfFa7.cjs`);exports.isCollection=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as isCollection } from "./is-collection-e7yAmi3F.cjs";
2
+ export { isCollection };
@@ -0,0 +1,2 @@
1
+ import { t as isCollection } from "./is-collection-Ceu4_dCf.mjs";
2
+ export { isCollection };
@@ -1 +1 @@
1
- import{typeDetect as e}from"./type-detect";const o=new Set(["Arguments","Array","Map","Object","Set"]);export function isCollection(t){return o.has(e(t))}
1
+ import"./is-buffer-BhNtqu5n.mjs";import"./type-detect-D9u_obxe.mjs";import{t as e}from"./is-collection-DidPvByC.mjs";export{e as isCollection};
@@ -1,3 +1,4 @@
1
+ //#region src/is-date.d.ts
1
2
  /**
2
3
  * Checks if `value` is classified as a `Date` object.
3
4
  *
@@ -13,4 +14,7 @@
13
14
  * @param value - The value to check.
14
15
  * @returns Returns `true` if `obj` is a date object, else `false`.
15
16
  */
16
- export declare const isDate: (value: unknown) => value is Date;
17
+ declare const isDate: (value: unknown) => value is Date;
18
+ //#endregion
19
+ export { isDate as t };
20
+ //# sourceMappingURL=is-date-BecRMVku.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date-BecRMVku.d.mts","names":[],"sources":["../src/is-date.ts"],"sourcesContent":[],"mappings":";;AAoCA;;;;;;;;;;;;;;cAAa,qCAAoC"}
@@ -0,0 +1 @@
1
+ const e=require(`./get-object-tag-BHnhgixj.cjs`),t=require(`./is-plain-object-DuvbtXws.cjs`),n=n=>t.t(n)&&e.t(n)==`[object Date]`;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./get-object-tag-DF2FAXqH.mjs";import{t}from"./is-plain-object-Cqr8u4ef.mjs";const n=n=>t(n)&&e(n)==`[object Date]`;export{n as t};
2
+ //# sourceMappingURL=is-date-CcOOgtny.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date-CcOOgtny.mjs","names":[],"sources":["../src/is-date.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getObjectTag } from \"./get-object-tag\";\nimport { isObjectLike } from \"./is-plain-object\";\n\n/**\n * Checks if `value` is classified as a `Date` object.\n *\n * @example\n * ```typescript\n * isDate(new Date)\n * // => true\n *\n * isDate('Mon April 23 2012')\n * // => false\n * ```\n *\n * @param value - The value to check.\n * @returns Returns `true` if `obj` is a date object, else `false`.\n */\nexport const isDate = (value: unknown): value is Date =>\n isObjectLike(value) && getObjectTag(value) == \"[object Date]\";\n"],"mappings":"gGAoCA,MAAa,EAAU,GACrB,EAAa,EAAM,EAAI,EAAa,EAAM,EAAI"}
@@ -0,0 +1,20 @@
1
+ //#region src/is-date.d.ts
2
+ /**
3
+ * Checks if `value` is classified as a `Date` object.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * isDate(new Date)
8
+ * // => true
9
+ *
10
+ * isDate('Mon April 23 2012')
11
+ * // => false
12
+ * ```
13
+ *
14
+ * @param value - The value to check.
15
+ * @returns Returns `true` if `obj` is a date object, else `false`.
16
+ */
17
+ declare const isDate: (value: unknown) => value is Date;
18
+ //#endregion
19
+ export { isDate as t };
20
+ //# sourceMappingURL=is-date-Dmz-M0ET.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date-Dmz-M0ET.d.cts","names":[],"sources":["../src/is-date.ts"],"sourcesContent":[],"mappings":";;AAoCA;;;;;;;;;;;;;;cAAa,qCAAoC"}
package/dist/is-date.cjs CHANGED
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isDate = void 0;
7
- var _getObjectTag = require("./get-object-tag.cjs");
8
- var _isPlainObject = require("./is-plain-object.cjs");
9
- const isDate = t => (0, _isPlainObject.isObjectLike)(t) && (0, _getObjectTag.getObjectTag)(t) == "[object Date]";
10
- exports.isDate = isDate;
1
+ const e=require(`./is-date-CWjcEKXA.cjs`);exports.isDate=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as isDate } from "./is-date-Dmz-M0ET.cjs";
2
+ export { isDate };
@@ -0,0 +1,2 @@
1
+ import { t as isDate } from "./is-date-BecRMVku.mjs";
2
+ export { isDate };
package/dist/is-date.mjs CHANGED
@@ -1 +1 @@
1
- import{getObjectTag as e}from"./get-object-tag";import{isObjectLike as o}from"./is-plain-object";export const isDate=t=>o(t)&&e(t)=="[object Date]";
1
+ import{t as e}from"./is-date-CcOOgtny.mjs";export{e as isDate};
@@ -0,0 +1,52 @@
1
+ import { t as Index40 } from "./utilities-BcSwta4F.cjs";
2
+
3
+ //#region ../types/src/object.d.ts
4
+
5
+ type IsTuple<T> = T extends {
6
+ length: infer Length;
7
+ } & readonly any[] ? Length extends Index40 ? T : never : never;
8
+ type AllowedIndexes<Tuple extends readonly any[], Keys extends number = never> = Tuple extends readonly [] ? Keys : Tuple extends readonly [infer _First, ...infer Tail] ? AllowedIndexes<Tail, Keys | Tail["length"]> : Keys;
9
+ type PrefixArrayAccessor<T extends any[], TDepth extends any[]> = { [K in keyof T]: `[${number}]${DeepKey<T[K], TDepth>}` }[number];
10
+ type PrefixTupleAccessor<T extends any[], TIndex extends number, TDepth extends any[]> = { [K in TIndex]: `[${K}]${DeepKey<T[K], TDepth>}` | `[${K}]` }[TIndex];
11
+ type PrefixObjectAccessor<T extends object, TDepth extends any[]> = { [K in keyof T]-?: K extends number | string ? `${PrefixFromDepth<K, TDepth>}${DeepKey<T[K], [TDepth]>}` | PrefixFromDepth<K, TDepth> : never }[keyof T];
12
+ type PrefixFromDepth<T extends number | string, TDepth extends any[]> = TDepth["length"] extends 0 ? T : `.${T}`;
13
+ type DeepKey<T, TDepth extends any[] = []> = TDepth["length"] extends 5 ? never : unknown extends T ? PrefixFromDepth<string, TDepth> : T extends IsTuple<T> & any[] ? PrefixTupleAccessor<T, AllowedIndexes<T>, TDepth> : T extends any[] ? PrefixArrayAccessor<T, [...TDepth, any]> : T extends Date ? never : T extends object ? PrefixObjectAccessor<T, TDepth> : T extends bigint | boolean | number | string ? "" : never;
14
+ //#endregion
15
+ //#region src/is-deep-key.d.ts
16
+ /**
17
+ * Checks if a given key is a deep key.
18
+ *
19
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
20
+ *
21
+ * @example
22
+ * isDeepKey('a.b') // true
23
+ * isDeepKey('a[b]') // true
24
+ * isDeepKey('a') // false
25
+ * isDeepKey(123) // false
26
+ * isDeepKey('a.b.c') // true
27
+ * isDeepKey('a[b][c]') // true
28
+ *
29
+ * @param key - The key to check.
30
+ * @returns Returns true if the key is a deep key, otherwise false.
31
+ */
32
+ declare function isDeepKey(key: PropertyKey): key is DeepKey<any>;
33
+ /**
34
+ * Checks if a given key is a deep key or normal (shallow key).
35
+ *
36
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
37
+ *
38
+ * @example
39
+ * isDeepKey('a.b') // true
40
+ * isDeepKey('a[b]') // true
41
+ * isDeepKey('a') // true
42
+ * isDeepKey(123) // false
43
+ * isDeepKey('a.b.c') // true
44
+ * isDeepKey('a[b][c]') // true
45
+ *
46
+ * @param key - The key to check.
47
+ * @returns Returns true if the key is a deep key, otherwise false.
48
+ */
49
+ declare function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any>;
50
+ //#endregion
51
+ export { isKeyOrDeepKey as n, isDeepKey as t };
52
+ //# sourceMappingURL=is-deep-key-CDPjONep.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-deep-key-CDPjONep.d.cts","names":[],"sources":["../../types/src/object.ts","../src/is-deep-key.ts"],"sourcesContent":[],"mappings":";;;;KAwrBK,aAAa;;oCACC,UACb;KAKD,4EAGD,4BACA,OACA,uDACE,eAAe,MAAM,OAAO,kBAC5B;KAED,2EACS,kBAAkB,QAAQ,EAAE,IAAI;KAGzC,4FAKG,aAAa,KAAK,QAAQ,EAAE,IAAI,gBAAgB,OACtD;KAEG,6EACS,MAAM,+BAEP,gBAAgB,GAAG,UAAU,QAAQ,EAAE,KAAK,aAC/C,gBAAgB,GAAG,wBAErB;KAEH,mEAGD,6BAA6B,QAAQ;KAE7B,wCAAwC,qDAEhC,IACd,wBAAwB,UACxB,UAAU,QAAQ,aAChB,oBAAoB,GAAG,eAAe,IAAI,UAC1C,kBACE,oBAAoB,OAAO,gBAC3B,UAAU,eAER,mBACE,qBAAqB,GAAG,UACxB;;;;;AA1DyD;;;;;AAOhE;;;;;;;;;AAYG,iBClqBM,SAAA,CDkqBN,GAAA,EClqBqB,WDkqBrB,CAAA,EAAA,GAAA,IClqB0C,ODkqB1C,CAAA,GAAA,CAAA;AAAA;;;;;;;AAG6B;;;;;;;;;AAS/B,iBClpBQ,cAAA,CDkpBR,GAAA,EClpB4B,WDkpB5B,CAAA,EAAA,GAAA,IClpBiD,ODkpBjD,CAAA,GAAA,CAAA"}
@@ -0,0 +1 @@
1
+ function e(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function t(e){switch(typeof e){case`number`:return!0;case`symbol`:return!1;case`string`:return!0}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -0,0 +1,2 @@
1
+ function e(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function t(e){switch(typeof e){case`number`:return!0;case`symbol`:return!1;case`string`:return!0}}export{t as n,e as t};
2
+ //# sourceMappingURL=is-deep-key-DShi6eYB.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-deep-key-DShi6eYB.mjs","names":[],"sources":["../src/is-deep-key.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DeepKey } from \"@stryke/types/object\";\n\n/**\n * Checks if a given key is a deep key.\n *\n * A deep key is a string that contains a dot (.) or square brackets with a property accessor.\n *\n * @example\n * isDeepKey('a.b') // true\n * isDeepKey('a[b]') // true\n * isDeepKey('a') // false\n * isDeepKey(123) // false\n * isDeepKey('a.b.c') // true\n * isDeepKey('a[b][c]') // true\n *\n * @param key - The key to check.\n * @returns Returns true if the key is a deep key, otherwise false.\n */\nexport function isDeepKey(key: PropertyKey): key is DeepKey<any> {\n switch (typeof key) {\n case \"number\":\n case \"symbol\": {\n return false;\n }\n case \"string\": {\n return key.includes(\".\") || key.includes(\"[\") || key.includes(\"]\");\n }\n }\n}\n\n/**\n * Checks if a given key is a deep key or normal (shallow key).\n *\n * A deep key is a string that contains a dot (.) or square brackets with a property accessor.\n *\n * @example\n * isDeepKey('a.b') // true\n * isDeepKey('a[b]') // true\n * isDeepKey('a') // true\n * isDeepKey(123) // false\n * isDeepKey('a.b.c') // true\n * isDeepKey('a[b][c]') // true\n *\n * @param key - The key to check.\n * @returns Returns true if the key is a deep key, otherwise false.\n */\nexport function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any> {\n switch (typeof key) {\n case \"number\": {\n return true;\n }\n case \"symbol\": {\n return false;\n }\n case \"string\": {\n return true;\n }\n }\n}\n"],"mappings":"AAoCA,SAAgB,EAAU,EAAuC,CAC/D,OAAQ,OAAO,EAAf,CACE,IAAK,SACL,IAAK,SACH,MAAO,GAET,IAAK,SACH,OAAO,EAAI,SAAS,IAAI,EAAI,EAAI,SAAS,IAAI,EAAI,EAAI,SAAS,IAAI,EAqBxE,SAAgB,EAAe,EAAuC,CACpE,OAAQ,OAAO,EAAf,CACE,IAAK,SACH,MAAO,GAET,IAAK,SACH,MAAO,GAET,IAAK,SACH,MAAO"}
@@ -0,0 +1,52 @@
1
+ import { t as Index40 } from "./utilities-Dj_-Bvo1.mjs";
2
+
3
+ //#region ../types/src/object.d.ts
4
+
5
+ type IsTuple<T> = T extends {
6
+ length: infer Length;
7
+ } & readonly any[] ? Length extends Index40 ? T : never : never;
8
+ type AllowedIndexes<Tuple extends readonly any[], Keys extends number = never> = Tuple extends readonly [] ? Keys : Tuple extends readonly [infer _First, ...infer Tail] ? AllowedIndexes<Tail, Keys | Tail["length"]> : Keys;
9
+ type PrefixArrayAccessor<T extends any[], TDepth extends any[]> = { [K in keyof T]: `[${number}]${DeepKey<T[K], TDepth>}` }[number];
10
+ type PrefixTupleAccessor<T extends any[], TIndex extends number, TDepth extends any[]> = { [K in TIndex]: `[${K}]${DeepKey<T[K], TDepth>}` | `[${K}]` }[TIndex];
11
+ type PrefixObjectAccessor<T extends object, TDepth extends any[]> = { [K in keyof T]-?: K extends number | string ? `${PrefixFromDepth<K, TDepth>}${DeepKey<T[K], [TDepth]>}` | PrefixFromDepth<K, TDepth> : never }[keyof T];
12
+ type PrefixFromDepth<T extends number | string, TDepth extends any[]> = TDepth["length"] extends 0 ? T : `.${T}`;
13
+ type DeepKey<T, TDepth extends any[] = []> = TDepth["length"] extends 5 ? never : unknown extends T ? PrefixFromDepth<string, TDepth> : T extends IsTuple<T> & any[] ? PrefixTupleAccessor<T, AllowedIndexes<T>, TDepth> : T extends any[] ? PrefixArrayAccessor<T, [...TDepth, any]> : T extends Date ? never : T extends object ? PrefixObjectAccessor<T, TDepth> : T extends bigint | boolean | number | string ? "" : never;
14
+ //#endregion
15
+ //#region src/is-deep-key.d.ts
16
+ /**
17
+ * Checks if a given key is a deep key.
18
+ *
19
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
20
+ *
21
+ * @example
22
+ * isDeepKey('a.b') // true
23
+ * isDeepKey('a[b]') // true
24
+ * isDeepKey('a') // false
25
+ * isDeepKey(123) // false
26
+ * isDeepKey('a.b.c') // true
27
+ * isDeepKey('a[b][c]') // true
28
+ *
29
+ * @param key - The key to check.
30
+ * @returns Returns true if the key is a deep key, otherwise false.
31
+ */
32
+ declare function isDeepKey(key: PropertyKey): key is DeepKey<any>;
33
+ /**
34
+ * Checks if a given key is a deep key or normal (shallow key).
35
+ *
36
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
37
+ *
38
+ * @example
39
+ * isDeepKey('a.b') // true
40
+ * isDeepKey('a[b]') // true
41
+ * isDeepKey('a') // true
42
+ * isDeepKey(123) // false
43
+ * isDeepKey('a.b.c') // true
44
+ * isDeepKey('a[b][c]') // true
45
+ *
46
+ * @param key - The key to check.
47
+ * @returns Returns true if the key is a deep key, otherwise false.
48
+ */
49
+ declare function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any>;
50
+ //#endregion
51
+ export { isKeyOrDeepKey as n, isDeepKey as t };
52
+ //# sourceMappingURL=is-deep-key-R3slkUpl.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-deep-key-R3slkUpl.d.mts","names":[],"sources":["../../types/src/object.ts","../src/is-deep-key.ts"],"sourcesContent":[],"mappings":";;;;KAwrBK,aAAa;;oCACC,UACb;KAKD,4EAGD,4BACA,OACA,uDACE,eAAe,MAAM,OAAO,kBAC5B;KAED,2EACS,kBAAkB,QAAQ,EAAE,IAAI;KAGzC,4FAKG,aAAa,KAAK,QAAQ,EAAE,IAAI,gBAAgB,OACtD;KAEG,6EACS,MAAM,+BAEP,gBAAgB,GAAG,UAAU,QAAQ,EAAE,KAAK,aAC/C,gBAAgB,GAAG,wBAErB;KAEH,mEAGD,6BAA6B,QAAQ;KAE7B,wCAAwC,qDAEhC,IACd,wBAAwB,UACxB,UAAU,QAAQ,aAChB,oBAAoB,GAAG,eAAe,IAAI,UAC1C,kBACE,oBAAoB,OAAO,gBAC3B,UAAU,eAER,mBACE,qBAAqB,GAAG,UACxB;;;;;AA1DyD;;;;;AAOhE;;;;;;;;;AAYG,iBClqBM,SAAA,CDkqBN,GAAA,EClqBqB,WDkqBrB,CAAA,EAAA,GAAA,IClqB0C,ODkqB1C,CAAA,GAAA,CAAA;AAAA;;;;;;;AAG6B;;;;;;;;;AAS/B,iBClpBQ,cAAA,CDkpBR,GAAA,EClpB4B,WDkpB5B,CAAA,EAAA,GAAA,IClpBiD,ODkpBjD,CAAA,GAAA,CAAA"}