bupkis 0.10.6 → 0.11.0

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 (75) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/commonjs/assertion/impl/async-parametric.d.ts +2 -17
  3. package/dist/commonjs/assertion/impl/async-parametric.d.ts.map +1 -1
  4. package/dist/commonjs/assertion/impl/async-parametric.js +2 -17
  5. package/dist/commonjs/assertion/impl/async-parametric.js.map +1 -1
  6. package/dist/commonjs/assertion/impl/async.d.ts +0 -16
  7. package/dist/commonjs/assertion/impl/async.d.ts.map +1 -1
  8. package/dist/commonjs/assertion/impl/sync-collection.d.ts +54 -89
  9. package/dist/commonjs/assertion/impl/sync-collection.d.ts.map +1 -1
  10. package/dist/commonjs/assertion/impl/sync-collection.js +122 -181
  11. package/dist/commonjs/assertion/impl/sync-collection.js.map +1 -1
  12. package/dist/commonjs/assertion/impl/sync-date.d.ts +130 -15
  13. package/dist/commonjs/assertion/impl/sync-date.d.ts.map +1 -1
  14. package/dist/commonjs/assertion/impl/sync-date.js +4 -59
  15. package/dist/commonjs/assertion/impl/sync-date.js.map +1 -1
  16. package/dist/commonjs/assertion/impl/sync-parametric.d.ts +2 -6
  17. package/dist/commonjs/assertion/impl/sync-parametric.d.ts.map +1 -1
  18. package/dist/commonjs/assertion/impl/sync-parametric.js +2 -4
  19. package/dist/commonjs/assertion/impl/sync-parametric.js.map +1 -1
  20. package/dist/commonjs/assertion/impl/sync.d.ts +297 -108
  21. package/dist/commonjs/assertion/impl/sync.d.ts.map +1 -1
  22. package/dist/commonjs/assertion/impl/sync.js +5 -1
  23. package/dist/commonjs/assertion/impl/sync.js.map +1 -1
  24. package/dist/commonjs/bootstrap.d.ts +146 -62
  25. package/dist/commonjs/bootstrap.d.ts.map +1 -1
  26. package/dist/commonjs/diff.d.ts.map +1 -1
  27. package/dist/commonjs/diff.js +20 -32
  28. package/dist/commonjs/diff.js.map +1 -1
  29. package/dist/commonjs/index.d.ts +143 -59
  30. package/dist/commonjs/index.d.ts.map +1 -1
  31. package/dist/commonjs/schema.d.ts +165 -0
  32. package/dist/commonjs/schema.d.ts.map +1 -1
  33. package/dist/commonjs/schema.js +176 -1
  34. package/dist/commonjs/schema.js.map +1 -1
  35. package/dist/esm/assertion/impl/async-parametric.d.ts +2 -17
  36. package/dist/esm/assertion/impl/async-parametric.d.ts.map +1 -1
  37. package/dist/esm/assertion/impl/async-parametric.js +2 -17
  38. package/dist/esm/assertion/impl/async-parametric.js.map +1 -1
  39. package/dist/esm/assertion/impl/async.d.ts +0 -16
  40. package/dist/esm/assertion/impl/async.d.ts.map +1 -1
  41. package/dist/esm/assertion/impl/sync-collection.d.ts +54 -89
  42. package/dist/esm/assertion/impl/sync-collection.d.ts.map +1 -1
  43. package/dist/esm/assertion/impl/sync-collection.js +122 -181
  44. package/dist/esm/assertion/impl/sync-collection.js.map +1 -1
  45. package/dist/esm/assertion/impl/sync-date.d.ts +130 -15
  46. package/dist/esm/assertion/impl/sync-date.d.ts.map +1 -1
  47. package/dist/esm/assertion/impl/sync-date.js +4 -59
  48. package/dist/esm/assertion/impl/sync-date.js.map +1 -1
  49. package/dist/esm/assertion/impl/sync-parametric.d.ts +2 -6
  50. package/dist/esm/assertion/impl/sync-parametric.d.ts.map +1 -1
  51. package/dist/esm/assertion/impl/sync-parametric.js +2 -4
  52. package/dist/esm/assertion/impl/sync-parametric.js.map +1 -1
  53. package/dist/esm/assertion/impl/sync.d.ts +297 -108
  54. package/dist/esm/assertion/impl/sync.d.ts.map +1 -1
  55. package/dist/esm/assertion/impl/sync.js +6 -2
  56. package/dist/esm/assertion/impl/sync.js.map +1 -1
  57. package/dist/esm/bootstrap.d.ts +146 -62
  58. package/dist/esm/bootstrap.d.ts.map +1 -1
  59. package/dist/esm/diff.d.ts.map +1 -1
  60. package/dist/esm/diff.js +20 -32
  61. package/dist/esm/diff.js.map +1 -1
  62. package/dist/esm/index.d.ts +143 -59
  63. package/dist/esm/index.d.ts.map +1 -1
  64. package/dist/esm/schema.d.ts +165 -0
  65. package/dist/esm/schema.d.ts.map +1 -1
  66. package/dist/esm/schema.js +175 -0
  67. package/dist/esm/schema.js.map +1 -1
  68. package/package.json +2 -2
  69. package/src/assertion/impl/async-parametric.ts +2 -17
  70. package/src/assertion/impl/sync-collection.ts +135 -191
  71. package/src/assertion/impl/sync-date.ts +37 -105
  72. package/src/assertion/impl/sync-parametric.ts +2 -4
  73. package/src/assertion/impl/sync.ts +5 -2
  74. package/src/diff.ts +27 -32
  75. package/src/schema.ts +179 -0
