@leyyo/type 1.3.3 → 1.3.4

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 (512) hide show
  1. package/README.md +3 -3
  2. package/dist/error/index.d.ts +17 -58
  3. package/dist/error/index.js +17 -75
  4. package/dist/error/invalid-array.error.js +4 -7
  5. package/dist/error/invalid-boolean.error.js +4 -7
  6. package/dist/error/invalid-date.error.js +4 -7
  7. package/dist/error/invalid-delimited.error.js +4 -7
  8. package/dist/error/invalid-enum-map.error.js +4 -7
  9. package/dist/error/invalid-enum-value.error.js +4 -7
  10. package/dist/error/invalid-integer.error.js +4 -7
  11. package/dist/error/invalid-list.error.js +4 -7
  12. package/dist/error/invalid-literal-items.error.js +4 -7
  13. package/dist/error/invalid-literal-value.error.js +4 -7
  14. package/dist/error/invalid-map.error.js +4 -7
  15. package/dist/error/invalid-number.error.js +4 -7
  16. package/dist/error/invalid-object.error.js +4 -7
  17. package/dist/error/invalid-real-value.error.js +4 -7
  18. package/dist/error/invalid-set.error.js +4 -7
  19. package/dist/error/invalid-string.error.js +4 -7
  20. package/dist/error/invalid-text.error.js +4 -7
  21. package/dist/index.d.ts +6 -10
  22. package/dist/index.foretell.js +30 -14
  23. package/dist/index.js +6 -27
  24. package/dist/index.loader.js +8 -14
  25. package/dist/internal.js +1 -5
  26. package/dist/is/index.d.ts +25 -25
  27. package/dist/is/index.js +25 -42
  28. package/dist/is/index.types.js +1 -3
  29. package/dist/is/is-another-object.js +3 -7
  30. package/dist/is/is-array-like.js +1 -5
  31. package/dist/is/is-bare-object.js +3 -7
  32. package/dist/is/is-boolean-like.js +3 -7
  33. package/dist/is/is-empty-object.js +3 -7
  34. package/dist/is/is-enum.js +4 -8
  35. package/dist/is/is-false-like.js +3 -7
  36. package/dist/is/is-instance-of.js +3 -7
  37. package/dist/is/is-key-value.js +3 -7
  38. package/dist/is/is-literal.js +4 -8
  39. package/dist/is/is-non-negative-integer.js +1 -5
  40. package/dist/is/is-non-negative-number.js +3 -7
  41. package/dist/is/is-not-empty.js +3 -7
  42. package/dist/is/is-positive-integer.js +1 -5
  43. package/dist/is/is-positive-number.js +3 -7
  44. package/dist/is/is-primitive.js +3 -7
  45. package/dist/is/is-real-value.js +3 -7
  46. package/dist/is/is-safe-integer.js +1 -5
  47. package/dist/is/is-sys-class.js +3 -7
  48. package/dist/is/is-sys-function.js +3 -7
  49. package/dist/is/is-true-like.js +3 -7
  50. package/dist/is/is-type-of.js +3 -7
  51. package/dist/is/is-valid-integer.js +3 -7
  52. package/dist/is/is-valid-number.js +1 -5
  53. package/dist/literal/basic-type.d.ts +1 -2
  54. package/dist/literal/basic-type.js +6 -8
  55. package/dist/literal/defined-type.d.ts +7 -0
  56. package/dist/literal/defined-type.js +5 -0
  57. package/dist/literal/extended-type.d.ts +5 -0
  58. package/dist/literal/extended-type.js +12 -0
  59. package/dist/literal/false-weak.js +4 -5
  60. package/dist/literal/index.d.ts +7 -5
  61. package/dist/literal/index.js +7 -22
  62. package/dist/literal/sys-class.js +4 -5
  63. package/dist/literal/sys-function.js +4 -5
  64. package/dist/literal/true-weak.js +4 -5
  65. package/dist/to/index.d.ts +15 -16
  66. package/dist/to/index.js +15 -33
  67. package/dist/to/index.types.js +1 -3
  68. package/dist/to/to-array-value.d.ts +1 -1
  69. package/dist/to/to-array-value.js +16 -20
  70. package/dist/to/to-boolean-value.d.ts +1 -1
  71. package/dist/to/to-boolean-value.js +14 -18
  72. package/dist/to/to-date-value.d.ts +1 -1
  73. package/dist/to/to-date-value.js +15 -19
  74. package/dist/to/to-delimited-value.d.ts +1 -1
  75. package/dist/to/to-delimited-value.js +14 -18
  76. package/dist/to/to-enum-value.d.ts +1 -1
  77. package/dist/to/to-enum-value.js +25 -29
  78. package/dist/to/to-integer-value.d.ts +1 -1
  79. package/dist/to/to-integer-value.js +13 -17
  80. package/dist/to/to-list-value.d.ts +1 -1
  81. package/dist/to/to-list-value.js +15 -19
  82. package/dist/to/to-literal-value.d.ts +1 -1
  83. package/dist/to/to-literal-value.js +23 -27
  84. package/dist/to/to-map-value.d.ts +1 -1
  85. package/dist/to/to-map-value.js +13 -17
  86. package/dist/to/to-number-value.d.ts +1 -1
  87. package/dist/to/to-number-value.js +12 -16
  88. package/dist/to/to-object-value.d.ts +5 -4
  89. package/dist/to/to-object-value.js +129 -8
  90. package/dist/to/to-set-value.d.ts +1 -1
  91. package/dist/to/to-set-value.js +13 -17
  92. package/dist/to/to-string-value.d.ts +1 -1
  93. package/dist/to/to-string-value.js +10 -14
  94. package/dist/to/to-text-value.d.ts +1 -1
  95. package/dist/to/to-text-value.js +11 -15
  96. package/dist/to/util.d.ts +1 -1
  97. package/dist/to/util.js +21 -32
  98. package/package.json +4 -4
  99. package/dist/assets/.gitkeep +0 -0
  100. package/dist/basic/assert-another-object.d.ts +0 -2
  101. package/dist/basic/assert-another-object.js +0 -19
  102. package/dist/basic/assert-another-object.js.map +0 -1
  103. package/dist/basic/assert-array-like.d.ts +0 -2
  104. package/dist/basic/assert-array-like.js +0 -19
  105. package/dist/basic/assert-array-like.js.map +0 -1
  106. package/dist/basic/assert-array.d.ts +0 -2
  107. package/dist/basic/assert-array.js +0 -19
  108. package/dist/basic/assert-array.js.map +0 -1
  109. package/dist/basic/assert-bare-object.d.ts +0 -2
  110. package/dist/basic/assert-bare-object.js +0 -19
  111. package/dist/basic/assert-bare-object.js.map +0 -1
  112. package/dist/basic/assert-bigint.d.ts +0 -2
  113. package/dist/basic/assert-bigint.js +0 -19
  114. package/dist/basic/assert-bigint.js.map +0 -1
  115. package/dist/basic/assert-boolean-like.d.ts +0 -2
  116. package/dist/basic/assert-boolean-like.js +0 -19
  117. package/dist/basic/assert-boolean-like.js.map +0 -1
  118. package/dist/basic/assert-boolean.d.ts +0 -2
  119. package/dist/basic/assert-boolean.js +0 -18
  120. package/dist/basic/assert-boolean.js.map +0 -1
  121. package/dist/basic/assert-class.d.ts +0 -2
  122. package/dist/basic/assert-class.js +0 -18
  123. package/dist/basic/assert-class.js.map +0 -1
  124. package/dist/basic/assert-empty.d.ts +0 -2
  125. package/dist/basic/assert-empty.js +0 -21
  126. package/dist/basic/assert-empty.js.map +0 -1
  127. package/dist/basic/assert-false-like.d.ts +0 -2
  128. package/dist/basic/assert-false-like.js +0 -19
  129. package/dist/basic/assert-false-like.js.map +0 -1
  130. package/dist/basic/assert-false.d.ts +0 -2
  131. package/dist/basic/assert-false.js +0 -18
  132. package/dist/basic/assert-false.js.map +0 -1
  133. package/dist/basic/assert-filled-array.d.ts +0 -2
  134. package/dist/basic/assert-filled-array.js +0 -18
  135. package/dist/basic/assert-filled-array.js.map +0 -1
  136. package/dist/basic/assert-filled-object.d.ts +0 -2
  137. package/dist/basic/assert-filled-object.js +0 -18
  138. package/dist/basic/assert-filled-object.js.map +0 -1
  139. package/dist/basic/assert-function.d.ts +0 -2
  140. package/dist/basic/assert-function.js +0 -18
  141. package/dist/basic/assert-function.js.map +0 -1
  142. package/dist/basic/assert-integer.d.ts +0 -2
  143. package/dist/basic/assert-integer.js +0 -19
  144. package/dist/basic/assert-integer.js.map +0 -1
  145. package/dist/basic/assert-key-value.d.ts +0 -2
  146. package/dist/basic/assert-key-value.js +0 -19
  147. package/dist/basic/assert-key-value.js.map +0 -1
  148. package/dist/basic/assert-list.d.ts +0 -2
  149. package/dist/basic/assert-list.js +0 -18
  150. package/dist/basic/assert-list.js.map +0 -1
  151. package/dist/basic/assert-map.d.ts +0 -2
  152. package/dist/basic/assert-map.js +0 -18
  153. package/dist/basic/assert-map.js.map +0 -1
  154. package/dist/basic/assert-message.d.ts +0 -2
  155. package/dist/basic/assert-message.js +0 -10
  156. package/dist/basic/assert-message.js.map +0 -1
  157. package/dist/basic/assert-non-negative-integer.d.ts +0 -2
  158. package/dist/basic/assert-non-negative-integer.js +0 -19
  159. package/dist/basic/assert-non-negative-integer.js.map +0 -1
  160. package/dist/basic/assert-non-negative-number.d.ts +0 -2
  161. package/dist/basic/assert-non-negative-number.js +0 -19
  162. package/dist/basic/assert-non-negative-number.js.map +0 -1
  163. package/dist/basic/assert-not-empty.d.ts +0 -2
  164. package/dist/basic/assert-not-empty.js +0 -19
  165. package/dist/basic/assert-not-empty.js.map +0 -1
  166. package/dist/basic/assert-not-null.d.ts +0 -2
  167. package/dist/basic/assert-not-null.js +0 -18
  168. package/dist/basic/assert-not-null.js.map +0 -1
  169. package/dist/basic/assert-not-system-class.d.ts +0 -2
  170. package/dist/basic/assert-not-system-class.js +0 -19
  171. package/dist/basic/assert-not-system-class.js.map +0 -1
  172. package/dist/basic/assert-not-system-function.d.ts +0 -2
  173. package/dist/basic/assert-not-system-function.js +0 -19
  174. package/dist/basic/assert-not-system-function.js.map +0 -1
  175. package/dist/basic/assert-not-undefined.d.ts +0 -2
  176. package/dist/basic/assert-not-undefined.js +0 -18
  177. package/dist/basic/assert-not-undefined.js.map +0 -1
  178. package/dist/basic/assert-null.d.ts +0 -2
  179. package/dist/basic/assert-null.js +0 -18
  180. package/dist/basic/assert-null.js.map +0 -1
  181. package/dist/basic/assert-number.d.ts +0 -2
  182. package/dist/basic/assert-number.js +0 -19
  183. package/dist/basic/assert-number.js.map +0 -1
  184. package/dist/basic/assert-object.d.ts +0 -2
  185. package/dist/basic/assert-object.js +0 -18
  186. package/dist/basic/assert-object.js.map +0 -1
  187. package/dist/basic/assert-positive-integer.d.ts +0 -2
  188. package/dist/basic/assert-positive-integer.js +0 -19
  189. package/dist/basic/assert-positive-integer.js.map +0 -1
  190. package/dist/basic/assert-positive-number.d.ts +0 -2
  191. package/dist/basic/assert-positive-number.js +0 -19
  192. package/dist/basic/assert-positive-number.js.map +0 -1
  193. package/dist/basic/assert-real-value.d.ts +0 -2
  194. package/dist/basic/assert-real-value.js +0 -19
  195. package/dist/basic/assert-real-value.js.map +0 -1
  196. package/dist/basic/assert-safe-integer.d.ts +0 -2
  197. package/dist/basic/assert-safe-integer.js +0 -19
  198. package/dist/basic/assert-safe-integer.js.map +0 -1
  199. package/dist/basic/assert-set.d.ts +0 -2
  200. package/dist/basic/assert-set.js +0 -18
  201. package/dist/basic/assert-set.js.map +0 -1
  202. package/dist/basic/assert-string.d.ts +0 -2
  203. package/dist/basic/assert-string.js +0 -18
  204. package/dist/basic/assert-string.js.map +0 -1
  205. package/dist/basic/assert-symbol.d.ts +0 -2
  206. package/dist/basic/assert-symbol.js +0 -18
  207. package/dist/basic/assert-symbol.js.map +0 -1
  208. package/dist/basic/assert-text.d.ts +0 -2
  209. package/dist/basic/assert-text.js +0 -18
  210. package/dist/basic/assert-text.js.map +0 -1
  211. package/dist/basic/assert-true-like.d.ts +0 -2
  212. package/dist/basic/assert-true-like.js +0 -19
  213. package/dist/basic/assert-true-like.js.map +0 -1
  214. package/dist/basic/assert-true.d.ts +0 -2
  215. package/dist/basic/assert-true.js +0 -18
  216. package/dist/basic/assert-true.js.map +0 -1
  217. package/dist/basic/assert-undefined.d.ts +0 -2
  218. package/dist/basic/assert-undefined.js +0 -18
  219. package/dist/basic/assert-undefined.js.map +0 -1
  220. package/dist/basic/fnc.d.ts +0 -14
  221. package/dist/basic/fnc.js +0 -35
  222. package/dist/basic/fnc.js.map +0 -1
  223. package/dist/basic/index.d.ts +0 -43
  224. package/dist/basic/index.foretell.d.ts +0 -1
  225. package/dist/basic/index.foretell.js +0 -48
  226. package/dist/basic/index.foretell.js.map +0 -1
  227. package/dist/basic/index.js +0 -60
  228. package/dist/basic/index.js.map +0 -1
  229. package/dist/basic/index.loader.d.ts +0 -1
  230. package/dist/basic/index.loader.js +0 -43
  231. package/dist/basic/index.loader.js.map +0 -1
  232. package/dist/basic/index.types.d.ts +0 -4
  233. package/dist/basic/index.types.js +0 -4
  234. package/dist/basic/index.types.js.map +0 -1
  235. package/dist/complex/assert-all-of.d.ts +0 -7
  236. package/dist/complex/assert-all-of.js +0 -39
  237. package/dist/complex/assert-all-of.js.map +0 -1
  238. package/dist/complex/assert-array-of.d.ts +0 -6
  239. package/dist/complex/assert-array-of.js +0 -40
  240. package/dist/complex/assert-array-of.js.map +0 -1
  241. package/dist/complex/assert-enum-of.d.ts +0 -6
  242. package/dist/complex/assert-enum-of.js +0 -74
  243. package/dist/complex/assert-enum-of.js.map +0 -1
  244. package/dist/complex/assert-i18n-of.d.ts +0 -6
  245. package/dist/complex/assert-i18n-of.js +0 -29
  246. package/dist/complex/assert-i18n-of.js.map +0 -1
  247. package/dist/complex/assert-instance-of.d.ts +0 -6
  248. package/dist/complex/assert-instance-of.js +0 -56
  249. package/dist/complex/assert-instance-of.js.map +0 -1
  250. package/dist/complex/assert-it.d.ts +0 -4
  251. package/dist/complex/assert-it.js +0 -68
  252. package/dist/complex/assert-it.js.map +0 -1
  253. package/dist/complex/assert-list-of.d.ts +0 -6
  254. package/dist/complex/assert-list-of.js +0 -40
  255. package/dist/complex/assert-list-of.js.map +0 -1
  256. package/dist/complex/assert-literal-of.d.ts +0 -6
  257. package/dist/complex/assert-literal-of.js +0 -71
  258. package/dist/complex/assert-literal-of.js.map +0 -1
  259. package/dist/complex/assert-map-of.d.ts +0 -6
  260. package/dist/complex/assert-map-of.js +0 -56
  261. package/dist/complex/assert-map-of.js.map +0 -1
  262. package/dist/complex/assert-number-of.d.ts +0 -6
  263. package/dist/complex/assert-number-of.js +0 -33
  264. package/dist/complex/assert-number-of.js.map +0 -1
  265. package/dist/complex/assert-one-of.d.ts +0 -6
  266. package/dist/complex/assert-one-of.js +0 -67
  267. package/dist/complex/assert-one-of.js.map +0 -1
  268. package/dist/complex/assert-optional.d.ts +0 -6
  269. package/dist/complex/assert-optional.js +0 -31
  270. package/dist/complex/assert-optional.js.map +0 -1
  271. package/dist/complex/assert-record-of.d.ts +0 -6
  272. package/dist/complex/assert-record-of.js +0 -53
  273. package/dist/complex/assert-record-of.js.map +0 -1
  274. package/dist/complex/assert-set-of.d.ts +0 -6
  275. package/dist/complex/assert-set-of.js +0 -40
  276. package/dist/complex/assert-set-of.js.map +0 -1
  277. package/dist/complex/assert-string-of.d.ts +0 -6
  278. package/dist/complex/assert-string-of.js +0 -25
  279. package/dist/complex/assert-string-of.js.map +0 -1
  280. package/dist/complex/assert-tuple-of.d.ts +0 -6
  281. package/dist/complex/assert-tuple-of.js +0 -43
  282. package/dist/complex/assert-tuple-of.js.map +0 -1
  283. package/dist/complex/assert-type-of.d.ts +0 -6
  284. package/dist/complex/assert-type-of.js +0 -58
  285. package/dist/complex/assert-type-of.js.map +0 -1
  286. package/dist/complex/fnc.d.ts +0 -14
  287. package/dist/complex/fnc.js +0 -35
  288. package/dist/complex/fnc.js.map +0 -1
  289. package/dist/complex/index.d.ts +0 -20
  290. package/dist/complex/index.foretell.d.ts +0 -1
  291. package/dist/complex/index.foretell.js +0 -48
  292. package/dist/complex/index.foretell.js.map +0 -1
  293. package/dist/complex/index.js +0 -37
  294. package/dist/complex/index.js.map +0 -1
  295. package/dist/complex/index.loader.d.ts +0 -1
  296. package/dist/complex/index.loader.js +0 -43
  297. package/dist/complex/index.loader.js.map +0 -1
  298. package/dist/complex/index.types.d.ts +0 -91
  299. package/dist/complex/index.types.js +0 -3
  300. package/dist/complex/index.types.js.map +0 -1
  301. package/dist/complex/util.d.ts +0 -9
  302. package/dist/complex/util.js +0 -60
  303. package/dist/complex/util.js.map +0 -1
  304. package/dist/error/assert-message.error.d.ts +0 -3
  305. package/dist/error/assert-message.error.js +0 -8
  306. package/dist/error/assert-message.error.js.map +0 -1
  307. package/dist/error/index.foretell.d.ts +0 -1
  308. package/dist/error/index.foretell.js +0 -49
  309. package/dist/error/index.foretell.js.map +0 -1
  310. package/dist/error/index.js.map +0 -1
  311. package/dist/error/index.loader.d.ts +0 -1
  312. package/dist/error/index.loader.js +0 -43
  313. package/dist/error/index.loader.js.map +0 -1
  314. package/dist/error/invalid-another-object.error.d.ts +0 -3
  315. package/dist/error/invalid-another-object.error.js +0 -8
  316. package/dist/error/invalid-another-object.error.js.map +0 -1
  317. package/dist/error/invalid-array-like.error.d.ts +0 -3
  318. package/dist/error/invalid-array-like.error.js +0 -8
  319. package/dist/error/invalid-array-like.error.js.map +0 -1
  320. package/dist/error/invalid-array.error.js.map +0 -1
  321. package/dist/error/invalid-assert-all-of.error.d.ts +0 -3
  322. package/dist/error/invalid-assert-all-of.error.js +0 -8
  323. package/dist/error/invalid-assert-all-of.error.js.map +0 -1
  324. package/dist/error/invalid-assert-one-of.error.d.ts +0 -3
  325. package/dist/error/invalid-assert-one-of.error.js +0 -8
  326. package/dist/error/invalid-assert-one-of.error.js.map +0 -1
  327. package/dist/error/invalid-assert-payload.error.d.ts +0 -3
  328. package/dist/error/invalid-assert-payload.error.js +0 -8
  329. package/dist/error/invalid-assert-payload.error.js.map +0 -1
  330. package/dist/error/invalid-bare-object.error.d.ts +0 -3
  331. package/dist/error/invalid-bare-object.error.js +0 -8
  332. package/dist/error/invalid-bare-object.error.js.map +0 -1
  333. package/dist/error/invalid-bigint.error.d.ts +0 -3
  334. package/dist/error/invalid-bigint.error.js +0 -8
  335. package/dist/error/invalid-bigint.error.js.map +0 -1
  336. package/dist/error/invalid-boolean-like.error.d.ts +0 -3
  337. package/dist/error/invalid-boolean-like.error.js +0 -8
  338. package/dist/error/invalid-boolean-like.error.js.map +0 -1
  339. package/dist/error/invalid-boolean.error.js.map +0 -1
  340. package/dist/error/invalid-class.error.d.ts +0 -3
  341. package/dist/error/invalid-class.error.js +0 -8
  342. package/dist/error/invalid-class.error.js.map +0 -1
  343. package/dist/error/invalid-date.error.js.map +0 -1
  344. package/dist/error/invalid-delimited.error.js.map +0 -1
  345. package/dist/error/invalid-enum-map.error.js.map +0 -1
  346. package/dist/error/invalid-enum-not-found.error.d.ts +0 -4
  347. package/dist/error/invalid-enum-not-found.error.js +0 -11
  348. package/dist/error/invalid-enum-not-found.error.js.map +0 -1
  349. package/dist/error/invalid-enum-value.error.js.map +0 -1
  350. package/dist/error/invalid-false-like.error.d.ts +0 -3
  351. package/dist/error/invalid-false-like.error.js +0 -8
  352. package/dist/error/invalid-false-like.error.js.map +0 -1
  353. package/dist/error/invalid-false.error.d.ts +0 -3
  354. package/dist/error/invalid-false.error.js +0 -8
  355. package/dist/error/invalid-false.error.js.map +0 -1
  356. package/dist/error/invalid-filled-array.error.d.ts +0 -3
  357. package/dist/error/invalid-filled-array.error.js +0 -8
  358. package/dist/error/invalid-filled-array.error.js.map +0 -1
  359. package/dist/error/invalid-filled-object.error.d.ts +0 -3
  360. package/dist/error/invalid-filled-object.error.js +0 -8
  361. package/dist/error/invalid-filled-object.error.js.map +0 -1
  362. package/dist/error/invalid-function.error.d.ts +0 -3
  363. package/dist/error/invalid-function.error.js +0 -8
  364. package/dist/error/invalid-function.error.js.map +0 -1
  365. package/dist/error/invalid-instance-of-class.error.d.ts +0 -3
  366. package/dist/error/invalid-instance-of-class.error.js +0 -8
  367. package/dist/error/invalid-instance-of-class.error.js.map +0 -1
  368. package/dist/error/invalid-instance-of.error.d.ts +0 -3
  369. package/dist/error/invalid-instance-of.error.js +0 -8
  370. package/dist/error/invalid-instance-of.error.js.map +0 -1
  371. package/dist/error/invalid-integer.error.js.map +0 -1
  372. package/dist/error/invalid-key-value.error.d.ts +0 -3
  373. package/dist/error/invalid-key-value.error.js +0 -8
  374. package/dist/error/invalid-key-value.error.js.map +0 -1
  375. package/dist/error/invalid-list.error.js.map +0 -1
  376. package/dist/error/invalid-literal-items.error.js.map +0 -1
  377. package/dist/error/invalid-literal-not-found.error.d.ts +0 -4
  378. package/dist/error/invalid-literal-not-found.error.js +0 -11
  379. package/dist/error/invalid-literal-not-found.error.js.map +0 -1
  380. package/dist/error/invalid-literal-value.error.js.map +0 -1
  381. package/dist/error/invalid-map.error.js.map +0 -1
  382. package/dist/error/invalid-non-negative-integer.error.d.ts +0 -3
  383. package/dist/error/invalid-non-negative-integer.error.js +0 -8
  384. package/dist/error/invalid-non-negative-integer.error.js.map +0 -1
  385. package/dist/error/invalid-non-negative-number.error.d.ts +0 -3
  386. package/dist/error/invalid-non-negative-number.error.js +0 -8
  387. package/dist/error/invalid-non-negative-number.error.js.map +0 -1
  388. package/dist/error/invalid-not-system-class.error.d.ts +0 -3
  389. package/dist/error/invalid-not-system-class.error.js +0 -8
  390. package/dist/error/invalid-not-system-class.error.js.map +0 -1
  391. package/dist/error/invalid-not-system-function.error.d.ts +0 -3
  392. package/dist/error/invalid-not-system-function.error.js +0 -8
  393. package/dist/error/invalid-not-system-function.error.js.map +0 -1
  394. package/dist/error/invalid-number.error.js.map +0 -1
  395. package/dist/error/invalid-object.error.js.map +0 -1
  396. package/dist/error/invalid-positive-integer.error.d.ts +0 -3
  397. package/dist/error/invalid-positive-integer.error.js +0 -8
  398. package/dist/error/invalid-positive-integer.error.js.map +0 -1
  399. package/dist/error/invalid-positive-number.error.d.ts +0 -3
  400. package/dist/error/invalid-positive-number.error.js +0 -8
  401. package/dist/error/invalid-positive-number.error.js.map +0 -1
  402. package/dist/error/invalid-real-value.error.js.map +0 -1
  403. package/dist/error/invalid-safe-integer.error.d.ts +0 -3
  404. package/dist/error/invalid-safe-integer.error.js +0 -8
  405. package/dist/error/invalid-safe-integer.error.js.map +0 -1
  406. package/dist/error/invalid-set.error.js.map +0 -1
  407. package/dist/error/invalid-string.error.js.map +0 -1
  408. package/dist/error/invalid-symbol.error.d.ts +0 -3
  409. package/dist/error/invalid-symbol.error.js +0 -8
  410. package/dist/error/invalid-symbol.error.js.map +0 -1
  411. package/dist/error/invalid-text.error.js.map +0 -1
  412. package/dist/error/invalid-true-like.error.d.ts +0 -3
  413. package/dist/error/invalid-true-like.error.js +0 -8
  414. package/dist/error/invalid-true-like.error.js.map +0 -1
  415. package/dist/error/invalid-true.error.d.ts +0 -3
  416. package/dist/error/invalid-true.error.js +0 -8
  417. package/dist/error/invalid-true.error.js.map +0 -1
  418. package/dist/error/invalid-tuple.error.d.ts +0 -3
  419. package/dist/error/invalid-tuple.error.js +0 -8
  420. package/dist/error/invalid-tuple.error.js.map +0 -1
  421. package/dist/error/invalid-type-of-type.error.d.ts +0 -3
  422. package/dist/error/invalid-type-of-type.error.js +0 -8
  423. package/dist/error/invalid-type-of-type.error.js.map +0 -1
  424. package/dist/error/invalid-type-of.error.d.ts +0 -3
  425. package/dist/error/invalid-type-of.error.js +0 -8
  426. package/dist/error/invalid-type-of.error.js.map +0 -1
  427. package/dist/error/value-empty.error.d.ts +0 -3
  428. package/dist/error/value-empty.error.js +0 -8
  429. package/dist/error/value-empty.error.js.map +0 -1
  430. package/dist/error/value-not-empty.error.d.ts +0 -3
  431. package/dist/error/value-not-empty.error.js +0 -8
  432. package/dist/error/value-not-empty.error.js.map +0 -1
  433. package/dist/error/value-not-null.error.d.ts +0 -3
  434. package/dist/error/value-not-null.error.js +0 -8
  435. package/dist/error/value-not-null.error.js.map +0 -1
  436. package/dist/error/value-not-undefined.error.d.ts +0 -3
  437. package/dist/error/value-not-undefined.error.js +0 -8
  438. package/dist/error/value-not-undefined.error.js.map +0 -1
  439. package/dist/error/value-null.error.d.ts +0 -3
  440. package/dist/error/value-null.error.js +0 -8
  441. package/dist/error/value-null.error.js.map +0 -1
  442. package/dist/error/value-undefined.error.d.ts +0 -3
  443. package/dist/error/value-undefined.error.js +0 -8
  444. package/dist/error/value-undefined.error.js.map +0 -1
  445. package/dist/handler/assert.handler.d.ts +0 -2
  446. package/dist/handler/assert.handler.js +0 -49
  447. package/dist/handler/assert.handler.js.map +0 -1
  448. package/dist/handler/index.d.ts +0 -2
  449. package/dist/handler/index.js +0 -19
  450. package/dist/handler/index.js.map +0 -1
  451. package/dist/handler/index.types.d.ts +0 -9
  452. package/dist/handler/index.types.js +0 -3
  453. package/dist/handler/index.types.js.map +0 -1
  454. package/dist/index.foretell.js.map +0 -1
  455. package/dist/index.js.map +0 -1
  456. package/dist/index.loader.js.map +0 -1
  457. package/dist/internal.js.map +0 -1
  458. package/dist/is/index.js.map +0 -1
  459. package/dist/is/index.types.js.map +0 -1
  460. package/dist/is/is-another-object.js.map +0 -1
  461. package/dist/is/is-array-like.js.map +0 -1
  462. package/dist/is/is-bare-object.js.map +0 -1
  463. package/dist/is/is-boolean-like.js.map +0 -1
  464. package/dist/is/is-empty-object.js.map +0 -1
  465. package/dist/is/is-enum.js.map +0 -1
  466. package/dist/is/is-false-like.js.map +0 -1
  467. package/dist/is/is-instance-of.js.map +0 -1
  468. package/dist/is/is-key-value.js.map +0 -1
  469. package/dist/is/is-literal.js.map +0 -1
  470. package/dist/is/is-non-negative-integer.js.map +0 -1
  471. package/dist/is/is-non-negative-number.js.map +0 -1
  472. package/dist/is/is-not-empty.js.map +0 -1
  473. package/dist/is/is-positive-integer.js.map +0 -1
  474. package/dist/is/is-positive-number.js.map +0 -1
  475. package/dist/is/is-primitive.js.map +0 -1
  476. package/dist/is/is-real-value.js.map +0 -1
  477. package/dist/is/is-safe-integer.js.map +0 -1
  478. package/dist/is/is-sys-class.js.map +0 -1
  479. package/dist/is/is-sys-function.js.map +0 -1
  480. package/dist/is/is-true-like.js.map +0 -1
  481. package/dist/is/is-type-of.js.map +0 -1
  482. package/dist/is/is-valid-integer.js.map +0 -1
  483. package/dist/is/is-valid-number.js.map +0 -1
  484. package/dist/literal/basic-type.js.map +0 -1
  485. package/dist/literal/false-weak.js.map +0 -1
  486. package/dist/literal/index.js.map +0 -1
  487. package/dist/literal/sys-class.js.map +0 -1
  488. package/dist/literal/sys-function.js.map +0 -1
  489. package/dist/literal/true-weak.js.map +0 -1
  490. package/dist/opt/index.d.ts +0 -9
  491. package/dist/opt/index.js +0 -3
  492. package/dist/opt/index.js.map +0 -1
  493. package/dist/to/index.js.map +0 -1
  494. package/dist/to/index.types.js.map +0 -1
  495. package/dist/to/to-array-value.js.map +0 -1
  496. package/dist/to/to-bare-object.d.ts +0 -10
  497. package/dist/to/to-bare-object.js +0 -140
  498. package/dist/to/to-bare-object.js.map +0 -1
  499. package/dist/to/to-boolean-value.js.map +0 -1
  500. package/dist/to/to-date-value.js.map +0 -1
  501. package/dist/to/to-delimited-value.js.map +0 -1
  502. package/dist/to/to-enum-value.js.map +0 -1
  503. package/dist/to/to-integer-value.js.map +0 -1
  504. package/dist/to/to-list-value.js.map +0 -1
  505. package/dist/to/to-literal-value.js.map +0 -1
  506. package/dist/to/to-map-value.js.map +0 -1
  507. package/dist/to/to-number-value.js.map +0 -1
  508. package/dist/to/to-object-value.js.map +0 -1
  509. package/dist/to/to-set-value.js.map +0 -1
  510. package/dist/to/to-string-value.js.map +0 -1
  511. package/dist/to/to-text-value.js.map +0 -1
  512. package/dist/to/util.js.map +0 -1
