bupkis 0.11.0 → 0.11.1
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.
- package/CHANGELOG.md +7 -0
- package/dist/commonjs/assertion/impl/async-parametric.d.ts +11 -31
- package/dist/commonjs/assertion/impl/async-parametric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/async-parametric.js +12 -37
- package/dist/commonjs/assertion/impl/async-parametric.js.map +1 -1
- package/dist/commonjs/assertion/impl/async.d.ts +34 -74
- package/dist/commonjs/assertion/impl/async.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-basic.d.ts +1 -1
- package/dist/commonjs/assertion/impl/sync-basic.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-basic.js +25 -25
- package/dist/commonjs/assertion/impl/sync-basic.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-collection.d.ts +4 -6
- package/dist/commonjs/assertion/impl/sync-collection.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-collection.js +18 -19
- package/dist/commonjs/assertion/impl/sync-collection.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-date.d.ts +13 -212
- package/dist/commonjs/assertion/impl/sync-date.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-date.js +5 -271
- package/dist/commonjs/assertion/impl/sync-date.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-esoteric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-esoteric.js +2 -2
- package/dist/commonjs/assertion/impl/sync-esoteric.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts +29 -49
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.js +77 -100
- package/dist/commonjs/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync.d.ts +137 -319
- package/dist/commonjs/assertion/impl/sync.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync.js +0 -7
- package/dist/commonjs/assertion/impl/sync.js.map +1 -1
- package/dist/commonjs/assertion/slotify.js +88 -43
- package/dist/commonjs/assertion/slotify.js.map +1 -1
- package/dist/commonjs/bootstrap.d.ts +84 -195
- package/dist/commonjs/bootstrap.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +37 -148
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/schema.d.ts +21 -0
- package/dist/commonjs/schema.d.ts.map +1 -1
- package/dist/commonjs/schema.js +132 -2
- package/dist/commonjs/schema.js.map +1 -1
- package/dist/esm/assertion/impl/async-parametric.d.ts +11 -31
- package/dist/esm/assertion/impl/async-parametric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/async-parametric.js +13 -38
- package/dist/esm/assertion/impl/async-parametric.js.map +1 -1
- package/dist/esm/assertion/impl/async.d.ts +34 -74
- package/dist/esm/assertion/impl/async.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-basic.d.ts +1 -1
- package/dist/esm/assertion/impl/sync-basic.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-basic.js +26 -26
- package/dist/esm/assertion/impl/sync-basic.js.map +1 -1
- package/dist/esm/assertion/impl/sync-collection.d.ts +4 -6
- package/dist/esm/assertion/impl/sync-collection.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-collection.js +19 -20
- package/dist/esm/assertion/impl/sync-collection.js.map +1 -1
- package/dist/esm/assertion/impl/sync-date.d.ts +13 -212
- package/dist/esm/assertion/impl/sync-date.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-date.js +4 -270
- package/dist/esm/assertion/impl/sync-date.js.map +1 -1
- package/dist/esm/assertion/impl/sync-esoteric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-esoteric.js +3 -3
- package/dist/esm/assertion/impl/sync-esoteric.js.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.d.ts +29 -49
- package/dist/esm/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.js +78 -101
- package/dist/esm/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/esm/assertion/impl/sync.d.ts +137 -319
- package/dist/esm/assertion/impl/sync.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync.js +1 -8
- package/dist/esm/assertion/impl/sync.js.map +1 -1
- package/dist/esm/assertion/slotify.js +88 -43
- package/dist/esm/assertion/slotify.js.map +1 -1
- package/dist/esm/bootstrap.d.ts +84 -195
- package/dist/esm/bootstrap.d.ts.map +1 -1
- package/dist/esm/index.d.ts +37 -148
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/schema.d.ts +21 -0
- package/dist/esm/schema.d.ts.map +1 -1
- package/dist/esm/schema.js +129 -1
- package/dist/esm/schema.js.map +1 -1
- package/package.json +21 -11
- package/src/assertion/impl/async-parametric.ts +16 -37
- package/src/assertion/impl/sync-basic.ts +48 -32
- package/src/assertion/impl/sync-collection.ts +25 -23
- package/src/assertion/impl/sync-date.ts +4 -311
- package/src/assertion/impl/sync-esoteric.ts +7 -3
- package/src/assertion/impl/sync-parametric.ts +104 -102
- package/src/assertion/impl/sync.ts +0 -14
- package/src/assertion/slotify.ts +61 -6
- package/src/schema.ts +152 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.1](https://github.com/boneskull/bupkis/compare/bupkis-v0.11.0...bupkis-v0.11.1) (2025-10-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **assertions:** remove non-deterministic date assertions ([e1569c3](https://github.com/boneskull/bupkis/commit/e1569c3c85572782e2bfe0bb9ecac89b9f2b4f49)), closes [#146](https://github.com/boneskull/bupkis/issues/146)
|
|
9
|
+
|
|
3
10
|
## [0.11.0](https://github.com/boneskull/bupkis/compare/bupkis-v0.10.6...bupkis-v0.11.0) (2025-10-06)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @showGroups
|
|
14
14
|
*/
|
|
15
|
-
import { z } from 'zod/v4';
|
|
15
|
+
import { type z } from 'zod/v4';
|
|
16
16
|
/**
|
|
17
17
|
* Assertion for testing if a function returns a fulfilled Promise.
|
|
18
18
|
*
|
|
@@ -98,15 +98,13 @@ export declare const promiseRejectAssertion: import("../assertion-types.js").Ass
|
|
|
98
98
|
* @group Parametric Assertions (Async)
|
|
99
99
|
*/
|
|
100
100
|
export declare const functionRejectWithTypeAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("../../types.js").Constructor) => Promise<{
|
|
101
|
-
actual: string;
|
|
102
|
-
expect: string;
|
|
103
101
|
message: string;
|
|
102
|
+
actual?: never;
|
|
104
103
|
expected?: never;
|
|
105
104
|
} | {
|
|
106
105
|
actual: string;
|
|
107
106
|
expected: string;
|
|
108
107
|
message: string;
|
|
109
|
-
expect?: never;
|
|
110
108
|
} | undefined>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>;
|
|
111
109
|
/**
|
|
112
110
|
* Assertion for testing if a Promise rejects with a specific error type.
|
|
@@ -129,15 +127,13 @@ export declare const functionRejectWithTypeAssertion: import("../assertion-types
|
|
|
129
127
|
* @group Parametric Assertions (Async)
|
|
130
128
|
*/
|
|
131
129
|
export declare const promiseRejectWithTypeAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: PromiseLike<unknown>, ctor: import("../../types.js").Constructor) => Promise<{
|
|
132
|
-
actual: string;
|
|
133
|
-
expect: string;
|
|
134
130
|
message: string;
|
|
131
|
+
actual?: never;
|
|
135
132
|
expected?: never;
|
|
136
133
|
} | {
|
|
137
134
|
actual: string;
|
|
138
135
|
expected: string;
|
|
139
136
|
message: string;
|
|
140
|
-
expect?: never;
|
|
141
137
|
} | undefined>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>;
|
|
142
138
|
/**
|
|
143
139
|
* Assertion for testing if a function rejects with an error satisfying specific
|
|
@@ -165,19 +161,15 @@ export declare const promiseRejectWithTypeAssertion: import("../assertion-types.
|
|
|
165
161
|
*
|
|
166
162
|
* @group Parametric Assertions (Async)
|
|
167
163
|
*/
|
|
168
|
-
export declare const functionRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], z.
|
|
169
|
-
actual: string;
|
|
170
|
-
expect: string;
|
|
164
|
+
export declare const functionRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], z.ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
171
165
|
message: string;
|
|
172
166
|
schema?: never;
|
|
173
167
|
subject?: never;
|
|
174
168
|
} | {
|
|
175
169
|
schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
176
170
|
subject: {} | null;
|
|
177
|
-
actual?: never;
|
|
178
|
-
expect?: never;
|
|
179
171
|
message?: never;
|
|
180
|
-
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.
|
|
172
|
+
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.ZodUnknown]>;
|
|
181
173
|
/**
|
|
182
174
|
* Assertion for testing if a Promise rejects with an error satisfying specific
|
|
183
175
|
* criteria.
|
|
@@ -204,19 +196,15 @@ export declare const functionRejectWithErrorSatisfyingAssertion: import("../asse
|
|
|
204
196
|
*
|
|
205
197
|
* @group Parametric Assertions (Async)
|
|
206
198
|
*/
|
|
207
|
-
export declare const promiseRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with error satisfying"], z.
|
|
208
|
-
actual: string;
|
|
209
|
-
expect: string;
|
|
199
|
+
export declare const promiseRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with error satisfying"], z.ZodUnknown], (subject: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
210
200
|
message: string;
|
|
211
201
|
schema?: never;
|
|
212
202
|
subject?: never;
|
|
213
203
|
} | {
|
|
214
204
|
schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
215
205
|
subject: {} | null;
|
|
216
|
-
actual?: never;
|
|
217
|
-
expect?: never;
|
|
218
206
|
message?: never;
|
|
219
|
-
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.
|
|
207
|
+
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.ZodUnknown]>;
|
|
220
208
|
/**
|
|
221
209
|
* Assertion for testing if a Promise fulfills with a value satisfying specific
|
|
222
210
|
* criteria.
|
|
@@ -243,19 +231,15 @@ export declare const promiseRejectWithErrorSatisfyingAssertion: import("../asser
|
|
|
243
231
|
*
|
|
244
232
|
* @group Parametric Assertions (Async)
|
|
245
233
|
*/
|
|
246
|
-
export declare const promiseResolveWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.
|
|
247
|
-
actual: string;
|
|
248
|
-
expect: string;
|
|
234
|
+
export declare const promiseResolveWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.ZodUnknown], (promise: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
249
235
|
message: string;
|
|
250
236
|
schema?: never;
|
|
251
237
|
subject?: never;
|
|
252
238
|
} | {
|
|
253
239
|
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
254
240
|
subject: unknown;
|
|
255
|
-
actual?: never;
|
|
256
|
-
expect?: never;
|
|
257
241
|
message?: never;
|
|
258
|
-
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.
|
|
242
|
+
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.ZodUnknown]>;
|
|
259
243
|
/**
|
|
260
244
|
* Assertion for testing if a function returns a Promise that fulfills with a
|
|
261
245
|
* value satisfying specific criteria.
|
|
@@ -282,17 +266,13 @@ export declare const promiseResolveWithValueSatisfyingAssertion: import("../asse
|
|
|
282
266
|
*
|
|
283
267
|
* @group Parametric Assertions (Async)
|
|
284
268
|
*/
|
|
285
|
-
export declare const functionFulfillWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.
|
|
286
|
-
actual: string;
|
|
287
|
-
expect: string;
|
|
269
|
+
export declare const functionFulfillWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
288
270
|
message: string;
|
|
289
271
|
schema?: never;
|
|
290
272
|
subject?: never;
|
|
291
273
|
} | {
|
|
292
274
|
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
293
275
|
subject: unknown;
|
|
294
|
-
actual?: never;
|
|
295
|
-
expect?: never;
|
|
296
276
|
message?: never;
|
|
297
|
-
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.
|
|
277
|
+
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.ZodUnknown]>;
|
|
298
278
|
//# sourceMappingURL=async-parametric.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-parametric.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"async-parametric.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC;AAmBhC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB;;iSAWpC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;mLAWnC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;iQAUnC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;;mJAUlC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;uYA6B3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;yRA6B1C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0CAA0C;;;;;;;;0SAgCtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;4LAmCrD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0CAA0C;;;;;;;;iOAyBtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,2CAA2C;;;;;;;;+UAwBvD,CAAC"}
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.functionFulfillWithValueSatisfyingAssertion = exports.promiseResolveWithValueSatisfyingAssertion = exports.promiseRejectWithErrorSatisfyingAssertion = exports.functionRejectWithErrorSatisfyingAssertion = exports.promiseRejectWithTypeAssertion = exports.functionRejectWithTypeAssertion = exports.promiseRejectAssertion = exports.functionRejectAssertion = exports.promiseResolveAssertion = exports.functionResolveAssertion = void 0;
|
|
18
18
|
const node_util_1 = require("node:util");
|
|
19
|
-
const v4_1 = require("zod/v4");
|
|
20
19
|
const error_js_1 = require("../../error.js");
|
|
21
20
|
const guards_js_1 = require("../../guards.js");
|
|
22
21
|
const schema_js_1 = require("../../schema.js");
|
|
@@ -139,8 +138,6 @@ exports.functionRejectWithTypeAssertion = (0, create_js_1.createAsyncAssertion)(
|
|
|
139
138
|
const { error, result } = await (0, assertion_util_js_1.trapAsyncFnError)(subject);
|
|
140
139
|
if (error === undefined) {
|
|
141
140
|
return {
|
|
142
|
-
actual: 'function fulfilled',
|
|
143
|
-
expect: 'function rejected',
|
|
144
141
|
message: `Expected function to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
145
142
|
};
|
|
146
143
|
}
|
|
@@ -188,8 +185,6 @@ exports.promiseRejectWithTypeAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
|
188
185
|
const { error, result } = await (0, assertion_util_js_1.trapPromiseError)(subject);
|
|
189
186
|
if (error === undefined) {
|
|
190
187
|
return {
|
|
191
|
-
actual: 'Promise fulfilled',
|
|
192
|
-
expect: 'Promise rejected',
|
|
193
188
|
message: `Expected Promise to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
194
189
|
};
|
|
195
190
|
}
|
|
@@ -235,30 +230,20 @@ exports.promiseRejectWithTypeAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
|
235
230
|
*
|
|
236
231
|
* @group Parametric Assertions (Async)
|
|
237
232
|
*/
|
|
238
|
-
exports.functionRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([schema_js_1.FunctionSchema, ['to reject with error satisfying'],
|
|
233
|
+
exports.functionRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([schema_js_1.FunctionSchema, ['to reject with error satisfying'], schema_js_1.UnknownSchema], async (subject, param) => {
|
|
239
234
|
const { error, result } = await (0, assertion_util_js_1.trapAsyncFnError)(subject);
|
|
240
235
|
if (error === undefined) {
|
|
241
236
|
return {
|
|
242
|
-
actual: 'function fulfilled',
|
|
243
|
-
expect: 'function to reject',
|
|
244
237
|
message: `Expected function to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
245
238
|
};
|
|
246
239
|
}
|
|
247
240
|
let schema;
|
|
248
241
|
// TODO: can valueToSchema handle the first two conditional branches?
|
|
249
242
|
if ((0, guards_js_1.isString)(param)) {
|
|
250
|
-
schema =
|
|
251
|
-
.looseObject({
|
|
252
|
-
message: v4_1.z.coerce.string().pipe(v4_1.z.literal(param)),
|
|
253
|
-
})
|
|
254
|
-
.or(v4_1.z.coerce.string().pipe(v4_1.z.literal(param)));
|
|
243
|
+
schema = (0, schema_js_1.createErrorMessageSchema)(param);
|
|
255
244
|
}
|
|
256
245
|
else if ((0, guards_js_1.isA)(param, RegExp)) {
|
|
257
|
-
schema =
|
|
258
|
-
.looseObject({
|
|
259
|
-
message: v4_1.z.coerce.string().regex(param),
|
|
260
|
-
})
|
|
261
|
-
.or(v4_1.z.coerce.string().regex(param));
|
|
246
|
+
schema = (0, schema_js_1.createErrorMessageRegexSchema)(param);
|
|
262
247
|
}
|
|
263
248
|
else if ((0, guards_js_1.isNonNullObject)(param)) {
|
|
264
249
|
schema = (0, value_to_schema_js_1.valueToSchema)(param, value_to_schema_js_1.valueToSchemaOptionsForSatisfies);
|
|
@@ -298,30 +283,24 @@ exports.functionRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsync
|
|
|
298
283
|
*
|
|
299
284
|
* @group Parametric Assertions (Async)
|
|
300
285
|
*/
|
|
301
|
-
exports.promiseRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
286
|
+
exports.promiseRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
287
|
+
schema_js_1.WrappedPromiseLikeSchema,
|
|
288
|
+
['to reject with error satisfying'],
|
|
289
|
+
schema_js_1.UnknownSchema,
|
|
290
|
+
], async (subject, param) => {
|
|
302
291
|
const { error, result } = await (0, assertion_util_js_1.trapPromiseError)(subject);
|
|
303
292
|
if (error === undefined) {
|
|
304
293
|
return {
|
|
305
|
-
actual: 'Promise fulfilled',
|
|
306
|
-
expect: 'Promise rejected',
|
|
307
294
|
message: `Expected Promise to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
308
295
|
};
|
|
309
296
|
}
|
|
310
297
|
let schema;
|
|
311
298
|
// TODO: can valueToSchema handle the first two conditional branches?
|
|
312
299
|
if ((0, guards_js_1.isString)(param)) {
|
|
313
|
-
schema =
|
|
314
|
-
.looseObject({
|
|
315
|
-
message: v4_1.z.coerce.string().pipe(v4_1.z.literal(param)),
|
|
316
|
-
})
|
|
317
|
-
.or(v4_1.z.coerce.string().pipe(v4_1.z.literal(param)));
|
|
300
|
+
schema = (0, schema_js_1.createErrorMessageSchema)(param);
|
|
318
301
|
}
|
|
319
302
|
else if ((0, guards_js_1.isA)(param, RegExp)) {
|
|
320
|
-
schema =
|
|
321
|
-
.looseObject({
|
|
322
|
-
message: v4_1.z.coerce.string().regex(param),
|
|
323
|
-
})
|
|
324
|
-
.or(v4_1.z.coerce.string().regex(param));
|
|
303
|
+
schema = (0, schema_js_1.createErrorMessageRegexSchema)(param);
|
|
325
304
|
}
|
|
326
305
|
else if ((0, guards_js_1.isNonNullObject)(param)) {
|
|
327
306
|
schema = (0, value_to_schema_js_1.valueToSchema)(param, value_to_schema_js_1.valueToSchemaOptionsForSatisfies);
|
|
@@ -364,7 +343,7 @@ exports.promiseRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncA
|
|
|
364
343
|
exports.promiseResolveWithValueSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
365
344
|
schema_js_1.WrappedPromiseLikeSchema,
|
|
366
345
|
['to fulfill with value satisfying', 'to resolve with value satisfying'],
|
|
367
|
-
|
|
346
|
+
schema_js_1.UnknownSchema,
|
|
368
347
|
], async (promise, param) => {
|
|
369
348
|
let value;
|
|
370
349
|
try {
|
|
@@ -372,8 +351,6 @@ exports.promiseResolveWithValueSatisfyingAssertion = (0, create_js_1.createAsync
|
|
|
372
351
|
}
|
|
373
352
|
catch (err) {
|
|
374
353
|
return {
|
|
375
|
-
actual: 'Promise rejected',
|
|
376
|
-
expect: 'Promise to fulfill',
|
|
377
354
|
message: `Expected Promise to fulfill, but it rejected with ${(0, node_util_1.inspect)(err)}`,
|
|
378
355
|
};
|
|
379
356
|
}
|
|
@@ -412,7 +389,7 @@ exports.promiseResolveWithValueSatisfyingAssertion = (0, create_js_1.createAsync
|
|
|
412
389
|
exports.functionFulfillWithValueSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
413
390
|
schema_js_1.FunctionSchema,
|
|
414
391
|
['to fulfill with value satisfying', 'to resolve with value satisfying'],
|
|
415
|
-
|
|
392
|
+
schema_js_1.UnknownSchema,
|
|
416
393
|
], async (subject, param) => {
|
|
417
394
|
let value;
|
|
418
395
|
try {
|
|
@@ -420,8 +397,6 @@ exports.functionFulfillWithValueSatisfyingAssertion = (0, create_js_1.createAsyn
|
|
|
420
397
|
}
|
|
421
398
|
catch (err) {
|
|
422
399
|
return {
|
|
423
|
-
actual: 'function rejected',
|
|
424
|
-
expect: 'function fulfilled',
|
|
425
400
|
message: `Expected function to fulfill, but it rejected with ${(0, node_util_1.inspect)(err)}`,
|
|
426
401
|
};
|
|
427
402
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-parametric.js","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAEH,yCAAoC;
|
|
1
|
+
{"version":3,"file":"async-parametric.js","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAEH,yCAAoC;AAGpC,6CAA0D;AAC1D,+CAAiE;AACjE,+CAOyB;AACzB,iEAGkC;AAClC,4CAAoD;AACpD,2DAAyE;AAEzE;;;;;;;;;;;;;GAaG;AACU,QAAA,wBAAwB,GAAG,IAAA,gCAAoB,EAC1D,CAAC,0BAAc,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,EAC9C,KAAK,EAAE,OAAO,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,MAAM,OAAO,EAAE,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO;YACL,OAAO,EAAE,uDAAuD;SACjE,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACU,QAAA,uBAAuB,GAAG,IAAA,gCAAoB,EACzD,CAAC,oCAAwB,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,EACxD,KAAK,EAAE,OAAO,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,MAAM,OAAO,CAAC;IAChB,CAAC;IAAC,MAAM,CAA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AAO,EAAE,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO;YACL,OAAO,EAAE,sDAAsD,IAAA,mBAAO,EACpE,GAAG,CACJ,EAAE;SACJ,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,IAAA,kCAAa,EAAC,KAAK,EAAE,qDAAgC,CAAC,CAAC;IACtE,OAAO;QACL,MAAM;QACN,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -11,164 +11,124 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @group Assertion Collections
|
|
13
13
|
*/
|
|
14
|
-
export declare const AsyncParametricAssertions: readonly [import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to resolve", "to fulfill"]], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
14
|
+
export declare const AsyncParametricAssertions: readonly [import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to resolve", "to fulfill"]], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
15
15
|
message: string;
|
|
16
|
-
} | undefined>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to resolve", "to fulfill"]], (subject: PromiseLike<unknown>) => Promise<{
|
|
16
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to resolve", "to fulfill"]], (subject: PromiseLike<unknown>) => Promise<{
|
|
17
17
|
message: string;
|
|
18
|
-
} | undefined>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, "to reject"], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
18
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, "to reject"], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
19
19
|
message: string;
|
|
20
|
-
} | undefined>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, "to reject"], (subject: PromiseLike<unknown>) => Promise<{
|
|
20
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, "to reject"], (subject: PromiseLike<unknown>) => Promise<{
|
|
21
21
|
message: string;
|
|
22
|
-
} | undefined>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with a", "to reject with an"], import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("../../types.js").Constructor) => Promise<{
|
|
23
|
-
actual: string;
|
|
24
|
-
expect: string;
|
|
22
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with a", "to reject with an"], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("../../types.js").Constructor) => Promise<{
|
|
25
23
|
message: string;
|
|
24
|
+
actual?: never;
|
|
26
25
|
expected?: never;
|
|
27
26
|
} | {
|
|
28
27
|
actual: string;
|
|
29
28
|
expected: string;
|
|
30
29
|
message: string;
|
|
31
|
-
|
|
32
|
-
} | undefined>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with a", "to reject with an"], import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: PromiseLike<unknown>, ctor: import("../../types.js").Constructor) => Promise<{
|
|
33
|
-
actual: string;
|
|
34
|
-
expect: string;
|
|
30
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with a", "to reject with an"], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: PromiseLike<unknown>, ctor: import("../../types.js").Constructor) => Promise<{
|
|
35
31
|
message: string;
|
|
32
|
+
actual?: never;
|
|
36
33
|
expected?: never;
|
|
37
34
|
} | {
|
|
38
35
|
actual: string;
|
|
39
36
|
expected: string;
|
|
40
37
|
message: string;
|
|
41
|
-
|
|
42
|
-
} | undefined>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], import("zod").ZodAny], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: any) => Promise<{
|
|
43
|
-
actual: string;
|
|
44
|
-
expect: string;
|
|
38
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], import("zod/v4").ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
45
39
|
message: string;
|
|
46
40
|
schema?: never;
|
|
47
41
|
subject?: never;
|
|
48
42
|
} | {
|
|
49
|
-
schema: import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
43
|
+
schema: import("zod/v4").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
50
44
|
subject: {} | null;
|
|
51
|
-
actual?: never;
|
|
52
|
-
expect?: never;
|
|
53
45
|
message?: never;
|
|
54
|
-
}>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod").
|
|
55
|
-
actual: string;
|
|
56
|
-
expect: string;
|
|
46
|
+
}>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with error satisfying"], import("zod/v4").ZodUnknown], (subject: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
57
47
|
message: string;
|
|
58
48
|
schema?: never;
|
|
59
49
|
subject?: never;
|
|
60
50
|
} | {
|
|
61
|
-
schema: import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
51
|
+
schema: import("zod/v4").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
62
52
|
subject: {} | null;
|
|
63
|
-
actual?: never;
|
|
64
|
-
expect?: never;
|
|
65
53
|
message?: never;
|
|
66
|
-
}>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod").
|
|
67
|
-
actual: string;
|
|
68
|
-
expect: string;
|
|
54
|
+
}>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], import("zod/v4").ZodUnknown], (promise: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
69
55
|
message: string;
|
|
70
56
|
schema?: never;
|
|
71
57
|
subject?: never;
|
|
72
58
|
} | {
|
|
73
|
-
schema: import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
59
|
+
schema: import("zod/v4").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
74
60
|
subject: unknown;
|
|
75
|
-
actual?: never;
|
|
76
|
-
expect?: never;
|
|
77
61
|
message?: never;
|
|
78
|
-
}>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod").
|
|
79
|
-
actual: string;
|
|
80
|
-
expect: string;
|
|
62
|
+
}>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], import("zod/v4").ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
81
63
|
message: string;
|
|
82
64
|
schema?: never;
|
|
83
65
|
subject?: never;
|
|
84
66
|
} | {
|
|
85
|
-
schema: import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
67
|
+
schema: import("zod/v4").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
86
68
|
subject: unknown;
|
|
87
|
-
actual?: never;
|
|
88
|
-
expect?: never;
|
|
89
69
|
message?: never;
|
|
90
|
-
}>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod").
|
|
70
|
+
}>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod/v4").ZodUnknown]>];
|
|
91
71
|
/**
|
|
92
72
|
* Tuple of all built-in async assertions (Promise only).
|
|
93
73
|
*
|
|
94
74
|
* @group Assertion Collections
|
|
95
75
|
*/
|
|
96
|
-
export declare const AsyncAssertions: readonly [import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to resolve", "to fulfill"]], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
76
|
+
export declare const AsyncAssertions: readonly [import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to resolve", "to fulfill"]], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
97
77
|
message: string;
|
|
98
|
-
} | undefined>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to resolve", "to fulfill"]], (subject: PromiseLike<unknown>) => Promise<{
|
|
78
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to resolve", "to fulfill"]], (subject: PromiseLike<unknown>) => Promise<{
|
|
99
79
|
message: string;
|
|
100
|
-
} | undefined>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, "to reject"], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
80
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, "to reject"], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
101
81
|
message: string;
|
|
102
|
-
} | undefined>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, "to reject"], (subject: PromiseLike<unknown>) => Promise<{
|
|
82
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, "to reject"], (subject: PromiseLike<unknown>) => Promise<{
|
|
103
83
|
message: string;
|
|
104
|
-
} | undefined>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with a", "to reject with an"], import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("../../types.js").Constructor) => Promise<{
|
|
105
|
-
actual: string;
|
|
106
|
-
expect: string;
|
|
84
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with a", "to reject with an"], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("../../types.js").Constructor) => Promise<{
|
|
107
85
|
message: string;
|
|
86
|
+
actual?: never;
|
|
108
87
|
expected?: never;
|
|
109
88
|
} | {
|
|
110
89
|
actual: string;
|
|
111
90
|
expected: string;
|
|
112
91
|
message: string;
|
|
113
|
-
|
|
114
|
-
} | undefined>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with a", "to reject with an"], import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: PromiseLike<unknown>, ctor: import("../../types.js").Constructor) => Promise<{
|
|
115
|
-
actual: string;
|
|
116
|
-
expect: string;
|
|
92
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with a", "to reject with an"], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: PromiseLike<unknown>, ctor: import("../../types.js").Constructor) => Promise<{
|
|
117
93
|
message: string;
|
|
94
|
+
actual?: never;
|
|
118
95
|
expected?: never;
|
|
119
96
|
} | {
|
|
120
97
|
actual: string;
|
|
121
98
|
expected: string;
|
|
122
99
|
message: string;
|
|
123
|
-
|
|
124
|
-
} | undefined>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], import("zod").ZodAny], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: any) => Promise<{
|
|
125
|
-
actual: string;
|
|
126
|
-
expect: string;
|
|
100
|
+
} | undefined>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], import("zod/v4").ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
127
101
|
message: string;
|
|
128
102
|
schema?: never;
|
|
129
103
|
subject?: never;
|
|
130
104
|
} | {
|
|
131
|
-
schema: import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
105
|
+
schema: import("zod/v4").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
132
106
|
subject: {} | null;
|
|
133
|
-
actual?: never;
|
|
134
|
-
expect?: never;
|
|
135
107
|
message?: never;
|
|
136
|
-
}>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod").
|
|
137
|
-
actual: string;
|
|
138
|
-
expect: string;
|
|
108
|
+
}>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with error satisfying"], import("zod/v4").ZodUnknown], (subject: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
139
109
|
message: string;
|
|
140
110
|
schema?: never;
|
|
141
111
|
subject?: never;
|
|
142
112
|
} | {
|
|
143
|
-
schema: import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
113
|
+
schema: import("zod/v4").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
144
114
|
subject: {} | null;
|
|
145
|
-
actual?: never;
|
|
146
|
-
expect?: never;
|
|
147
115
|
message?: never;
|
|
148
|
-
}>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod").
|
|
149
|
-
actual: string;
|
|
150
|
-
expect: string;
|
|
116
|
+
}>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], import("zod/v4").ZodUnknown], (promise: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
151
117
|
message: string;
|
|
152
118
|
schema?: never;
|
|
153
119
|
subject?: never;
|
|
154
120
|
} | {
|
|
155
|
-
schema: import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
121
|
+
schema: import("zod/v4").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
156
122
|
subject: unknown;
|
|
157
|
-
actual?: never;
|
|
158
|
-
expect?: never;
|
|
159
123
|
message?: never;
|
|
160
|
-
}>, readonly [import("zod").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod").
|
|
161
|
-
actual: string;
|
|
162
|
-
expect: string;
|
|
124
|
+
}>, readonly [import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], import("zod/v4").ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
163
125
|
message: string;
|
|
164
126
|
schema?: never;
|
|
165
127
|
subject?: never;
|
|
166
128
|
} | {
|
|
167
|
-
schema: import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
129
|
+
schema: import("zod/v4").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>;
|
|
168
130
|
subject: unknown;
|
|
169
|
-
actual?: never;
|
|
170
|
-
expect?: never;
|
|
171
131
|
message?: never;
|
|
172
|
-
}>, readonly [import("zod").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod").
|
|
132
|
+
}>, readonly [import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, import("zod/v4").ZodUnknown]>];
|
|
173
133
|
export * from './async-parametric.js';
|
|
174
134
|
//# sourceMappingURL=async.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/async.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH;;;;GAIG;AACH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/async.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8WAW5B,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8WAA0C,CAAC;AAEvE,cAAc,uBAAuB,CAAC"}
|
|
@@ -440,7 +440,7 @@ export declare const emptyArrayAssertion: import("../assertion-types.js").Assert
|
|
|
440
440
|
*
|
|
441
441
|
* @group Basic Assertions
|
|
442
442
|
*/
|
|
443
|
-
export declare const emptyObjectAssertion: import("../assertion-types.js").AssertionSchemaSync<readonly [z.ZodRecord<z.
|
|
443
|
+
export declare const emptyObjectAssertion: import("../assertion-types.js").AssertionSchemaSync<readonly [z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodSymbol]>, z.ZodUnknown>, "to be empty"], import("../assertion-types.js").AssertionImplSchemaSync<readonly [z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodSymbol]>, z.ZodUnknown>, "to be empty"]>, readonly [z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodSymbol]>, z.ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>;
|
|
444
444
|
/**
|
|
445
445
|
* Asserts that the subject is an Error instance.
|
|
446
446
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-basic.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/sync-basic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"sync-basic.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/sync-basic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAiC3B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,+KAG3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,qOAG3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,+KAG7B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,+KAGrC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,iLAGrC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,yQAG5B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,2PAG7B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,yQAGpC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MA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