@@ -12,7 +12,6 @@
12
12
  * @showGroups
13
13
  */
14
14
  import { z } from 'zod';
15
- import type { AssertionFailure, AssertionParseRequest } from '../assertion-types.js';
16
15
  /**
17
16
  * Asserts that the subject is a valid date (Date object, ISO string, or
18
17
  * timestamp).
@@ -45,7 +44,15 @@ export declare const validDateAssertion: import("../assertion-types.js").Asserti
45
44
  * @bupkisAnchor unknown-to-be-today
46
45
  * @bupkisAssertionCategory date
47
46
  */
48
- export declare const todayAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be today"], (subject: unknown) => AssertionFailure | boolean, never>;
47
+ export declare const todayAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be today"], (subject: unknown) => {
48
+ message: string;
49
+ actual?: never;
50
+ expected?: never;
51
+ } | {
52
+ actual: string;
53
+ expected: string;
54
+ message: string;
55
+ } | undefined, never>;
49
56
  /**
50
57
  * Asserts that the subject is before another date.
51
58
  *
@@ -61,7 +68,15 @@ export declare const todayAssertion: import("../assertion-types.js").AssertionFu
61
68
  * @bupkisAnchor date-like-to-be-before-date-like
62
69
  * @bupkisAssertionCategory date
63
70
  */
64
- export declare const beforeAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be before", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, other: string | number | Date) => AssertionFailure | AssertionParseRequest, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be before">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
71
+ export declare const beforeAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be before", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, other: string | number | Date) => {
72
+ message: string;
73
+ schema?: never;
74
+ subject?: never;
75
+ } | {
76
+ schema: z.ZodDate;
77
+ subject: Date;
78
+ message?: never;
79
+ }, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be before">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
65
80
  /**
66
81
  * Asserts that the subject is after another date.
67
82
  *
@@ -77,7 +92,15 @@ export declare const beforeAssertion: import("../assertion-types.js").AssertionF
77
92
  * @bupkisAnchor date-like-to-be-after-date-like
78
93
  * @bupkisAssertionCategory date
79
94
  */
80
- export declare const afterAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be after", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, other: string | number | Date) => AssertionFailure | AssertionParseRequest, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be after">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
95
+ export declare const afterAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be after", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, other: string | number | Date) => {
96
+ message: string;
97
+ schema?: never;
98
+ subject?: never;
99
+ } | {
100
+ schema: z.ZodDate;
101
+ subject: Date;
102
+ message?: never;
103
+ }, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be after">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
81
104
  /**
82
105
  * Asserts that the subject is between two dates (inclusive).
83
106
  *
@@ -102,7 +125,15 @@ export declare const afterAssertion: import("../assertion-types.js").AssertionFu
102
125
  * @bupkisAnchor date-like-to-be-between-date-like-and-date-like
103
126
  * @bupkisAssertionCategory date
104
127
  */
105
- export declare const betweenAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be between", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "and", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, start: string | number | Date, end: string | number | Date) => AssertionFailure | AssertionParseRequest, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be between">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"and">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
128
+ export declare const betweenAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be between", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "and", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, start: string | number | Date, end: string | number | Date) => {
129
+ message: string;
130
+ schema?: never;
131
+ subject?: never;
132
+ } | {
133
+ schema: z.ZodDate;
134
+ subject: Date;
135
+ message?: never;
136
+ }, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be between">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"and">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
106
137
  /**
107
138
  * Asserts that the subject is within a specific duration from now.
108
139
  *
@@ -122,7 +153,15 @@ export declare const betweenAssertion: import("../assertion-types.js").Assertion
122
153
  * @bupkisAnchor date-like-to-be-within-duration-from-now
123
154
  * @bupkisAssertionCategory date
124
155
  */
