@stryke/type-checks 0.5.9 → 0.5.10

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 (651) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/get-object-tag.cjs +1 -1
  3. package/dist/get-object-tag.d.cts +11 -2
  4. package/dist/get-object-tag.d.cts.map +1 -0
  5. package/dist/get-object-tag.d.mts +11 -2
  6. package/dist/get-object-tag.d.mts.map +1 -0
  7. package/dist/get-object-tag.mjs +2 -1
  8. package/dist/get-object-tag.mjs.map +1 -0
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.d.cts +43 -43
  11. package/dist/index.d.mts +43 -43
  12. package/dist/index.mjs +1 -1
  13. package/dist/is-array-like.cjs +1 -1
  14. package/dist/is-array-like.d.cts +11 -2
  15. package/dist/is-array-like.d.cts.map +1 -0
  16. package/dist/is-array-like.d.mts +11 -2
  17. package/dist/is-array-like.d.mts.map +1 -0
  18. package/dist/is-array-like.mjs +2 -1
  19. package/dist/is-array-like.mjs.map +1 -0
  20. package/dist/is-async-iterable.cjs +1 -1
  21. package/dist/is-async-iterable.d.cts +11 -2
  22. package/dist/is-async-iterable.d.cts.map +1 -0
  23. package/dist/is-async-iterable.d.mts +11 -2
  24. package/dist/is-async-iterable.d.mts.map +1 -0
  25. package/dist/is-async-iterable.mjs +2 -1
  26. package/dist/is-async-iterable.mjs.map +1 -0
  27. package/dist/is-bigint.cjs +1 -1
  28. package/dist/is-bigint.d.cts +20 -2
  29. package/dist/is-bigint.d.cts.map +1 -0
  30. package/dist/is-bigint.d.mts +20 -2
  31. package/dist/is-bigint.d.mts.map +1 -0
  32. package/dist/is-bigint.mjs +2 -1
  33. package/dist/is-bigint.mjs.map +1 -0
  34. package/dist/is-boolean.cjs +1 -1
  35. package/dist/is-boolean.d.cts +11 -2
  36. package/dist/is-boolean.d.cts.map +1 -0
  37. package/dist/is-boolean.d.mts +11 -2
  38. package/dist/is-boolean.d.mts.map +1 -0
  39. package/dist/is-boolean.mjs +2 -1
  40. package/dist/is-boolean.mjs.map +1 -0
  41. package/dist/is-buffer.cjs +1 -1
  42. package/dist/is-buffer.d.cts +9 -2
  43. package/dist/is-buffer.d.cts.map +1 -0
  44. package/dist/is-buffer.d.mts +9 -2
  45. package/dist/is-buffer.d.mts.map +1 -0
  46. package/dist/is-buffer.mjs +2 -1
  47. package/dist/is-buffer.mjs.map +1 -0
  48. package/dist/is-collection.cjs +1 -1
  49. package/dist/is-collection.d.cts +14 -2
  50. package/dist/is-collection.d.cts.map +1 -0
  51. package/dist/is-collection.d.mts +14 -2
  52. package/dist/is-collection.d.mts.map +1 -0
  53. package/dist/is-collection.mjs +2 -1
  54. package/dist/is-collection.mjs.map +1 -0
  55. package/dist/is-date.cjs +1 -1
  56. package/dist/is-date.d.cts +20 -2
  57. package/dist/is-date.d.cts.map +1 -0
  58. package/dist/is-date.d.mts +20 -2
  59. package/dist/is-date.d.mts.map +1 -0
  60. package/dist/is-date.mjs +2 -1
  61. package/dist/is-date.mjs.map +1 -0
  62. package/dist/is-deep-key.cjs +1 -1
  63. package/dist/is-deep-key.d.cts +41 -2
  64. package/dist/is-deep-key.d.cts.map +1 -0
  65. package/dist/is-deep-key.d.mts +41 -2
  66. package/dist/is-deep-key.d.mts.map +1 -0
  67. package/dist/is-deep-key.mjs +2 -1
  68. package/dist/is-deep-key.mjs.map +1 -0
  69. package/dist/is-empty-object.cjs +1 -1
  70. package/dist/is-empty-object.d.cts +18 -2
  71. package/dist/is-empty-object.d.cts.map +1 -0
  72. package/dist/is-empty-object.d.mts +18 -2
  73. package/dist/is-empty-object.d.mts.map +1 -0
  74. package/dist/is-empty-object.mjs +2 -1
  75. package/dist/is-empty-object.mjs.map +1 -0
  76. package/dist/is-empty-string.cjs +1 -1
  77. package/dist/is-empty-string.d.cts +11 -2
  78. package/dist/is-empty-string.d.cts.map +1 -0
  79. package/dist/is-empty-string.d.mts +11 -2
  80. package/dist/is-empty-string.d.mts.map +1 -0
  81. package/dist/is-empty-string.mjs +2 -1
  82. package/dist/is-empty-string.mjs.map +1 -0
  83. package/dist/is-empty.cjs +1 -1
  84. package/dist/is-empty.d.cts +12 -2
  85. package/dist/is-empty.d.cts.map +1 -0
  86. package/dist/is-empty.d.mts +12 -2
  87. package/dist/is-empty.d.mts.map +1 -0
  88. package/dist/is-empty.mjs +2 -1
  89. package/dist/is-empty.mjs.map +1 -0
  90. package/dist/is-equal.cjs +1 -1
  91. package/dist/is-equal.d.cts +5 -2
  92. package/dist/is-equal.d.cts.map +1 -0
  93. package/dist/is-equal.d.mts +5 -2
  94. package/dist/is-equal.d.mts.map +1 -0
  95. package/dist/is-equal.mjs +2 -1
  96. package/dist/is-equal.mjs.map +1 -0
  97. package/dist/is-error.cjs +1 -1
  98. package/dist/is-error.d.cts +21 -2
  99. package/dist/is-error.d.cts.map +1 -0
  100. package/dist/is-error.d.mts +21 -2
  101. package/dist/is-error.d.mts.map +1 -0
  102. package/dist/is-error.mjs +2 -1
  103. package/dist/is-error.mjs.map +1 -0
  104. package/dist/is-file-result.cjs +1 -1
  105. package/dist/is-file-result.d.cts +14 -2
  106. package/dist/is-file-result.d.cts.map +1 -0
  107. package/dist/is-file-result.d.mts +14 -2
  108. package/dist/is-file-result.d.mts.map +1 -0
  109. package/dist/is-file-result.mjs +2 -1
  110. package/dist/is-file-result.mjs.map +1 -0
  111. package/dist/is-float.cjs +1 -1
  112. package/dist/is-float.d.cts +14 -2
  113. package/dist/is-float.d.cts.map +1 -0
  114. package/dist/is-float.d.mts +14 -2
  115. package/dist/is-float.d.mts.map +1 -0
  116. package/dist/is-float.mjs +2 -1
  117. package/dist/is-float.mjs.map +1 -0
  118. package/dist/is-function.cjs +1 -1
  119. package/dist/is-function.d.cts +15 -2
  120. package/dist/is-function.d.cts.map +1 -0
  121. package/dist/is-function.d.mts +15 -2
  122. package/dist/is-function.d.mts.map +1 -0
  123. package/dist/is-function.mjs +2 -1
  124. package/dist/is-function.mjs.map +1 -0
  125. package/dist/is-integer.cjs +1 -1
  126. package/dist/is-integer.d.cts +11 -2
  127. package/dist/is-integer.d.cts.map +1 -0
  128. package/dist/is-integer.d.mts +11 -2
  129. package/dist/is-integer.d.mts.map +1 -0
  130. package/dist/is-integer.mjs +2 -1
  131. package/dist/is-integer.mjs.map +1 -0
  132. package/dist/is-mergeable-object.cjs +1 -1
  133. package/dist/is-mergeable-object.d.cts +5 -2
  134. package/dist/is-mergeable-object.d.cts.map +1 -0
  135. package/dist/is-mergeable-object.d.mts +5 -2
  136. package/dist/is-mergeable-object.d.mts.map +1 -0
  137. package/dist/is-mergeable-object.mjs +2 -1
  138. package/dist/is-mergeable-object.mjs.map +1 -0
  139. package/dist/is-non-null-object.cjs +1 -1
  140. package/dist/is-non-null-object.mjs +2 -1
  141. package/dist/is-non-null-object.mjs.map +1 -0
  142. package/dist/is-not-empty.cjs +1 -1
  143. package/dist/is-not-empty.d.cts +11 -2
  144. package/dist/is-not-empty.d.cts.map +1 -0
  145. package/dist/is-not-empty.d.mts +11 -2
  146. package/dist/is-not-empty.d.mts.map +1 -0
  147. package/dist/is-not-empty.mjs +2 -1
  148. package/dist/is-not-empty.mjs.map +1 -0
  149. package/dist/is-null.cjs +1 -1
  150. package/dist/is-null.d.cts +5 -2
  151. package/dist/is-null.d.cts.map +1 -0
  152. package/dist/is-null.d.mts +5 -2
  153. package/dist/is-null.d.mts.map +1 -0
  154. package/dist/is-null.mjs +2 -1
  155. package/dist/is-null.mjs.map +1 -0
  156. package/dist/is-number.cjs +1 -1
  157. package/dist/is-number.d.cts +21 -2
  158. package/dist/is-number.d.cts.map +1 -0
  159. package/dist/is-number.d.mts +21 -2
  160. package/dist/is-number.d.mts.map +1 -0
  161. package/dist/is-number.mjs +2 -1
  162. package/dist/is-number.mjs.map +1 -0
  163. package/dist/is-object-index.cjs +1 -1
  164. package/dist/is-object-index.d.cts +11 -2
  165. package/dist/is-object-index.d.cts.map +1 -0
  166. package/dist/is-object-index.d.mts +11 -2
  167. package/dist/is-object-index.d.mts.map +1 -0
  168. package/dist/is-object-index.mjs +2 -1
  169. package/dist/is-object-index.mjs.map +1 -0
  170. package/dist/is-object.cjs +1 -1
  171. package/dist/is-object.d.cts +35 -2
  172. package/dist/is-object.d.cts.map +1 -0
  173. package/dist/is-object.d.mts +35 -2
  174. package/dist/is-object.d.mts.map +1 -0
  175. package/dist/is-object.mjs +2 -1
  176. package/dist/is-object.mjs.map +1 -0
  177. package/dist/is-plain-object.cjs +1 -1
  178. package/dist/is-plain-object.d.cts +56 -2
  179. package/dist/is-plain-object.d.cts.map +1 -0
  180. package/dist/is-plain-object.d.mts +56 -2
  181. package/dist/is-plain-object.d.mts.map +1 -0
  182. package/dist/is-plain-object.mjs +2 -1
  183. package/dist/is-plain-object.mjs.map +1 -0
  184. package/dist/is-primitive.cjs +1 -1
  185. package/dist/is-primitive.d.cts +5 -2
  186. package/dist/is-primitive.d.cts.map +1 -0
  187. package/dist/is-primitive.d.mts +5 -2
  188. package/dist/is-primitive.d.mts.map +1 -0
  189. package/dist/is-primitive.mjs +2 -1
  190. package/dist/is-primitive.mjs.map +1 -0
  191. package/dist/is-promise.cjs +1 -1
  192. package/dist/is-promise.d.cts +21 -2
  193. package/dist/is-promise.d.cts.map +1 -0
  194. package/dist/is-promise.d.mts +21 -2
  195. package/dist/is-promise.d.mts.map +1 -0
  196. package/dist/is-promise.mjs +2 -1
  197. package/dist/is-promise.mjs.map +1 -0
  198. package/dist/is-react-element.cjs +1 -1
  199. package/dist/is-react-element.d.cts +5 -2
  200. package/dist/is-react-element.d.cts.map +1 -0
  201. package/dist/is-react-element.d.mts +5 -2
  202. package/dist/is-react-element.d.mts.map +1 -0
  203. package/dist/is-react-element.mjs +2 -1
  204. package/dist/is-react-element.mjs.map +1 -0
  205. package/dist/is-ref.cjs +1 -1
  206. package/dist/is-ref.d.cts +14 -2
  207. package/dist/is-ref.d.cts.map +1 -0
  208. package/dist/is-ref.d.mts +14 -2
  209. package/dist/is-ref.d.mts.map +1 -0
  210. package/dist/is-ref.mjs +2 -1
  211. package/dist/is-ref.mjs.map +1 -0
  212. package/dist/is-regexp.cjs +1 -1
  213. package/dist/is-regexp.d.cts +20 -2
  214. package/dist/is-regexp.d.cts.map +1 -0
  215. package/dist/is-regexp.d.mts +20 -2
  216. package/dist/is-regexp.d.mts.map +1 -0
  217. package/dist/is-regexp.mjs +2 -1
  218. package/dist/is-regexp.mjs.map +1 -0
  219. package/dist/is-select-option.cjs +1 -1
  220. package/dist/is-select-option.d.cts +14 -2
  221. package/dist/is-select-option.d.cts.map +1 -0
  222. package/dist/is-select-option.d.mts +14 -2
  223. package/dist/is-select-option.d.mts.map +1 -0
  224. package/dist/is-select-option.mjs +2 -1
  225. package/dist/is-select-option.mjs.map +1 -0
  226. package/dist/is-set-array.cjs +1 -1
  227. package/dist/is-set-array.d.cts +11 -2
  228. package/dist/is-set-array.d.cts.map +1 -0
  229. package/dist/is-set-array.d.mts +11 -2
  230. package/dist/is-set-array.d.mts.map +1 -0
  231. package/dist/is-set-array.mjs +2 -1
  232. package/dist/is-set-array.mjs.map +1 -0
  233. package/dist/is-set-object.cjs +1 -1
  234. package/dist/is-set-object.d.cts +11 -2
  235. package/dist/is-set-object.d.cts.map +1 -0
  236. package/dist/is-set-object.d.mts +11 -2
  237. package/dist/is-set-object.d.mts.map +1 -0
  238. package/dist/is-set-object.mjs +2 -1
  239. package/dist/is-set-object.mjs.map +1 -0
  240. package/dist/is-set-string.cjs +1 -1
  241. package/dist/is-set-string.d.cts +11 -2
  242. package/dist/is-set-string.d.cts.map +1 -0
  243. package/dist/is-set-string.d.mts +11 -2
  244. package/dist/is-set-string.d.mts.map +1 -0
  245. package/dist/is-set-string.mjs +2 -1
  246. package/dist/is-set-string.mjs.map +1 -0
  247. package/dist/is-set.cjs +1 -1
  248. package/dist/is-set.d.cts +11 -2
  249. package/dist/is-set.d.cts.map +1 -0
  250. package/dist/is-set.d.mts +11 -2
  251. package/dist/is-set.d.mts.map +1 -0
  252. package/dist/is-set.mjs +2 -1
  253. package/dist/is-set.mjs.map +1 -0
  254. package/dist/is-string.cjs +1 -1
  255. package/dist/is-string.d.cts +5 -2
  256. package/dist/is-string.d.cts.map +1 -0
  257. package/dist/is-string.d.mts +5 -2
  258. package/dist/is-string.d.mts.map +1 -0
  259. package/dist/is-string.mjs +2 -1
  260. package/dist/is-string.mjs.map +1 -0
  261. package/dist/is-symbol.cjs +1 -1
  262. package/dist/is-symbol.d.cts +5 -2
  263. package/dist/is-symbol.d.cts.map +1 -0
  264. package/dist/is-symbol.d.mts +5 -2
  265. package/dist/is-symbol.d.mts.map +1 -0
  266. package/dist/is-symbol.mjs +2 -1
  267. package/dist/is-symbol.mjs.map +1 -0
  268. package/dist/is-typed-array.cjs +1 -1
  269. package/dist/is-typed-array.d.cts +5 -2
  270. package/dist/is-typed-array.d.cts.map +1 -0
  271. package/dist/is-typed-array.d.mts +5 -2
  272. package/dist/is-typed-array.d.mts.map +1 -0
  273. package/dist/is-typed-array.mjs +2 -1
  274. package/dist/is-typed-array.mjs.map +1 -0
  275. package/dist/is-typed.cjs +1 -1
  276. package/dist/is-typed.d.cts +14 -2
  277. package/dist/is-typed.d.cts.map +1 -0
  278. package/dist/is-typed.d.mts +14 -2
  279. package/dist/is-typed.d.mts.map +1 -0
  280. package/dist/is-typed.mjs +2 -1
  281. package/dist/is-typed.mjs.map +1 -0
  282. package/dist/is-undefined.cjs +1 -1
  283. package/dist/is-undefined.d.cts +5 -2
  284. package/dist/is-undefined.d.cts.map +1 -0
  285. package/dist/is-undefined.d.mts +5 -2
  286. package/dist/is-undefined.d.mts.map +1 -0
  287. package/dist/is-undefined.mjs +2 -1
  288. package/dist/is-undefined.mjs.map +1 -0
  289. package/dist/is-url.cjs +1 -1
  290. package/dist/is-url.d.cts +11 -2
  291. package/dist/is-url.d.cts.map +1 -0
  292. package/dist/is-url.d.mts +11 -2
  293. package/dist/is-url.d.mts.map +1 -0
  294. package/dist/is-url.mjs +2 -1
  295. package/dist/is-url.mjs.map +1 -0
  296. package/dist/property-exists.cjs +1 -1
  297. package/dist/property-exists.d.cts +20 -2
  298. package/dist/property-exists.d.cts.map +1 -0
  299. package/dist/property-exists.d.mts +20 -2
  300. package/dist/property-exists.d.mts.map +1 -0
  301. package/dist/property-exists.mjs +2 -1
  302. package/dist/property-exists.mjs.map +1 -0
  303. package/dist/type-detect.cjs +1 -1
  304. package/dist/type-detect.d.cts +5 -2
  305. package/dist/type-detect.d.cts.map +1 -0
  306. package/dist/type-detect.d.mts +5 -2
  307. package/dist/type-detect.d.mts.map +1 -0
  308. package/dist/type-detect.mjs +2 -1
  309. package/dist/type-detect.mjs.map +1 -0
  310. package/dist/types/src/base.cjs +1 -0
  311. package/dist/{base-BghPfa26.d.mts → types/src/base.d.cts} +2 -2
  312. package/dist/types/src/base.d.cts.map +1 -0
  313. package/dist/{base-DsupRZHl.d.cts → types/src/base.d.mts} +2 -2
  314. package/dist/types/src/base.d.mts.map +1 -0
  315. package/dist/types/src/base.mjs +2 -0
  316. package/dist/types/src/base.mjs.map +1 -0
  317. package/dist/types/src/file.d.cts +24 -0
  318. package/dist/types/src/file.d.cts.map +1 -0
  319. package/dist/types/src/file.d.mts +24 -0
  320. package/dist/types/src/file.d.mts.map +1 -0
  321. package/dist/{is-select-option-B5qnA3jc.d.cts → types/src/form.d.cts} +3 -12
  322. package/dist/types/src/form.d.cts.map +1 -0
  323. package/dist/{is-select-option-DokUPHZT.d.mts → types/src/form.d.mts} +3 -12
  324. package/dist/types/src/form.d.mts.map +1 -0
  325. package/dist/types/src/messages.d.cts +16 -0
  326. package/dist/types/src/messages.d.cts.map +1 -0
  327. package/dist/types/src/messages.d.mts +16 -0
  328. package/dist/types/src/messages.d.mts.map +1 -0
  329. package/dist/{number-HSvmYyl0.d.mts → types/src/number.d.cts} +2 -2
  330. package/dist/types/src/number.d.cts.map +1 -0
  331. package/dist/{number-lymv4bwC.d.cts → types/src/number.d.mts} +2 -2
  332. package/dist/types/src/number.d.mts.map +1 -0
  333. package/dist/{is-deep-key-CDPjONep.d.cts → types/src/object.d.cts} +3 -39
  334. package/dist/types/src/object.d.cts.map +1 -0
  335. package/dist/{is-deep-key-R3slkUpl.d.mts → types/src/object.d.mts} +3 -39
  336. package/dist/types/src/object.d.mts.map +1 -0
  337. package/dist/{utilities-BcSwta4F.d.cts → types/src/utilities.d.cts} +2 -2
  338. package/dist/types/src/utilities.d.cts.map +1 -0
  339. package/dist/{utilities-Dj_-Bvo1.d.mts → types/src/utilities.d.mts} +2 -2
  340. package/dist/types/src/utilities.d.mts.map +1 -0
  341. package/dist/types/src/validations.d.cts +15 -0
  342. package/dist/types/src/validations.d.cts.map +1 -0
  343. package/dist/types/src/validations.d.mts +15 -0
  344. package/dist/types/src/validations.d.mts.map +1 -0
  345. package/package.json +3 -3
  346. package/dist/base-BghPfa26.d.mts.map +0 -1
  347. package/dist/base-DsupRZHl.d.cts.map +0 -1
  348. package/dist/get-object-tag-BHnhgixj.cjs +0 -1
  349. package/dist/get-object-tag-D0q0p9ux.d.mts +0 -11
  350. package/dist/get-object-tag-D0q0p9ux.d.mts.map +0 -1
  351. package/dist/get-object-tag-DF2FAXqH.mjs +0 -2
  352. package/dist/get-object-tag-DF2FAXqH.mjs.map +0 -1
  353. package/dist/get-object-tag-Tv3TsAc5.d.cts +0 -11
  354. package/dist/get-object-tag-Tv3TsAc5.d.cts.map +0 -1
  355. package/dist/is-array-like-BlG3BXac.mjs +0 -2
  356. package/dist/is-array-like-BlG3BXac.mjs.map +0 -1
  357. package/dist/is-array-like-CWfL33X9.d.mts +0 -11
  358. package/dist/is-array-like-CWfL33X9.d.mts.map +0 -1
  359. package/dist/is-array-like-DbVeBoEe.cjs +0 -1
  360. package/dist/is-array-like-WgfvtfKC.d.cts +0 -11
  361. package/dist/is-array-like-WgfvtfKC.d.cts.map +0 -1
  362. package/dist/is-async-iterable-Ba5xZQE9.cjs +0 -1
  363. package/dist/is-async-iterable-C7_r2vwP.d.cts +0 -11
  364. package/dist/is-async-iterable-C7_r2vwP.d.cts.map +0 -1
  365. package/dist/is-async-iterable-CI6-qnZ-.mjs +0 -2
  366. package/dist/is-async-iterable-CI6-qnZ-.mjs.map +0 -1
  367. package/dist/is-async-iterable-hrJii_4u.d.mts +0 -11
  368. package/dist/is-async-iterable-hrJii_4u.d.mts.map +0 -1
  369. package/dist/is-bigint-B0CqvS9s.cjs +0 -1
  370. package/dist/is-bigint-BlaQe4zL.d.cts +0 -20
  371. package/dist/is-bigint-BlaQe4zL.d.cts.map +0 -1
  372. package/dist/is-bigint-C87sK5hA.mjs +0 -2
  373. package/dist/is-bigint-C87sK5hA.mjs.map +0 -1
  374. package/dist/is-bigint-VHcMqIR3.d.mts +0 -20
  375. package/dist/is-bigint-VHcMqIR3.d.mts.map +0 -1
  376. package/dist/is-boolean-DAXt0s9b.mjs +0 -2
  377. package/dist/is-boolean-DAXt0s9b.mjs.map +0 -1
  378. package/dist/is-boolean-DRzqWnBl.cjs +0 -1
  379. package/dist/is-boolean-Doo5mVEJ.d.mts +0 -11
  380. package/dist/is-boolean-Doo5mVEJ.d.mts.map +0 -1
  381. package/dist/is-boolean-rsYcElxd.d.cts +0 -11
  382. package/dist/is-boolean-rsYcElxd.d.cts.map +0 -1
  383. package/dist/is-buffer-B3W8nBrK.d.cts +0 -9
  384. package/dist/is-buffer-B3W8nBrK.d.cts.map +0 -1
  385. package/dist/is-buffer-BhNtqu5n.mjs +0 -2
  386. package/dist/is-buffer-BhNtqu5n.mjs.map +0 -1
  387. package/dist/is-buffer-CSI0AMZS.d.mts +0 -9
  388. package/dist/is-buffer-CSI0AMZS.d.mts.map +0 -1
  389. package/dist/is-buffer-D9p_5l0d.cjs +0 -1
  390. package/dist/is-collection-Ceu4_dCf.d.mts +0 -14
  391. package/dist/is-collection-Ceu4_dCf.d.mts.map +0 -1
  392. package/dist/is-collection-DidPvByC.mjs +0 -2
  393. package/dist/is-collection-DidPvByC.mjs.map +0 -1
  394. package/dist/is-collection-IKoUfFa7.cjs +0 -1
  395. package/dist/is-collection-e7yAmi3F.d.cts +0 -14
  396. package/dist/is-collection-e7yAmi3F.d.cts.map +0 -1
  397. package/dist/is-date-BecRMVku.d.mts +0 -20
  398. package/dist/is-date-BecRMVku.d.mts.map +0 -1
  399. package/dist/is-date-CWjcEKXA.cjs +0 -1
  400. package/dist/is-date-CcOOgtny.mjs +0 -2
  401. package/dist/is-date-CcOOgtny.mjs.map +0 -1
  402. package/dist/is-date-Dmz-M0ET.d.cts +0 -20
  403. package/dist/is-date-Dmz-M0ET.d.cts.map +0 -1
  404. package/dist/is-deep-key-CDPjONep.d.cts.map +0 -1
  405. package/dist/is-deep-key-Ck2Hz7YJ.cjs +0 -1
  406. package/dist/is-deep-key-DShi6eYB.mjs +0 -2
  407. package/dist/is-deep-key-DShi6eYB.mjs.map +0 -1
  408. package/dist/is-deep-key-R3slkUpl.d.mts.map +0 -1
  409. package/dist/is-empty-CcxcCbO0.d.cts +0 -12
  410. package/dist/is-empty-CcxcCbO0.d.cts.map +0 -1
  411. package/dist/is-empty-DQObAY-0.mjs +0 -2
  412. package/dist/is-empty-DQObAY-0.mjs.map +0 -1
  413. package/dist/is-empty-DVetNKe9.cjs +0 -1
  414. package/dist/is-empty-bCaTRGIB.d.mts +0 -12
  415. package/dist/is-empty-bCaTRGIB.d.mts.map +0 -1
  416. package/dist/is-empty-object-C4Awcmki.d.mts +0 -18
  417. package/dist/is-empty-object-C4Awcmki.d.mts.map +0 -1
  418. package/dist/is-empty-object-DrM4h0oW.cjs +0 -1
  419. package/dist/is-empty-object-N0ex-Rjl.mjs +0 -2
  420. package/dist/is-empty-object-N0ex-Rjl.mjs.map +0 -1
  421. package/dist/is-empty-object-SnajGsQ2.d.cts +0 -18
  422. package/dist/is-empty-object-SnajGsQ2.d.cts.map +0 -1
  423. package/dist/is-empty-string-01PpHo0h.mjs +0 -2
  424. package/dist/is-empty-string-01PpHo0h.mjs.map +0 -1
  425. package/dist/is-empty-string-8Huv7y1z.cjs +0 -1
  426. package/dist/is-empty-string-BlLKjNEc.d.mts +0 -11
  427. package/dist/is-empty-string-BlLKjNEc.d.mts.map +0 -1
  428. package/dist/is-empty-string-CGf43g5Z.d.cts +0 -11
  429. package/dist/is-empty-string-CGf43g5Z.d.cts.map +0 -1
  430. package/dist/is-equal-BzPzI-pB.cjs +0 -1
  431. package/dist/is-equal-CYwTrE3V.d.cts +0 -5
  432. package/dist/is-equal-CYwTrE3V.d.cts.map +0 -1
  433. package/dist/is-equal-D4RPxWam.d.mts +0 -5
  434. package/dist/is-equal-D4RPxWam.d.mts.map +0 -1
  435. package/dist/is-equal-I836HuAx.mjs +0 -2
  436. package/dist/is-equal-I836HuAx.mjs.map +0 -1
  437. package/dist/is-error-CCOglM_7.d.mts +0 -21
  438. package/dist/is-error-CCOglM_7.d.mts.map +0 -1
  439. package/dist/is-error-D1FKoV2p.cjs +0 -1
  440. package/dist/is-error-DR_jKXbr.d.cts +0 -21
  441. package/dist/is-error-DR_jKXbr.d.cts.map +0 -1
  442. package/dist/is-error-nekb2Eit.mjs +0 -2
  443. package/dist/is-error-nekb2Eit.mjs.map +0 -1
  444. package/dist/is-file-result-5vpaq4NL.mjs +0 -2
  445. package/dist/is-file-result-5vpaq4NL.mjs.map +0 -1
  446. package/dist/is-file-result-B-ALEhm0.d.mts +0 -56
  447. package/dist/is-file-result-B-ALEhm0.d.mts.map +0 -1
  448. package/dist/is-file-result-Bl1xTRmY.cjs +0 -1
  449. package/dist/is-file-result-DW5cnH95.d.cts +0 -56
  450. package/dist/is-file-result-DW5cnH95.d.cts.map +0 -1
  451. package/dist/is-float-C6J1LRqg.cjs +0 -1
  452. package/dist/is-float-CfmYc3k6.d.mts +0 -14
  453. package/dist/is-float-CfmYc3k6.d.mts.map +0 -1
  454. package/dist/is-float-DulF06Fh.mjs +0 -2
  455. package/dist/is-float-DulF06Fh.mjs.map +0 -1
  456. package/dist/is-float-DvyATqOQ.d.cts +0 -14
  457. package/dist/is-float-DvyATqOQ.d.cts.map +0 -1
  458. package/dist/is-function-CR97Wcb4.d.mts +0 -15
  459. package/dist/is-function-CR97Wcb4.d.mts.map +0 -1
  460. package/dist/is-function-CZGGR0qT.mjs +0 -2
  461. package/dist/is-function-CZGGR0qT.mjs.map +0 -1
  462. package/dist/is-function-Ge8gcRnx.cjs +0 -1
  463. package/dist/is-function-IbkaFS4R.d.cts +0 -15
  464. package/dist/is-function-IbkaFS4R.d.cts.map +0 -1
  465. package/dist/is-integer-BhXT9fEE.mjs +0 -2
  466. package/dist/is-integer-BhXT9fEE.mjs.map +0 -1
  467. package/dist/is-integer-DBgHgbTb.cjs +0 -1
  468. package/dist/is-integer-kq1ee5T_.d.mts +0 -11
  469. package/dist/is-integer-kq1ee5T_.d.mts.map +0 -1
  470. package/dist/is-integer-t2K_aeI-.d.cts +0 -11
  471. package/dist/is-integer-t2K_aeI-.d.cts.map +0 -1
  472. package/dist/is-mergeable-object-BKccPMFM.mjs +0 -2
  473. package/dist/is-mergeable-object-BKccPMFM.mjs.map +0 -1
  474. package/dist/is-mergeable-object-BdooAUkk.d.cts +0 -5
  475. package/dist/is-mergeable-object-BdooAUkk.d.cts.map +0 -1
  476. package/dist/is-mergeable-object-Ch4GsBfV.d.mts +0 -5
  477. package/dist/is-mergeable-object-Ch4GsBfV.d.mts.map +0 -1
  478. package/dist/is-mergeable-object-D0KYh_gn.cjs +0 -1
  479. package/dist/is-non-null-object-Ctm4-rn6.cjs +0 -1
  480. package/dist/is-non-null-object-DESgjZyf.mjs +0 -2
  481. package/dist/is-non-null-object-DESgjZyf.mjs.map +0 -1
  482. package/dist/is-not-empty-DU-gI96j.d.cts +0 -11
  483. package/dist/is-not-empty-DU-gI96j.d.cts.map +0 -1
  484. package/dist/is-not-empty-QCNAwO70.cjs +0 -1
  485. package/dist/is-not-empty-VPPuIxfe.d.mts +0 -11
  486. package/dist/is-not-empty-VPPuIxfe.d.mts.map +0 -1
  487. package/dist/is-not-empty-_qzX24LT.mjs +0 -2
  488. package/dist/is-not-empty-_qzX24LT.mjs.map +0 -1
  489. package/dist/is-null-CZh6OomR.cjs +0 -1
  490. package/dist/is-null-DBoMXXAf.mjs +0 -2
  491. package/dist/is-null-DBoMXXAf.mjs.map +0 -1
  492. package/dist/is-null-envBEnO5.d.mts +0 -5
  493. package/dist/is-null-envBEnO5.d.mts.map +0 -1
  494. package/dist/is-null-mdbQqgkD.d.cts +0 -5
  495. package/dist/is-null-mdbQqgkD.d.cts.map +0 -1
  496. package/dist/is-number-B9zBD5P5.d.mts +0 -21
  497. package/dist/is-number-B9zBD5P5.d.mts.map +0 -1
  498. package/dist/is-number-BN-mcUXr.d.cts +0 -21
  499. package/dist/is-number-BN-mcUXr.d.cts.map +0 -1
  500. package/dist/is-number-ChPAVili.mjs +0 -2
  501. package/dist/is-number-ChPAVili.mjs.map +0 -1
  502. package/dist/is-number-ijCVauur.cjs +0 -1
  503. package/dist/is-object-ANQi7JgS.mjs +0 -2
  504. package/dist/is-object-ANQi7JgS.mjs.map +0 -1
  505. package/dist/is-object-CqEZ2nHi.d.mts +0 -35
  506. package/dist/is-object-CqEZ2nHi.d.mts.map +0 -1
  507. package/dist/is-object-Dm1523kn.cjs +0 -1
  508. package/dist/is-object-index-CaLUkJ03.d.mts +0 -11
  509. package/dist/is-object-index-CaLUkJ03.d.mts.map +0 -1
  510. package/dist/is-object-index-ClUQyslC.cjs +0 -1
  511. package/dist/is-object-index-CwTThA-X.mjs +0 -2
  512. package/dist/is-object-index-CwTThA-X.mjs.map +0 -1
  513. package/dist/is-object-index-OiD7O1-t.d.cts +0 -11
  514. package/dist/is-object-index-OiD7O1-t.d.cts.map +0 -1
  515. package/dist/is-object-vHTx3owB.d.cts +0 -35
  516. package/dist/is-object-vHTx3owB.d.cts.map +0 -1
  517. package/dist/is-plain-object-C_RxAc-k.d.cts +0 -56
  518. package/dist/is-plain-object-C_RxAc-k.d.cts.map +0 -1
  519. package/dist/is-plain-object-Cqr8u4ef.mjs +0 -2
  520. package/dist/is-plain-object-Cqr8u4ef.mjs.map +0 -1
  521. package/dist/is-plain-object-D0i2qmvk.d.mts +0 -56
  522. package/dist/is-plain-object-D0i2qmvk.d.mts.map +0 -1
  523. package/dist/is-plain-object-DuvbtXws.cjs +0 -1
  524. package/dist/is-primitive-BsdQZkNT.mjs +0 -2
  525. package/dist/is-primitive-BsdQZkNT.mjs.map +0 -1
  526. package/dist/is-primitive-C390YHii.d.cts +0 -5
  527. package/dist/is-primitive-C390YHii.d.cts.map +0 -1
  528. package/dist/is-primitive-CofpOCbi.d.mts +0 -5
  529. package/dist/is-primitive-CofpOCbi.d.mts.map +0 -1
  530. package/dist/is-primitive-DTb1k22w.cjs +0 -1
  531. package/dist/is-promise-5PXY2aAR.d.mts +0 -21
  532. package/dist/is-promise-5PXY2aAR.d.mts.map +0 -1
  533. package/dist/is-promise-BaPgf52D.d.cts +0 -21
  534. package/dist/is-promise-BaPgf52D.d.cts.map +0 -1
  535. package/dist/is-promise-D8fY4qSb.mjs +0 -2
  536. package/dist/is-promise-D8fY4qSb.mjs.map +0 -1
  537. package/dist/is-promise-DE9AP6eb.cjs +0 -1
  538. package/dist/is-react-element-BBgqI-yD.d.cts +0 -5
  539. package/dist/is-react-element-BBgqI-yD.d.cts.map +0 -1
  540. package/dist/is-react-element-CyrQE5Qy.d.mts +0 -5
  541. package/dist/is-react-element-CyrQE5Qy.d.mts.map +0 -1
  542. package/dist/is-react-element-GwN-78Xk.cjs +0 -1
  543. package/dist/is-react-element-s285_TUk.mjs +0 -2
  544. package/dist/is-react-element-s285_TUk.mjs.map +0 -1
  545. package/dist/is-ref-BiTQudvt.d.mts +0 -14
  546. package/dist/is-ref-BiTQudvt.d.mts.map +0 -1
  547. package/dist/is-ref-BqQN-H_W.cjs +0 -1
  548. package/dist/is-ref-C7Ce1mFX.d.cts +0 -14
  549. package/dist/is-ref-C7Ce1mFX.d.cts.map +0 -1
  550. package/dist/is-ref-DrnjEWuV.mjs +0 -2
  551. package/dist/is-ref-DrnjEWuV.mjs.map +0 -1
  552. package/dist/is-regexp-BRY1zuVr.d.mts +0 -20
  553. package/dist/is-regexp-BRY1zuVr.d.mts.map +0 -1
  554. package/dist/is-regexp-BWzNkf_C.d.cts +0 -20
  555. package/dist/is-regexp-BWzNkf_C.d.cts.map +0 -1
  556. package/dist/is-regexp-Beh3UwFi.mjs +0 -2
  557. package/dist/is-regexp-Beh3UwFi.mjs.map +0 -1
  558. package/dist/is-regexp-CLE6yUfd.cjs +0 -1
  559. package/dist/is-select-option-B5qnA3jc.d.cts.map +0 -1
  560. package/dist/is-select-option-DlTYFdDD.cjs +0 -1
  561. package/dist/is-select-option-DokUPHZT.d.mts.map +0 -1
  562. package/dist/is-select-option-U8pDtgdu.mjs +0 -2
  563. package/dist/is-select-option-U8pDtgdu.mjs.map +0 -1
  564. package/dist/is-set-BKGJRvlT.cjs +0 -1
  565. package/dist/is-set-DHpYu7nt.d.cts +0 -11
  566. package/dist/is-set-DHpYu7nt.d.cts.map +0 -1
  567. package/dist/is-set-Tym9nZwJ.d.mts +0 -11
  568. package/dist/is-set-Tym9nZwJ.d.mts.map +0 -1
  569. package/dist/is-set-XlU8yblR.mjs +0 -2
  570. package/dist/is-set-XlU8yblR.mjs.map +0 -1
  571. package/dist/is-set-array-BuFd2cLT.d.cts +0 -11
  572. package/dist/is-set-array-BuFd2cLT.d.cts.map +0 -1
  573. package/dist/is-set-array-C8erkOGG.cjs +0 -1
  574. package/dist/is-set-array-D6GXc5K_.mjs +0 -2
  575. package/dist/is-set-array-D6GXc5K_.mjs.map +0 -1
  576. package/dist/is-set-array-jWb--6v8.d.mts +0 -11
  577. package/dist/is-set-array-jWb--6v8.d.mts.map +0 -1
  578. package/dist/is-set-object-BC019q7K.d.mts +0 -11
  579. package/dist/is-set-object-BC019q7K.d.mts.map +0 -1
  580. package/dist/is-set-object-Cz1QFuwH.cjs +0 -1
  581. package/dist/is-set-object-DExQ3zYh.d.cts +0 -11
  582. package/dist/is-set-object-DExQ3zYh.d.cts.map +0 -1
  583. package/dist/is-set-object-m4I3zBXN.mjs +0 -2
  584. package/dist/is-set-object-m4I3zBXN.mjs.map +0 -1
  585. package/dist/is-set-string-B4g6w3Ao.mjs +0 -2
  586. package/dist/is-set-string-B4g6w3Ao.mjs.map +0 -1
  587. package/dist/is-set-string-BR3f8OLj.cjs +0 -1
  588. package/dist/is-set-string-D3GGXdVc.d.mts +0 -11
  589. package/dist/is-set-string-D3GGXdVc.d.mts.map +0 -1
  590. package/dist/is-set-string-DvPRqQ7I.d.cts +0 -11
  591. package/dist/is-set-string-DvPRqQ7I.d.cts.map +0 -1
  592. package/dist/is-string-25AuUYxV.mjs +0 -2
  593. package/dist/is-string-25AuUYxV.mjs.map +0 -1
  594. package/dist/is-string-BmMYO2ay.d.cts +0 -5
  595. package/dist/is-string-BmMYO2ay.d.cts.map +0 -1
  596. package/dist/is-string-C8M6iZP3.cjs +0 -1
  597. package/dist/is-string-CHChgess.d.mts +0 -5
  598. package/dist/is-string-CHChgess.d.mts.map +0 -1
  599. package/dist/is-symbol-B3bYbkXB.d.cts +0 -5
  600. package/dist/is-symbol-B3bYbkXB.d.cts.map +0 -1
  601. package/dist/is-symbol-Bv9PzCUy.cjs +0 -1
  602. package/dist/is-symbol-D_u8UXTL.mjs +0 -2
  603. package/dist/is-symbol-D_u8UXTL.mjs.map +0 -1
  604. package/dist/is-symbol-Da3X6_5Z.d.mts +0 -5
  605. package/dist/is-symbol-Da3X6_5Z.d.mts.map +0 -1
  606. package/dist/is-typed-BqNSbnTJ.d.mts +0 -14
  607. package/dist/is-typed-BqNSbnTJ.d.mts.map +0 -1
  608. package/dist/is-typed-C4R6VJn5.mjs +0 -2
  609. package/dist/is-typed-C4R6VJn5.mjs.map +0 -1
  610. package/dist/is-typed-CxfGWrLF.d.cts +0 -14
  611. package/dist/is-typed-CxfGWrLF.d.cts.map +0 -1
  612. package/dist/is-typed-array--rJ89kK-.cjs +0 -1
  613. package/dist/is-typed-array-BElfTaKt.mjs +0 -2
  614. package/dist/is-typed-array-BElfTaKt.mjs.map +0 -1
  615. package/dist/is-typed-array-BhzKADmY.d.mts +0 -5
  616. package/dist/is-typed-array-BhzKADmY.d.mts.map +0 -1
  617. package/dist/is-typed-array-D42U77hG.d.cts +0 -5
  618. package/dist/is-typed-array-D42U77hG.d.cts.map +0 -1
  619. package/dist/is-typed-nhM341AY.cjs +0 -1
  620. package/dist/is-undefined-8YL_WG1_.d.mts +0 -5
  621. package/dist/is-undefined-8YL_WG1_.d.mts.map +0 -1
  622. package/dist/is-undefined-CocoROYF.cjs +0 -1
  623. package/dist/is-undefined-DbcFVo7P.d.cts +0 -5
  624. package/dist/is-undefined-DbcFVo7P.d.cts.map +0 -1
  625. package/dist/is-undefined-zJ4jMmsc.mjs +0 -2
  626. package/dist/is-undefined-zJ4jMmsc.mjs.map +0 -1
  627. package/dist/is-url-B232i4b5.d.mts +0 -11
  628. package/dist/is-url-B232i4b5.d.mts.map +0 -1
  629. package/dist/is-url-BExxFY5T.cjs +0 -1
  630. package/dist/is-url-Bg2vBFiD.mjs +0 -2
  631. package/dist/is-url-Bg2vBFiD.mjs.map +0 -1
  632. package/dist/is-url-ClJ_Hmae.d.cts +0 -11
  633. package/dist/is-url-ClJ_Hmae.d.cts.map +0 -1
  634. package/dist/number-HSvmYyl0.d.mts.map +0 -1
  635. package/dist/number-lymv4bwC.d.cts.map +0 -1
  636. package/dist/property-exists-B4QTYKG6.d.mts +0 -20
  637. package/dist/property-exists-B4QTYKG6.d.mts.map +0 -1
  638. package/dist/property-exists-BUPlKKW9.d.cts +0 -20
  639. package/dist/property-exists-BUPlKKW9.d.cts.map +0 -1
  640. package/dist/property-exists-YUMbdTfN.cjs +0 -1
  641. package/dist/property-exists-clG9W4n9.mjs +0 -2
  642. package/dist/property-exists-clG9W4n9.mjs.map +0 -1
  643. package/dist/type-detect-D9u_obxe.mjs +0 -2
  644. package/dist/type-detect-D9u_obxe.mjs.map +0 -1
  645. package/dist/type-detect-Ddd2473y.cjs +0 -1
  646. package/dist/type-detect-DkhvTvm2.d.cts +0 -5
  647. package/dist/type-detect-DkhvTvm2.d.cts.map +0 -1
  648. package/dist/type-detect-lSIXsSvX.d.mts +0 -5
  649. package/dist/type-detect-lSIXsSvX.d.mts.map +0 -1
  650. package/dist/utilities-BcSwta4F.d.cts.map +0 -1
  651. package/dist/utilities-Dj_-Bvo1.d.mts.map +0 -1