@@ -1,25 +1,25 @@
1
- export * from './index.types';
2
- export * from './is-another-object';
3
- export * from './is-array-like';
4
- export * from './is-bare-object';
5
- export * from './is-boolean-like';
6
- export * from './is-empty-object';
7
- export * from './is-enum';
8
- export * from './is-false-like';
9
- export * from './is-instance-of';
10
- export * from './is-key-value';
11
- export * from './is-literal';
12
- export * from './is-non-negative-integer';
13
- export * from './is-non-negative-number';
14
- export * from './is-not-empty';
15
- export * from './is-positive-integer';
16
- export * from './is-positive-number';
17
- export * from './is-primitive';
18
- export * from './is-real-value';
19
- export * from './is-safe-integer';
20
- export * from './is-sys-class';
21
- export * from './is-sys-function';
22
- export * from './is-true-like';
23
- export * from './is-type-of';
24
- export * from './is-valid-integer';
25
- export * from './is-valid-number';
1
+ export * from './index.types.js';
2
+ export * from './is-another-object.js';
3
+ export * from './is-array-like.js';
4
+ export * from './is-bare-object.js';
5
+ export * from './is-boolean-like.js';
6
+ export * from './is-empty-object.js';
7
+ export * from './is-enum.js';
8
+ export * from './is-false-like.js';
9
+ export * from './is-instance-of.js';
10
+ export * from './is-key-value.js';
11
+ export * from './is-literal.js';
12
+ export * from './is-non-negative-integer.js';
13
+ export * from './is-non-negative-number.js';
14
+ export * from './is-not-empty.js';
15
+ export * from './is-positive-integer.js';
16
+ export * from './is-positive-number.js';
17
+ export * from './is-primitive.js';
18
+ export * from './is-real-value.js';
19
+ export * from './is-safe-integer.js';
20
+ export * from './is-sys-class.js';
21
+ export * from './is-sys-function.js';
22
+ export * from './is-true-like.js';
23
+ export * from './is-type-of.js';
24
+ export * from './is-valid-integer.js';
25
+ export * from './is-valid-number.js';
package/dist/is/index.js CHANGED
@@ -1,42 +1,25 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./index.types"), exports);
18
- __exportStar(require("./is-another-object"), exports);
19
- __exportStar(require("./is-array-like"), exports);
20
- __exportStar(require("./is-bare-object"), exports);
21
- __exportStar(require("./is-boolean-like"), exports);
22
- __exportStar(require("./is-empty-object"), exports);
23
- __exportStar(require("./is-enum"), exports);
24
- __exportStar(require("./is-false-like"), exports);
25
- __exportStar(require("./is-instance-of"), exports);
26
- __exportStar(require("./is-key-value"), exports);
27
- __exportStar(require("./is-literal"), exports);
28
- __exportStar(require("./is-non-negative-integer"), exports);
29
- __exportStar(require("./is-non-negative-number"), exports);
30
- __exportStar(require("./is-not-empty"), exports);
31
- __exportStar(require("./is-positive-integer"), exports);
32
- __exportStar(require("./is-positive-number"), exports);
33
- __exportStar(require("./is-primitive"), exports);
34
- __exportStar(require("./is-real-value"), exports);
35
- __exportStar(require("./is-safe-integer"), exports);
36
- __exportStar(require("./is-sys-class"), exports);
37
- __exportStar(require("./is-sys-function"), exports);
38
- __exportStar(require("./is-true-like"), exports);
39
- __exportStar(require("./is-type-of"), exports);
40
- __exportStar(require("./is-valid-integer"), exports);
41
- __exportStar(require("./is-valid-number"), exports);
42
- //# sourceMappingURL=index.js.map
1
+ export * from './index.types.js';
2
+ export * from './is-another-object.js';
3
+ export * from './is-array-like.js';
4
+ export * from './is-bare-object.js';
5
+ export * from './is-boolean-like.js';
6
+ export * from './is-empty-object.js';
7
+ export * from './is-enum.js';
8
+ export * from './is-false-like.js';
9
+ export * from './is-instance-of.js';
10
+ export * from './is-key-value.js';
11
+ export * from './is-literal.js';
12
+ export * from './is-non-negative-integer.js';
13
+ export * from './is-non-negative-number.js';
14
+ export * from './is-not-empty.js';
15
+ export * from './is-positive-integer.js';
16
+ export * from './is-positive-number.js';
17
+ export * from './is-primitive.js';
18
+ export * from './is-real-value.js';
19
+ export * from './is-safe-integer.js';
20
+ export * from './is-sys-class.js';
21
+ export * from './is-sys-function.js';
22
+ export * from './is-true-like.js';
23
+ export * from './is-type-of.js';
24
+ export * from './is-valid-integer.js';
25
+ export * from './is-valid-number.js';
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.types.js.map
1
+ export {};
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isAnotherObject = isAnotherObject;
4
- const common_1 = require("@leyyo/common");
1
+ import { isObj } from "@leyyo/common";
5
2
  /**
6
3
  * Checks value is another object?
7
4
  * - `another` means, `[constructor !== Object]`
@@ -9,7 +6,6 @@ const common_1 = require("@leyyo/common");
9
6
  * @param {any} value
10
7
  * @returns {boolean}
11
8
  * */