125
- export declare const withinFromNowAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be within", z.ZodCustomStringFormat<"duration">, "from now"], (subject: string | number | Date, durationStr: string) => AssertionFailure | AssertionParseRequest, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be within">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"from now">]>;
156
+ export declare const withinFromNowAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be within", z.ZodCustomStringFormat<"duration">, "from now"], (subject: string | number | Date, durationStr: string) => {
157
+ message: string;
158
+ schema?: never;
159
+ subject?: never;
160
+ } | {
161
+ schema: z.ZodDate;
162
+ subject: Date;
163
+ message?: never;
164
+ }, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be within">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"from now">]>;
126
165
  /**
127
166
  * Asserts that the subject is within a specific duration ago from now.
128
167
  *
@@ -137,7 +176,15 @@ export declare const withinFromNowAssertion: import("../assertion-types.js").Ass
137
176
  * @bupkisAnchor date-like-to-be-within-duration-ago
138
177
  * @bupkisAssertionCategory date
139
178
  */
140
- export declare const withinAgoAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be within", z.ZodCustomStringFormat<"duration">, "ago"], (subject: string | number | Date, durationStr: string) => AssertionFailure | AssertionParseRequest, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be within">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"ago">]>;
179
+ export declare const withinAgoAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be within", z.ZodCustomStringFormat<"duration">, "ago"], (subject: string | number | Date, durationStr: string) => {
180
+ message: string;
181
+ schema?: never;
182
+ subject?: never;
183
+ } | {
184
+ schema: z.ZodDate;
185
+ subject: Date;
186
+ message?: never;
187
+ }, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be within">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"ago">]>;
141
188
  /**
142
189
  * Asserts that the subject is at least a specific duration from now (future).
143
190
  *
@@ -162,7 +209,15 @@ export declare const withinAgoAssertion: import("../assertion-types.js").Asserti
162
209
  * @bupkisAnchor date-like-to-be-at-least-duration-from-now
163
210
  * @bupkisAssertionCategory date
164
211
  */
165
- export declare const atLeastFromNowAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be at least", z.ZodCustomStringFormat<"duration">, "from now"], (subject: string | number | Date, durationStr: string) => AssertionFailure | AssertionParseRequest, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be at least">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"from now">]>;
212
+ export declare const atLeastFromNowAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be at least", z.ZodCustomStringFormat<"duration">, "from now"], (subject: string | number | Date, durationStr: string) => {
213
+ message: string;
214
+ schema?: never;
215
+ subject?: never;
216
+ } | {
217
+ schema: z.ZodDate;
218
+ subject: Date;
219
+ message?: never;
220
+ }, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be at least">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"from now">]>;
166
221
  /**
167
222
  * Asserts that the subject is at least a specific duration ago.
168
223
  *
@@ -187,7 +242,15 @@ export declare const atLeastFromNowAssertion: import("../assertion-types.js").As
187
242
  * @bupkisAnchor date-like-to-be-at-least-duration-ago
188
243
  * @bupkisAssertionCategory date
189
244
  */
190
- export declare const atLeastAgoAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be at least", z.ZodCustomStringFormat<"duration">, "ago"], (subject: string | number | Date, durationStr: string) => AssertionFailure | AssertionParseRequest, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be at least">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"ago">]>;
245
+ export declare const atLeastAgoAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be at least", z.ZodCustomStringFormat<"duration">, "ago"], (subject: string | number | Date, durationStr: string) => {
246
+ message: string;
247
+ schema?: never;
248
+ subject?: never;
249
+ } | {
250
+ schema: z.ZodDate;
251
+ subject: Date;
252
+ message?: never;
253
+ }, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be at least">, z.ZodCustomStringFormat<"duration">, import("../assertion-types.js").PhraseLiteralSlot<"ago">]>;
191
254
  /**
192
255
  * Asserts that the subject is the same date as another (ignoring time).
193
256
  *
@@ -210,7 +273,15 @@ export declare const atLeastAgoAssertion: import("../assertion-types.js").Assert
210
273
  * @bupkisAnchor date-like-to-be-the-same-date-as-date-like
211
274
  * @bupkisAssertionCategory date
212
275
  */
213
- export declare const sameDateAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be the same date as", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, other: string | number | Date) => AssertionFailure | boolean, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be the same date as">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
276
+ export declare const sameDateAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to be the same date as", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>], (subject: string | number | Date, other: string | number | Date) => {
277
+ message: string;
278
+ actual?: never;
279
+ expected?: never;
280
+ } | {
281
+ actual: string;
282
+ expected: string;
283
+ message: string;
284
+ } | undefined, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be the same date as">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>]>;
214
285
  /**
215
286
  * Asserts that the subject is equal to another date within a tolerance.
216
287
  *
@@ -227,7 +298,19 @@ export declare const sameDateAssertion: import("../assertion-types.js").Assertio
227
298
  * @bupkisAnchor date-like-to-equal-date-like-within-duration
228
299
  * @bupkisAssertionCategory date
229
300
  */