@@ -1,2 +1,14 @@
1
- import { t as isCollection } from "./is-collection-e7yAmi3F.cjs";
2
- export { isCollection };
1
+ import { Collection } from "./types/src/base.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 };
14
+ //# sourceMappingURL=is-collection.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-collection.d.cts","names":[],"sources":["../src/is-collection.ts"],"sourcesContent":[],"mappings":";;;;;;AAmCA;;;;iBAAgB,YAAA,uBAAmC"}
@@ -1,2 +1,14 @@
1
- import { t as isCollection } from "./is-collection-Ceu4_dCf.mjs";
2
- export { isCollection };
1
+ import { Collection } from "./types/src/base.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 };
14
+ //# sourceMappingURL=is-collection.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-collection.d.mts","names":[],"sources":["../src/is-collection.ts"],"sourcesContent":[],"mappings":";;;;;;AAmCA;;;;iBAAgB,YAAA,uBAAmC"}
@@ -1 +1,2 @@
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
+ import{typeDetect as e}from"./type-detect.mjs";const t=new Set([`Arguments`,`Array`,`Map`,`Object`,`Set`]);function n(n){return t.has(e(n))}export{n as isCollection};
2
+ //# sourceMappingURL=is-collection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-collection.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"}
package/dist/is-date.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./is-date-CWjcEKXA.cjs`);exports.isDate=e.t;
1
+ const e=require(`./get-object-tag.cjs`),t=require(`./is-plain-object.cjs`),n=n=>t.isObjectLike(n)&&e.getObjectTag(n)==`[object Date]`;exports.isDate=n;
@@ -1,2 +1,20 @@
1
- import { t as isDate } from "./is-date-Dmz-M0ET.cjs";
2
- export { isDate };
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 };
20
+ //# sourceMappingURL=is-date.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date.d.cts","names":[],"sources":["../src/is-date.ts"],"sourcesContent":[],"mappings":";;AAoCA;;;;;;;;;;;;;;cAAa,qCAAoC"}
@@ -1,2 +1,20 @@
1
- import { t as isDate } from "./is-date-BecRMVku.mjs";
2
- export { isDate };
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 };
20
+ //# sourceMappingURL=is-date.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date.d.mts","names":[],"sources":["../src/is-date.ts"],"sourcesContent":[],"mappings":";;AAoCA;;;;;;;;;;;;;;cAAa,qCAAoC"}
package/dist/is-date.mjs CHANGED
@@ -1 +1,2 @@
1
- import{t as e}from"./is-date-CcOOgtny.mjs";export{e as isDate};
1
+ import{getObjectTag as e}from"./get-object-tag.mjs";import{isObjectLike as t}from"./is-plain-object.mjs";const n=n=>t(n)&&e(n)==`[object Date]`;export{n as isDate};
2
+ //# sourceMappingURL=is-date.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date.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":"yGAoCA,MAAa,EAAU,GACrB,EAAa,EAAM,EAAI,EAAa,EAAM,EAAI"}
@@ -1 +1 @@
1
- const e=require(`./is-deep-key-Ck2Hz7YJ.cjs`);exports.isDeepKey=e.t,exports.isKeyOrDeepKey=e.n;
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}}exports.isDeepKey=e,exports.isKeyOrDeepKey=t;
@@ -1,2 +1,41 @@
1
- import { n as isKeyOrDeepKey, t as isDeepKey } from "./is-deep-key-CDPjONep.cjs";
2
- export { isDeepKey, isKeyOrDeepKey };
1
+ import { DeepKey } from "./types/src/object.cjs";
2
+
3
+ //#region src/is-deep-key.d.ts
4
+
5
+ /**
6
+ * Checks if a given key is a deep key.
7
+ *
8
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
9
+ *
10
+ * @example
11
+ * isDeepKey('a.b') // true
12
+ * isDeepKey('a[b]') // true
13
+ * isDeepKey('a') // false
14
+ * isDeepKey(123) // false
15
+ * isDeepKey('a.b.c') // true
16
+ * isDeepKey('a[b][c]') // true
17
+ *
18
+ * @param key - The key to check.
19
+ * @returns Returns true if the key is a deep key, otherwise false.
20
+ */
21
+ declare function isDeepKey(key: PropertyKey): key is DeepKey<any>;
22
+ /**
23
+ * Checks if a given key is a deep key or normal (shallow key).
24
+ *
25
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
26
+ *
27
+ * @example
28
+ * isDeepKey('a.b') // true
29
+ * isDeepKey('a[b]') // true
30
+ * isDeepKey('a') // true
31
+ * isDeepKey(123) // false
32
+ * isDeepKey('a.b.c') // true
33
+ * isDeepKey('a[b][c]') // true
34
+ *
35
+ * @param key - The key to check.
36
+ * @returns Returns true if the key is a deep key, otherwise false.
37
+ */
38
+ declare function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any>;
39
+ //#endregion
40
+ export { isDeepKey, isKeyOrDeepKey };
41
+ //# sourceMappingURL=is-deep-key.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-deep-key.d.cts","names":[],"sources":["../src/is-deep-key.ts"],"sourcesContent":[],"mappings":";;;;;;AAoCA;AA4BA;;;;;;;;;;;;;iBA5BgB,SAAA,MAAe,qBAAqB;;;;;;;;;;;;;;;;;iBA4BpC,cAAA,MAAoB,qBAAqB"}
@@ -1,2 +1,41 @@
1
- import { n as isKeyOrDeepKey, t as isDeepKey } from "./is-deep-key-R3slkUpl.mjs";
2
- export { isDeepKey, isKeyOrDeepKey };
1
+ import { DeepKey } from "./types/src/object.mjs";
2
+
3
+ //#region src/is-deep-key.d.ts
4
+
5
+ /**
6
+ * Checks if a given key is a deep key.
7
+ *
8
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
9
+ *
10
+ * @example
11
+ * isDeepKey('a.b') // true
12
+ * isDeepKey('a[b]') // true
13
+ * isDeepKey('a') // false
14
+ * isDeepKey(123) // false
15
+ * isDeepKey('a.b.c') // true
16
+ * isDeepKey('a[b][c]') // true
17
+ *
18
+ * @param key - The key to check.
19
+ * @returns Returns true if the key is a deep key, otherwise false.
20
+ */
21
+ declare function isDeepKey(key: PropertyKey): key is DeepKey<any>;
22
+ /**
23
+ * Checks if a given key is a deep key or normal (shallow key).
24
+ *
25
+ * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
26
+ *
27
+ * @example
28
+ * isDeepKey('a.b') // true
29
+ * isDeepKey('a[b]') // true
30
+ * isDeepKey('a') // true
31
+ * isDeepKey(123) // false
32
+ * isDeepKey('a.b.c') // true
33
+ * isDeepKey('a[b][c]') // true
34
+ *
35
+ * @param key - The key to check.
36
+ * @returns Returns true if the key is a deep key, otherwise false.
37
+ */
38
+ declare function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any>;
39
+ //#endregion
40
+ export { isDeepKey, isKeyOrDeepKey };
41
+ //# sourceMappingURL=is-deep-key.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-deep-key.d.mts","names":[],"sources":["../src/is-deep-key.ts"],"sourcesContent":[],"mappings":";;;;;;AAoCA;AA4BA;;;;;;;;;;;;;iBA5BgB,SAAA,MAAe,qBAAqB;;;;;;;;;;;;;;;;;iBA4BpC,cAAA,MAAoB,qBAAqB"}
@@ -1 +1,2 @@
1
- import{n as e,t}from"./is-deep-key-DShi6eYB.mjs";export{t as isDeepKey,e as isKeyOrDeepKey};
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{e as isDeepKey,t as isKeyOrDeepKey};
2
+ //# sourceMappingURL=is-deep-key.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-deep-key.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"}
@@ -1 +1 @@
1
- const e=require(`./is-empty-object-DrM4h0oW.cjs`);exports.isEmptyObject=e.t,exports.isEmptyOrEmptyObject=e.n;
1
+ const e=require(`./is-empty.cjs`),t=e=>{try{return!!e||Object.keys(e??{}).length===0}catch{return!0}},n=n=>{try{return e.isEmpty(n)||t(n)}catch{return!0}};exports.isEmptyObject=t,exports.isEmptyOrEmptyObject=n;
@@ -1,2 +1,18 @@
1
- import { n as isEmptyOrEmptyObject, t as isEmptyObject } from "./is-empty-object-SnajGsQ2.cjs";
2
- export { isEmptyObject, isEmptyOrEmptyObject };
1
+ //#region src/is-empty-object.d.ts
2
+ /**
3
+ * Check if the provided value's type is `{}`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `{}`
7
+ */
8
+ declare const isEmptyObject: (value: unknown) => value is {};
9
+ /**
10
+ * Check if the provided value's type is `null` or `undefined` or `{}`
11
+ *
12
+ * @param value - The value to type check
13
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined` or `{}`
14
+ */
15
+ declare const isEmptyOrEmptyObject: (value: unknown) => boolean;
16
+ //#endregion
17
+ export { isEmptyObject, isEmptyOrEmptyObject };
18
+ //# sourceMappingURL=is-empty-object.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-object.d.cts","names":[],"sources":["../src/is-empty-object.ts"],"sourcesContent":[],"mappings":";;AA0BA;AAcA;;;;cAda;;;;;;;cAcA"}
@@ -1,2 +1,18 @@
1
- import { n as isEmptyOrEmptyObject, t as isEmptyObject } from "./is-empty-object-C4Awcmki.mjs";
2
- export { isEmptyObject, isEmptyOrEmptyObject };
1
+ //#region src/is-empty-object.d.ts
2
+ /**
3
+ * Check if the provided value's type is `{}`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `{}`
7
+ */
8
+ declare const isEmptyObject: (value: unknown) => value is {};
9
+ /**
10
+ * Check if the provided value's type is `null` or `undefined` or `{}`
11
+ *
12
+ * @param value - The value to type check
13
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined` or `{}`
14
+ */
15
+ declare const isEmptyOrEmptyObject: (value: unknown) => boolean;
16
+ //#endregion
17
+ export { isEmptyObject, isEmptyOrEmptyObject };
18
+ //# sourceMappingURL=is-empty-object.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-object.d.mts","names":[],"sources":["../src/is-empty-object.ts"],"sourcesContent":[],"mappings":";;AA0BA;AAcA;;;;cAda;;;;;;;cAcA"}
@@ -1 +1,2 @@
1
- import{n as e,t}from"./is-empty-object-N0ex-Rjl.mjs";export{t as isEmptyObject,e as isEmptyOrEmptyObject};
1
+ import{isEmpty as e}from"./is-empty.mjs";const t=e=>{try{return!!e||Object.keys(e??{}).length===0}catch{return!0}},n=n=>{try{return e(n)||t(n)}catch{return!0}};export{t as isEmptyObject,n as isEmptyOrEmptyObject};
2
+ //# sourceMappingURL=is-empty-object.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-object.mjs","names":[],"sources":["../src/is-empty-object.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 { isEmpty } from \"./is-empty\";\n\n/**\n * Check if the provided value's type is `{}`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `{}`\n */\nexport const isEmptyObject = (value: unknown): value is {} => {\n try {\n return Boolean(value) || Object.keys(value ?? {}).length === 0;\n } catch {\n return true;\n }\n};\n\n/**\n * Check if the provided value's type is `null` or `undefined` or `{}`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `null` or `undefined` or `{}`\n */\nexport const isEmptyOrEmptyObject = (value: unknown) => {\n try {\n return isEmpty(value) || isEmptyObject(value);\n } catch {\n return true;\n }\n};\n"],"mappings":"yCA0BA,MAAa,EAAiB,GAAgC,CAC5D,GAAI,CACF,MAAO,EAAQ,GAAU,OAAO,KAAK,GAAS,EAAE,CAAC,CAAC,SAAW,OACvD,CACN,MAAO,KAUE,EAAwB,GAAmB,CACtD,GAAI,CACF,OAAO,EAAQ,EAAM,EAAI,EAAc,EAAM,MACvC,CACN,MAAO"}
@@ -1 +1 @@
1
- const e=require(`./is-empty-string-8Huv7y1z.cjs`);exports.isEmptyString=e.t;
1
+ const e=require(`./types/src/base.cjs`),t=require(`./is-string.cjs`),n=n=>{try{return t.isString(n)&&n===e.EMPTY_STRING}catch{return!1}};exports.isEmptyString=n;
@@ -1,2 +1,11 @@
1
- import { t as isEmptyString } from "./is-empty-string-CGf43g5Z.cjs";
2
- export { isEmptyString };
1
+ //#region src/is-empty-string.d.ts
2
+ /**
3
+ * Determine if the type is string and is empty
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `""`
7
+ */
8
+ declare const isEmptyString: (value: unknown) => value is string;
9
+ //#endregion
10
+ export { isEmptyString };
11
+ //# sourceMappingURL=is-empty-string.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-string.d.cts","names":[],"sources":["../src/is-empty-string.ts"],"sourcesContent":[],"mappings":";;AA2BA;;;;;cAAa"}
@@ -1,2 +1,11 @@
1
- import { t as isEmptyString } from "./is-empty-string-BlLKjNEc.mjs";
2
- export { isEmptyString };
1
+ //#region src/is-empty-string.d.ts
2
+ /**
3
+ * Determine if the type is string and is empty
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `""`
7
+ */
8
+ declare const isEmptyString: (value: unknown) => value is string;
9
+ //#endregion
10
+ export { isEmptyString };
11
+ //# sourceMappingURL=is-empty-string.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-string.d.mts","names":[],"sources":["../src/is-empty-string.ts"],"sourcesContent":[],"mappings":";;AA2BA;;;;;cAAa"}
@@ -1 +1,2 @@
1
- import{t as e}from"./is-empty-string-01PpHo0h.mjs";export{e as isEmptyString};
1
+ import{EMPTY_STRING as e}from"./types/src/base.mjs";import{isString as t}from"./is-string.mjs";const n=n=>{try{return t(n)&&n===e}catch{return!1}};export{n as isEmptyString};
2
+ //# sourceMappingURL=is-empty-string.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-string.mjs","names":[],"sources":["../src/is-empty-string.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 { EMPTY_STRING } from \"@stryke/types/base\";\nimport { isString } from \"./is-string\";\n\n/**\n * Determine if the type is string and is empty\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `\"\"`\n */\nexport const isEmptyString = (value: unknown): value is string => {\n try {\n return isString(value) && value === EMPTY_STRING;\n } catch {\n return false;\n }\n};\n"],"mappings":"+FA2BA,MAAa,EAAiB,GAAoC,CAChE,GAAI,CACF,OAAO,EAAS,EAAM,EAAI,IAAU,OAC9B,CACN,MAAO"}
package/dist/is-empty.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./is-empty-DVetNKe9.cjs`);exports.isEmpty=e.t,exports.isEmptyAnything=e.n;
1
+ const e=require(`./is-date.cjs`),t=require(`./is-function.cjs`),n=require(`./is-null.cjs`),r=require(`./is-number.cjs`),i=require(`./is-symbol.cjs`),a=require(`./is-undefined.cjs`),o=e=>{try{return a.isUndefined(e)||n.isNull(e)}catch{return!1}},s=n=>{if(n===!0||n===!1||n==null)return!0;if(r.isNumber(n))return n===0;if(e.isDate(n))return Number.isNaN(n.getTime());if(t.isFunction(n)||i.isSymbol(n))return!1;let{length:a}=n;if(r.isNumber(a))return a===0;let{size:o}=n;return r.isNumber(o)?o===0:Object.keys(n).length===0};exports.isEmpty=o,exports.isEmptyAnything=s;
@@ -1,2 +1,12 @@
1
- import { n as isEmptyAnything, t as isEmpty } from "./is-empty-CcxcCbO0.cjs";
2
- export { isEmpty, isEmptyAnything };
1
+ //#region src/is-empty.d.ts
2
+ /**
3
+ * Check if the provided value's type is `null` or `undefined`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined`
7
+ */
8
+ declare const isEmpty: (value: unknown) => boolean;
9
+ declare const isEmptyAnything: (value: any) => boolean;
10
+ //#endregion
11
+ export { isEmpty, isEmptyAnything };
12
+ //# sourceMappingURL=is-empty.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty.d.cts","names":[],"sources":["../src/is-empty.ts"],"sourcesContent":[],"mappings":";;AA+BA;AAQA;;;;cARa;cAQA"}
@@ -1,2 +1,12 @@
1
- import { n as isEmptyAnything, t as isEmpty } from "./is-empty-bCaTRGIB.mjs";
2
- export { isEmpty, isEmptyAnything };
1
+ //#region src/is-empty.d.ts
2
+ /**
3
+ * Check if the provided value's type is `null` or `undefined`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined`
7
+ */
8
+ declare const isEmpty: (value: unknown) => boolean;
9
+ declare const isEmptyAnything: (value: any) => boolean;
10
+ //#endregion
11
+ export { isEmpty, isEmptyAnything };
12
+ //# sourceMappingURL=is-empty.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty.d.mts","names":[],"sources":["../src/is-empty.ts"],"sourcesContent":[],"mappings":";;AA+BA;AAQA;;;;cARa;cAQA"}
package/dist/is-empty.mjs CHANGED
@@ -1 +1,2 @@
1
- import{n as e,t}from"./is-empty-DQObAY-0.mjs";export{t as isEmpty,e as isEmptyAnything};
1
+ import{isDate as e}from"./is-date.mjs";import{isFunction as t}from"./is-function.mjs";import{isNull as n}from"./is-null.mjs";import{isNumber as r}from"./is-number.mjs";import{isSymbol as i}from"./is-symbol.mjs";import{isUndefined as a}from"./is-undefined.mjs";const o=e=>{try{return a(e)||n(e)}catch{return!1}},s=n=>{if(n===!0||n===!1||n==null)return!0;if(r(n))return n===0;if(e(n))return Number.isNaN(n.getTime());if(t(n)||i(n))return!1;let{length:a}=n;if(r(a))return a===0;let{size:o}=n;return r(o)?o===0:Object.keys(n).length===0};export{o as isEmpty,s as isEmptyAnything};
2
+ //# sourceMappingURL=is-empty.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty.mjs","names":[],"sources":["../src/is-empty.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 { isDate } from \"./is-date\";\nimport { isFunction } from \"./is-function\";\nimport { isNull } from \"./is-null\";\nimport { isNumber } from \"./is-number\";\nimport { isSymbol } from \"./is-symbol\";\nimport { isUndefined } from \"./is-undefined\";\n\n/**\n * Check if the provided value's type is `null` or `undefined`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `null` or `undefined`\n */\nexport const isEmpty = (value: unknown) => {\n try {\n return isUndefined(value) || isNull(value);\n } catch {\n return false;\n }\n};\n\nexport const isEmptyAnything = (value: any) => {\n if (value === true || value === false) return true;\n if (value === null || value === undefined) return true;\n if (isNumber(value)) return value === 0;\n if (isDate(value)) return Number.isNaN(value.getTime());\n if (isFunction(value)) return false;\n if (isSymbol(value)) return false;\n const { length } = value;\n if (isNumber(length)) return length === 0;\n const { size } = value;\n if (isNumber(size)) return size === 0;\n const keys = Object.keys(value).length;\n\n return keys === 0;\n};\n"],"mappings":"oQA+BA,MAAa,EAAW,GAAmB,CACzC,GAAI,CACF,OAAO,EAAY,EAAM,EAAI,EAAO,EAAM,MACpC,CACN,MAAO,KAIE,EAAmB,GAAe,CAE7C,GADI,IAAU,IAAQ,IAAU,IAC5B,GAAU,KAA6B,MAAO,GAClD,GAAI,EAAS,EAAM,CAAE,OAAO,IAAU,EACtC,GAAI,EAAO,EAAM,CAAE,OAAO,OAAO,MAAM,EAAM,SAAS,CAAC,CAEvD,GADI,EAAW,EAAM,EACjB,EAAS,EAAM,CAAE,MAAO,GAC5B,GAAM,CAAE,UAAW,EACnB,GAAI,EAAS,EAAO,CAAE,OAAO,IAAW,EACxC,GAAM,CAAE,QAAS,EAIjB,OAHI,EAAS,EAAK,CAAS,IAAS,EACvB,OAAO,KAAK,EAAM,CAAC,SAEhB"}
package/dist/is-equal.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./is-equal-BzPzI-pB.cjs`);exports.isEqual=e.t;
1
+ const e=(t,n)=>{if(Object.is(t,n))return!0;if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp&&n instanceof RegExp)return t.toString()===n.toString();if(typeof t!=`object`||!t||typeof n!=`object`||!n)return!1;let r=Reflect.ownKeys(t),i=Reflect.ownKeys(n);if(r.length!==i.length)return!1;for(let i of r)if(!Reflect.has(n,i)||!e(t[i],n[i]))return!1;return!0};exports.isEqual=e;
@@ -1,2 +1,5 @@
1
- import { t as isEqual } from "./is-equal-CYwTrE3V.cjs";
2
- export { isEqual };
1
+ //#region src/is-equal.d.ts
2
+ declare const isEqual: <TType>(x: TType, y: TType) => boolean;
3
+ //#endregion
4
+ export { isEqual };
5
+ //# sourceMappingURL=is-equal.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-equal.d.cts","names":[],"sources":["../src/is-equal.ts"],"sourcesContent":[],"mappings":";cAkBa,oBAAqB,UAAU"}
@@ -1,2 +1,5 @@
1
- import { t as isEqual } from "./is-equal-D4RPxWam.mjs";
2
- export { isEqual };
1
+ //#region src/is-equal.d.ts
2
+ declare const isEqual: <TType>(x: TType, y: TType) => boolean;
3
+ //#endregion
4
+ export { isEqual };
5
+ //# sourceMappingURL=is-equal.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-equal.d.mts","names":[],"sources":["../src/is-equal.ts"],"sourcesContent":[],"mappings":";cAkBa,oBAAqB,UAAU"}
package/dist/is-equal.mjs CHANGED
@@ -1 +1,2 @@
1
- import{t as e}from"./is-equal-I836HuAx.mjs";export{e as isEqual};
1
+ const e=(t,n)=>{if(Object.is(t,n))return!0;if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp&&n instanceof RegExp)return t.toString()===n.toString();if(typeof t!=`object`||!t||typeof n!=`object`||!n)return!1;let r=Reflect.ownKeys(t),i=Reflect.ownKeys(n);if(r.length!==i.length)return!1;for(let i of r)if(!Reflect.has(n,i)||!e(t[i],n[i]))return!1;return!0};export{e as isEqual};
2
+ //# sourceMappingURL=is-equal.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-equal.mjs","names":[],"sources":["../src/is-equal.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 isEqual = <TType>(x: TType, y: TType): boolean => {\n if (Object.is(x, y)) return true;\n if (x instanceof Date && y instanceof Date) {\n return x.getTime() === y.getTime();\n }\n if (x instanceof RegExp && y instanceof RegExp) {\n return x.toString() === y.toString();\n }\n if (\n typeof x !== \"object\" ||\n x === null ||\n typeof y !== \"object\" ||\n y === null\n ) {\n return false;\n }\n const keysX = Reflect.ownKeys(x as unknown as object) as (keyof typeof x)[];\n const keysY = Reflect.ownKeys(y as unknown as object);\n if (keysX.length !== keysY.length) return false;\n for (const element_ of keysX) {\n if (!Reflect.has(y as unknown as object, element_)) return false;\n if (!isEqual(x[element_], y[element_])) return false;\n }\n return true;\n};\n"],"mappings":"AAkBA,MAAa,GAAkB,EAAU,IAAsB,CAC7D,GAAI,OAAO,GAAG,EAAG,EAAE,CAAE,MAAO,GAC5B,GAAI,aAAa,MAAQ,aAAa,KACpC,OAAO,EAAE,SAAS,GAAK,EAAE,SAAS,CAEpC,GAAI,aAAa,QAAU,aAAa,OACtC,OAAO,EAAE,UAAU,GAAK,EAAE,UAAU,CAEtC,GACE,OAAO,GAAM,WACb,GACA,OAAO,GAAM,WACb,EAEA,MAAO,GAET,IAAM,EAAQ,QAAQ,QAAQ,EAAuB,CAC/C,EAAQ,QAAQ,QAAQ,EAAuB,CACrD,GAAI,EAAM,SAAW,EAAM,OAAQ,MAAO,GAC1C,IAAK,IAAM,KAAY,EAErB,GADI,CAAC,QAAQ,IAAI,EAAwB,EAAS,EAC9C,CAAC,EAAQ,EAAE,GAAW,EAAE,GAAU,CAAE,MAAO,GAEjD,MAAO"}
package/dist/is-error.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./is-error-D1FKoV2p.cjs`);exports.isError=e.t;
1
+ const e=require(`./get-object-tag.cjs`),t=require(`./is-plain-object.cjs`),n=require(`./is-object.cjs`),r=r=>{if(!n.isObject(r))return!1;let i=e.getObjectTag(r);return i===`[object Error]`||i===`[object DOMException]`||typeof r?.message==`string`&&typeof r?.name==`string`&&!t.isPlainObject(r)};exports.isError=r;
@@ -1,2 +1,21 @@
1
- import { t as isError } from "./is-error-DR_jKXbr.cjs";
2
- export { isError };
1
+ //#region src/is-error.d.ts
2
+ /**
3
+ * Checks if `obj` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
4
+ * `SyntaxError`, `TypeError`, or `URIError` object.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * isError(new Error)
9
+ * // => true
10
+ *
11
+ * isError(Error)
12
+ * // => false
13
+ * ```
14
+ *
15
+ * @param obj - The obj to check.
16
+ * @returns Returns `true` if `obj` is an error object, else `false`.
17
+ */
18
+ declare const isError: (obj: unknown) => obj is Error;
19
+ //#endregion
20
+ export { isError };
21
+ //# sourceMappingURL=is-error.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-error.d.cts","names":[],"sources":["../src/is-error.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;cAAa,kCAAiC"}
@@ -1,2 +1,21 @@
1
- import { t as isError } from "./is-error-CCOglM_7.mjs";
2
- export { isError };
1
+ //#region src/is-error.d.ts
2
+ /**
3
+ * Checks if `obj` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
4
+ * `SyntaxError`, `TypeError`, or `URIError` object.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * isError(new Error)
9
+ * // => true
10
+ *
11
+ * isError(Error)
12
+ * // => false
13
+ * ```
14
+ *
15
+ * @param obj - The obj to check.
16
+ * @returns Returns `true` if `obj` is an error object, else `false`.
17
+ */
18
+ declare const isError: (obj: unknown) => obj is Error;
19
+ //#endregion
20
+ export { isError };
21
+ //# sourceMappingURL=is-error.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-error.d.mts","names":[],"sources":["../src/is-error.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;cAAa,kCAAiC"}
package/dist/is-error.mjs CHANGED
@@ -1 +1,2 @@
1
- import{t as e}from"./is-error-nekb2Eit.mjs";export{e as isError};
1
+ import{getObjectTag as e}from"./get-object-tag.mjs";import{isPlainObject as t}from"./is-plain-object.mjs";import{isObject as n}from"./is-object.mjs";const r=r=>{if(!n(r))return!1;let i=e(r);return i===`[object Error]`||i===`[object DOMException]`||typeof r?.message==`string`&&typeof r?.name==`string`&&!t(r)};export{r as isError};
2
+ //# sourceMappingURL=is-error.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-error.mjs","names":[],"sources":["../src/is-error.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 { isObject } from \"./is-object\";\nimport { isPlainObject } from \"./is-plain-object\";\n\n/**\n * Checks if `obj` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @example\n * ```typescript\n * isError(new Error)\n * // => true\n *\n * isError(Error)\n * // => false\n * ```\n *\n * @param obj - The obj to check.\n * @returns Returns `true` if `obj` is an error object, else `false`.\n */\nexport const isError = (obj: unknown): obj is Error => {\n if (!isObject(obj)) {\n return false;\n }\n\n const tag = getObjectTag(obj);\n\n return (\n tag === \"[object Error]\" ||\n tag === \"[object DOMException]\" ||\n (typeof (obj as Error)?.message === \"string\" &&\n typeof (obj as Error)?.name === \"string\" &&\n !isPlainObject(obj))\n );\n};\n"],"mappings":"qJAsCA,MAAa,EAAW,GAA+B,CACrD,GAAI,CAAC,EAAS,EAAI,CAChB,MAAO,GAGT,IAAM,EAAM,EAAa,EAAI,CAE7B,OACE,IAAQ,kBACR,IAAQ,yBACP,OAAQ,GAAe,SAAY,UAClC,OAAQ,GAAe,MAAS,UAChC,CAAC,EAAc,EAAI"}
@@ -1 +1 @@
1
- const e=require(`./is-file-result-Bl1xTRmY.cjs`);exports.isFileResult=e.t;
1
+ const e=require(`./is-set-object.cjs`),t=require(`./is-set-string.cjs`),n=n=>e.isSetObject(n)&&`status`in n&&[`initialized`,`validated`,`uploaded`,`failed`].includes(n.status)&&(t.isSetString(n?.uri)||e.isSetObject(n?.file));exports.isFileResult=n;
@@ -1,2 +1,14 @@
1
- import { t as isFileResult } from "./is-file-result-DW5cnH95.cjs";
2
- export { isFileResult };
1
+ import { FileResult } from "./types/src/file.cjs";
2
+
3
+ //#region src/is-file-result.d.ts
4
+
5
+ /**
6
+ * Check if the provided value is a `FileResult` object
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is a `FileResult` object
10
+ */
11
+ declare const isFileResult: (value: any) => value is FileResult;
12
+ //#endregion
13
+ export { isFileResult };
14
+ //# sourceMappingURL=is-file-result.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-file-result.d.cts","names":[],"sources":["../src/is-file-result.ts"],"sourcesContent":[],"mappings":";;;;;;AA4BA;;;;cAAa,uCAAsC"}
@@ -1,2 +1,14 @@
1
- import { t as isFileResult } from "./is-file-result-B-ALEhm0.mjs";
2
- export { isFileResult };
1
+ import { FileResult } from "./types/src/file.mjs";
2
+
3
+ //#region src/is-file-result.d.ts
4
+
5
+ /**
6
+ * Check if the provided value is a `FileResult` object
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is a `FileResult` object
10
+ */
11
+ declare const isFileResult: (value: any) => value is FileResult;
12
+ //#endregion
13
+ export { isFileResult };
14
+ //# sourceMappingURL=is-file-result.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-file-result.d.mts","names":[],"sources":["../src/is-file-result.ts"],"sourcesContent":[],"mappings":";;;;;;AA4BA;;;;cAAa,uCAAsC"}
@@ -1 +1,2 @@
1
- import{t as e}from"./is-file-result-5vpaq4NL.mjs";export{e as isFileResult};
1
+ import{isSetObject as e}from"./is-set-object.mjs";import{isSetString as t}from"./is-set-string.mjs";const n=n=>e(n)&&`status`in n&&[`initialized`,`validated`,`uploaded`,`failed`].includes(n.status)&&(t(n?.uri)||e(n?.file));export{n as isFileResult};
2
+ //# sourceMappingURL=is-file-result.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-file-result.mjs","names":[],"sources":["../src/is-file-result.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 { FileResult, FileStatus } from \"@stryke/types/file\";\nimport { isSetObject } from \"./is-set-object\";\nimport { isSetString } from \"./is-set-string\";\n\n/**\n * Check if the provided value is a `FileResult` object\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is a `FileResult` object\n */\nexport const isFileResult = (value: any): value is FileResult => {\n return (\n isSetObject(value) &&\n \"status\" in value &&\n [\"initialized\", \"validated\", \"uploaded\", \"failed\"].includes(\n value.status as FileStatus\n ) &&\n (isSetString((value as FileResult)?.uri) ||\n isSetObject((value as FileResult)?.file))\n );\n};\n"],"mappings":"oGA4BA,MAAa,EAAgB,GAEzB,EAAY,EAAM,EAClB,WAAY,GACZ,CAAC,cAAe,YAAa,WAAY,SAAS,CAAC,SACjD,EAAM,OACP,GACA,EAAa,GAAsB,IAAI,EACtC,EAAa,GAAsB,KAAK"}
package/dist/is-float.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./is-float-C6J1LRqg.cjs`);exports.isFloat=e.t;
1
+ const e=require(`./is-number.cjs`),t=t=>e.isNumber(t)&&t%1!=0;exports.isFloat=t;