bupkis 0.1.2 → 0.2.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.
- package/CHANGELOG.md +13 -0
- package/README.md +8 -8
- package/dist/commonjs/assertion/assertion-types.d.ts +33 -82
- package/dist/commonjs/assertion/assertion-types.d.ts.map +1 -1
- package/dist/commonjs/assertion/create.d.ts +5 -33
- package/dist/commonjs/assertion/create.d.ts.map +1 -1
- package/dist/commonjs/assertion/create.js +17 -6
- package/dist/commonjs/assertion/create.js.map +1 -1
- package/dist/commonjs/assertion/impl/async.d.ts +5 -5
- package/dist/commonjs/assertion/impl/async.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/async.js +2 -2
- package/dist/commonjs/assertion/impl/async.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts +24 -24
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.js +3 -3
- package/dist/commonjs/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync.d.ts +50 -50
- package/dist/commonjs/assertion/impl/sync.d.ts.map +1 -1
- package/dist/commonjs/bootstrap.d.ts +71 -61
- package/dist/commonjs/bootstrap.d.ts.map +1 -1
- package/dist/commonjs/bootstrap.js +20 -10
- package/dist/commonjs/bootstrap.js.map +1 -1
- package/dist/commonjs/error.d.ts +12 -5
- package/dist/commonjs/error.d.ts.map +1 -1
- package/dist/commonjs/error.js +19 -4
- package/dist/commonjs/error.js.map +1 -1
- package/dist/commonjs/expect.d.ts +130 -3
- package/dist/commonjs/expect.d.ts.map +1 -1
- package/dist/commonjs/expect.js +115 -0
- package/dist/commonjs/expect.js.map +1 -1
- package/dist/commonjs/guards.d.ts +22 -15
- package/dist/commonjs/guards.d.ts.map +1 -1
- package/dist/commonjs/guards.js +34 -20
- package/dist/commonjs/guards.js.map +1 -1
- package/dist/commonjs/index.d.ts +113 -62
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +44 -42
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/metadata.d.ts +1 -27
- package/dist/commonjs/metadata.d.ts.map +1 -1
- package/dist/commonjs/metadata.js +16 -15
- package/dist/commonjs/metadata.js.map +1 -1
- package/dist/commonjs/schema.d.ts +59 -26
- package/dist/commonjs/schema.d.ts.map +1 -1
- package/dist/commonjs/schema.js +57 -24
- package/dist/commonjs/schema.js.map +1 -1
- package/dist/commonjs/types.d.ts +449 -39
- package/dist/commonjs/types.d.ts.map +1 -1
- package/dist/commonjs/types.js +12 -2
- package/dist/commonjs/types.js.map +1 -1
- package/dist/commonjs/util.d.ts +7 -0
- package/dist/commonjs/util.d.ts.map +1 -1
- package/dist/commonjs/util.js +7 -0
- package/dist/commonjs/util.js.map +1 -1
- package/dist/esm/assertion/assertion-types.d.ts +33 -82
- package/dist/esm/assertion/assertion-types.d.ts.map +1 -1
- package/dist/esm/assertion/create.d.ts +5 -33
- package/dist/esm/assertion/create.d.ts.map +1 -1
- package/dist/esm/assertion/create.js +14 -4
- package/dist/esm/assertion/create.js.map +1 -1
- package/dist/esm/assertion/impl/async.d.ts +5 -5
- package/dist/esm/assertion/impl/async.d.ts.map +1 -1
- package/dist/esm/assertion/impl/async.js +2 -2
- package/dist/esm/assertion/impl/async.js.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.d.ts +24 -24
- package/dist/esm/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.js +3 -3
- package/dist/esm/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/esm/assertion/impl/sync.d.ts +50 -50
- package/dist/esm/assertion/impl/sync.d.ts.map +1 -1
- package/dist/esm/bootstrap.d.ts +71 -61
- package/dist/esm/bootstrap.d.ts.map +1 -1
- package/dist/esm/bootstrap.js +19 -9
- package/dist/esm/bootstrap.js.map +1 -1
- package/dist/esm/error.d.ts +12 -5
- package/dist/esm/error.d.ts.map +1 -1
- package/dist/esm/error.js +19 -4
- package/dist/esm/error.js.map +1 -1
- package/dist/esm/expect.d.ts +130 -3
- package/dist/esm/expect.d.ts.map +1 -1
- package/dist/esm/expect.js +115 -0
- package/dist/esm/expect.js.map +1 -1
- package/dist/esm/guards.d.ts +22 -15
- package/dist/esm/guards.d.ts.map +1 -1
- package/dist/esm/guards.js +29 -13
- package/dist/esm/guards.js.map +1 -1
- package/dist/esm/index.d.ts +113 -62
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +46 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/metadata.d.ts +1 -27
- package/dist/esm/metadata.d.ts.map +1 -1
- package/dist/esm/metadata.js +2 -1
- package/dist/esm/metadata.js.map +1 -1
- package/dist/esm/schema.d.ts +59 -26
- package/dist/esm/schema.d.ts.map +1 -1
- package/dist/esm/schema.js +57 -24
- package/dist/esm/schema.js.map +1 -1
- package/dist/esm/types.d.ts +449 -39
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +12 -2
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/util.d.ts +7 -0
- package/dist/esm/util.d.ts.map +1 -1
- package/dist/esm/util.js +7 -0
- package/dist/esm/util.js.map +1 -1
- package/package.json +89 -15
- package/src/assertion/assertion-types.ts +38 -41
- package/src/assertion/create.ts +16 -65
- package/src/assertion/impl/async.ts +2 -2
- package/src/assertion/impl/sync-parametric.ts +3 -3
- package/src/bootstrap.ts +21 -10
- package/src/error.ts +21 -4
- package/src/expect.ts +269 -18
- package/src/guards.ts +29 -51
- package/src/index.ts +71 -11
- package/src/metadata.ts +3 -4
- package/src/schema.ts +59 -26
- package/src/types.ts +593 -72
- package/src/util.ts +7 -0
- package/dist/commonjs/api.d.ts +0 -93
- package/dist/commonjs/api.d.ts.map +0 -1
- package/dist/commonjs/api.js +0 -8
- package/dist/commonjs/api.js.map +0 -1
- package/dist/esm/api.d.ts +0 -93
- package/dist/esm/api.d.ts.map +0 -1
- package/dist/esm/api.js +0 -7
- package/dist/esm/api.js.map +0 -1
- package/src/api.ts +0 -149
- package/src/schema.md +0 -15
package/dist/commonjs/schema.js
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Zod
|
|
3
|
+
* Arguably-useful Zod schemas for common types and validation patterns.
|
|
4
4
|
*
|
|
5
5
|
* This module provides reusable Zod schemas for validating constructors,
|
|
6
6
|
* functions, property keys, promises, and other common JavaScript types used
|
|
7
|
-
* throughout the assertion system. These tend to work around
|
|
8
|
-
*
|
|
7
|
+
* throughout the assertion system. These tend to work around the impedence
|
|
8
|
+
* mismatch between **BUPKIS** and Zod.
|
|
9
9
|
*
|
|
10
10
|
* These are used internally, but consumers may also find them useful.
|
|
11
11
|
*
|
|
12
|
-
* @
|
|
12
|
+
* For example, we have {@link FunctionSchema} which accepts any
|
|
13
|
+
* function—regardless of its signature. We need this because Zod v4's
|
|
14
|
+
* `z.function()` no longer returns a `ZodType` (ref:
|
|
15
|
+
* {@link https://zod.dev/v4/changelog | Zod v4 Migration Guide}) and so behaves
|
|
16
|
+
* differently. `FunctionSchema` allows us to work with functions as _values_
|
|
17
|
+
* instead of something to be implemented.
|
|
18
|
+
*
|
|
19
|
+
* Similarly—but not a new development—`z.promise()` does not parse a
|
|
20
|
+
* {@link Promise} object; it parses the _fulfilled value_. This is not what we
|
|
21
|
+
* want for "is a Promise" assertions, but it _can_ be useful for making sense
|
|
22
|
+
* of the fulfilled value. To solve this, we have
|
|
23
|
+
* {@link WrappedPromiseLikeSchema} (which explicitly supports
|
|
24
|
+
* {@link PromiseLike}/"thenable" objects).
|
|
25
|
+
*
|
|
26
|
+
* @category API
|
|
27
|
+
* @example
|
|
28
|
+
*
|
|
29
|
+
* ```ts
|
|
30
|
+
* import * as schema from 'bupkis/schema';
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
13
33
|
* @packageDocumentation
|
|
14
34
|
*/
|
|
15
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -25,10 +45,9 @@ const metadata_js_1 = require("./metadata.js");
|
|
|
25
45
|
* uses the {@link isConstructable} guard function to determine if a value can be
|
|
26
46
|
* invoked with the `new` operator to create object instances.
|
|
27
47
|
*
|
|
28
|
-
* @
|
|
48
|
+
* @privateRemarks
|
|
29
49
|
* The schema is registered in the {@link BupkisRegistry} with the name
|
|
30
50
|
* `ClassSchema` for later reference and type checking purposes.
|
|
31
|
-
* @category Schema
|
|
32
51
|
* @example
|
|
33
52
|
*
|
|
34
53
|
* ```typescript
|
|
@@ -42,6 +61,8 @@ const metadata_js_1 = require("./metadata.js");
|
|
|
42
61
|
* ClassSchema.parse(() => {}); // ✗ Throws validation error
|
|
43
62
|
* ClassSchema.parse({}); // ✗ Throws validation error
|
|
44
63
|
* ```
|
|
64
|
+
*
|
|
65
|
+
* @group Schema
|
|
45
66
|
*/
|
|
46
67
|
exports.ClassSchema = v4_1.z
|
|
47
68
|
.custom(guards_js_1.isConstructable)
|
|
@@ -56,10 +77,9 @@ exports.ClassSchema = v4_1.z
|
|
|
56
77
|
* including regular functions, arrow functions, async functions, generator
|
|
57
78
|
* functions, and methods.
|
|
58
79
|
*
|
|
59
|
-
* @
|
|
80
|
+
* @privateRemarks
|
|
60
81
|
* The schema is registered in the {@link BupkisRegistry} with the name
|
|
61
82
|
* `FunctionSchema` for later reference and type checking purposes.
|
|
62
|
-
* @category Schema
|
|
63
83
|
* @example
|
|
64
84
|
*
|
|
65
85
|
* ```typescript
|
|
@@ -71,6 +91,8 @@ exports.ClassSchema = v4_1.z
|
|
|
71
91
|
* FunctionSchema.parse('not a function'); // ✗ Throws validation error
|
|
72
92
|
* FunctionSchema.parse({}); // ✗ Throws validation error
|
|
73
93
|
* ```
|
|
94
|
+
*
|
|
95
|
+
* @group Schema
|
|
74
96
|
*/
|
|
75
97
|
exports.FunctionSchema = v4_1.z
|
|
76
98
|
.custom(guards_js_1.isFunction)
|
|
@@ -86,10 +108,9 @@ exports.FunctionSchema = v4_1.z
|
|
|
86
108
|
* types that JavaScript automatically converts to property keys when used in
|
|
87
109
|
* object access or assignment operations.
|
|
88
110
|
*
|
|
89
|
-
* @
|
|
111
|
+
* @privateRemarks
|
|
90
112
|
* The schema is registered in the `BupkisRegistry` with the name
|
|
91
113
|
* `PropertyKeySchema` for later reference and type checking purposes.
|
|
92
|
-
* @category Schema
|
|
93
114
|
* @example
|
|
94
115
|
*
|
|
95
116
|
* ```typescript
|
|
@@ -99,6 +120,8 @@ exports.FunctionSchema = v4_1.z
|
|
|
99
120
|
* PropertyKeySchema.parse({}); // ✗ Throws validation error
|
|
100
121
|
* PropertyKeySchema.parse(null); // ✗ Throws validation error
|
|
101
122
|
* ```
|
|
123
|
+
*
|
|
124
|
+
* @group Schema
|
|
102
125
|
*/
|
|
103
126
|
exports.PropertyKeySchema = v4_1.z
|
|
104
127
|
.union([v4_1.z.string(), v4_1.z.number(), v4_1.z.symbol()])
|
|
@@ -113,12 +136,11 @@ exports.PropertyKeySchema = v4_1.z
|
|
|
113
136
|
* resolved value, meaning the result of parsing remains a Promise or thenable
|
|
114
137
|
* object.
|
|
115
138
|
*
|
|
116
|
-
* @
|
|
139
|
+
* @privateRemarks
|
|
117
140
|
* The schema is registered in the `BupkisRegistry` with the name
|
|
118
141
|
* `WrappedPromiseLikeSchema` for later reference and type checking purposes.
|
|
119
142
|
* This is useful when you need to validate that something is thenable without
|
|
120
143
|
* automatically resolving it.
|
|
121
|
-
* @category Schema
|
|
122
144
|
* @example
|
|
123
145
|
*
|
|
124
146
|
* ```typescript
|
|
@@ -127,6 +149,8 @@ exports.PropertyKeySchema = v4_1.z
|
|
|
127
149
|
* WrappedPromiseLikeSchema.parse(42); // ✗ Throws validation error
|
|
128
150
|
* WrappedPromiseLikeSchema.parse({}); // ✗ Throws validation error
|
|
129
151
|
* ```
|
|
152
|
+
*
|
|
153
|
+
* @group Schema
|
|
130
154
|
*/
|
|
131
155
|
exports.WrappedPromiseLikeSchema = v4_1.z
|
|
132
156
|
.custom((value) => (0, guards_js_1.isPromiseLike)(value))
|
|
@@ -143,7 +167,6 @@ exports.WrappedPromiseLikeSchema = v4_1.z
|
|
|
143
167
|
* @remarks
|
|
144
168
|
* The schema is registered in the `BupkisRegistry` with the name
|
|
145
169
|
* `StrongMapSchema` for later reference and type checking purposes.
|
|
146
|
-
* @category Schema
|
|
147
170
|
* @example
|
|
148
171
|
*
|
|
149
172
|
* ```typescript
|
|
@@ -156,6 +179,8 @@ exports.WrappedPromiseLikeSchema = v4_1.z
|
|
|
156
179
|
* const weakMap = new WeakMap();
|
|
157
180
|
* StrongMapSchema.parse(weakMap); // ✗ Throws validation error
|
|
158
181
|
* ```
|
|
182
|
+
*
|
|
183
|
+
* @group Schema
|
|
159
184
|
*/
|
|
160
185
|
exports.StrongMapSchema = v4_1.z
|
|
161
186
|
.instanceof(Map)
|
|
@@ -173,7 +198,6 @@ exports.StrongMapSchema = v4_1.z
|
|
|
173
198
|
* @remarks
|
|
174
199
|
* The schema is registered in the `BupkisRegistry` with the name
|
|
175
200
|
* `StrongSetSchema` for later reference and type checking purposes.
|
|
176
|
-
* @category Schema
|
|
177
201
|
* @example
|
|
178
202
|
*
|
|
179
203
|
* ```typescript
|
|
@@ -183,6 +207,8 @@ exports.StrongMapSchema = v4_1.z
|
|
|
183
207
|
* const weakSet = new WeakSet();
|
|
184
208
|
* StrongSetSchema.parse(weakSet); // ✗ Throws validation error
|
|
185
209
|
* ```
|
|
210
|
+
*
|
|
211
|
+
* @group Schema
|
|
186
212
|
*/
|
|
187
213
|
exports.StrongSetSchema = v4_1.z
|
|
188
214
|
.instanceof(Set)
|
|
@@ -201,7 +227,6 @@ exports.StrongSetSchema = v4_1.z
|
|
|
201
227
|
* @remarks
|
|
202
228
|
* The schema is registered in the `BupkisRegistry` with the name
|
|
203
229
|
* `ObjectWithNullPrototype` for later reference and type checking purposes.
|
|
204
|
-
* @category Schema
|
|
205
230
|
* @example
|
|
206
231
|
*
|
|
207
232
|
* ```typescript
|
|
@@ -215,6 +240,8 @@ exports.StrongSetSchema = v4_1.z
|
|
|
215
240
|
* const emptyObj = {};
|
|
216
241
|
* NullProtoObjectSchema.parse(emptyObj); // ✗ Throws validation error
|
|
217
242
|
* ```
|
|
243
|
+
*
|
|
244
|
+
* @group Schema
|
|
218
245
|
*/
|
|
219
246
|
exports.NullProtoObjectSchema = v4_1.z
|
|
220
247
|
.custom((value) => (0, guards_js_1.isNonNullObject)(value) && Object.getPrototypeOf(value) === null)
|
|
@@ -234,7 +261,6 @@ exports.NullProtoObjectSchema = v4_1.z
|
|
|
234
261
|
* schema cannot reliably detect functions that return Promises but are not
|
|
235
262
|
* declared with `async`, as this determination requires static analysis that is
|
|
236
263
|
* not available at runtime.
|
|
237
|
-
* @category Schema
|
|
238
264
|
* @example
|
|
239
265
|
*
|
|
240
266
|
* ```typescript
|
|
@@ -254,6 +280,8 @@ exports.NullProtoObjectSchema = v4_1.z
|
|
|
254
280
|
* const regularFn = () => 42;
|
|
255
281
|
* AsyncFunctionSchema.parse(regularFn); // ✗ Throws validation error
|
|
256
282
|
* ```
|
|
283
|
+
*
|
|
284
|
+
* @group Schema
|
|
257
285
|
*/
|
|
258
286
|
exports.AsyncFunctionSchema = exports.FunctionSchema.refine((value) => Object.prototype.toString.call(value) === '[object AsyncFunction]')
|
|
259
287
|
.describe('Function declared with the `async` keyword')
|
|
@@ -269,7 +297,6 @@ exports.AsyncFunctionSchema = exports.FunctionSchema.refine((value) => Object.pr
|
|
|
269
297
|
* @remarks
|
|
270
298
|
* The schema is registered in the `BupkisRegistry` with the name `Truthy` and
|
|
271
299
|
* indicates that it accepts anything as valid input for evaluation.
|
|
272
|
-
* @category Schema
|
|
273
300
|
* @example
|
|
274
301
|
*
|
|
275
302
|
* ```typescript
|
|
@@ -283,6 +310,8 @@ exports.AsyncFunctionSchema = exports.FunctionSchema.refine((value) => Object.pr
|
|
|
283
310
|
* TruthySchema.parse(''); // ✗ Throws validation error
|
|
284
311
|
* TruthySchema.parse(null); // ✗ Throws validation error
|
|
285
312
|
* ```
|
|
313
|
+
*
|
|
314
|
+
* @group Schema
|
|
286
315
|
*/
|
|
287
316
|
exports.TruthySchema = v4_1.z
|
|
288
317
|
.any()
|
|
@@ -303,7 +332,6 @@ exports.TruthySchema = v4_1.z
|
|
|
303
332
|
* @remarks
|
|
304
333
|
* The schema is registered in the `BupkisRegistry` with the name `Falsy` and
|
|
305
334
|
* indicates that it accepts anything as valid input for evaluation.
|
|
306
|
-
* @category Schema
|
|
307
335
|
* @example
|
|
308
336
|
*
|
|
309
337
|
* ```typescript
|
|
@@ -320,6 +348,8 @@ exports.TruthySchema = v4_1.z
|
|
|
320
348
|
* FalsySchema.parse('hello'); // ✗ Throws validation error
|
|
321
349
|
* FalsySchema.parse({}); // ✗ Throws validation error
|
|
322
350
|
* ```
|
|
351
|
+
*
|
|
352
|
+
* @group Schema
|
|
323
353
|
*/
|
|
324
354
|
exports.FalsySchema = v4_1.z
|
|
325
355
|
.any()
|
|
@@ -339,7 +369,6 @@ exports.FalsySchema = v4_1.z
|
|
|
339
369
|
* @remarks
|
|
340
370
|
* The schema is registered in the `BupkisRegistry` with the name `Primitive`
|
|
341
371
|
* and indicates that it accepts primitive values as valid input.
|
|
342
|
-
* @category Schema
|
|
343
372
|
* @example
|
|
344
373
|
*
|
|
345
374
|
* ```typescript
|
|
@@ -354,6 +383,8 @@ exports.FalsySchema = v4_1.z
|
|
|
354
383
|
* PrimitiveSchema.parse([]); // ✗ Throws validation error (array)
|
|
355
384
|
* PrimitiveSchema.parse(() => {}); // ✗ Throws validation error (function)
|
|
356
385
|
* ```
|
|
386
|
+
*
|
|
387
|
+
* @group Schema
|
|
357
388
|
*/
|
|
358
389
|
exports.PrimitiveSchema = v4_1.z
|
|
359
390
|
.union([
|
|
@@ -377,12 +408,11 @@ exports.PrimitiveSchema = v4_1.z
|
|
|
377
408
|
* it useful for validating collections where the specific array mutability or
|
|
378
409
|
* tuple structure is not critical.
|
|
379
410
|
*
|
|
380
|
-
* @
|
|
411
|
+
* @privateRemarks
|
|
381
412
|
* The schema is registered in the {@link BupkisRegistry} with the name
|
|
382
413
|
* `ArrayLike` for later reference and type checking purposes. This schema is
|
|
383
414
|
* particularly useful when you need to accept various forms of array-like data
|
|
384
415
|
* without being restrictive about mutability or exact tuple structure.
|
|
385
|
-
* @category Schema
|
|
386
416
|
* @example
|
|
387
417
|
*
|
|
388
418
|
* ```typescript
|
|
@@ -394,11 +424,13 @@ exports.PrimitiveSchema = v4_1.z
|
|
|
394
424
|
* ArrayLikeSchema.parse({}); // ✗ Throws validation error
|
|
395
425
|
* ArrayLikeSchema.parse(null); // ✗ Throws validation error
|
|
396
426
|
* ```
|
|
427
|
+
*
|
|
428
|
+
* @group Schema
|
|
397
429
|
*/
|
|
398
430
|
exports.ArrayLikeSchema = v4_1.z
|
|
399
431
|
.union([
|
|
400
|
-
v4_1.z.array(v4_1.z.
|
|
401
|
-
v4_1.z.tuple([v4_1.z.
|
|
432
|
+
v4_1.z.array(v4_1.z.unknown()),
|
|
433
|
+
v4_1.z.tuple([v4_1.z.unknown()], v4_1.z.unknown()),
|
|
402
434
|
v4_1.z.looseObject({ length: v4_1.z.number().nonnegative().int() }),
|
|
403
435
|
])
|
|
404
436
|
.describe('Array-like value')
|
|
@@ -417,7 +449,6 @@ exports.ArrayLikeSchema = v4_1.z
|
|
|
417
449
|
* @remarks
|
|
418
450
|
* The schema is registered in the `BupkisRegistry` with the name `RegExp` for
|
|
419
451
|
* later reference and type checking purposes.
|
|
420
|
-
* @category Schema
|
|
421
452
|
* @example
|
|
422
453
|
*
|
|
423
454
|
* ```typescript
|
|
@@ -429,6 +460,8 @@ exports.ArrayLikeSchema = v4_1.z
|
|
|
429
460
|
* RegExpSchema.parse(/abc/.source); // ✗ Throws validation error (string pattern)
|
|
430
461
|
* RegExpSchema.parse({}); // ✗ Throws validation error (object)
|
|
431
462
|
* ```
|
|
463
|
+
*
|
|
464
|
+
* @group Schema
|
|
432
465
|
*/
|
|
433
466
|
exports.RegExpSchema = v4_1.z
|
|
434
467
|
.instanceof(RegExp)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;;AAEH,+BAA2B;AAE3B,2CAMqB;AACrB,+CAA+C;AAG/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEU,QAAA,WAAW,GAAG,MAAC;KACzB,MAAM,CAAc,2BAAe,CAAC;KACpC,QAAQ,CAAC,4BAAc,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;KACjD,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACU,QAAA,cAAc,GAAG,MAAC;KAC5B,MAAM,CAAqD,sBAAU,CAAC;KACtE,QAAQ,CAAC,4BAAc,EAAE;IACxB,IAAI,EAAE,gBAAgB;CACvB,CAAC;KACD,QAAQ,CACP,oEAAoE,CACrE,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACU,QAAA,iBAAiB,GAAG,MAAC;KAC/B,KAAK,CAAC,CAAC,MAAC,CAAC,MAAM,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,CAAC;KAC3C,QAAQ,CAAC,aAAa,CAAC;KACvB,QAAQ,CAAC,4BAAc,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACU,QAAA,wBAAwB,GAAG,MAAC;KACtC,MAAM,CAAuB,CAAC,KAAK,EAAE,EAAE,CAAC,IAAA,yBAAa,EAAC,KAAK,CAAC,CAAC;KA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