230
- export declare const equalWithinAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to equal", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "within", z.ZodCustomStringFormat<"duration">], (subject: string | number | Date, other: string | number | Date, toleranceStr: string) => AssertionFailure | boolean, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to equal">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"within">, z.ZodCustomStringFormat<"duration">]>;
301
+ export declare const equalWithinAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "to equal", z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, "within", z.ZodCustomStringFormat<"duration">], (subject: string | number | Date, other: string | number | Date, toleranceStr: string) => {
302
+ message: string;
303
+ actual?: never;
304
+ expected?: never;
305
+ } | {
306
+ actual: {
307
+ difference: number;
308
+ };
309
+ expected: {
310
+ maxDifference: number;
311
+ };
312
+ message: string;
313
+ } | undefined, readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to equal">, z.ZodUnion<readonly [z.ZodDate, z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>, z.ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"within">, z.ZodCustomStringFormat<"duration">]>;
231
314
  /**
232
315
  * Asserts that the subject is in the past.
233
316
  *
@@ -242,7 +325,15 @@ export declare const equalWithinAssertion: import("../assertion-types.js").Asser
242
325
  * @bupkisAnchor unknown-to-be-in-the-past
243
326
  * @bupkisAssertionCategory date
244
327
  */
245
- export declare const inThePastAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be in the past"], (subject: unknown) => AssertionFailure | AssertionParseRequest, never>;
328
+ export declare const inThePastAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be in the past"], (subject: unknown) => {
329
+ message: string;
330
+ schema?: never;
331
+ subject?: never;
332
+ } | {
333
+ schema: z.ZodDate;
334
+ subject: Date;
335
+ message?: never;
336
+ }, never>;
246
337
  /**
247
338
  * Asserts that the subject is in the future.
248
339
  *
@@ -257,7 +348,15 @@ export declare const inThePastAssertion: import("../assertion-types.js").Asserti
257
348
  * @bupkisAnchor unknown-to-be-in-the-future
258
349
  * @bupkisAssertionCategory date
259
350
  */
260
- export declare const inTheFutureAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be in the future"], (subject: unknown) => AssertionFailure | AssertionParseRequest, never>;
351
+ export declare const inTheFutureAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be in the future"], (subject: unknown) => {
352
+ message: string;
353
+ schema?: never;
354
+ subject?: never;
355
+ } | {
356
+ schema: z.ZodDate;
357
+ subject: Date;
358
+ message?: never;
359
+ }, never>;
261
360
  /**
262
361
  * Asserts that the subject is a weekend (Saturday or Sunday) in UTC.
263
362
  *
@@ -273,7 +372,15 @@ export declare const inTheFutureAssertion: import("../assertion-types.js").Asser
273
372
  * @bupkisAnchor unknown-to-be-a-weekend
274
373
  * @bupkisAssertionCategory date
275
374
  */
276
- export declare const weekendAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekend"], (subject: unknown) => AssertionFailure | boolean, never>;
375
+ export declare const weekendAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekend"], (subject: unknown) => {
376
+ message: string;
377
+ actual?: never;
378
+ expected?: never;
379
+ } | {
380
+ actual: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | undefined;
381
+ expected: string;
382
+ message: string;
383
+ } | undefined, never>;
277
384
  /**
278
385
  * Asserts that the subject is a weekday (Monday through Friday) in UTC.
279
386
  *
@@ -289,5 +396,13 @@ export declare const weekendAssertion: import("../assertion-types.js").Assertion
289
396
  * @bupkisAnchor unknown-to-be-a-weekday
290
397
  * @bupkisAssertionCategory date
291
398
  */
292
- export declare const weekdayAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekday"], (subject: unknown) => AssertionFailure | boolean, never>;
399
+ export declare const weekdayAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekday"], (subject: unknown) => {
400
+ message: string;
401
+ actual?: never;
402
+ expected?: never;
403
+ } | {
404
+ actual: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | undefined;
405
+ expected: string;
406
+ message: string;
407
+ } | undefined, never>;
293
408
  //# sourceMappingURL=sync-date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-date.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/sync-date.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAmC/B;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kBAAkB,mPAG9B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,wGAEd,gBAAgB,GAAG,OAAO,QA0BtC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,mWAER,gBAAgB,GAAG,qBAAqB,2RAwB3D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,kWAEP,gBAAgB,GAAG,qBAAqB,0RAwB3D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,gBAAgB,8eAQJ,gBAAgB,GAAG,qBAAqB,4bAgChE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,oSAET,gBAAgB,GAAG,qBAAqB,yRA8BjE,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,+RAEL,gBAAgB,GAAG,qBAAqB,oRA8BjE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,uBAAuB,sSAEV,gBAAgB,GAAG,qBAAqB,2RA8BjE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,mBAAmB,iSAEN,gBAAgB,GAAG,qBAAqB,sRA8BjE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,M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B9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;4RA4BnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;uRA4B/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;kTA6B7B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;sYAwChC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;SAgB9B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;SAgBhC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;qBAqB5B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;qBAqB5B,CAAC"}