12
- function isAnotherObject(value) {
13
- return (0, common_1.isObj)(value) && value.constructor !== Object;
9
+ export function isAnotherObject(value) {
10
+ return isObj(value) && value.constructor !== Object;
14
11
  }
15
- //# sourceMappingURL=is-another-object.js.map
@@ -1,13 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isArrayLike = isArrayLike;
4
1
  /**
5
2
  * Checks value is array like (array, Set or List) or not?
6
3
  *
7
4
  * @param {any} value
8
5
  * @returns {boolean}
9
6
  * */
10
- function isArrayLike(value) {
7
+ export function isArrayLike(value) {
11
8
  return Array.isArray(value) || value instanceof Set;
12
9
  }
13
- //# sourceMappingURL=is-array-like.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isBareObject = isBareObject;
4
- const common_1 = require("@leyyo/common");
1
+ import { isObj } from "@leyyo/common";
5
2
  /**
6
3
  * Checks value is bare object?
7
4
  * - `bare` means, `[constructor === Object]`
@@ -9,7 +6,6 @@ const common_1 = require("@leyyo/common");
9
6
  * @param {any} value
10
7
  * @returns {boolean}
11
8
  * */
12
- function isBareObject(value) {
13
- return (0, common_1.isObj)(value) && value.constructor === Object;
9
+ export function isBareObject(value) {
10
+ return isObj(value) && value.constructor === Object;
14
11
  }
15
- //# sourceMappingURL=is-bare-object.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isBooleanLike = isBooleanLike;
4
- const literal_1 = require("../literal");
1
+ import { FalseWeakItems, TrueWeakItems } from "../literal/index.js";
5
2
  /**
6
3
  * Checks value is boolean like?
7
4
  * - `boolean like` means:
@@ -16,15 +13,14 @@ const literal_1 = require("../literal");
16
13
  * @param {any} value
17
14
  * @returns {boolean}
18
15
  * */
19
- function isBooleanLike(value) {
16
+ export function isBooleanLike(value) {
20
17
  switch (typeof value) {
21
18
  case "boolean":
22
19
  return true;
23
20
  case "string":
24
- return literal_1.TrueWeakItems.includes(value) || literal_1.FalseWeakItems.includes(value);
21
+ return TrueWeakItems.includes(value) || FalseWeakItems.includes(value);
25
22
  case 'number':
26
23
  return [-1, 0, 1].includes(value);
27
24
  }
28
25
  return false;
29
26
  }
30
- //# sourceMappingURL=is-boolean-like.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEmptyObject = isEmptyObject;
4
- const common_1 = require("@leyyo/common");
1
+ import { isObj } from "@leyyo/common";
5
2
  // noinspection JSUnusedGlobalSymbols
6
3
  /**
7
4
  * Checks value is empty object?
@@ -10,7 +7,6 @@ const common_1 = require("@leyyo/common");
10
7
  * @param {any} value
11
8
  * @returns {boolean}
12
9
  * */
13
- function isEmptyObject(value) {
14
- return (0, common_1.isObj)(value) && Object.keys(value).length < 1;
10
+ export function isEmptyObject(value) {
11
+ return isObj(value) && Object.keys(value).length < 1;
15
12
  }
16
- //# sourceMappingURL=is-empty-object.js.map
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEnum = isEnum;
4
- const common_1 = require("@leyyo/common");
5
- const is_key_value_1 = require("./is-key-value");
1
+ import { isObj } from "@leyyo/common";
2
+ import { isKeyValue } from "./is-key-value.js";
6
3
  /**
7
4
  * Checks value is an enum value?
8
5
  *
@@ -10,10 +7,9 @@ const is_key_value_1 = require("./is-key-value");
10
7
  * @param {Enum} map
11
8
  * @returns {boolean}
12
9
  * */
13
- function isEnum(value, map) {
14
- if (!(0, is_key_value_1.isKeyValue)(value) || !(0, common_1.isObj)(map)) {
10
+ export function isEnum(value, map) {
11
+ if (!isKeyValue(value) || !isObj(map)) {
15
12
  return false;
16
13
  }
17
14
  return map[value] !== undefined;
18
15
  }
19
- //# sourceMappingURL=is-enum.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isFalseLike = isFalseLike;
4
- const literal_1 = require("../literal");
1
+ import { FalseWeakItems } from "../literal/index.js";
5
2
  /**
6
3
  * Checks value is false like?
7
4
  * - `false like` means:
@@ -14,15 +11,14 @@ const literal_1 = require("../literal");
14
11
  * @param {any} value
15
12
  * @returns {boolean}
16
13
  * */
17
- function isFalseLike(value) {
14
+ export function isFalseLike(value) {
18
15
  switch (typeof value) {
19
16
  case "boolean":
20
17
  return !value;
21
18
  case "string":
22
- return literal_1.FalseWeakItems.includes(value);
19
+ return FalseWeakItems.includes(value);
23
20
  case 'number':
24
21
  return [-1, 0].includes(value);
25
22
  }
26
23
  return false;
27
24
  }
28
- //# sourceMappingURL=is-false-like.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInstanceOf = isInstanceOf;
4
- const is_another_object_1 = require("./is-another-object");
1
+ import { isAnotherObject } from "./is-another-object.js";
5
2
  /**
6
3
  * Checks value is any instance of given classes?
7
4
  *
@@ -9,10 +6,9 @@ const is_another_object_1 = require("./is-another-object");
9
6
  * @param {...ClassLike[]} classes
10
7
  * @returns {boolean}
11
8
  * */
12
- function isInstanceOf(value, ...classes) {
13
- if (classes.length < 1 || !(0, is_another_object_1.isAnotherObject)(value)) {
9
+ export function isInstanceOf(value, ...classes) {
10
+ if (classes.length < 1 || !isAnotherObject(value)) {
14
11
  return false;
15
12
  }
16
13
  return classes.some(clazz => value instanceof clazz);
17
14
  }
18
- //# sourceMappingURL=is-instance-of.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isKeyValue = isKeyValue;
4
- const is_not_empty_1 = require("./is-not-empty");
1
+ import { isNotEmpty } from "./is-not-empty.js";
5
2
  const _keyValueItems = ["string", "number"];
6
3
  /**
7
4
  * Checks value is key?
@@ -10,7 +7,6 @@ const _keyValueItems = ["string", "number"];
10
7
  * @param {any} value
11
8
  * @returns {boolean}
12
9
  * */
13
- function isKeyValue(value) {
14
- return (0, is_not_empty_1.isNotEmpty)(value) && _keyValueItems.includes(typeof value);
10
+ export function isKeyValue(value) {
11
+ return isNotEmpty(value) && _keyValueItems.includes(typeof value);
15
12
  }
16
- //# sourceMappingURL=is-key-value.js.map
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLiteral = isLiteral;
4
- const common_1 = require("@leyyo/common");
5
- const is_key_value_1 = require("./is-key-value");
1
+ import { isFilledArr } from "@leyyo/common";
2
+ import { isKeyValue } from "./is-key-value.js";
6
3
  /**
7
4
  * Checks value is an enum value?
8
5
  *
@@ -10,10 +7,9 @@ const is_key_value_1 = require("./is-key-value");
10
7
  * @param {Literal<string>} items
11
8
  * @returns {boolean}
12
9
  * */
13
- function isLiteral(value, items) {
14
- if (!(0, is_key_value_1.isKeyValue)(value) || !(0, common_1.isFilledArr)(items)) {
10
+ export function isLiteral(value, items) {
11
+ if (!isKeyValue(value) || !isFilledArr(items)) {
15
12
  return false;
16
13
  }
17
14
  return items.includes(value);
18
15
  }
19
- //# sourceMappingURL=is-literal.js.map
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNonNegativeInteger = isNonNegativeInteger;
4
1
  /**
5
2
  * Checks value is non-negative integer or not?
6
3
  *
@@ -9,7 +6,6 @@ exports.isNonNegativeInteger = isNonNegativeInteger;
9
6
  *
10
7
  * Note: NaN and infinite values are not evaluated as a number
11
8
  * */
12
- function isNonNegativeInteger(value) {
9
+ export function isNonNegativeInteger(value) {
13
10
  return Number.isInteger(value) && value >= 0;
14
11
  }
15
- //# sourceMappingURL=is-non-negative-integer.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNonNegativeNumber = isNonNegativeNumber;
4
- const is_valid_number_1 = require("./is-valid-number");
1
+ import { isValidNumber } from "./is-valid-number.js";
5
2
  /**
6
3
  * Checks value is non-negative number or not?
7
4
  *
@@ -10,7 +7,6 @@ const is_valid_number_1 = require("./is-valid-number");
10
7
  *
11
8
  * Note: NaN and infinite values are not evaluated as a number
12
9
  * */
13
- function isNonNegativeNumber(value) {
14
- return (0, is_valid_number_1.isValidNumber)(value) && value >= 0;
10
+ export function isNonNegativeNumber(value) {
11
+ return isValidNumber(value) && value >= 0;
15
12
  }
16
- //# sourceMappingURL=is-non-negative-number.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNotEmpty = isNotEmpty;
4
- const common_1 = require("@leyyo/common");
1
+ import { EMPTY_VALUES_STR } from "@leyyo/common";
5
2
  /**
6
3
  * Checks value is not empty?
7
4
  * - Empty means: `undefined`, `null` or `empty string` after trimming
@@ -10,10 +7,9 @@ const common_1 = require("@leyyo/common");
10
7
  * @param {any} value
11
8
  * @returns {boolean}
12
9
  * */
13
- function isNotEmpty(value) {
10
+ export function isNotEmpty(value) {
14
11
  if (typeof value === 'string') {
15
12
  value = value.trim();
16
13
  }
17
- return !common_1.EMPTY_VALUES_STR.includes(value);
14
+ return !EMPTY_VALUES_STR.includes(value);
18
15
  }
19
- //# sourceMappingURL=is-not-empty.js.map
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPositiveInteger = isPositiveInteger;
4
1
  /**
5
2
  * Checks value is positive integer or not?
6
3
  *
@@ -9,7 +6,6 @@ exports.isPositiveInteger = isPositiveInteger;
9
6
  *
10
7
  * Note: NaN and infinite values are not evaluated as a number
11
8
  * */
12
- function isPositiveInteger(value) {
9
+ export function isPositiveInteger(value) {
13
10
  return Number.isInteger(value) && value > 0;
14
11
  }
15
- //# sourceMappingURL=is-positive-integer.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPositiveNumber = isPositiveNumber;
4
- const is_valid_number_1 = require("./is-valid-number");
1
+ import { isValidNumber } from "./is-valid-number.js";
5
2
  /**
6
3
  * Checks value is positive number or not?
7
4
  *
@@ -10,7 +7,6 @@ const is_valid_number_1 = require("./is-valid-number");
10
7
  *
11
8
  * Note: NaN and infinite values are not evaluated as a number
12
9
  * */
13
- function isPositiveNumber(value) {
14
- return (0, is_valid_number_1.isValidNumber)(value) && value > 0;
10
+ export function isPositiveNumber(value) {
11
+ return isValidNumber(value) && value > 0;
15
12
  }
16
- //# sourceMappingURL=is-positive-number.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPrimitive = isPrimitive;
4
- const is_not_empty_1 = require("./is-not-empty");
1
+ import { isNotEmpty } from "./is-not-empty.js";
5
2
  const _primitiveValues = ["string", "number", "boolean"];
6
3
  // noinspection JSUnusedGlobalSymbols
7
4
  /**
@@ -11,7 +8,6 @@ const _primitiveValues = ["string", "number", "boolean"];
11
8
  * @param {any} value
12
9
  * @returns {boolean}
13
10
  * */
14
- function isPrimitive(value) {
15
- return (0, is_not_empty_1.isNotEmpty)(value) && _primitiveValues.includes(typeof value);
11
+ export function isPrimitive(value) {
12
+ return isNotEmpty(value) && _primitiveValues.includes(typeof value);
16
13
  }
17
- //# sourceMappingURL=is-primitive.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRealValue = isRealValue;
4
- const is_not_empty_1 = require("./is-not-empty");
1
+ import { isNotEmpty } from "./is-not-empty.js";
5
2
  const _realValueItems = ["string", "number", "bigint", "boolean", "object", "function"];
6
3
  /**
7
4
  * Checks value is real value?
@@ -11,7 +8,6 @@ const _realValueItems = ["string", "number", "bigint", "boolean", "object", "fun
11
8
  * @param {any} value
12
9
  * @returns {boolean}
13
10
  * */
14
- function isRealValue(value) {
15
- return (0, is_not_empty_1.isNotEmpty)(value) && _realValueItems.includes(typeof value);
11
+ export function isRealValue(value) {
12
+ return isNotEmpty(value) && _realValueItems.includes(typeof value);
16
13
  }
17
- //# sourceMappingURL=is-real-value.js.map
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSafeInteger = isSafeInteger;
4
1
  /**
5
2
  * Checks value is safe integer or not?
6
3
  * Safe integer means: an integer can not be outside the bigint range
@@ -10,7 +7,6 @@ exports.isSafeInteger = isSafeInteger;
10
7
  *
11
8
  * Note: NaN and infinite values are not evaluated as a number
12
9
  * */
13
- function isSafeInteger(value) {
10
+ export function isSafeInteger(value) {
14
11
  return Number.isInteger(value) && Number.isSafeInteger(value);
15
12
  }
16
- //# sourceMappingURL=is-safe-integer.js.map
@@ -1,14 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSysClass = isSysClass;
4
- const literal_1 = require("../literal");
1
+ import { SysClassItems } from "../literal/index.js";
5
2
  /**
6
3
  * Checks function is system class?
7
4
  *
8
5
  * @param {any} value
9
6
  * @returns {boolean}
10
7
  * */
11
- function isSysClass(value) {
12
- return (typeof value === 'function') && literal_1.SysClassItems.includes(typeof value);
8
+ export function isSysClass(value) {
9
+ return (typeof value === 'function') && SysClassItems.includes(typeof value);
13
10
  }
14
- //# sourceMappingURL=is-sys-class.js.map
@@ -1,14 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSysFunction = isSysFunction;
4
- const literal_1 = require("../literal");
1
+ import { SysFunctionItems } from "../literal/index.js";
5
2
  /**
6
3
  * Checks function is system function?
7
4
  *
8
5
  * @param {any} value
9
6
  * @returns {boolean}
10
7
  * */
11
- function isSysFunction(value) {
12
- return (typeof value === 'function') && literal_1.SysFunctionItems.includes(typeof value);
8
+ export function isSysFunction(value) {
9
+ return (typeof value === 'function') && SysFunctionItems.includes(typeof value);
13
10
  }
14
- //# sourceMappingURL=is-sys-function.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isTrueLike = isTrueLike;
4
- const literal_1 = require("../literal");
1
+ import { TrueWeakItems } from "../literal/index.js";
5
2
  /**
6
3
  * Checks value is true like?
7
4
  * - `true like` means:
@@ -14,15 +11,14 @@ const literal_1 = require("../literal");
14
11
  * @param {any} value
15
12
  * @returns {boolean}
16
13
  * */
17
- function isTrueLike(value) {
14
+ export function isTrueLike(value) {
18
15
  switch (typeof value) {
19
16
  case "boolean":
20
17
  return value;
21
18
  case "string":
22
- return literal_1.TrueWeakItems.includes(value);
19
+ return TrueWeakItems.includes(value);
23
20
  case 'number':
24
21
  return value === 1;
25
22
  }
26
23
  return false;
27
24
  }
28
- //# sourceMappingURL=is-true-like.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isTypeOf = isTypeOf;
4
- const is_not_empty_1 = require("./is-not-empty");
1
+ import { isNotEmpty } from "./is-not-empty.js";
5
2
  /**
6
3
  * Checks type of value is in given types
7
4
  *
@@ -9,7 +6,6 @@ const is_not_empty_1 = require("./is-not-empty");
9
6
  * @param {...BasicType} types
10
7
  * @returns {boolean}
11
8
  * */
12
- function isTypeOf(value, ...types) {
13
- return (0, is_not_empty_1.isNotEmpty)(value) && types.includes(typeof value);
9
+ export function isTypeOf(value, ...types) {
10
+ return isNotEmpty(value) && types.includes(typeof value);
14
11
  }
15
- //# sourceMappingURL=is-type-of.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isValidInteger = isValidInteger;
4
- const is_valid_number_1 = require("./is-valid-number");
1
+ import { isValidNumber } from "./is-valid-number.js";
5
2
  /**
6
3
  * Checks value is integer or not?
7
4
  *
@@ -10,7 +7,6 @@ const is_valid_number_1 = require("./is-valid-number");
10
7
  *
11
8
  * Note: NaN and infinite values are not evaluated as a number
12
9
  * */
13
- function isValidInteger(value) {
14
- return (0, is_valid_number_1.isValidNumber)(value) && Number.isInteger(value);
10
+ export function isValidInteger(value) {
11
+ return isValidNumber(value) && Number.isInteger(value);
15
12
  }
16
- //# sourceMappingURL=is-valid-integer.js.map
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isValidNumber = isValidNumber;
4
1
  /**
5
2
  * Checks value is number (float or integer) or not?
6
3
  *
@@ -9,7 +6,6 @@ exports.isValidNumber = isValidNumber;
9
6
  *
10
7
  * Note: NaN and infinite values are not evaluated as a number
11
8
  * */
12
- function isValidNumber(value) {
9
+ export function isValidNumber(value) {
13
10
  return (typeof value === 'number') && !isNaN(value) && isFinite(value);
14
11
  }
15
- //# sourceMappingURL=is-valid-number.js.map
@@ -1,6 +1,5 @@
1
1
  import { BasicType } from "@leyyo/common";
2
- export declare const BasicTypeDefined: ReadonlyArray<BasicType>;
3
2
  /**
4
- * JS Types
3
+ * JS Type without `undefined`
5
4
  * */
6
5
  export declare const BasicTypeItems: ReadonlyArray<BasicType>;
@@ -1,10 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BasicTypeItems = exports.BasicTypeDefined = void 0;
4
- exports.BasicTypeDefined = ['string', 'object', 'number', 'boolean', 'function', 'symbol', 'bigint'];
5
- // noinspection JSUnusedGlobalSymbols
1
+ import { literalPool } from "@leyyo/common";
2
+ import { FQN } from "../internal.js";
3
+ const literals = ['string', 'object', 'number', 'boolean', 'function', 'symbol', 'bigint', 'undefined'];
6
4
  /**
7
- * JS Types
5
+ * JS Type without `undefined`
8
6
  * */
9
- exports.BasicTypeItems = [...exports.BasicTypeDefined, 'undefined'];
10
- //# sourceMappingURL=basic-type.js.map
7
+ export const BasicTypeItems = literals;
8
+ literalPool.define(FQN, 'BasicType', BasicTypeItems, { i18n: true, aliases: [] });