hein 2.0.0-alpha.1 → 2.0.0-alpha.3

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 (413) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +34 -0
  2. package/dist/assert/deep-equal.cjs +40 -0
  3. package/dist/assert/deep-equal.cjs.map +1 -0
  4. package/dist/assert/deep-equal.d.cts +5 -0
  5. package/dist/assert/deep-equal.d.cts.map +1 -0
  6. package/dist/assert/deep-equal.d.ts +5 -0
  7. package/dist/assert/deep-equal.d.ts.map +1 -0
  8. package/dist/assert/deep-equal.js +36 -0
  9. package/dist/assert/deep-equal.js.map +1 -0
  10. package/dist/assert/deep-has-property.cjs +68 -0
  11. package/dist/assert/deep-has-property.cjs.map +1 -0
  12. package/dist/assert/deep-has-property.d.cts +22 -0
  13. package/dist/assert/deep-has-property.d.cts.map +1 -0
  14. package/dist/assert/deep-has-property.d.ts +22 -0
  15. package/dist/assert/deep-has-property.d.ts.map +1 -0
  16. package/dist/assert/deep-has-property.js +63 -0
  17. package/dist/assert/deep-has-property.js.map +1 -0
  18. package/dist/assert/ends-with.cjs +30 -0
  19. package/dist/assert/ends-with.cjs.map +1 -0
  20. package/dist/assert/ends-with.d.cts +13 -0
  21. package/dist/assert/ends-with.d.cts.map +1 -0
  22. package/dist/assert/ends-with.d.ts +13 -0
  23. package/dist/assert/ends-with.d.ts.map +1 -0
  24. package/dist/assert/ends-with.js +27 -0
  25. package/dist/assert/ends-with.js.map +1 -0
  26. package/dist/assert/equal.cjs +37 -0
  27. package/dist/assert/equal.cjs.map +1 -0
  28. package/dist/assert/equal.d.cts +11 -0
  29. package/dist/assert/equal.d.cts.map +1 -0
  30. package/dist/assert/equal.d.ts +11 -0
  31. package/dist/assert/equal.d.ts.map +1 -0
  32. package/dist/assert/equal.js +34 -0
  33. package/dist/assert/equal.js.map +1 -0
  34. package/dist/assert/greater-than-equal.cjs +32 -0
  35. package/dist/assert/greater-than-equal.cjs.map +1 -0
  36. package/dist/assert/greater-than-equal.d.cts +11 -0
  37. package/dist/assert/greater-than-equal.d.cts.map +1 -0
  38. package/dist/assert/greater-than-equal.d.ts +11 -0
  39. package/dist/assert/greater-than-equal.d.ts.map +1 -0
  40. package/dist/assert/greater-than-equal.js +29 -0
  41. package/dist/assert/greater-than-equal.js.map +1 -0
  42. package/dist/assert/greater-than.cjs +33 -0
  43. package/dist/assert/greater-than.cjs.map +1 -0
  44. package/dist/assert/greater-than.d.cts +11 -0
  45. package/dist/assert/greater-than.d.cts.map +1 -0
  46. package/dist/assert/greater-than.d.ts +11 -0
  47. package/dist/assert/greater-than.d.ts.map +1 -0
  48. package/dist/assert/greater-than.js +30 -0
  49. package/dist/assert/greater-than.js.map +1 -0
  50. package/dist/assert/has-keys.cjs +58 -0
  51. package/dist/assert/has-keys.cjs.map +1 -0
  52. package/dist/assert/has-keys.d.cts +16 -0
  53. package/dist/assert/has-keys.d.cts.map +1 -0
  54. package/dist/assert/has-keys.d.ts +16 -0
  55. package/dist/assert/has-keys.d.ts.map +1 -0
  56. package/dist/assert/has-keys.js +54 -0
  57. package/dist/assert/has-keys.js.map +1 -0
  58. package/dist/assert/has-members.cjs +67 -0
  59. package/dist/assert/has-members.cjs.map +1 -0
  60. package/dist/assert/has-members.d.cts +48 -0
  61. package/dist/assert/has-members.d.cts.map +1 -0
  62. package/dist/assert/has-members.d.ts +48 -0
  63. package/dist/assert/has-members.d.ts.map +1 -0
  64. package/dist/assert/has-members.js +64 -0
  65. package/dist/assert/has-members.js.map +1 -0
  66. package/dist/assert/has-property.cjs +61 -0
  67. package/dist/assert/has-property.cjs.map +1 -0
  68. package/dist/assert/has-property.d.cts +22 -0
  69. package/dist/assert/has-property.d.cts.map +1 -0
  70. package/dist/assert/has-property.d.ts +22 -0
  71. package/dist/assert/has-property.d.ts.map +1 -0
  72. package/dist/assert/has-property.js +58 -0
  73. package/dist/assert/has-property.js.map +1 -0
  74. package/dist/assert/has-size.cjs +122 -0
  75. package/dist/assert/has-size.cjs.map +1 -0
  76. package/dist/assert/has-size.d.cts +42 -0
  77. package/dist/assert/has-size.d.cts.map +1 -0
  78. package/dist/assert/has-size.d.ts +42 -0
  79. package/dist/assert/has-size.d.ts.map +1 -0
  80. package/dist/assert/has-size.js +118 -0
  81. package/dist/assert/has-size.js.map +1 -0
  82. package/dist/assert/in-ballpark.cjs +44 -0
  83. package/dist/assert/in-ballpark.cjs.map +1 -0
  84. package/dist/assert/in-ballpark.d.cts +16 -0
  85. package/dist/assert/in-ballpark.d.cts.map +1 -0
  86. package/dist/assert/in-ballpark.d.ts +16 -0
  87. package/dist/assert/in-ballpark.d.ts.map +1 -0
  88. package/dist/assert/in-ballpark.js +41 -0
  89. package/dist/assert/in-ballpark.js.map +1 -0
  90. package/dist/assert/includes.cjs +30 -0
  91. package/dist/assert/includes.cjs.map +1 -0
  92. package/dist/assert/includes.d.cts +24 -0
  93. package/dist/assert/includes.d.cts.map +1 -0
  94. package/dist/assert/includes.d.ts +24 -0
  95. package/dist/assert/includes.d.ts.map +1 -0
  96. package/dist/assert/includes.js +27 -0
  97. package/dist/assert/includes.js.map +1 -0
  98. package/dist/assert/instance-of.cjs +36 -0
  99. package/dist/assert/instance-of.cjs.map +1 -0
  100. package/dist/assert/instance-of.d.cts +16 -0
  101. package/dist/assert/instance-of.d.cts.map +1 -0
  102. package/dist/assert/instance-of.d.ts +16 -0
  103. package/dist/assert/instance-of.d.ts.map +1 -0
  104. package/dist/assert/instance-of.js +32 -0
  105. package/dist/assert/instance-of.js.map +1 -0
  106. package/dist/assert/is-after.cjs +29 -0
  107. package/dist/assert/is-after.cjs.map +1 -0
  108. package/dist/assert/is-after.d.cts +11 -0
  109. package/dist/assert/is-after.d.cts.map +1 -0
  110. package/dist/assert/is-after.d.ts +11 -0
  111. package/dist/assert/is-after.d.ts.map +1 -0
  112. package/dist/assert/is-after.js +26 -0
  113. package/dist/assert/is-after.js.map +1 -0
  114. package/dist/assert/is-before.cjs +29 -0
  115. package/dist/assert/is-before.cjs.map +1 -0
  116. package/dist/assert/is-before.d.cts +11 -0
  117. package/dist/assert/is-before.d.cts.map +1 -0
  118. package/dist/assert/is-before.d.ts +11 -0
  119. package/dist/assert/is-before.d.ts.map +1 -0
  120. package/dist/assert/is-before.js +26 -0
  121. package/dist/assert/is-before.js.map +1 -0
  122. package/dist/assert/is-between.cjs +47 -0
  123. package/dist/assert/is-between.cjs.map +1 -0
  124. package/dist/assert/is-between.d.cts +15 -0
  125. package/dist/assert/is-between.d.cts.map +1 -0
  126. package/dist/assert/is-between.d.ts +15 -0
  127. package/dist/assert/is-between.d.ts.map +1 -0
  128. package/dist/assert/is-between.js +44 -0
  129. package/dist/assert/is-between.js.map +1 -0
  130. package/dist/assert/is-empty.cjs +98 -0
  131. package/dist/assert/is-empty.cjs.map +1 -0
  132. package/dist/assert/is-empty.d.cts +31 -0
  133. package/dist/assert/is-empty.d.cts.map +1 -0
  134. package/dist/assert/is-empty.d.ts +31 -0
  135. package/dist/assert/is-empty.d.ts.map +1 -0
  136. package/dist/assert/is-empty.js +94 -0
  137. package/dist/assert/is-empty.js.map +1 -0
  138. package/dist/assert/is-type.cjs +34 -0
  139. package/dist/assert/is-type.cjs.map +1 -0
  140. package/dist/assert/is-type.d.cts +97 -0
  141. package/dist/assert/is-type.d.cts.map +1 -0
  142. package/dist/assert/is-type.d.ts +97 -0
  143. package/dist/assert/is-type.d.ts.map +1 -0
  144. package/dist/assert/is-type.js +31 -0
  145. package/dist/assert/is-type.js.map +1 -0
  146. package/dist/assert/less-than-equal.cjs +36 -0
  147. package/dist/assert/less-than-equal.cjs.map +1 -0
  148. package/dist/assert/less-than-equal.d.cts +11 -0
  149. package/dist/assert/less-than-equal.d.cts.map +1 -0
  150. package/dist/assert/less-than-equal.d.ts +11 -0
  151. package/dist/assert/less-than-equal.d.ts.map +1 -0
  152. package/dist/assert/less-than-equal.js +33 -0
  153. package/dist/assert/less-than-equal.js.map +1 -0
  154. package/dist/assert/less-than.cjs +34 -0
  155. package/dist/assert/less-than.cjs.map +1 -0
  156. package/dist/assert/less-than.d.cts +11 -0
  157. package/dist/assert/less-than.d.cts.map +1 -0
  158. package/dist/assert/less-than.d.ts +11 -0
  159. package/dist/assert/less-than.d.ts.map +1 -0
  160. package/dist/assert/less-than.js +31 -0
  161. package/dist/assert/less-than.js.map +1 -0
  162. package/dist/assert/match.cjs +31 -0
  163. package/dist/assert/match.cjs.map +1 -0
  164. package/dist/assert/match.d.cts +15 -0
  165. package/dist/assert/match.d.cts.map +1 -0
  166. package/dist/assert/match.d.ts +15 -0
  167. package/dist/assert/match.d.ts.map +1 -0
  168. package/dist/assert/match.js +28 -0
  169. package/dist/assert/match.js.map +1 -0
  170. package/dist/assert/rejects.cjs +49 -0
  171. package/dist/assert/rejects.cjs.map +1 -0
  172. package/dist/assert/rejects.d.cts +36 -0
  173. package/dist/assert/rejects.d.cts.map +1 -0
  174. package/dist/assert/rejects.d.ts +36 -0
  175. package/dist/assert/rejects.d.ts.map +1 -0
  176. package/dist/assert/rejects.js +46 -0
  177. package/dist/assert/rejects.js.map +1 -0
  178. package/dist/assert/round-to.cjs +54 -0
  179. package/dist/assert/round-to.cjs.map +1 -0
  180. package/dist/assert/round-to.d.cts +15 -0
  181. package/dist/assert/round-to.d.cts.map +1 -0
  182. package/dist/assert/round-to.d.ts +15 -0
  183. package/dist/assert/round-to.d.ts.map +1 -0
  184. package/dist/assert/round-to.js +51 -0
  185. package/dist/assert/round-to.js.map +1 -0
  186. package/dist/assert/starts-with.cjs +30 -0
  187. package/dist/assert/starts-with.cjs.map +1 -0
  188. package/dist/assert/starts-with.d.cts +14 -0
  189. package/dist/assert/starts-with.d.cts.map +1 -0
  190. package/dist/assert/starts-with.d.ts +14 -0
  191. package/dist/assert/starts-with.d.ts.map +1 -0
  192. package/dist/assert/starts-with.js +27 -0
  193. package/dist/assert/starts-with.js.map +1 -0
  194. package/dist/assert/throws.cjs +41 -0
  195. package/dist/assert/throws.cjs.map +1 -0
  196. package/dist/{throws-CYLYG7gu.d.cts → assert/throws.d.cts} +4 -11
  197. package/dist/assert/throws.d.cts.map +1 -0
  198. package/dist/{throws-BlzO4xvg.d.ts → assert/throws.d.ts} +3 -12
  199. package/dist/assert/throws.d.ts.map +1 -0
  200. package/dist/assert/throws.js +38 -0
  201. package/dist/assert/throws.js.map +1 -0
  202. package/dist/assert.cjs +143 -52
  203. package/dist/assert.cjs.map +1 -0
  204. package/dist/assert.d.cts +34 -3
  205. package/dist/assert.d.cts.map +1 -0
  206. package/dist/assert.d.ts +34 -3
  207. package/dist/assert.d.ts.map +1 -0
  208. package/dist/assert.js +87 -2
  209. package/dist/assert.js.map +1 -0
  210. package/dist/expect/after.cjs +15 -0
  211. package/dist/expect/after.cjs.map +1 -0
  212. package/dist/expect/after.js +16 -0
  213. package/dist/expect/after.js.map +1 -0
  214. package/dist/expect/ballpark.cjs +15 -0
  215. package/dist/expect/ballpark.cjs.map +1 -0
  216. package/dist/expect/ballpark.js +16 -0
  217. package/dist/expect/ballpark.js.map +1 -0
  218. package/dist/expect/before.cjs +15 -0
  219. package/dist/expect/before.cjs.map +1 -0
  220. package/dist/expect/before.js +16 -0
  221. package/dist/expect/before.js.map +1 -0
  222. package/dist/expect/between.cjs +15 -0
  223. package/dist/expect/between.cjs.map +1 -0
  224. package/dist/expect/between.js +16 -0
  225. package/dist/expect/between.js.map +1 -0
  226. package/dist/expect/empty.cjs +15 -0
  227. package/dist/expect/empty.cjs.map +1 -0
  228. package/dist/expect/empty.js +16 -0
  229. package/dist/expect/empty.js.map +1 -0
  230. package/dist/expect/end-with.cjs +15 -0
  231. package/dist/expect/end-with.cjs.map +1 -0
  232. package/dist/expect/end-with.js +16 -0
  233. package/dist/expect/end-with.js.map +1 -0
  234. package/dist/expect/eql.cjs +21 -0
  235. package/dist/expect/eql.cjs.map +1 -0
  236. package/dist/expect/eql.js +22 -0
  237. package/dist/expect/eql.js.map +1 -0
  238. package/dist/expect/equal-shorthand.cjs +34 -0
  239. package/dist/expect/equal-shorthand.cjs.map +1 -0
  240. package/dist/expect/equal-shorthand.js +33 -0
  241. package/dist/expect/equal-shorthand.js.map +1 -0
  242. package/dist/expect/equal.cjs +27 -0
  243. package/dist/expect/equal.cjs.map +1 -0
  244. package/dist/expect/equal.js +28 -0
  245. package/dist/expect/equal.js.map +1 -0
  246. package/dist/expect/excluding.cjs +19 -0
  247. package/dist/expect/excluding.cjs.map +1 -0
  248. package/dist/expect/excluding.js +18 -0
  249. package/dist/expect/excluding.js.map +1 -0
  250. package/dist/expect/greater-than-equal.cjs +25 -0
  251. package/dist/expect/greater-than-equal.cjs.map +1 -0
  252. package/dist/expect/greater-than-equal.js +26 -0
  253. package/dist/expect/greater-than-equal.js.map +1 -0
  254. package/dist/expect/greater-than.cjs +25 -0
  255. package/dist/expect/greater-than.cjs.map +1 -0
  256. package/dist/expect/greater-than.js +26 -0
  257. package/dist/expect/greater-than.js.map +1 -0
  258. package/dist/expect/has-property.cjs +20 -0
  259. package/dist/expect/has-property.cjs.map +1 -0
  260. package/dist/expect/has-property.js +21 -0
  261. package/dist/expect/has-property.js.map +1 -0
  262. package/dist/expect/include.cjs +21 -0
  263. package/dist/expect/include.cjs.map +1 -0
  264. package/dist/expect/include.js +22 -0
  265. package/dist/expect/include.js.map +1 -0
  266. package/dist/expect/instance-of-shorthand.cjs +24 -0
  267. package/dist/expect/instance-of-shorthand.cjs.map +1 -0
  268. package/dist/expect/instance-of-shorthand.js +25 -0
  269. package/dist/expect/instance-of-shorthand.js.map +1 -0
  270. package/dist/expect/instance-of.cjs +15 -0
  271. package/dist/expect/instance-of.cjs.map +1 -0
  272. package/dist/expect/instance-of.js +16 -0
  273. package/dist/expect/instance-of.js.map +1 -0
  274. package/dist/expect/keys.cjs +15 -0
  275. package/dist/expect/keys.cjs.map +1 -0
  276. package/dist/expect/keys.js +16 -0
  277. package/dist/expect/keys.js.map +1 -0
  278. package/dist/expect/length.cjs +21 -0
  279. package/dist/expect/length.cjs.map +1 -0
  280. package/dist/expect/length.js +22 -0
  281. package/dist/expect/length.js.map +1 -0
  282. package/dist/expect/less-than-equal.cjs +25 -0
  283. package/dist/expect/less-than-equal.cjs.map +1 -0
  284. package/dist/expect/less-than-equal.js +26 -0
  285. package/dist/expect/less-than-equal.js.map +1 -0
  286. package/dist/expect/less-than.cjs +25 -0
  287. package/dist/expect/less-than.cjs.map +1 -0
  288. package/dist/expect/less-than.js +26 -0
  289. package/dist/expect/less-than.js.map +1 -0
  290. package/dist/expect/match.cjs +15 -0
  291. package/dist/expect/match.cjs.map +1 -0
  292. package/dist/expect/match.js +16 -0
  293. package/dist/expect/match.js.map +1 -0
  294. package/dist/expect/members.cjs +41 -0
  295. package/dist/expect/members.cjs.map +1 -0
  296. package/dist/expect/members.js +42 -0
  297. package/dist/expect/members.js.map +1 -0
  298. package/dist/expect/reject.cjs +14 -0
  299. package/dist/expect/reject.cjs.map +1 -0
  300. package/dist/expect/reject.js +15 -0
  301. package/dist/expect/reject.js.map +1 -0
  302. package/dist/expect/round-to.cjs +15 -0
  303. package/dist/expect/round-to.cjs.map +1 -0
  304. package/dist/expect/round-to.js +16 -0
  305. package/dist/expect/round-to.js.map +1 -0
  306. package/dist/expect/start-with.cjs +15 -0
  307. package/dist/expect/start-with.cjs.map +1 -0
  308. package/dist/expect/start-with.js +16 -0
  309. package/dist/expect/start-with.js.map +1 -0
  310. package/dist/expect/throw.cjs +14 -0
  311. package/dist/expect/throw.cjs.map +1 -0
  312. package/dist/expect/throw.js +15 -0
  313. package/dist/expect/throw.js.map +1 -0
  314. package/dist/expect/type-shorthand.cjs +29 -0
  315. package/dist/expect/type-shorthand.cjs.map +1 -0
  316. package/dist/expect/type-shorthand.js +30 -0
  317. package/dist/expect/type-shorthand.js.map +1 -0
  318. package/dist/expect/type.cjs +15 -0
  319. package/dist/expect/type.cjs.map +1 -0
  320. package/dist/expect/type.js +16 -0
  321. package/dist/expect/type.js.map +1 -0
  322. package/dist/expect.cjs +144 -0
  323. package/dist/expect.cjs.map +1 -0
  324. package/dist/expect.d.cts +10 -0
  325. package/dist/expect.d.cts.map +1 -0
  326. package/dist/expect.d.ts +10 -0
  327. package/dist/expect.d.ts.map +1 -0
  328. package/dist/expect.js +141 -0
  329. package/dist/expect.js.map +1 -0
  330. package/dist/expect.types.d.cts +67 -3
  331. package/dist/expect.types.d.cts.map +1 -0
  332. package/dist/expect.types.d.ts +67 -3
  333. package/dist/expect.types.d.ts.map +1 -0
  334. package/dist/index.cjs +13 -582
  335. package/dist/index.d.cts +8 -15
  336. package/dist/index.d.ts +8 -15
  337. package/dist/index.js +8 -575
  338. package/dist/mixins.cjs +11 -0
  339. package/dist/mixins.cjs.map +1 -0
  340. package/dist/mixins.d.cts +28 -0
  341. package/dist/mixins.d.cts.map +1 -0
  342. package/dist/mixins.d.ts +28 -0
  343. package/dist/mixins.d.ts.map +1 -0
  344. package/dist/mixins.js +9 -0
  345. package/dist/mixins.js.map +1 -0
  346. package/dist/utils/chain.cjs +20 -0
  347. package/dist/utils/chain.cjs.map +1 -0
  348. package/dist/utils/chain.js +18 -0
  349. package/dist/utils/chain.js.map +1 -0
  350. package/dist/utils/fail.cjs +16 -0
  351. package/dist/utils/fail.cjs.map +1 -0
  352. package/dist/utils/fail.d.cts +9 -0
  353. package/dist/utils/fail.d.cts.map +1 -0
  354. package/dist/utils/fail.d.ts +9 -0
  355. package/dist/utils/fail.d.ts.map +1 -0
  356. package/dist/utils/fail.js +14 -0
  357. package/dist/utils/fail.js.map +1 -0
  358. package/dist/utils/get-size.cjs +17 -0
  359. package/dist/utils/get-size.cjs.map +1 -0
  360. package/dist/utils/get-size.js +15 -0
  361. package/dist/utils/get-size.js.map +1 -0
  362. package/dist/utils/get-type.cjs +12 -0
  363. package/dist/utils/get-type.cjs.map +1 -0
  364. package/dist/utils/get-type.d.cts +5 -0
  365. package/dist/utils/get-type.d.cts.map +1 -0
  366. package/dist/utils/get-type.d.ts +5 -0
  367. package/dist/utils/get-type.d.ts.map +1 -0
  368. package/dist/utils/get-type.js +11 -0
  369. package/dist/utils/get-type.js.map +1 -0
  370. package/dist/utils/match.cjs +118 -0
  371. package/dist/utils/match.cjs.map +1 -0
  372. package/dist/utils/match.d.cts +7 -0
  373. package/dist/utils/match.d.cts.map +1 -0
  374. package/dist/utils/match.d.ts +7 -0
  375. package/dist/utils/match.d.ts.map +1 -0
  376. package/dist/utils/match.js +114 -0
  377. package/dist/utils/match.js.map +1 -0
  378. package/dist/utils/process-error.cjs +86 -0
  379. package/dist/utils/process-error.cjs.map +1 -0
  380. package/dist/utils/process-error.d.cts +8 -0
  381. package/dist/utils/process-error.d.cts.map +1 -0
  382. package/dist/utils/process-error.d.ts +10 -0
  383. package/dist/utils/process-error.d.ts.map +1 -0
  384. package/dist/utils/process-error.js +85 -0
  385. package/dist/utils/process-error.js.map +1 -0
  386. package/dist/utils/validate-numeric-and-dates.cjs +20 -0
  387. package/dist/utils/validate-numeric-and-dates.cjs.map +1 -0
  388. package/dist/utils/validate-numeric-and-dates.js +18 -0
  389. package/dist/utils/validate-numeric-and-dates.js.map +1 -0
  390. package/dist/utils/xor.cjs +9 -0
  391. package/dist/utils/xor.cjs.map +1 -0
  392. package/dist/utils/xor.js +8 -0
  393. package/dist/utils/xor.js.map +1 -0
  394. package/package.json +1 -1
  395. package/dist/assert-ChQPKP5C.d.cts +0 -480
  396. package/dist/assert-ChQPKP5C.d.cts.map +0 -1
  397. package/dist/assert-CsN7srt-.d.ts +0 -478
  398. package/dist/assert-CsN7srt-.d.ts.map +0 -1
  399. package/dist/assert-DZjgWjOw.cjs +0 -1626
  400. package/dist/assert-DZjgWjOw.cjs.map +0 -1
  401. package/dist/assert-kFXp7i_B.js +0 -1260
  402. package/dist/assert-kFXp7i_B.js.map +0 -1
  403. package/dist/expect.types-CHYPdbCW.d.cts +0 -454
  404. package/dist/expect.types-CHYPdbCW.d.cts.map +0 -1
  405. package/dist/expect.types-nBq4Rg8e.d.ts +0 -454
  406. package/dist/expect.types-nBq4Rg8e.d.ts.map +0 -1
  407. package/dist/index.cjs.map +0 -1
  408. package/dist/index.d.cts.map +0 -1
  409. package/dist/index.d.ts.map +0 -1
  410. package/dist/index.js.map +0 -1
  411. package/dist/throws-BlzO4xvg.d.ts.map +0 -1
  412. package/dist/throws-CYLYG7gu.d.cts.map +0 -1
  413. /package/dist/{chunk-CTAAG5j7.js → _virtual/rolldown_runtime.js} +0 -0