@@ -77,8 +77,6 @@ exports.todayAssertion = (0, create_js_1.createAssertion)(['to be today'], (subj
77
77
  const date = toDate(subject);
78
78
  if (!date) {
79
79
  return {
80
- actual: subject,
81
- expected: 'a valid date',
82
80
  message: `Expected subject to be a valid date, but received: ${subject}`,
83
81
  };
84
82
  }
@@ -93,7 +91,6 @@ exports.todayAssertion = (0, create_js_1.createAssertion)(['to be today'], (subj
93
91
  message: `Expected date to be today (${today.toDateString()}), but received: ${date.toDateString()}`,
94
92
  };
95
93
  }
96
- return true;
97
94
  });
98
95
  /**
99
96
  * Asserts that the subject is before another date.
@@ -115,15 +112,11 @@ exports.beforeAssertion = (0, create_js_1.createAssertion)([schema_js_1.DateLike
115
112
  const otherDate = toDate(other);
116
113
  if (!subjectDate) {
117
114
  return {
118
- actual: subject,
119
- expected: 'a valid date',
120
115
  message: `Expected subject to be a valid date, but received: ${subject}`,
121
116
  };
122
117
  }
123
118
  if (!otherDate) {
124
119
  return {
125
- actual: other,
126
- expected: 'a valid date',
127
120
  message: `Expected comparison date to be a valid date, but received: ${other}`,
128
121
  };
129
122
  }
@@ -151,17 +144,13 @@ exports.beforeAssertion = (0, create_js_1.createAssertion)([schema_js_1.DateLike
151
144
  exports.afterAssertion = (0, create_js_1.createAssertion)([schema_js_1.DateLikeFormatSchema, 'to be after', schema_js_1.DateLikeFormatSchema], (subject, other) => {
152
145
  const subjectDate = toDate(subject);
153
146
  const otherDate = toDate(other);
154
- if (!subjectDate) {
147
+ if (subjectDate === null) {
155
148
  return {
156
- actual: subject,
157
- expected: 'a valid date',
158
149
  message: `Expected subject to be a valid date, but received: ${subject}`,
159
150
  };
160
151
  }
161
- if (!otherDate) {
152
+ if (otherDate === null) {
162
153
  return {
163
- actual: other,
164
- expected: 'a valid date',
165
154
  message: `Expected comparison date to be a valid date, but received: ${other}`,
166
155
  };
167
156
  }
@@ -207,22 +196,16 @@ exports.betweenAssertion = (0, create_js_1.createAssertion)([
207
196
  const endDate = toDate(end);
208
197
  if (!subjectDate) {
209
198
  return {
210
- actual: subject,
211
- expected: 'a valid date',
212
199
  message: `Expected subject to be a valid date, but received: ${subject}`,
213
200
  };
214
201
  }
215
202
  if (!startDate) {
216
203
  return {
217
- actual: start,
218
- expected: 'a valid date',
219
204
  message: `Expected start date to be a valid date, but received: ${start}`,
220
205
  };
221
206
  }
222
207
  if (!endDate) {
223
208
  return {
224
- actual: end,
225
- expected: 'a valid date',
226
209
  message: `Expected end date to be a valid date, but received: ${end}`,
227
210
  };
228
211
  }
@@ -255,8 +238,6 @@ exports.withinFromNowAssertion = (0, create_js_1.createAssertion)([schema_js_1.D
255
238
  const subjectDate = toDate(subject);
256
239
  if (!subjectDate) {
257
240
  return {
258
- actual: subject,
259
- expected: 'a valid date',
260
241
  message: `Expected subject to be a valid date, but received: ${subject}`,
261
242
  };
262
243
  }
@@ -264,8 +245,6 @@ exports.withinFromNowAssertion = (0, create_js_1.createAssertion)([schema_js_1.D
264
245
  const durationResult = schema_js_1.DurationSchema.safeParse(durationStr);
265
246
  if (!durationResult.success) {
266
247
  return {
267
- actual: durationStr,
268
- expected: 'a valid duration string',
269
248
  message: `Expected a valid duration string, but received: ${durationStr}`,
270
249
  };
271
250
  }
@@ -296,8 +275,6 @@ exports.withinAgoAssertion = (0, create_js_1.createAssertion)([schema_js_1.DateL
296
275
  const subjectDate = toDate(subject);
297
276
  if (!subjectDate) {
298
277
  return {
299
- actual: subject,
300
- expected: 'a valid date',
301
278
  message: `Expected subject to be a valid date, but received: ${subject}`,
302
279
  };
303
280
  }
@@ -305,8 +282,6 @@ exports.withinAgoAssertion = (0, create_js_1.createAssertion)([schema_js_1.DateL
305
282
  const durationResult = schema_js_1.DurationSchema.safeParse(durationStr);
306
283
  if (!durationResult.success) {
307
284
  return {
308
- actual: durationStr,
309
- expected: 'a valid duration string',
310
285
  message: `Expected a valid duration string, but received: ${durationStr}`,
311
286
  };
312
287
  }
@@ -347,8 +322,6 @@ exports.atLeastFromNowAssertion = (0, create_js_1.createAssertion)([schema_js_1.
347
322
  const subjectDate = toDate(subject);
348
323
  if (!subjectDate) {
349
324
  return {
350
- actual: subject,
351
- expected: 'a valid date',
352
325
  message: `Expected subject to be a valid date, but received: ${subject}`,
353
326
  };
354
327
  }
@@ -356,8 +329,6 @@ exports.atLeastFromNowAssertion = (0, create_js_1.createAssertion)([schema_js_1.
356
329
  const durationResult = schema_js_1.DurationSchema.safeParse(durationStr);
357
330
  if (!durationResult.success) {
358
331
  return {
359
- actual: durationStr,
360
- expected: 'a valid duration string',
361
332
  message: `Expected a valid duration string, but received: ${durationStr}`,
362
333
  };
363
334
  }
@@ -398,8 +369,6 @@ exports.atLeastAgoAssertion = (0, create_js_1.createAssertion)([schema_js_1.Date
398
369
  const subjectDate = toDate(subject);
399
370
  if (!subjectDate) {
400
371
  return {
401
- actual: subject,
402
- expected: 'a valid date',
403
372
  message: `Expected subject to be a valid date, but received: ${subject}`,
404
373
  };
405
374
  }
@@ -407,8 +376,6 @@ exports.atLeastAgoAssertion = (0, create_js_1.createAssertion)([schema_js_1.Date
407
376
  const durationResult = schema_js_1.DurationSchema.safeParse(durationStr);
408
377
  if (!durationResult.success) {
409
378
  return {
410
- actual: durationStr,
411
- expected: 'a valid duration string',
412
379
  message: `Expected a valid duration string, but received: ${durationStr}`,
413
380
  };
414
381
  }
@@ -448,15 +415,11 @@ exports.sameDateAssertion = (0, create_js_1.createAssertion)([schema_js_1.DateLi
448
415
  const otherDate = toDate(other);
449
416
  if (!subjectDate) {
450
417
  return {
451
- actual: subject,
452
- expected: 'a valid date',
453
418
  message: `Expected subject to be a valid date, but received: ${subject}`,
454
419
  };
455
420
  }
456
421
  if (!otherDate) {
457
422
  return {
458
- actual: other,
459
- expected: 'a valid date',
460
423
  message: `Expected comparison date to be a valid date, but received: ${other}`,
461
424
  };
462
425
  }
@@ -470,7 +433,6 @@ exports.sameDateAssertion = (0, create_js_1.createAssertion)([schema_js_1.DateLi
470
433
  message: `Expected dates to be the same day, but ${subjectDate.toDateString()} !== ${otherDate.toDateString()}`,
471
434
  };
472
435
  }
473
- return true;
474
436
  });
475
437
  /**
476
438
  * Asserts that the subject is equal to another date within a tolerance.
@@ -499,15 +461,11 @@ exports.equalWithinAssertion = (0, create_js_1.createAssertion)([
499
461
  const otherDate = toDate(other);
500
462
  if (!subjectDate) {
501
463
  return {
502
- actual: subject,
503
- expected: 'a valid date',
504
464
  message: `Expected subject to be a valid date, but received: ${subject}`,
505
465
  };
506
466
  }
507
467
  if (!otherDate) {
508
468
  return {
509
- actual: other,
510
- expected: 'a valid date',
511
469
  message: `Expected comparison date to be a valid date, but received: ${other}`,
512
470
  };
513
471
  }
@@ -515,8 +473,6 @@ exports.equalWithinAssertion = (0, create_js_1.createAssertion)([
515
473
  const durationResult = schema_js_1.DurationSchema.safeParse(toleranceStr);
516
474
  if (!durationResult.success) {
517
475
  return {
518
- actual: toleranceStr,
519
- expected: 'a valid duration string',
520
476
  message: `Expected a valid duration string, but received: ${toleranceStr}`,
521
477
  };
522
478
  }
@@ -524,12 +480,11 @@ exports.equalWithinAssertion = (0, create_js_1.createAssertion)([
524
480
  const diff = abs(subjectDate.getTime() - otherDate.getTime());
525
481
  if (diff > toleranceMs) {
526
482
  return {
527
- actual: `${diff}ms difference`,
528
- expected: `within ${toleranceMs}ms`,
483
+ actual: { difference: diff },
484
+ expected: { maxDifference: toleranceMs },
529
485
  message: `Expected dates to be equal within ${toleranceStr} (${toleranceMs}ms), but difference was ${diff}ms`,
530
486
  };
531
487
  }
532
- return true;
533
488
  });
534
489
  /**
535
490
  * Asserts that the subject is in the past.
@@ -549,8 +504,6 @@ exports.inThePastAssertion = (0, create_js_1.createAssertion)(['to be in the pas
549
504
  const date = toDate(subject);
550
505
  if (!date) {
551
506
  return {
552
- actual: subject,
553
- expected: 'a valid date',
554
507
  message: `Expected subject to be a valid date, but received: ${subject}`,
555
508
  };
556
509
  }
@@ -578,8 +531,6 @@ exports.inTheFutureAssertion = (0, create_js_1.createAssertion)(['to be in the f
578
531
  const date = toDate(subject);
579
532
  if (!date) {
580
533
  return {
581
- actual: subject,
582
- expected: 'a valid date',
583
534
  message: `Expected subject to be a valid date, but received: ${subject}`,
584
535
  };
585
536
  }
@@ -608,8 +559,6 @@ exports.weekendAssertion = (0, create_js_1.createAssertion)(['to be a weekend'],
608
559
  const date = toDate(subject);
609
560
  if (!date) {
610
561
  return {
611
- actual: subject,
612
- expected: 'a valid date',
613
562
  message: `Expected subject to be a valid date, but received: ${subject}`,
614
563
  };
615
564
  }
@@ -622,7 +571,6 @@ exports.weekendAssertion = (0, create_js_1.createAssertion)(['to be a weekend'],
622
571
  message: `Expected date to be a weekend (Saturday or Sunday in UTC), but it was ${constant_js_1.DAY_NAMES[day]} in UTC`,
623
572
  };
624
573
  }
625
- return true;
626
574
  });
627
575
  /**
628
576
  * Asserts that the subject is a weekday (Monday through Friday) in UTC.
@@ -643,8 +591,6 @@ exports.weekdayAssertion = (0, create_js_1.createAssertion)(['to be a weekday'],
643
591
  const date = toDate(subject);
644
592
  if (!date) {
645
593
  return {
646
- actual: subject,
647
- expected: 'a valid date',
648
594
  message: `Expected subject to be a valid date, but received: ${subject}`,
649
595
  };
650
596
  }
@@ -657,6 +603,5 @@ exports.weekdayAssertion = (0, create_js_1.createAssertion)(['to be a weekday'],
657
603
  message: `Expected date to be a weekday (Monday through Friday in UTC), but it was ${constant_js_1.DAY_NAMES[day]} in UTC`,
658
604
  };
659
605
  }
660
- return true;
661
606
  });
662
607
  //# sourceMappingURL=sync-date.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-date.js","sourceRoot":"","sources":["../../../../src/assertion/impl/sync-date.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACH,6BAAwB;AAOxB,mDAA8C;AAC9C,+CAIyB;AACzB,4CAA+C;AAE/C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;AACzB,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACrB,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAErB;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CAAC,KAAc,EAAe,EAAE;IAC7C,IAAI,KAAK,YAAY,IAAI,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACjD,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,C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AI,CAAC,CAAC,CAAC,wBAAwB;IAEhE,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO;YACL,MAAM,EAAE,uBAAS,CAAC,GAAG,CAAC;YACtB,QAAQ,EAAE,uBAAuB;YACjC,OAAO,EAAE,4EAA4E,uBAAS,CAAC,GAAG,CAAC,SAAS;SAC7G,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC"}
@@ -41,7 +41,7 @@ export declare const instanceOfAssertion: import("../assertion-types.js").Assert
41
41
  */
42
42
  export declare const typeOfAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodAny, readonly ["to be a", "to be an", "to have type"], z.ZodEnum<{
43
43
  [x: string]: string;
44
- }>], (_: any, type: string) => z.ZodString | z.ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>> | z.ZodNumber | z.ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>> | z.ZodArray<z.ZodAny> | z.ZodSymbol | z.ZodBigInt | z.ZodBoolean | z.ZodDate | z.ZodCustom<Error, Error> | z.ZodNull | z.ZodUndefined | z.ZodCustom<RegExp, RegExp> | z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | z.ZodObject<{}, z.core.$loose> | z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>> | z.ZodCustom<WeakRef<WeakKey>, WeakRef<WeakKey>>, readonly [z.ZodAny, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be a", "to be an", "to have type"]>, z.ZodEnum<{
44
+ }>], (_: any, type: string) => z.ZodString | z.ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>> | z.ZodNumber | z.ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>> | z.ZodSymbol | z.ZodArray<z.ZodAny> | z.ZodBigInt | z.ZodBoolean | z.ZodDate | z.ZodCustom<Error, Error> | z.ZodNull | z.ZodUndefined | z.ZodCustom<RegExp, RegExp> | z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | z.ZodObject<{}, z.core.$loose> | z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>> | z.ZodCustom<WeakRef<WeakKey>, WeakRef<WeakKey>>, readonly [z.ZodAny, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be a", "to be an", "to have type"]>, z.ZodEnum<{
45
45
  [x: string]: string;
46
46
  }>]>;