package/dist/assert.js CHANGED
@@ -1,3 +1,88 @@
1
- import { assert, deepEqual, deepHasProperty, deepNotHasProperty, endsWith, equal, greaterThan, greaterThanEqual, hasKeys, hasMembers, hasProperty, hasSize, inBallpark, includes, instanceOf, isAfter, isBefore, isBetween, isEmpty, isType, lessThan, lessThanEqual, match, notAfter, notBefore, notBetween, notDeepEqual, notEndsWith, notEqual, notGreaterThan, notGreaterThanEqual, notHasKeys, notHasMembers, notHasProperty, notHasSize, notInBallpark, notIncludes, notInstanceOf, notIsEmpty, notIsType, notLessThan, notLessThanEqual, notMatch, notRejects, notRoundTo, notStartsWith, notThrows, rejects, roundTo, startsWith, throws } from "./assert-kFXp7i_B.js";
1
+ import { __export } from "./_virtual/rolldown_runtime.js";
2
+ import { deepEqual, notDeepEqual } from "./assert/deep-equal.js";
3
+ import { equal, notEqual } from "./assert/equal.js";
4
+ import { greaterThan, notGreaterThan } from "./assert/greater-than.js";
5
+ import { greaterThanEqual, notGreaterThanEqual } from "./assert/greater-than-equal.js";
6
+ import { hasProperty, notHasProperty } from "./assert/has-property.js";
7
+ import { hasSize, notHasSize } from "./assert/has-size.js";
8
+ import { includes, notIncludes } from "./assert/includes.js";
9
+ import { instanceOf, notInstanceOf } from "./assert/instance-of.js";
10
+ import { isEmpty, notIsEmpty } from "./assert/is-empty.js";
11
+ import { isType, notIsType } from "./assert/is-type.js";
12
+ import { lessThan, notLessThan } from "./assert/less-than.js";
13
+ import { lessThanEqual, notLessThanEqual } from "./assert/less-than-equal.js";
14
+ import { match, notMatch } from "./assert/match.js";
15
+ import { notRejects, rejects } from "./assert/rejects.js";
16
+ import { notThrows, throws } from "./assert/throws.js";
17
+ import { deepHasProperty, deepNotHasProperty } from "./assert/deep-has-property.js";
18
+ import { notStartsWith, startsWith } from "./assert/starts-with.js";
19
+ import { endsWith, notEndsWith } from "./assert/ends-with.js";
20
+ import { isBefore, notBefore } from "./assert/is-before.js";
21
+ import { isAfter, notAfter } from "./assert/is-after.js";
22
+ import { isBetween, notBetween } from "./assert/is-between.js";
23
+ import { inBallpark, notInBallpark } from "./assert/in-ballpark.js";
24
+ import { notRoundTo, roundTo } from "./assert/round-to.js";
25
+ import { hasMembers, notHasMembers } from "./assert/has-members.js";
26
+ import { hasKeys, notHasKeys } from "./assert/has-keys.js";
2
27
 