47
47
  /**
@@ -255,7 +255,7 @@ export declare const stringEndsWithAssertion: import("../assertion-types.js").As
255
255
  */
256
256
  export declare const oneOfAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly ["to be one of", z.ZodArray<z.ZodAny>], (subject: unknown, values: any[]) => {
257
257
  actual: unknown;
258
- expected: string;
258
+ expected: any[];
259
259
  message: string;
260
260
  } | undefined, readonly [z.ZodUnknown, import("../assertion-types.js").PhraseLiteralSlot<"to be one of">, z.ZodArray<z.ZodAny>]>;
261
261
  /**
@@ -451,16 +451,12 @@ export declare const functionThrowsTypeAssertion: import("../assertion-types.js"
451
451
  * @group Parametric Assertions (Sync)
452
452
  */
453
453
  export declare const functionThrowsSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to throw", "to throw error satisfying"], z.ZodAny], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: any) => {
454
- actual: unknown;
455
- expected: string;
456
454
  message: string;
457
455
  schema?: never;
458
456
  subject?: never;
459
457
  } | {
460
458
  schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
461
459
  subject: {} | null;
462
- actual?: never;
463
- expected?: never;
464
460
  message?: never;
465
461
  }, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to throw", "to throw error satisfying"]>, z.ZodAny]>;
466
462
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sync-parametric.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/sync-parametric.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAkD3B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,6gBAG/B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe;;;;IA2D3B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0BAA0B,2QAGtC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,yTAGnC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iCAAiC,6XAO7C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,8BAA8B,qXAO1C,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0BAA0B;;;;qKAWtC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB;;;;oJAYlC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B;;;;4HAWtC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;;yHAWnC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iCAAiC;;;;wIAW7C,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,8BAA8B;;;;qIAW1C,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB;;;;yJAWrC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;;;qHAWnC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc;;;;gIAW1B,CA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,eAAO,MAAM,uBAAuB;;;;0NAsBnC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;;kPAGpC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;;;;;;uIAKnC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB;;;+PAWnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,2BAA2B;;;;0XA2BvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;2SAsC7C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;ybAqDjD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;2KAenC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,yRAGlC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB;;sQAOpC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;;;;;+HAGnC,CAAC"}
@@ -381,7 +381,7 @@ exports.oneOfAssertion = (0, create_js_1.createAssertion)(['to be one of', v4_1.
381
381
  if (!values.includes(subject)) {
382
382
  return {
383
383
  actual: subject,
384
- expected: `one of [${values.map((v) => (0, node_util_1.inspect)(v)).join(', ')}]`,
384
+ expected: values,
385
385
  message: `Expected ${(0, node_util_1.inspect)(subject)} to be one of [${values.map((v) => (0, node_util_1.inspect)(v)).join(', ')}]`,
386
386
  };
387
387
  }
@@ -624,11 +624,9 @@ exports.functionThrowsTypeAssertion = (0, create_js_1.createAssertion)([schema_j
624
624
  * @group Parametric Assertions (Sync)
625
625
  */
626
626
  exports.functionThrowsSatisfyingAssertion = (0, create_js_1.createAssertion)([schema_js_1.FunctionSchema, ['to throw', 'to throw error satisfying'], v4_1.z.any()], (subject, param) => {
627
- const { error, result } = (0, assertion_util_js_1.trapError)(subject);
627
+ const { error } = (0, assertion_util_js_1.trapError)(subject);
628
628
  if (error === undefined) {
629
629
  return {
630
- actual: result,
631
- expected: 'to throw',
632
630
  message: 'Expected function to throw, but it did not',
633
631
  };
634
632
  }