3
- export { assert, deepEqual, deepHasProperty, deepNotHasProperty, endsWith, equal, greaterThan, greaterThanEqual, hasKeys, hasMembers, hasProperty, hasSize, inBallpark, includes, instanceOf, isAfter, isBefore, isBetween, isEmpty, isType, lessThan, lessThanEqual, match, notAfter, notBefore, notBetween, notDeepEqual, notEndsWith, notEqual, notGreaterThan, notGreaterThanEqual, notHasKeys, notHasMembers, notHasProperty, notHasSize, notInBallpark, notIncludes, notInstanceOf, notIsEmpty, notIsType, notLessThan, notLessThanEqual, notMatch, notRejects, notRoundTo, notStartsWith, notThrows, rejects, roundTo, startsWith, throws };
28
+ //#region src/assert.ts
29
+ var assert_exports = /* @__PURE__ */ __export({
30
+ assert: () => assert,
31
+ deepEqual: () => deepEqual,
32
+ deepHasProperty: () => deepHasProperty,
33
+ deepNotHasProperty: () => deepNotHasProperty,
34
+ endsWith: () => endsWith,
35
+ equal: () => equal,
36
+ greaterThan: () => greaterThan,
37
+ greaterThanEqual: () => greaterThanEqual,
38
+ hasKeys: () => hasKeys,
39
+ hasMembers: () => hasMembers,
40
+ hasProperty: () => hasProperty,
41
+ hasSize: () => hasSize,
42
+ inBallpark: () => inBallpark,
43
+ includes: () => includes,
44
+ instanceOf: () => instanceOf,
45
+ isAfter: () => isAfter,
46
+ isBefore: () => isBefore,
47
+ isBetween: () => isBetween,
48
+ isEmpty: () => isEmpty,
49
+ isType: () => isType,
50
+ lessThan: () => lessThan,
51
+ lessThanEqual: () => lessThanEqual,
52
+ match: () => match,
53
+ notAfter: () => notAfter,
54
+ notBefore: () => notBefore,
55
+ notBetween: () => notBetween,
56
+ notDeepEqual: () => notDeepEqual,
57
+ notEndsWith: () => notEndsWith,
58
+ notEqual: () => notEqual,
59
+ notGreaterThan: () => notGreaterThan,
60
+ notGreaterThanEqual: () => notGreaterThanEqual,
61
+ notHasKeys: () => notHasKeys,
62
+ notHasMembers: () => notHasMembers,
63
+ notHasProperty: () => notHasProperty,
64
+ notHasSize: () => notHasSize,
65
+ notInBallpark: () => notInBallpark,
66
+ notIncludes: () => notIncludes,
67
+ notInstanceOf: () => notInstanceOf,
68
+ notIsEmpty: () => notIsEmpty,
69
+ notIsType: () => notIsType,
70
+ notLessThan: () => notLessThan,
71
+ notLessThanEqual: () => notLessThanEqual,
72
+ notMatch: () => notMatch,
73
+ notRejects: () => notRejects,
74
+ notRoundTo: () => notRoundTo,
75
+ notStartsWith: () => notStartsWith,
76
+ notThrows: () => notThrows,
77
+ rejects: () => rejects,
78
+ roundTo: () => roundTo,
79
+ startsWith: () => startsWith,
80
+ throws: () => throws
81
+ });
82
+ const assert = () => {
83
+ throw new Error("Not implemented");
84
+ };
85
+
86
+ //#endregion
87
+ export { assert, assert_exports, deepEqual, deepHasProperty, deepNotHasProperty, endsWith, equal, greaterThan, greaterThanEqual, hasKeys, hasMembers, hasProperty, hasSize, inBallpark, includes, instanceOf, isAfter, isBefore, isBetween, isEmpty, isType, lessThan, lessThanEqual, match, notAfter, notBefore, notBetween, notDeepEqual, notEndsWith, notEqual, notGreaterThan, notGreaterThanEqual, notHasKeys, notHasMembers, notHasProperty, notHasSize, notInBallpark, notIncludes, notInstanceOf, notIsEmpty, notIsType, notLessThan, notLessThanEqual, notMatch, notRejects, notRoundTo, notStartsWith, notThrows, rejects, roundTo, startsWith, throws };
88
+ //# sourceMappingURL=assert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert.js","names":[],"sources":["../src/assert.ts"],"sourcesContent":["export { deepEqual, notDeepEqual } from './assert/deep-equal.js';\nexport { equal, notEqual } from './assert/equal.js';\nexport { greaterThan, notGreaterThan } from './assert/greater-than.js';\nexport { greaterThanEqual, notGreaterThanEqual } from './assert/greater-than-equal.js';\nexport { hasProperty, notHasProperty } from './assert/has-property.js';\nexport { hasSize, notHasSize } from './assert/has-size.js';\nexport { includes, notIncludes } from './assert/includes.js';\nexport { instanceOf, notInstanceOf } from './assert/instance-of.js';\nexport { isEmpty, notIsEmpty } from './assert/is-empty.js';\nexport { isType, notIsType } from './assert/is-type.js';\nexport { lessThan, notLessThan } from './assert/less-than.js';\nexport { lessThanEqual, notLessThanEqual } from './assert/less-than-equal.js';\nexport { match, notMatch } from './assert/match.js';\nexport { notRejects, rejects } from './assert/rejects.js';\nexport { notThrows, throws } from './assert/throws.js';\nexport { deepHasProperty, deepNotHasProperty } from './assert/deep-has-property.js';\nexport { startsWith, notStartsWith } from './assert/starts-with.js';\nexport { endsWith, notEndsWith } from './assert/ends-with.js';\nexport { isBefore, notBefore } from './assert/is-before.js';\nexport { isAfter, notAfter } from './assert/is-after.js';\nexport { isBetween, notBetween } from './assert/is-between.js';\nexport { inBallpark, notInBallpark } from './assert/in-ballpark.js';\nexport { roundTo, notRoundTo } from './assert/round-to.js';\nexport { hasMembers, notHasMembers } from './assert/has-members.js';\nexport { hasKeys, notHasKeys } from './assert/has-keys.js';\n\nexport const assert = () => {\n throw new Error('Not implemented');\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAa,eAAe;AACxB,OAAM,IAAI,MAAM,kBAAkB"}
@@ -0,0 +1,15 @@
1
+ const require_is_after = require('../assert/is-after.cjs');
2
+ require('../assert.cjs');
3
+ const require_mixins = require('../mixins.cjs');
4
+
5
+ //#region src/expect/after.ts
6
+ require_mixins.use({ after: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (date) => {
9
+ if (inverted) require_is_after.notAfter(value, date);
10
+ else require_is_after.isAfter(value, date);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ //# sourceMappingURL=after.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"after.cjs","names":["use"],"sources":["../../src/expect/after.ts"],"sourcesContent":["import { isAfter, notAfter } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface DateExpect {\n /**\n * check if date is after other date\n * @param date\n */\n after(date: Date): this;\n }\n}\n\nuse({\n after: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (date: Date) => {\n if (inverted) {\n notAfter(value, date);\n } else {\n isAfter(value, date);\n }\n }\n }\n});\n"],"mappings":";;;;;AAaAA,mBAAI,EACA,OAAO;CACH,MAAM;CACN,QACK,EAAE,OAAO,gBACT,SAAe;AACZ,MAAI,SACA,2BAAS,OAAO,KAAK;MAErB,0BAAQ,OAAO,KAAK;;CAGnC,EACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { isAfter, notAfter } from "../assert/is-after.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+
5
+ //#region src/expect/after.ts
6
+ use({ after: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (date) => {
9
+ if (inverted) notAfter(value, date);
10
+ else isAfter(value, date);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ export { };
16
+ //# sourceMappingURL=after.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"after.js","names":[],"sources":["../../src/expect/after.ts"],"sourcesContent":["import { isAfter, notAfter } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface DateExpect {\n /**\n * check if date is after other date\n * @param date\n */\n after(date: Date): this;\n }\n}\n\nuse({\n after: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (date: Date) => {\n if (inverted) {\n notAfter(value, date);\n } else {\n isAfter(value, date);\n }\n }\n }\n});\n"],"mappings":";;;;;AAaA,IAAI,EACA,OAAO;CACH,MAAM;CACN,QACK,EAAE,OAAO,gBACT,SAAe;AACZ,MAAI,SACA,UAAS,OAAO,KAAK;MAErB,SAAQ,OAAO,KAAK;;CAGnC,EACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ const require_in_ballpark = require('../assert/in-ballpark.cjs');
2
+ require('../assert.cjs');
3
+ const require_mixins = require('../mixins.cjs');
4
+
5
+ //#region src/expect/ballpark.ts
6
+ require_mixins.use({ ballpark: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (ballpark, multiplier = .1) => {
9
+ if (inverted) require_in_ballpark.notInBallpark(value, ballpark, multiplier);
10
+ else require_in_ballpark.inBallpark(value, ballpark, multiplier);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ //# sourceMappingURL=ballpark.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ballpark.cjs","names":["use"],"sources":["../../src/expect/ballpark.ts"],"sourcesContent":["import { inBallpark, notInBallpark } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface NumberExpect {\n /**\n * check if number close enough (default 10%)\n * @param ballpark\n * @param [multiplier=10] - a number between 0 and 1 (exclusive). 0.1 (default) means 10% difference is allowed.\n */\n ballpark(ballpark: number, multiplier?: number): this;\n }\n}\n\nuse({\n ballpark: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (ballpark, multiplier = 0.1) => {\n if (inverted) {\n notInBallpark(value, ballpark, multiplier);\n } else {\n inBallpark(value, ballpark, multiplier);\n }\n }\n }\n});\n"],"mappings":";;;;;AAcAA,mBAAI,EACA,UAAU;CACN,MAAM;CACN,QACK,EAAE,OAAO,gBACT,UAAU,aAAa,OAAQ;AAC5B,MAAI,SACA,mCAAc,OAAO,UAAU,WAAW;MAE1C,gCAAW,OAAO,UAAU,WAAW;;CAGtD,EACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { inBallpark, notInBallpark } from "../assert/in-ballpark.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+
5
+ //#region src/expect/ballpark.ts
6
+ use({ ballpark: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (ballpark, multiplier = .1) => {
9
+ if (inverted) notInBallpark(value, ballpark, multiplier);
10
+ else inBallpark(value, ballpark, multiplier);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ export { };
16
+ //# sourceMappingURL=ballpark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ballpark.js","names":[],"sources":["../../src/expect/ballpark.ts"],"sourcesContent":["import { inBallpark, notInBallpark } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface NumberExpect {\n /**\n * check if number close enough (default 10%)\n * @param ballpark\n * @param [multiplier=10] - a number between 0 and 1 (exclusive). 0.1 (default) means 10% difference is allowed.\n */\n ballpark(ballpark: number, multiplier?: number): this;\n }\n}\n\nuse({\n ballpark: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (ballpark, multiplier = 0.1) => {\n if (inverted) {\n notInBallpark(value, ballpark, multiplier);\n } else {\n inBallpark(value, ballpark, multiplier);\n }\n }\n }\n});\n"],"mappings":";;;;;AAcA,IAAI,EACA,UAAU;CACN,MAAM;CACN,QACK,EAAE,OAAO,gBACT,UAAU,aAAa,OAAQ;AAC5B,MAAI,SACA,eAAc,OAAO,UAAU,WAAW;MAE1C,YAAW,OAAO,UAAU,WAAW;;CAGtD,EACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ const require_is_before = require('../assert/is-before.cjs');
2
+ require('../assert.cjs');
3
+ const require_mixins = require('../mixins.cjs');
4
+
5
+ //#region src/expect/before.ts
6
+ require_mixins.use({ before: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (date) => {
9
+ if (inverted) require_is_before.notBefore(value, date);
10
+ else require_is_before.isBefore(value, date);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ //# sourceMappingURL=before.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"before.cjs","names":["use"],"sources":["../../src/expect/before.ts"],"sourcesContent":["import { isBefore, notBefore } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface DateExpect {\n /**\n * check if date is before other date\n * @param date\n */\n before(date: Date): this;\n }\n}\n\nuse({\n before: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (date: Date) => {\n if (inverted) {\n notBefore(value, date);\n } else {\n isBefore(value, date);\n }\n }\n }\n});\n"],"mappings":";;;;;AAaAA,mBAAI,EACA,QAAQ;CACJ,MAAM;CACN,QACK,EAAE,OAAO,gBACT,SAAe;AACZ,MAAI,SACA,6BAAU,OAAO,KAAK;MAEtB,4BAAS,OAAO,KAAK;;CAGpC,EACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { isBefore, notBefore } from "../assert/is-before.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+
5
+ //#region src/expect/before.ts
6
+ use({ before: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (date) => {
9
+ if (inverted) notBefore(value, date);
10
+ else isBefore(value, date);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ export { };
16
+ //# sourceMappingURL=before.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"before.js","names":[],"sources":["../../src/expect/before.ts"],"sourcesContent":["import { isBefore, notBefore } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface DateExpect {\n /**\n * check if date is before other date\n * @param date\n */\n before(date: Date): this;\n }\n}\n\nuse({\n before: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (date: Date) => {\n if (inverted) {\n notBefore(value, date);\n } else {\n isBefore(value, date);\n }\n }\n }\n});\n"],"mappings":";;;;;AAaA,IAAI,EACA,QAAQ;CACJ,MAAM;CACN,QACK,EAAE,OAAO,gBACT,SAAe;AACZ,MAAI,SACA,WAAU,OAAO,KAAK;MAEtB,UAAS,OAAO,KAAK;;CAGpC,EACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ const require_is_between = require('../assert/is-between.cjs');
2
+ require('../assert.cjs');
3
+ const require_mixins = require('../mixins.cjs');
4
+
5
+ //#region src/expect/between.ts
6
+ require_mixins.use({ between: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (start, end, inclusive = true) => {
9
+ if (inverted) require_is_between.notBetween(value, start, end, { inclusive });
10
+ else require_is_between.isBetween(value, start, end, { inclusive });
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ //# sourceMappingURL=between.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"between.cjs","names":["use"],"sources":["../../src/expect/between.ts"],"sourcesContent":["import { isBetween, notBetween } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface DateExpect {\n /**\n * check if date is between other dates\n * @param start\n * @param end\n */\n between(start: Date, end: Date, inclusive?: boolean): this;\n }\n interface NumberExpect {\n /**\n * check if number is between other numbers\n * @param start\n * @param end\n * @param inclusive\n */\n between(start: number, end: number, inclusive?: boolean): this;\n }\n}\n\nuse({\n between: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (start: Date, end: Date, inclusive = true) => {\n if (inverted) {\n notBetween(value, start, end, { inclusive });\n } else {\n isBetween(value, start, end, { inclusive });\n }\n }\n }\n});\n"],"mappings":";;;;;AAuBAA,mBAAI,EACA,SAAS;CACL,MAAM;CACN,QACK,EAAE,OAAO,gBACT,OAAa,KAAW,YAAY,SAAS;AAC1C,MAAI,SACA,+BAAW,OAAO,OAAO,KAAK,EAAE,WAAW,CAAC;MAE5C,8BAAU,OAAO,OAAO,KAAK,EAAE,WAAW,CAAC;;CAG1D,EACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { isBetween, notBetween } from "../assert/is-between.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+
5
+ //#region src/expect/between.ts
6
+ use({ between: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (start, end, inclusive = true) => {
9
+ if (inverted) notBetween(value, start, end, { inclusive });
10
+ else isBetween(value, start, end, { inclusive });
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ export { };
16
+ //# sourceMappingURL=between.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"between.js","names":[],"sources":["../../src/expect/between.ts"],"sourcesContent":["import { isBetween, notBetween } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface DateExpect {\n /**\n * check if date is between other dates\n * @param start\n * @param end\n */\n between(start: Date, end: Date, inclusive?: boolean): this;\n }\n interface NumberExpect {\n /**\n * check if number is between other numbers\n * @param start\n * @param end\n * @param inclusive\n */\n between(start: number, end: number, inclusive?: boolean): this;\n }\n}\n\nuse({\n between: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (start: Date, end: Date, inclusive = true) => {\n if (inverted) {\n notBetween(value, start, end, { inclusive });\n } else {\n isBetween(value, start, end, { inclusive });\n }\n }\n }\n});\n"],"mappings":";;;;;AAuBA,IAAI,EACA,SAAS;CACL,MAAM;CACN,QACK,EAAE,OAAO,gBACT,OAAa,KAAW,YAAY,SAAS;AAC1C,MAAI,SACA,YAAW,OAAO,OAAO,KAAK,EAAE,WAAW,CAAC;MAE5C,WAAU,OAAO,OAAO,KAAK,EAAE,WAAW,CAAC;;CAG1D,EACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ const require_is_empty = require('../assert/is-empty.cjs');
2
+ require('../assert.cjs');
3
+ const require_mixins = require('../mixins.cjs');
4
+
5
+ //#region src/expect/empty.ts
6
+ require_mixins.use({ empty: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (message) => {
9
+ if (inverted) require_is_empty.notIsEmpty(value, message);
10
+ else require_is_empty.isEmpty(value, message);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ //# sourceMappingURL=empty.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.cjs","names":["use"],"sources":["../../src/expect/empty.ts"],"sourcesContent":["import { isEmpty, notIsEmpty } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface ObjectExpect<T> {\n /**\n * check if object/array/Map/Set is empty\n */\n empty(message?: string): this;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface MapExpect<T> {\n /**\n * check if Map is empty\n */\n empty(message?: string): this;\n }\n}\n\nuse({\n empty: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (message?: string) => {\n if (inverted) {\n notIsEmpty(value, message);\n } else {\n isEmpty(value, message);\n }\n }\n }\n});\n"],"mappings":";;;;;AAoBAA,mBAAI,EACA,OAAO;CACH,MAAM;CACN,QACK,EAAE,OAAO,gBACT,YAAqB;AAClB,MAAI,SACA,6BAAW,OAAO,QAAQ;MAE1B,0BAAQ,OAAO,QAAQ;;CAGtC,EACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { isEmpty, notIsEmpty } from "../assert/is-empty.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+
5
+ //#region src/expect/empty.ts
6
+ use({ empty: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (message) => {
9
+ if (inverted) notIsEmpty(value, message);
10
+ else isEmpty(value, message);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ export { };
16
+ //# sourceMappingURL=empty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.js","names":[],"sources":["../../src/expect/empty.ts"],"sourcesContent":["import { isEmpty, notIsEmpty } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface ObjectExpect<T> {\n /**\n * check if object/array/Map/Set is empty\n */\n empty(message?: string): this;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface MapExpect<T> {\n /**\n * check if Map is empty\n */\n empty(message?: string): this;\n }\n}\n\nuse({\n empty: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (message?: string) => {\n if (inverted) {\n notIsEmpty(value, message);\n } else {\n isEmpty(value, message);\n }\n }\n }\n});\n"],"mappings":";;;;;AAoBA,IAAI,EACA,OAAO;CACH,MAAM;CACN,QACK,EAAE,OAAO,gBACT,YAAqB;AAClB,MAAI,SACA,YAAW,OAAO,QAAQ;MAE1B,SAAQ,OAAO,QAAQ;;CAGtC,EACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ const require_ends_with = require('../assert/ends-with.cjs');
2
+ require('../assert.cjs');
3
+ const require_mixins = require('../mixins.cjs');
4
+
5
+ //#region src/expect/end-with.ts
6
+ require_mixins.use({ endWith: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (end) => {
9
+ if (inverted) require_ends_with.notEndsWith(value, end);
10
+ else require_ends_with.endsWith(value, end);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ //# sourceMappingURL=end-with.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"end-with.cjs","names":["use"],"sources":["../../src/expect/end-with.ts"],"sourcesContent":["import { endsWith, notEndsWith } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface StringExpect {\n /**\n * check if string ends with other string\n * @param start\n * @example endsWith('foo', 'o');\n */\n endWith(end: string): this;\n }\n}\n\nuse({\n endWith: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (end: string) => {\n if (inverted) {\n notEndsWith(value, end);\n } else {\n endsWith(value, end);\n }\n }\n }\n});\n"],"mappings":";;;;;AAcAA,mBAAI,EACA,SAAS;CACL,MAAM;CACN,QACK,EAAE,OAAO,gBACT,QAAgB;AACb,MAAI,SACA,+BAAY,OAAO,IAAI;MAEvB,4BAAS,OAAO,IAAI;;CAGnC,EACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { endsWith, notEndsWith } from "../assert/ends-with.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+
5
+ //#region src/expect/end-with.ts
6
+ use({ endWith: {
7
+ type: "method",
8
+ value: ({ value, inverted }) => (end) => {
9
+ if (inverted) notEndsWith(value, end);
10
+ else endsWith(value, end);
11
+ }
12
+ } });
13
+
14
+ //#endregion
15
+ export { };
16
+ //# sourceMappingURL=end-with.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"end-with.js","names":[],"sources":["../../src/expect/end-with.ts"],"sourcesContent":["import { endsWith, notEndsWith } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface StringExpect {\n /**\n * check if string ends with other string\n * @param start\n * @example endsWith('foo', 'o');\n */\n endWith(end: string): this;\n }\n}\n\nuse({\n endWith: {\n type: 'method',\n value:\n ({ value, inverted }) =>\n (end: string) => {\n if (inverted) {\n notEndsWith(value, end);\n } else {\n endsWith(value, end);\n }\n }\n }\n});\n"],"mappings":";;;;;AAcA,IAAI,EACA,SAAS;CACL,MAAM;CACN,QACK,EAAE,OAAO,gBACT,QAAgB;AACb,MAAI,SACA,aAAY,OAAO,IAAI;MAEvB,UAAS,OAAO,IAAI;;CAGnC,EACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ const require_deep_equal = require('../assert/deep-equal.cjs');
2
+ require('../assert.cjs');
3
+ const require_mixins = require('../mixins.cjs');
4
+
5
+ //#region src/expect/eql.ts
6
+ require_mixins.use({
7
+ partially: {
8
+ type: "property",
9
+ value: () => ({ partial: true })
10
+ },
11
+ eql: {
12
+ type: "method",
13
+ value: ({ value, inverted, partial }) => (other, message) => {
14
+ if (inverted) require_deep_equal.notDeepEqual(value, other, partial, message);
15
+ else require_deep_equal.deepEqual(value, other, partial, message);
16
+ }
17
+ }
18
+ });
19
+
20
+ //#endregion
21
+ //# sourceMappingURL=eql.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eql.cjs","names":["use"],"sources":["../../src/expect/eql.ts"],"sourcesContent":["import { deepEqual, notDeepEqual } from '../assert.js';\nimport { use } from '../mixins.js';\nimport { type DeepPartial } from '../utils/types.js';\n\ndeclare module '../expect.types' {\n interface ValueExpect<T> {\n /**\n * check for deep equality\n */\n eql(value: T, message?: string): this;\n partially: ValueExpect<DeepPartial<T>>;\n }\n}\n\nuse({\n partially: {\n type: 'property',\n value: () => ({ partial: true })\n },\n eql: {\n type: 'method',\n value:\n ({ value, inverted, partial }) =>\n (other: any, message) => {\n if (inverted) {\n notDeepEqual(value, other, partial, message);\n } else {\n deepEqual(value, other, partial, message);\n }\n }\n }\n});\n"],"mappings":";;;;;AAcAA,mBAAI;CACA,WAAW;EACP,MAAM;EACN,cAAc,EAAE,SAAS,MAAM;EAClC;CACD,KAAK;EACD,MAAM;EACN,QACK,EAAE,OAAO,UAAU,eACnB,OAAY,YAAY;AACrB,OAAI,SACA,iCAAa,OAAO,OAAO,SAAS,QAAQ;OAE5C,8BAAU,OAAO,OAAO,SAAS,QAAQ;;EAGxD;CACJ,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { deepEqual, notDeepEqual } from "../assert/deep-equal.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+
5
+ //#region src/expect/eql.ts
6
+ use({
7
+ partially: {
8
+ type: "property",
9
+ value: () => ({ partial: true })
10
+ },
11
+ eql: {
12
+ type: "method",
13
+ value: ({ value, inverted, partial }) => (other, message) => {
14
+ if (inverted) notDeepEqual(value, other, partial, message);
15
+ else deepEqual(value, other, partial, message);
16
+ }
17
+ }
18
+ });
19
+
20
+ //#endregion
21
+ export { };
22
+ //# sourceMappingURL=eql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eql.js","names":[],"sources":["../../src/expect/eql.ts"],"sourcesContent":["import { deepEqual, notDeepEqual } from '../assert.js';\nimport { use } from '../mixins.js';\nimport { type DeepPartial } from '../utils/types.js';\n\ndeclare module '../expect.types' {\n interface ValueExpect<T> {\n /**\n * check for deep equality\n */\n eql(value: T, message?: string): this;\n partially: ValueExpect<DeepPartial<T>>;\n }\n}\n\nuse({\n partially: {\n type: 'property',\n value: () => ({ partial: true })\n },\n eql: {\n type: 'method',\n value:\n ({ value, inverted, partial }) =>\n (other: any, message) => {\n if (inverted) {\n notDeepEqual(value, other, partial, message);\n } else {\n deepEqual(value, other, partial, message);\n }\n }\n }\n});\n"],"mappings":";;;;;AAcA,IAAI;CACA,WAAW;EACP,MAAM;EACN,cAAc,EAAE,SAAS,MAAM;EAClC;CACD,KAAK;EACD,MAAM;EACN,QACK,EAAE,OAAO,UAAU,eACnB,OAAY,YAAY;AACrB,OAAI,SACA,cAAa,OAAO,OAAO,SAAS,QAAQ;OAE5C,WAAU,OAAO,OAAO,SAAS,QAAQ;;EAGxD;CACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_equal = require('../assert/equal.cjs');
3
+ require('../assert.cjs');
4
+ const require_mixins = require('../mixins.cjs');
5
+ let hein_assertion_utils = require("hein-assertion-utils");
6
+ hein_assertion_utils = require_rolldown_runtime.__toESM(hein_assertion_utils);
7
+
8
+ //#region src/expect/equal-shorthand.ts
9
+ require_mixins.use(Object.fromEntries(Object.entries({
10
+ false: false,
11
+ true: true
12
+ }).map(([key, expectValue]) => {
13
+ return [key, {
14
+ type: "method",
15
+ value: ({ inverted, value }) => () => {
16
+ if (inverted) {
17
+ const message = (0, hein_assertion_utils.format)("Expected {{= it.value }} to not be {{= it.key }}", {
18
+ key,
19
+ value
20
+ }, true);
21
+ require_equal.notEqual(value, expectValue, message);
22
+ } else {
23
+ const message = (0, hein_assertion_utils.format)("Expected {{= it.value }} to be {{= it.key }}", {
24
+ key,
25
+ value
26
+ }, true);
27
+ require_equal.equal(value, expectValue, message);
28
+ }
29
+ }
30
+ }];
31
+ })));
32
+
33
+ //#endregion
34
+ //# sourceMappingURL=equal-shorthand.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equal-shorthand.cjs","names":["use"],"sources":["../../src/expect/equal-shorthand.ts"],"sourcesContent":["import { equal, notEqual } from '../assert.js';\nimport { type State, use } from '../mixins.js';\nimport { format } from 'hein-assertion-utils';\n\ndeclare module '../expect.types' {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface BooleanExpect<T> {\n /**\n * check if value is true\n */\n true(): this;\n /**\n * check if value is false\n */\n false(): this;\n }\n}\n\nconst values = {\n false: false,\n true: true\n};\n\nuse(\n Object.fromEntries(\n Object.entries(values).map(([key, expectValue]) => {\n return [\n key,\n {\n type: 'method',\n value:\n ({ inverted, value }: State<any>) =>\n () => {\n if (inverted) {\n const message = format(\n 'Expected {{= it.value }} to not be {{= it.key }}',\n {\n key,\n value\n },\n true\n );\n notEqual(value, expectValue, message);\n } else {\n const message = format(\n 'Expected {{= it.value }} to be {{= it.key }}',\n {\n key,\n value\n },\n true\n );\n equal(value, expectValue, message);\n }\n }\n }\n ];\n })\n )\n);\n"],"mappings":";;;;;;;;AAuBAA,mBACI,OAAO,YACH,OAAO,QAPA;CACX,OAAO;CACP,MAAM;CACT,CAI6B,CAAC,KAAK,CAAC,KAAK,iBAAiB;AAC/C,QAAO,CACH,KACA;EACI,MAAM;EACN,QACK,EAAE,UAAU,kBACP;AACF,OAAI,UAAU;IACV,MAAM,2CACF,oDACA;KACI;KACA;KACH,EACD,KACH;AACD,2BAAS,OAAO,aAAa,QAAQ;UAClC;IACH,MAAM,2CACF,gDACA;KACI;KACA;KACH,EACD,KACH;AACD,wBAAM,OAAO,aAAa,QAAQ;;;EAGjD,CACJ;EACH,CACL,CACJ"}
@@ -0,0 +1,33 @@
1
+ import { equal, notEqual } from "../assert/equal.js";
2
+ import "../assert.js";
3
+ import { use } from "../mixins.js";
4
+ import { format } from "hein-assertion-utils";
5
+
6
+ //#region src/expect/equal-shorthand.ts
7
+ use(Object.fromEntries(Object.entries({
8
+ false: false,
9
+ true: true
10
+ }).map(([key, expectValue]) => {
11
+ return [key, {
12
+ type: "method",
13
+ value: ({ inverted, value }) => () => {
14
+ if (inverted) {
15
+ const message = format("Expected {{= it.value }} to not be {{= it.key }}", {
16
+ key,
17
+ value
18
+ }, true);
19
+ notEqual(value, expectValue, message);
20
+ } else {
21
+ const message = format("Expected {{= it.value }} to be {{= it.key }}", {
22
+ key,
23
+ value
24
+ }, true);
25
+ equal(value, expectValue, message);
26
+ }
27
+ }
28
+ }];
29
+ })));
30
+
31
+ //#endregion
32
+ export { };
33
+ //# sourceMappingURL=equal-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equal-shorthand.js","names":[],"sources":["../../src/expect/equal-shorthand.ts"],"sourcesContent":["import { equal, notEqual } from '../assert.js';\nimport { type State, use } from '../mixins.js';\nimport { format } from 'hein-assertion-utils';\n\ndeclare module '../expect.types' {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface BooleanExpect<T> {\n /**\n * check if value is true\n */\n true(): this;\n /**\n * check if value is false\n */\n false(): this;\n }\n}\n\nconst values = {\n false: false,\n true: true\n};\n\nuse(\n Object.fromEntries(\n Object.entries(values).map(([key, expectValue]) => {\n return [\n key,\n {\n type: 'method',\n value:\n ({ inverted, value }: State<any>) =>\n () => {\n if (inverted) {\n const message = format(\n 'Expected {{= it.value }} to not be {{= it.key }}',\n {\n key,\n value\n },\n true\n );\n notEqual(value, expectValue, message);\n } else {\n const message = format(\n 'Expected {{= it.value }} to be {{= it.key }}',\n {\n key,\n value\n },\n true\n );\n equal(value, expectValue, message);\n }\n }\n }\n ];\n })\n )\n);\n"],"mappings":";;;;;;AAuBA,IACI,OAAO,YACH,OAAO,QAPA;CACX,OAAO;CACP,MAAM;CACT,CAI6B,CAAC,KAAK,CAAC,KAAK,iBAAiB;AAC/C,QAAO,CACH,KACA;EACI,MAAM;EACN,QACK,EAAE,UAAU,kBACP;AACF,OAAI,UAAU;IACV,MAAM,UAAU,OACZ,oDACA;KACI;KACA;KACH,EACD,KACH;AACD,aAAS,OAAO,aAAa,QAAQ;UAClC;IACH,MAAM,UAAU,OACZ,gDACA;KACI;KACA;KACH,EACD,KACH;AACD,UAAM,OAAO,aAAa,QAAQ;;;EAGjD,CACJ;EACH,CACL,CACJ"}
@@ -0,0 +1,27 @@
1
+ const require_deep_equal = require('../assert/deep-equal.cjs');
2
+ const require_equal = require('../assert/equal.cjs');
3
+ require('../assert.cjs');
4
+ const require_mixins = require('../mixins.cjs');
5
+
6
+ //#region src/expect/equal.ts
7
+ require_mixins.use({
8
+ equal: {
9
+ type: "method",
10
+ value: ({ value, inverted, deep }) => (other, message) => {
11
+ if (deep) {
12
+ if (inverted) require_deep_equal.notDeepEqual(value, other, message);
13
+ else require_deep_equal.deepEqual(value, other, message);
14
+ return;
15
+ }
16
+ if (inverted) require_equal.notEqual(value, other, message);
17
+ else require_equal.equal(value, other, message);
18
+ }
19
+ },
20
+ eq: {
21
+ type: "alias",
22
+ value: "equal"
23
+ }
24
+ });
25
+
26
+ //#endregion
27
+ //# sourceMappingURL=equal.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equal.cjs","names":["use"],"sources":["../../src/expect/equal.ts"],"sourcesContent":["import { deepEqual, equal, notDeepEqual, notEqual } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface ValueExpect<T> {\n /**\n * check for === equality, NaN is considered equal to NaN\n */\n equal(value: T, message?: string): this;\n /**\n * check for === equality, NaN is considered equal to NaN\n */\n eq(value: T, message?: string): this;\n }\n}\n\nuse({\n equal: {\n type: 'method',\n value:\n ({ value, inverted, deep }) =>\n (other: any, message?: string) => {\n if (deep) {\n if (inverted) {\n notDeepEqual(value, other, message);\n } else {\n deepEqual(value, other, message);\n }\n return;\n }\n if (inverted) {\n notEqual(value, other, message);\n } else {\n equal(value, other, message);\n }\n }\n },\n eq: { type: 'alias', value: 'equal' }\n});\n"],"mappings":";;;;;;AAgBAA,mBAAI;CACA,OAAO;EACH,MAAM;EACN,QACK,EAAE,OAAO,UAAU,YACnB,OAAY,YAAqB;AAC9B,OAAI,MAAM;AACN,QAAI,SACA,iCAAa,OAAO,OAAO,QAAQ;QAEnC,8BAAU,OAAO,OAAO,QAAQ;AAEpC;;AAEJ,OAAI,SACA,wBAAS,OAAO,OAAO,QAAQ;OAE/B,qBAAM,OAAO,OAAO,QAAQ;;EAG3C;CACD,IAAI;EAAE,MAAM;EAAS,OAAO;EAAS;CACxC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { deepEqual, notDeepEqual } from "../assert/deep-equal.js";
2
+ import { equal, notEqual } from "../assert/equal.js";
3
+ import "../assert.js";
4
+ import { use } from "../mixins.js";
5
+
6
+ //#region src/expect/equal.ts
7
+ use({
8
+ equal: {
9
+ type: "method",
10
+ value: ({ value, inverted, deep }) => (other, message) => {
11
+ if (deep) {
12
+ if (inverted) notDeepEqual(value, other, message);
13
+ else deepEqual(value, other, message);
14
+ return;
15
+ }
16
+ if (inverted) notEqual(value, other, message);
17
+ else equal(value, other, message);
18
+ }
19
+ },
20
+ eq: {
21
+ type: "alias",
22
+ value: "equal"
23
+ }
24
+ });
25
+
26
+ //#endregion
27
+ export { };
28
+ //# sourceMappingURL=equal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equal.js","names":[],"sources":["../../src/expect/equal.ts"],"sourcesContent":["import { deepEqual, equal, notDeepEqual, notEqual } from '../assert.js';\nimport { use } from '../mixins.js';\n\ndeclare module '../expect.types' {\n interface ValueExpect<T> {\n /**\n * check for === equality, NaN is considered equal to NaN\n */\n equal(value: T, message?: string): this;\n /**\n * check for === equality, NaN is considered equal to NaN\n */\n eq(value: T, message?: string): this;\n }\n}\n\nuse({\n equal: {\n type: 'method',\n value:\n ({ value, inverted, deep }) =>\n (other: any, message?: string) => {\n if (deep) {\n if (inverted) {\n notDeepEqual(value, other, message);\n } else {\n deepEqual(value, other, message);\n }\n return;\n }\n if (inverted) {\n notEqual(value, other, message);\n } else {\n equal(value, other, message);\n }\n }\n },\n eq: { type: 'alias', value: 'equal' }\n});\n"],"mappings":";;;;;;AAgBA,IAAI;CACA,OAAO;EACH,MAAM;EACN,QACK,EAAE,OAAO,UAAU,YACnB,OAAY,YAAqB;AAC9B,OAAI,MAAM;AACN,QAAI,SACA,cAAa,OAAO,OAAO,QAAQ;QAEnC,WAAU,OAAO,OAAO,QAAQ;AAEpC;;AAEJ,OAAI,SACA,UAAS,OAAO,OAAO,QAAQ;OAE/B,OAAM,OAAO,OAAO,QAAQ;;EAG3C;CACD,IAAI;EAAE,MAAM;EAAS,OAAO;EAAS;CACxC,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_mixins = require('../mixins.cjs');
3
+ const require_expect = require('../expect.cjs');
4
+ let lodash_omit_js = require("lodash/omit.js");
5
+ lodash_omit_js = require_rolldown_runtime.__toESM(lodash_omit_js);
6
+
7
+ //#region src/expect/excluding.ts
8
+ require_mixins.use({ excluding: {
9
+ type: "method",
10
+ value: (state) => (...keys) => {
11
+ return require_expect.expectChain({
12
+ ...state,
13
+ value: (0, lodash_omit_js.default)(state.value, keys)
14
+ });
15
+ }
16
+ } });
17
+
18
+ //#endregion
19
+ //# sourceMappingURL=excluding.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excluding.cjs","names":["use","expectChain"],"sources":["../../src/expect/excluding.ts"],"sourcesContent":["import omit from 'lodash/omit.js';\nimport { use } from '../mixins.js';\nimport { expectChain } from '../expect.js';\n\ndeclare module '../expect.types' {\n interface ObjectExpect<T> {\n /**\n * exclude keys from object to be compared further down the chain\n * @param keys\n */\n excluding<K extends keyof T>(...keys: K[]): ObjectExpect<Omit<T, K>>;\n }\n}\n\nuse({\n excluding: {\n type: 'method',\n value:\n (state) =>\n (...keys: string[]) => {\n return expectChain({ ...state, value: omit(state.value, keys) });\n }\n }\n});\n"],"mappings":";;;;;;;AAcAA,mBAAI,EACA,WAAW;CACP,MAAM;CACN,QACK,WACA,GAAG,SAAmB;AACnB,SAAOC,2BAAY;GAAE,GAAG;GAAO,mCAAY,MAAM,OAAO,KAAK;GAAE,CAAC;;CAE3E,EACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { use } from "../mixins.js";
2
+ import { expectChain } from "../expect.js";
3
+ import omit from "lodash/omit.js";
4
+
5
+ //#region src/expect/excluding.ts
6
+ use({ excluding: {
7
+ type: "method",
8
+ value: (state) => (...keys) => {
9
+ return expectChain({
10
+ ...state,
11
+ value: omit(state.value, keys)
12
+ });
13
+ }
14
+ } });
15
+
16
+ //#endregion
17
+ export { };
18
+ //# sourceMappingURL=excluding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excluding.js","names":[],"sources":["../../src/expect/excluding.ts"],"sourcesContent":["import omit from 'lodash/omit.js';\nimport { use } from '../mixins.js';\nimport { expectChain } from '../expect.js';\n\ndeclare module '../expect.types' {\n interface ObjectExpect<T> {\n /**\n * exclude keys from object to be compared further down the chain\n * @param keys\n */\n excluding<K extends keyof T>(...keys: K[]): ObjectExpect<Omit<T, K>>;\n }\n}\n\nuse({\n excluding: {\n type: 'method',\n value:\n (state) =>\n (...keys: string[]) => {\n return expectChain({ ...state, value: omit(state.value, keys) });\n }\n }\n});\n"],"mappings":";;;;;AAcA,IAAI,EACA,WAAW;CACP,MAAM;CACN,QACK,WACA,GAAG,SAAmB;AACnB,SAAO,YAAY;GAAE,GAAG;GAAO,OAAO,KAAK,MAAM,OAAO,KAAK;GAAE,CAAC;;CAE3E,EACJ,CAAC"}