@infra-blocks/zod-utils 0.27.0-alpha.0 → 0.28.0-alpha.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/README.md +21 -45
- package/lib/cjs/aws/index.d.ts +5 -2
- package/lib/cjs/aws/index.js +1 -2
- package/lib/cjs/aws/index.js.map +1 -1
- package/lib/cjs/codec/index.d.ts +2 -3
- package/lib/cjs/codec/index.js +1 -2
- package/lib/cjs/codec/index.js.map +1 -1
- package/lib/cjs/geojson/feature-collection.d.ts +2 -2
- package/lib/cjs/geojson/geojson.d.ts +4 -4
- package/lib/cjs/geojson/index.d.ts +12 -0
- package/lib/cjs/iso/index.d.ts +3 -2
- package/lib/cjs/iso/index.js +1 -2
- package/lib/cjs/iso/index.js.map +1 -1
- package/lib/cjs/json/index.d.ts +4 -0
- package/lib/cjs/number/index.d.ts +3 -2
- package/lib/cjs/number/index.js +1 -2
- package/lib/cjs/number/index.js.map +1 -1
- package/lib/cjs/string/index.d.ts +6 -2
- package/lib/cjs/string/index.js +1 -2
- package/lib/cjs/string/index.js.map +1 -1
- package/lib/cjs/zu.d.ts +7 -7
- package/lib/cjs/zu.js +22 -15
- package/lib/cjs/zu.js.map +1 -1
- package/lib/esm/aws/index.d.ts +5 -2
- package/lib/esm/aws/index.js +1 -2
- package/lib/esm/aws/index.js.map +1 -1
- package/lib/esm/codec/index.d.ts +2 -3
- package/lib/esm/codec/index.js +1 -2
- package/lib/esm/codec/index.js.map +1 -1
- package/lib/esm/geojson/feature-collection.d.ts +2 -2
- package/lib/esm/geojson/geojson.d.ts +4 -4
- package/lib/esm/geojson/index.d.ts +12 -0
- package/lib/esm/iso/index.d.ts +3 -2
- package/lib/esm/iso/index.js +1 -2
- package/lib/esm/iso/index.js.map +1 -1
- package/lib/esm/json/index.d.ts +4 -0
- package/lib/esm/number/index.d.ts +3 -2
- package/lib/esm/number/index.js +1 -2
- package/lib/esm/number/index.js.map +1 -1
- package/lib/esm/string/index.d.ts +6 -2
- package/lib/esm/string/index.js +1 -2
- package/lib/esm/string/index.js.map +1 -1
- package/lib/esm/zu.d.ts +7 -7
- package/lib/esm/zu.js +7 -7
- package/lib/esm/zu.js.map +1 -1
- package/package.json +1 -26
- package/lib/cjs/aws/types.d.ts +0 -4
- package/lib/cjs/aws/types.js +0 -3
- package/lib/cjs/aws/types.js.map +0 -1
- package/lib/cjs/geojson/types.d.ts +0 -12
- package/lib/cjs/geojson/types.js +0 -3
- package/lib/cjs/geojson/types.js.map +0 -1
- package/lib/cjs/iso/types.d.ts +0 -2
- package/lib/cjs/iso/types.js +0 -3
- package/lib/cjs/iso/types.js.map +0 -1
- package/lib/cjs/json/types.d.ts +0 -4
- package/lib/cjs/json/types.js +0 -3
- package/lib/cjs/json/types.js.map +0 -1
- package/lib/cjs/number/types.d.ts +0 -2
- package/lib/cjs/number/types.js +0 -3
- package/lib/cjs/number/types.js.map +0 -1
- package/lib/cjs/string/types.d.ts +0 -5
- package/lib/cjs/string/types.js +0 -3
- package/lib/cjs/string/types.js.map +0 -1
- package/lib/esm/aws/types.d.ts +0 -4
- package/lib/esm/aws/types.js +0 -2
- package/lib/esm/aws/types.js.map +0 -1
- package/lib/esm/geojson/types.d.ts +0 -12
- package/lib/esm/geojson/types.js +0 -2
- package/lib/esm/geojson/types.js.map +0 -1
- package/lib/esm/iso/types.d.ts +0 -2
- package/lib/esm/iso/types.js +0 -2
- package/lib/esm/iso/types.js.map +0 -1
- package/lib/esm/json/types.d.ts +0 -4
- package/lib/esm/json/types.js +0 -2
- package/lib/esm/json/types.js.map +0 -1
- package/lib/esm/number/types.d.ts +0 -2
- package/lib/esm/number/types.js +0 -2
- package/lib/esm/number/types.js.map +0 -1
- package/lib/esm/string/types.d.ts +0 -5
- package/lib/esm/string/types.js +0 -2
- package/lib/esm/string/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -131,9 +131,8 @@ It uses `zu.codec.jsonParse(zu.json())` internally.
|
|
|
131
131
|
|
|
132
132
|
```typescript
|
|
133
133
|
import { zu } from "@infra-blocks/zod-utils";
|
|
134
|
-
import type { Json } from "@infra-blocks/zod-utils/json";
|
|
135
134
|
|
|
136
|
-
const item: Json = zu.codec.stringToJson().parse('[1, "word", null]');
|
|
135
|
+
const item: zu.Json = zu.codec.stringToJson().parse('[1, "word", null]');
|
|
137
136
|
```
|
|
138
137
|
|
|
139
138
|
#### stringToUrl
|
|
@@ -198,53 +197,39 @@ they specifically need in their context, or which ones they'd like to extend and
|
|
|
198
197
|
|
|
199
198
|
```typescript
|
|
200
199
|
import {zu} from "@infra-blocks/zod-utils";
|
|
201
|
-
import {
|
|
202
|
-
GeoJson,
|
|
203
|
-
GeoJsonBoundingBox,
|
|
204
|
-
GeoJsonFeature,
|
|
205
|
-
GeoJsonFeatureCollection,
|
|
206
|
-
GeoJsonGeometryCollection,
|
|
207
|
-
GeoJsonLineString,
|
|
208
|
-
GeoJsonMultiLineString,
|
|
209
|
-
GeoJsonMultiPoint,
|
|
210
|
-
GeoJsonMultiPolygon,
|
|
211
|
-
GeoJsonPoint,
|
|
212
|
-
GeoJsonPolygon,
|
|
213
|
-
GeoJsonCoordinate
|
|
214
|
-
} from "@infra-blocks/zod-utils/geojson";
|
|
215
200
|
|
|
216
201
|
const boundingBoxSchema = zu.geojson.boundingBox();
|
|
217
|
-
const boundingBox: GeoJsonBoundingBox = boundingBoxSchema.parse({...});
|
|
202
|
+
const boundingBox: zu.GeoJsonBoundingBox = boundingBoxSchema.parse({...});
|
|
218
203
|
|
|
219
204
|
const featureSchema = zu.geojson.feature();
|
|
220
|
-
const feature: GeoJsonFeature = featureSchema.parse({...});
|
|
205
|
+
const feature: zu.GeoJsonFeature = featureSchema.parse({...});
|
|
221
206
|
|
|
222
207
|
const featureCollectionSchema = zu.geojson.featureCollection();
|
|
223
|
-
const featureCollection: GeoJsonFeatureCollection = featureCollectionSchema.parse({...});
|
|
208
|
+
const featureCollection: zu.GeoJsonFeatureCollection = featureCollectionSchema.parse({...});
|
|
224
209
|
|
|
225
210
|
const geometryCollectionSchema = zu.geojson.geometryCollection();
|
|
226
|
-
const geometryCollection: GeoJsonGeometryCollection = geometryCollectionSchema.parse({...});
|
|
211
|
+
const geometryCollection: zu.GeoJsonGeometryCollection = geometryCollectionSchema.parse({...});
|
|
227
212
|
|
|
228
213
|
const lineStringSchema = zu.geojson.lineString();
|
|
229
|
-
const lineString: GeoJsonLineString = lineStringSchema.parse({...});
|
|
214
|
+
const lineString: zu.GeoJsonLineString = lineStringSchema.parse({...});
|
|
230
215
|
|
|
231
216
|
const multiLineStringSchema = zu.geojson.multiLineString();
|
|
232
|
-
const multiLineString: GeoJsonMultiLineString = multiLineStringSchema.parse({...});
|
|
217
|
+
const multiLineString: zu.GeoJsonMultiLineString = multiLineStringSchema.parse({...});
|
|
233
218
|
|
|
234
219
|
const multiPointSchema = zu.geojson.multiPoint();
|
|
235
|
-
const multiPoint: GeoJsonMultiPoint = multiPointSchema.parse({...});
|
|
220
|
+
const multiPoint: zu.GeoJsonMultiPoint = multiPointSchema.parse({...});
|
|
236
221
|
|
|
237
222
|
const multiPolygonSchema = zu.geojson.multiPolygon();
|
|
238
|
-
const multiPolygon: GeoJsonMultiPolygon = multiPolygonSchema.parse({...});
|
|
223
|
+
const multiPolygon: zu.GeoJsonMultiPolygon = multiPolygonSchema.parse({...});
|
|
239
224
|
|
|
240
225
|
const pointSchema = zu.geojson.point();
|
|
241
|
-
const point: GeoJsonPoint = pointSchema.parse({...});
|
|
226
|
+
const point: zu.GeoJsonPoint = pointSchema.parse({...});
|
|
242
227
|
|
|
243
228
|
const polygonSchema = zu.geojson.polygon();
|
|
244
|
-
const polygon: GeoJsonPolygon = polygonSchema.parse({...});
|
|
229
|
+
const polygon: zu.GeoJsonPolygon = polygonSchema.parse({...});
|
|
245
230
|
|
|
246
231
|
const coordinateSchema = zu.geojson.coordinate();
|
|
247
|
-
const coordinate: GeoJsonCoordinate = coordinateSchema.parse([1, 2]);
|
|
232
|
+
const coordinate: zu.GeoJsonCoordinate = coordinateSchema.parse([1, 2]);
|
|
248
233
|
```
|
|
249
234
|
|
|
250
235
|
#### Design considerations
|
|
@@ -314,7 +299,6 @@ The `iso` module is an extension of `zod`'s own `iso` module. All schemas return
|
|
|
314
299
|
|
|
315
300
|
```typescript
|
|
316
301
|
import { zu } from "@infra-blocks/zod-utils";
|
|
317
|
-
import type { IsoCurrencyCode, IsoAlpha3CountryCode } from "@infra-blocks/zod-utils/iso";
|
|
318
302
|
|
|
319
303
|
zu.iso.currencyCode().parse("USD");
|
|
320
304
|
zu.iso.currencyCode().parse("CAD");
|
|
@@ -358,24 +342,22 @@ zu.json().parse(new Set()); // Boom.
|
|
|
358
342
|
|
|
359
343
|
```typescript
|
|
360
344
|
import { zu } from "@infra-blocks/zod-utils";
|
|
361
|
-
import { Json, JsonArray, JsonObject, JsonPrimitive } from "@infra-blocks/zod-utils/json";
|
|
362
345
|
|
|
363
|
-
// The type hints are used just to showcase their usage. They aren't necessary when parsing.
|
|
364
346
|
// Want to parse a JSON primitive?
|
|
365
|
-
const jsonPrimitive: JsonPrimitive = zu.json.primitive().parse(5);
|
|
347
|
+
const jsonPrimitive: zu.JsonPrimitive = zu.json.primitive().parse(5);
|
|
366
348
|
// Will throw for anything that is not a JSON primitive.
|
|
367
349
|
zu.json.primitive().parse([]); // Boom.
|
|
368
350
|
zu.json.primitive().parse({}); // Boom.
|
|
369
351
|
zu.json.primitive().parse(undefined); // Boom.
|
|
370
352
|
|
|
371
353
|
// A JSON array maybe?
|
|
372
|
-
const jsonArray: JsonArray = zu.json.array().parse([1, 2, 3]);
|
|
354
|
+
const jsonArray: zu.JsonArray = zu.json.array().parse([1, 2, 3]);
|
|
373
355
|
// Will throw for anything that is not a JSON array.
|
|
374
356
|
zu.json.array().parse(5); // Boom.
|
|
375
357
|
zu.json.array().parse({}); // Boom.
|
|
376
358
|
|
|
377
359
|
// And finally, what about making sure you get a JSON object?
|
|
378
|
-
const jsonObject: JsonObject = zu.json.object().parse({ hello: "world" });
|
|
360
|
+
const jsonObject: zu.JsonObject = zu.json.object().parse({ hello: "world" });
|
|
379
361
|
// You know it by now, but just to make sure.
|
|
380
362
|
zu.json.object().parse(5); // Boom.
|
|
381
363
|
zu.json.object().parse([]); // Boom.
|
|
@@ -391,9 +373,8 @@ The `zu.number` module exports utilities for parsing numbers. All schemas return
|
|
|
391
373
|
|
|
392
374
|
```typescript
|
|
393
375
|
import { zu } from "@infra-blocks/zod-utils";
|
|
394
|
-
import { Integer } from "@infra-blocks/zod-utils/number";
|
|
395
376
|
|
|
396
|
-
function expectsInteger(x: Integer) {
|
|
377
|
+
function expectsInteger(x: zu.Integer) {
|
|
397
378
|
// Do some bull here.
|
|
398
379
|
}
|
|
399
380
|
|
|
@@ -406,9 +387,8 @@ expectsInteger(zu.number.integer().parse(42));
|
|
|
406
387
|
|
|
407
388
|
```typescript
|
|
408
389
|
import { zu } from "@infra-blocks/zod-utils";
|
|
409
|
-
import { PositiveInteger } from "@infra-blocks/zod-utils/number";
|
|
410
390
|
|
|
411
|
-
function doingBull(x: PositiveInteger) {
|
|
391
|
+
function doingBull(x: zu.PositiveInteger) {
|
|
412
392
|
// Do some bull here.
|
|
413
393
|
}
|
|
414
394
|
|
|
@@ -425,11 +405,10 @@ type.
|
|
|
425
405
|
|
|
426
406
|
```typescript
|
|
427
407
|
import { zu } from "@infra-blocks/zod-utils";
|
|
428
|
-
import { Base64UrlString } from "@infra-blocks/zod-utils/string";
|
|
429
408
|
import { expectTypeOf } from "expect-type";
|
|
430
409
|
|
|
431
410
|
const result = zu.string.base64url().parse("w6p0cmUgb3UgbmUgcGFzIMOqdHJlIGVzdGk_");
|
|
432
|
-
expectTypeOf(result).toEqualTypeOf<IntegerString>();
|
|
411
|
+
expectTypeOf(result).toEqualTypeOf<zu.IntegerString>();
|
|
433
412
|
expect(result).to.equal("w6p0cmUgb3UgbmUgcGFzIMOqdHJlIGVzdGk_");
|
|
434
413
|
```
|
|
435
414
|
|
|
@@ -437,12 +416,11 @@ expect(result).to.equal("w6p0cmUgb3UgbmUgcGFzIMOqdHJlIGVzdGk_");
|
|
|
437
416
|
|
|
438
417
|
```typescript
|
|
439
418
|
import { zu } from "@infra-blocks/zod-utils";
|
|
440
|
-
import { IntegerString } from "@infra-blocks/zod-utils/string";
|
|
441
419
|
import { expectTypeOf } from "expect-type";
|
|
442
420
|
|
|
443
421
|
// Uses z.string().regex(z.regexes.integer) internally.
|
|
444
422
|
const result = zu.string.integer().parse("1234");
|
|
445
|
-
expectTypeOf(result).toEqualTypeOf<IntegerString>();
|
|
423
|
+
expectTypeOf(result).toEqualTypeOf<zu.IntegerString>();
|
|
446
424
|
expect(result).to.equal("1234");
|
|
447
425
|
```
|
|
448
426
|
|
|
@@ -450,11 +428,10 @@ expect(result).to.equal("1234");
|
|
|
450
428
|
|
|
451
429
|
```typescript
|
|
452
430
|
import { zu } from "@infra-blocks/zod-utils";
|
|
453
|
-
import { JsonString } from "@infra-blocks/zod-utils/string";
|
|
454
431
|
import { expectTypeOf } from "expect-type";
|
|
455
432
|
|
|
456
433
|
const result = zu.string.json().parse('[1, "word", null]');
|
|
457
|
-
expectTypeOf(result).toEqualTypeOf<UrlString>();
|
|
434
|
+
expectTypeOf(result).toEqualTypeOf<zu.UrlString>();
|
|
458
435
|
expect(result).to.equal('[1, "word", null]');
|
|
459
436
|
```
|
|
460
437
|
|
|
@@ -462,12 +439,11 @@ expect(result).to.equal('[1, "word", null]');
|
|
|
462
439
|
|
|
463
440
|
```typescript
|
|
464
441
|
import { zu } from "@infra-blocks/zod-utils";
|
|
465
|
-
import { NumberString } from "@infra-blocks/zod-utils/string";
|
|
466
442
|
import { expectTypeOf } from "expect-type";
|
|
467
443
|
|
|
468
444
|
// Uses z.string().regex(z.regexes.number) internally.
|
|
469
445
|
const result = zu.string.integer().parse("1234.5678");
|
|
470
|
-
expectTypeOf(result).toEqualTypeOf<NumberString>();
|
|
446
|
+
expectTypeOf(result).toEqualTypeOf<zu.NumberString>();
|
|
471
447
|
expect(result).to.equal("1234.5678");
|
|
472
448
|
```
|
|
473
449
|
|
package/lib/cjs/aws/index.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ import { accountId } from "./account-id.js";
|
|
|
2
2
|
import { arn } from "./arn.js";
|
|
3
3
|
import { partition } from "./partition.js";
|
|
4
4
|
import { region } from "./region.js";
|
|
5
|
-
declare const aws: {
|
|
5
|
+
export declare const aws: {
|
|
6
6
|
accountId: typeof accountId;
|
|
7
7
|
arn: typeof arn;
|
|
8
8
|
region: typeof region;
|
|
9
9
|
partition: typeof partition;
|
|
10
10
|
};
|
|
11
|
-
export {
|
|
11
|
+
export type { AwsAccountId } from "./account-id.js";
|
|
12
|
+
export type { AwsArn } from "./arn.js";
|
|
13
|
+
export type { AwsPartition } from "./partition.js";
|
|
14
|
+
export type { AwsRegion } from "./region.js";
|
package/lib/cjs/aws/index.js
CHANGED
|
@@ -5,11 +5,10 @@ const account_id_js_1 = require("./account-id.js");
|
|
|
5
5
|
const arn_js_1 = require("./arn.js");
|
|
6
6
|
const partition_js_1 = require("./partition.js");
|
|
7
7
|
const region_js_1 = require("./region.js");
|
|
8
|
-
|
|
8
|
+
exports.aws = {
|
|
9
9
|
accountId: account_id_js_1.accountId,
|
|
10
10
|
arn: arn_js_1.arn,
|
|
11
11
|
region: region_js_1.region,
|
|
12
12
|
partition: partition_js_1.partition,
|
|
13
13
|
};
|
|
14
|
-
exports.aws = aws;
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/aws/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aws/index.ts"],"names":[],"mappings":";;;AAAA,mDAA4C;AAC5C,qCAA+B;AAC/B,iDAA2C;AAC3C,2CAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aws/index.ts"],"names":[],"mappings":";;;AAAA,mDAA4C;AAC5C,qCAA+B;AAC/B,iDAA2C;AAC3C,2CAAqC;AAExB,QAAA,GAAG,GAAG;IACjB,SAAS,EAAT,yBAAS;IACT,GAAG,EAAH,YAAG;IACH,MAAM,EAAN,kBAAM;IACN,SAAS,EAAT,wBAAS;CACV,CAAC"}
|
package/lib/cjs/codec/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const codec: {
|
|
1
|
+
export declare const codec: {
|
|
2
2
|
csv: () => import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
|
|
3
3
|
jsonParse: <S extends import("zod").ZodType>(schema: S) => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">, S>;
|
|
4
4
|
ms: (options?: {
|
|
@@ -6,7 +6,6 @@ declare const codec: {
|
|
|
6
6
|
}) => import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodNumber>;
|
|
7
7
|
stringToBuffer: (encoding?: BufferEncoding) => import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>;
|
|
8
8
|
stringToInteger: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "IntegerString">, import("zod/v4/core").$ZodBranded<import("zod").ZodInt, "Integer">>;
|
|
9
|
-
stringToJson: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">, import("zod").ZodType<import("../
|
|
9
|
+
stringToJson: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">, import("zod").ZodType<import("../zu.js").Json, unknown, import("zod/v4/core").$ZodTypeInternals<import("../zu.js").Json, unknown>>>;
|
|
10
10
|
stringToUrl: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodURL, "UrlString">, import("zod").ZodCustom<import("url").URL, import("url").URL>>;
|
|
11
11
|
};
|
|
12
|
-
export { codec };
|
package/lib/cjs/codec/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const string_to_buffer_js_1 = require("./string-to-buffer.js");
|
|
|
8
8
|
const string_to_integer_js_1 = require("./string-to-integer.js");
|
|
9
9
|
const string_to_json_js_1 = require("./string-to-json.js");
|
|
10
10
|
const string_to_url_js_1 = require("./string-to-url.js");
|
|
11
|
-
|
|
11
|
+
exports.codec = {
|
|
12
12
|
csv: csv_js_1.csv,
|
|
13
13
|
jsonParse: json_parse_js_1.jsonParse,
|
|
14
14
|
ms: ms_js_1.ms,
|
|
@@ -17,5 +17,4 @@ const codec = {
|
|
|
17
17
|
stringToJson: string_to_json_js_1.stringToJson,
|
|
18
18
|
stringToUrl: string_to_url_js_1.stringToUrl,
|
|
19
19
|
};
|
|
20
|
-
exports.codec = codec;
|
|
21
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/codec/index.ts"],"names":[],"mappings":";;;AAAA,qCAA+B;AAC/B,mDAA4C;AAC5C,mCAA6B;AAC7B,+DAAuD;AACvD,iEAAyD;AACzD,2DAAmD;AACnD,yDAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/codec/index.ts"],"names":[],"mappings":";;;AAAA,qCAA+B;AAC/B,mDAA4C;AAC5C,mCAA6B;AAC7B,+DAAuD;AACvD,iEAAyD;AACzD,2DAAmD;AACnD,yDAAiD;AAEpC,QAAA,KAAK,GAAG;IACnB,GAAG,EAAH,YAAG;IACH,SAAS,EAAT,yBAAS;IACT,EAAE,EAAF,UAAE;IACF,cAAc,EAAd,oCAAc;IACd,eAAe,EAAf,sCAAe;IACf,YAAY,EAAZ,gCAAY;IACZ,WAAW,EAAX,8BAAW;CACZ,CAAC"}
|
|
@@ -31,7 +31,7 @@ declare const featureCollectionSchema: z.ZodObject<{
|
|
|
31
31
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
32
32
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
33
33
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
34
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
34
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
35
35
|
}, z.core.$strict>>;
|
|
36
36
|
}, z.core.$strict>;
|
|
37
37
|
export type GeoJsonFeatureCollection = z.infer<typeof featureCollectionSchema>;
|
|
@@ -67,7 +67,7 @@ export declare function featureCollection(): z.ZodObject<{
|
|
|
67
67
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
68
68
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
69
69
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
70
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
70
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
71
71
|
}, z.core.$strict>>;
|
|
72
72
|
}, z.core.$strict>;
|
|
73
73
|
export {};
|
|
@@ -52,7 +52,7 @@ declare const geojsonSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObje
|
|
|
52
52
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
53
53
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
54
54
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
55
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
55
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
56
56
|
}, z.core.$strict>, z.ZodObject<{
|
|
57
57
|
bbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>;
|
|
58
58
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -85,7 +85,7 @@ declare const geojsonSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObje
|
|
|
85
85
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
86
86
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
87
87
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
88
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
88
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
89
89
|
}, z.core.$strict>>;
|
|
90
90
|
}, z.core.$strict>]>;
|
|
91
91
|
export type GeoJson = z.infer<typeof geojsonSchema>;
|
|
@@ -142,7 +142,7 @@ export declare function geojson(): z.ZodUnion<readonly [z.ZodUnion<readonly [z.Z
|
|
|
142
142
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
143
143
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
144
144
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
145
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
145
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
146
146
|
}, z.core.$strict>, z.ZodObject<{
|
|
147
147
|
bbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>;
|
|
148
148
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -175,7 +175,7 @@ export declare function geojson(): z.ZodUnion<readonly [z.ZodUnion<readonly [z.Z
|
|
|
175
175
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
176
176
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
177
177
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
178
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
178
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
179
179
|
}, z.core.$strict>>;
|
|
180
180
|
}, z.core.$strict>]>;
|
|
181
181
|
export {};
|
|
@@ -24,3 +24,15 @@ declare const module: typeof geojson & {
|
|
|
24
24
|
coordinate: typeof coordinate;
|
|
25
25
|
};
|
|
26
26
|
export { module as geojson };
|
|
27
|
+
export type { GeoJsonBoundingBox } from "./bounding-box.js";
|
|
28
|
+
export type { GeoJsonCoordinate } from "./coordinate.js";
|
|
29
|
+
export type { GeoJsonFeature } from "./feature.js";
|
|
30
|
+
export type { GeoJsonFeatureCollection } from "./feature-collection.js";
|
|
31
|
+
export type { GeoJson } from "./geojson.js";
|
|
32
|
+
export type { GeoJsonGeometry } from "./geometry.js";
|
|
33
|
+
export type { GeoJsonLineString } from "./line-string.js";
|
|
34
|
+
export type { GeoJsonMultiLineString } from "./multi-line-string.js";
|
|
35
|
+
export type { GeoJsonMultiPoint } from "./multi-point.js";
|
|
36
|
+
export type { GeoJsonMultiPolygon } from "./multi-polygon.js";
|
|
37
|
+
export type { GeoJsonPoint } from "./point.js";
|
|
38
|
+
export type { GeoJsonPolygon } from "./polygon.js";
|
package/lib/cjs/iso/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const iso: {
|
|
2
2
|
currencyCode: () => import("zod/v4/core").$ZodBranded<import("zod").ZodEnum<{
|
|
3
3
|
[x: string]: string;
|
|
4
4
|
}>, "IsoCurrencyCode">;
|
|
@@ -8,4 +8,5 @@ declare const module: {
|
|
|
8
8
|
}>, "IsoAlpha3CountryCode">;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export {
|
|
11
|
+
export type { IsoAlpha3CountryCode } from "./country-code.js";
|
|
12
|
+
export type { IsoCurrencyCode } from "./currency-code.js";
|
package/lib/cjs/iso/index.js
CHANGED
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.iso = void 0;
|
|
4
4
|
const country_code_js_1 = require("./country-code.js");
|
|
5
5
|
const currency_code_js_1 = require("./currency-code.js");
|
|
6
|
-
|
|
6
|
+
exports.iso = {
|
|
7
7
|
currencyCode: currency_code_js_1.currencyCode,
|
|
8
8
|
countryCode: country_code_js_1.countryCode,
|
|
9
9
|
};
|
|
10
|
-
exports.iso = module;
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/iso/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/iso/index.ts"],"names":[],"mappings":";;;AAAA,uDAAgD;AAChD,yDAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/iso/index.ts"],"names":[],"mappings":";;;AAAA,uDAAgD;AAChD,yDAAkD;AAErC,QAAA,GAAG,GAAG;IACjB,YAAY,EAAZ,+BAAY;IACZ,WAAW,EAAX,6BAAW;CACZ,CAAC"}
|
package/lib/cjs/json/index.d.ts
CHANGED
|
@@ -4,3 +4,7 @@ declare const module: (() => import("zod").ZodType<import("./json.js").Json, unk
|
|
|
4
4
|
primitive: () => import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull]>;
|
|
5
5
|
};
|
|
6
6
|
export { module as json };
|
|
7
|
+
export type { JsonArray } from "./array.js";
|
|
8
|
+
export type { Json } from "./json.js";
|
|
9
|
+
export type { JsonObject } from "./object.js";
|
|
10
|
+
export type { JsonPrimitive } from "./primitive.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
declare const number: {
|
|
1
|
+
export declare const number: {
|
|
2
2
|
integer: () => import("zod/v4/core").$ZodBranded<import("zod").ZodInt, "Integer">;
|
|
3
3
|
positiveInteger: () => import("zod/v4/core").$ZodBranded<import("zod").ZodInt, "PositiveInteger">;
|
|
4
4
|
};
|
|
5
|
-
export {
|
|
5
|
+
export type { Integer } from "./integer.js";
|
|
6
|
+
export type { PositiveInteger } from "./positive-integer.js";
|
package/lib/cjs/number/index.js
CHANGED
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.number = void 0;
|
|
4
4
|
const integer_js_1 = require("./integer.js");
|
|
5
5
|
const positive_integer_js_1 = require("./positive-integer.js");
|
|
6
|
-
|
|
6
|
+
exports.number = {
|
|
7
7
|
integer: integer_js_1.integer,
|
|
8
8
|
positiveInteger: positive_integer_js_1.positiveInteger,
|
|
9
9
|
};
|
|
10
|
-
exports.number = number;
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/number/index.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AACvC,+DAAwD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/number/index.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AACvC,+DAAwD;AAE3C,QAAA,MAAM,GAAG;IACpB,OAAO,EAAP,oBAAO;IACP,eAAe,EAAf,qCAAe;CAChB,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
declare const string: {
|
|
1
|
+
export declare const string: {
|
|
2
2
|
base64url: () => import("zod/v4/core").$ZodBranded<import("zod").ZodBase64URL, "Base64UrlString">;
|
|
3
3
|
integer: () => import("zod/v4/core").$ZodBranded<import("zod").ZodString, "IntegerString">;
|
|
4
4
|
json: () => import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">;
|
|
5
5
|
number: () => import("zod/v4/core").$ZodBranded<import("zod").ZodString, "NumberString">;
|
|
6
6
|
url: () => import("zod/v4/core").$ZodBranded<import("zod").ZodURL, "UrlString">;
|
|
7
7
|
};
|
|
8
|
-
export {
|
|
8
|
+
export type { Base64UrlString } from "./base64url.js";
|
|
9
|
+
export type { IntegerString } from "./integer.js";
|
|
10
|
+
export type { JsonString } from "./json.js";
|
|
11
|
+
export type { NumberString } from "./number.js";
|
|
12
|
+
export type { UrlString } from "./url.js";
|
package/lib/cjs/string/index.js
CHANGED
|
@@ -6,12 +6,11 @@ const integer_js_1 = require("./integer.js");
|
|
|
6
6
|
const json_js_1 = require("./json.js");
|
|
7
7
|
const number_js_1 = require("./number.js");
|
|
8
8
|
const url_js_1 = require("./url.js");
|
|
9
|
-
|
|
9
|
+
exports.string = {
|
|
10
10
|
base64url: base64url_js_1.base64url,
|
|
11
11
|
integer: integer_js_1.integer,
|
|
12
12
|
json: json_js_1.json,
|
|
13
13
|
number: number_js_1.number,
|
|
14
14
|
url: url_js_1.url,
|
|
15
15
|
};
|
|
16
|
-
exports.string = string;
|
|
17
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/string/index.ts"],"names":[],"mappings":";;;AAAA,iDAA2C;AAC3C,6CAAuC;AACvC,uCAAiC;AACjC,2CAAqC;AACrC,qCAA+B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/string/index.ts"],"names":[],"mappings":";;;AAAA,iDAA2C;AAC3C,6CAAuC;AACvC,uCAAiC;AACjC,2CAAqC;AACrC,qCAA+B;AAElB,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,wBAAS;IACT,OAAO,EAAP,oBAAO;IACP,IAAI,EAAJ,cAAI;IACJ,MAAM,EAAN,kBAAM;IACN,GAAG,EAAH,YAAG;CACJ,CAAC"}
|
package/lib/cjs/zu.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export * from "./aws/index.js";
|
|
3
|
+
export * from "./codec/index.js";
|
|
4
|
+
export * from "./geojson/index.js";
|
|
5
5
|
export { isValid } from "./is-valid.js";
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export * from "./iso/index.js";
|
|
7
|
+
export * from "./json/index.js";
|
|
8
|
+
export * from "./number/index.js";
|
|
9
|
+
export * from "./string/index.js";
|
|
10
10
|
export { typeGuard } from "./type-guard.js";
|
|
11
11
|
/**
|
|
12
12
|
* A type utility that infers the brand of a branded type.
|
package/lib/cjs/zu.js
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.typeGuard = exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "codec", { enumerable: true, get: function () { return index_js_2.codec; } });
|
|
8
|
-
var index_js_3 = require("./geojson/index.js");
|
|
9
|
-
Object.defineProperty(exports, "geojson", { enumerable: true, get: function () { return index_js_3.geojson; } });
|
|
17
|
+
exports.typeGuard = exports.isValid = void 0;
|
|
18
|
+
__exportStar(require("./aws/index.js"), exports);
|
|
19
|
+
__exportStar(require("./codec/index.js"), exports);
|
|
20
|
+
__exportStar(require("./geojson/index.js"), exports);
|
|
10
21
|
var is_valid_js_1 = require("./is-valid.js");
|
|
11
22
|
Object.defineProperty(exports, "isValid", { enumerable: true, get: function () { return is_valid_js_1.isValid; } });
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var index_js_6 = require("./number/index.js");
|
|
17
|
-
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return index_js_6.number; } });
|
|
18
|
-
var index_js_7 = require("./string/index.js");
|
|
19
|
-
Object.defineProperty(exports, "string", { enumerable: true, get: function () { return index_js_7.string; } });
|
|
23
|
+
__exportStar(require("./iso/index.js"), exports);
|
|
24
|
+
__exportStar(require("./json/index.js"), exports);
|
|
25
|
+
__exportStar(require("./number/index.js"), exports);
|
|
26
|
+
__exportStar(require("./string/index.js"), exports);
|
|
20
27
|
var type_guard_js_1 = require("./type-guard.js");
|
|
21
28
|
Object.defineProperty(exports, "typeGuard", { enumerable: true, get: function () { return type_guard_js_1.typeGuard; } });
|
|
22
29
|
//# sourceMappingURL=zu.js.map
|
package/lib/cjs/zu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zu.js","sourceRoot":"","sources":["../../src/zu.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zu.js","sourceRoot":"","sources":["../../src/zu.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,iDAA+B;AAC/B,mDAAiC;AACjC,qDAAmC;AACnC,6CAAwC;AAA/B,sGAAA,OAAO,OAAA;AAChB,iDAA+B;AAC/B,kDAAgC;AAChC,oDAAkC;AAClC,oDAAkC;AAClC,iDAA4C;AAAnC,0GAAA,SAAS,OAAA"}
|
package/lib/esm/aws/index.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ import { accountId } from "./account-id.js";
|
|
|
2
2
|
import { arn } from "./arn.js";
|
|
3
3
|
import { partition } from "./partition.js";
|
|
4
4
|
import { region } from "./region.js";
|
|
5
|
-
declare const aws: {
|
|
5
|
+
export declare const aws: {
|
|
6
6
|
accountId: typeof accountId;
|
|
7
7
|
arn: typeof arn;
|
|
8
8
|
region: typeof region;
|
|
9
9
|
partition: typeof partition;
|
|
10
10
|
};
|
|
11
|
-
export {
|
|
11
|
+
export type { AwsAccountId } from "./account-id.js";
|
|
12
|
+
export type { AwsArn } from "./arn.js";
|
|
13
|
+
export type { AwsPartition } from "./partition.js";
|
|
14
|
+
export type { AwsRegion } from "./region.js";
|
package/lib/esm/aws/index.js
CHANGED
|
@@ -2,11 +2,10 @@ import { accountId } from "./account-id.js";
|
|
|
2
2
|
import { arn } from "./arn.js";
|
|
3
3
|
import { partition } from "./partition.js";
|
|
4
4
|
import { region } from "./region.js";
|
|
5
|
-
const aws = {
|
|
5
|
+
export const aws = {
|
|
6
6
|
accountId,
|
|
7
7
|
arn,
|
|
8
8
|
region,
|
|
9
9
|
partition,
|
|
10
10
|
};
|
|
11
|
-
export { aws };
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/aws/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,GAAG,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,SAAS;IACT,GAAG;IACH,MAAM;IACN,SAAS;CACV,CAAC"}
|
package/lib/esm/codec/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const codec: {
|
|
1
|
+
export declare const codec: {
|
|
2
2
|
csv: () => import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
|
|
3
3
|
jsonParse: <S extends import("zod").ZodType>(schema: S) => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">, S>;
|
|
4
4
|
ms: (options?: {
|
|
@@ -6,7 +6,6 @@ declare const codec: {
|
|
|
6
6
|
}) => import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodNumber>;
|
|
7
7
|
stringToBuffer: (encoding?: BufferEncoding) => import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>;
|
|
8
8
|
stringToInteger: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "IntegerString">, import("zod/v4/core").$ZodBranded<import("zod").ZodInt, "Integer">>;
|
|
9
|
-
stringToJson: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">, import("zod").ZodType<import("../
|
|
9
|
+
stringToJson: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">, import("zod").ZodType<import("../zu.js").Json, unknown, import("zod/v4/core").$ZodTypeInternals<import("../zu.js").Json, unknown>>>;
|
|
10
10
|
stringToUrl: () => import("zod").ZodCodec<import("zod/v4/core").$ZodBranded<import("zod").ZodURL, "UrlString">, import("zod").ZodCustom<import("url").URL, import("url").URL>>;
|
|
11
11
|
};
|
|
12
|
-
export { codec };
|
package/lib/esm/codec/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { stringToBuffer } from "./string-to-buffer.js";
|
|
|
5
5
|
import { stringToInteger } from "./string-to-integer.js";
|
|
6
6
|
import { stringToJson } from "./string-to-json.js";
|
|
7
7
|
import { stringToUrl } from "./string-to-url.js";
|
|
8
|
-
const codec = {
|
|
8
|
+
export const codec = {
|
|
9
9
|
csv,
|
|
10
10
|
jsonParse,
|
|
11
11
|
ms,
|
|
@@ -14,5 +14,4 @@ const codec = {
|
|
|
14
14
|
stringToJson,
|
|
15
15
|
stringToUrl,
|
|
16
16
|
};
|
|
17
|
-
export { codec };
|
|
18
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/codec/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,KAAK,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/codec/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,GAAG;IACH,SAAS;IACT,EAAE;IACF,cAAc;IACd,eAAe;IACf,YAAY;IACZ,WAAW;CACZ,CAAC"}
|
|
@@ -31,7 +31,7 @@ declare const featureCollectionSchema: z.ZodObject<{
|
|
|
31
31
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
32
32
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
33
33
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
34
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
34
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
35
35
|
}, z.core.$strict>>;
|
|
36
36
|
}, z.core.$strict>;
|
|
37
37
|
export type GeoJsonFeatureCollection = z.infer<typeof featureCollectionSchema>;
|
|
@@ -67,7 +67,7 @@ export declare function featureCollection(): z.ZodObject<{
|
|
|
67
67
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
68
68
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
69
69
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
70
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
70
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
71
71
|
}, z.core.$strict>>;
|
|
72
72
|
}, z.core.$strict>;
|
|
73
73
|
export {};
|
|
@@ -52,7 +52,7 @@ declare const geojsonSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObje
|
|
|
52
52
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
53
53
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
54
54
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
55
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
55
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
56
56
|
}, z.core.$strict>, z.ZodObject<{
|
|
57
57
|
bbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>;
|
|
58
58
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -85,7 +85,7 @@ declare const geojsonSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObje
|
|
|
85
85
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
86
86
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
87
87
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
88
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
88
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
89
89
|
}, z.core.$strict>>;
|
|
90
90
|
}, z.core.$strict>]>;
|
|
91
91
|
export type GeoJson = z.infer<typeof geojsonSchema>;
|
|
@@ -142,7 +142,7 @@ export declare function geojson(): z.ZodUnion<readonly [z.ZodUnion<readonly [z.Z
|
|
|
142
142
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
143
143
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
144
144
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
145
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
145
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
146
146
|
}, z.core.$strict>, z.ZodObject<{
|
|
147
147
|
bbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>;
|
|
148
148
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -175,7 +175,7 @@ export declare function geojson(): z.ZodUnion<readonly [z.ZodUnion<readonly [z.Z
|
|
|
175
175
|
coordinates: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>>;
|
|
176
176
|
}, z.core.$strict>, z.ZodType<import("./geometry.js").GeoJsonGeometryCollection, unknown, z.core.$ZodTypeInternals<import("./geometry.js").GeoJsonGeometryCollection, unknown>>]>>;
|
|
177
177
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
178
|
-
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../
|
|
178
|
+
properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../zu.js").Json, unknown, z.core.$ZodTypeInternals<import("../zu.js").Json, unknown>>>>;
|
|
179
179
|
}, z.core.$strict>>;
|
|
180
180
|
}, z.core.$strict>]>;
|
|
181
181
|
export {};
|
|
@@ -24,3 +24,15 @@ declare const module: typeof geojson & {
|
|
|
24
24
|
coordinate: typeof coordinate;
|
|
25
25
|
};
|
|
26
26
|
export { module as geojson };
|
|
27
|
+
export type { GeoJsonBoundingBox } from "./bounding-box.js";
|
|
28
|
+
export type { GeoJsonCoordinate } from "./coordinate.js";
|
|
29
|
+
export type { GeoJsonFeature } from "./feature.js";
|
|
30
|
+
export type { GeoJsonFeatureCollection } from "./feature-collection.js";
|
|
31
|
+
export type { GeoJson } from "./geojson.js";
|
|
32
|
+
export type { GeoJsonGeometry } from "./geometry.js";
|
|
33
|
+
export type { GeoJsonLineString } from "./line-string.js";
|
|
34
|
+
export type { GeoJsonMultiLineString } from "./multi-line-string.js";
|
|
35
|
+
export type { GeoJsonMultiPoint } from "./multi-point.js";
|
|
36
|
+
export type { GeoJsonMultiPolygon } from "./multi-polygon.js";
|
|
37
|
+
export type { GeoJsonPoint } from "./point.js";
|
|
38
|
+
export type { GeoJsonPolygon } from "./polygon.js";
|
package/lib/esm/iso/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const iso: {
|
|
2
2
|
currencyCode: () => import("zod/v4/core").$ZodBranded<import("zod").ZodEnum<{
|
|
3
3
|
[x: string]: string;
|
|
4
4
|
}>, "IsoCurrencyCode">;
|
|
@@ -8,4 +8,5 @@ declare const module: {
|
|
|
8
8
|
}>, "IsoAlpha3CountryCode">;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export {
|
|
11
|
+
export type { IsoAlpha3CountryCode } from "./country-code.js";
|
|
12
|
+
export type { IsoCurrencyCode } from "./currency-code.js";
|
package/lib/esm/iso/index.js
CHANGED
package/lib/esm/iso/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/iso/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,MAAM,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/iso/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,YAAY;IACZ,WAAW;CACZ,CAAC"}
|
package/lib/esm/json/index.d.ts
CHANGED
|
@@ -4,3 +4,7 @@ declare const module: (() => import("zod").ZodType<import("./json.js").Json, unk
|
|
|
4
4
|
primitive: () => import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull]>;
|
|
5
5
|
};
|
|
6
6
|
export { module as json };
|
|
7
|
+
export type { JsonArray } from "./array.js";
|
|
8
|
+
export type { Json } from "./json.js";
|
|
9
|
+
export type { JsonObject } from "./object.js";
|
|
10
|
+
export type { JsonPrimitive } from "./primitive.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
declare const number: {
|
|
1
|
+
export declare const number: {
|
|
2
2
|
integer: () => import("zod/v4/core").$ZodBranded<import("zod").ZodInt, "Integer">;
|
|
3
3
|
positiveInteger: () => import("zod/v4/core").$ZodBranded<import("zod").ZodInt, "PositiveInteger">;
|
|
4
4
|
};
|
|
5
|
-
export {
|
|
5
|
+
export type { Integer } from "./integer.js";
|
|
6
|
+
export type { PositiveInteger } from "./positive-integer.js";
|
package/lib/esm/number/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/number/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,MAAM,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/number/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO;IACP,eAAe;CAChB,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
declare const string: {
|
|
1
|
+
export declare const string: {
|
|
2
2
|
base64url: () => import("zod/v4/core").$ZodBranded<import("zod").ZodBase64URL, "Base64UrlString">;
|
|
3
3
|
integer: () => import("zod/v4/core").$ZodBranded<import("zod").ZodString, "IntegerString">;
|
|
4
4
|
json: () => import("zod/v4/core").$ZodBranded<import("zod").ZodString, "JsonString">;
|
|
5
5
|
number: () => import("zod/v4/core").$ZodBranded<import("zod").ZodString, "NumberString">;
|
|
6
6
|
url: () => import("zod/v4/core").$ZodBranded<import("zod").ZodURL, "UrlString">;
|
|
7
7
|
};
|
|
8
|
-
export {
|
|
8
|
+
export type { Base64UrlString } from "./base64url.js";
|
|
9
|
+
export type { IntegerString } from "./integer.js";
|
|
10
|
+
export type { JsonString } from "./json.js";
|
|
11
|
+
export type { NumberString } from "./number.js";
|
|
12
|
+
export type { UrlString } from "./url.js";
|
package/lib/esm/string/index.js
CHANGED
|
@@ -3,12 +3,11 @@ import { integer } from "./integer.js";
|
|
|
3
3
|
import { json } from "./json.js";
|
|
4
4
|
import { number } from "./number.js";
|
|
5
5
|
import { url } from "./url.js";
|
|
6
|
-
const string = {
|
|
6
|
+
export const string = {
|
|
7
7
|
base64url,
|
|
8
8
|
integer,
|
|
9
9
|
json,
|
|
10
10
|
number,
|
|
11
11
|
url,
|
|
12
12
|
};
|
|
13
|
-
export { string };
|
|
14
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/string/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,MAAM,MAAM,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/string/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS;IACT,OAAO;IACP,IAAI;IACJ,MAAM;IACN,GAAG;CACJ,CAAC"}
|
package/lib/esm/zu.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export * from "./aws/index.js";
|
|
3
|
+
export * from "./codec/index.js";
|
|
4
|
+
export * from "./geojson/index.js";
|
|
5
5
|
export { isValid } from "./is-valid.js";
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export * from "./iso/index.js";
|
|
7
|
+
export * from "./json/index.js";
|
|
8
|
+
export * from "./number/index.js";
|
|
9
|
+
export * from "./string/index.js";
|
|
10
10
|
export { typeGuard } from "./type-guard.js";
|
|
11
11
|
/**
|
|
12
12
|
* A type utility that infers the brand of a branded type.
|
package/lib/esm/zu.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from "./aws/index.js";
|
|
2
|
+
export * from "./codec/index.js";
|
|
3
|
+
export * from "./geojson/index.js";
|
|
4
4
|
export { isValid } from "./is-valid.js";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export * from "./iso/index.js";
|
|
6
|
+
export * from "./json/index.js";
|
|
7
|
+
export * from "./number/index.js";
|
|
8
|
+
export * from "./string/index.js";
|
|
9
9
|
export { typeGuard } from "./type-guard.js";
|
|
10
10
|
//# sourceMappingURL=zu.js.map
|
package/lib/esm/zu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zu.js","sourceRoot":"","sources":["../../src/zu.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"zu.js","sourceRoot":"","sources":["../../src/zu.ts"],"names":[],"mappings":"AAEA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infra-blocks/zod-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0-alpha.0",
|
|
4
4
|
"description": "Extensions to the zod package.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zod",
|
|
@@ -20,31 +20,6 @@
|
|
|
20
20
|
"import": "./lib/esm/index.js",
|
|
21
21
|
"require": "./lib/cjs/index.js",
|
|
22
22
|
"default": "./lib/esm/index.js"
|
|
23
|
-
},
|
|
24
|
-
"./aws": {
|
|
25
|
-
"import": "./lib/esm/aws/types.js",
|
|
26
|
-
"require": "./lib/cjs/index.js",
|
|
27
|
-
"default": "./lib/esm/aws/types.js"
|
|
28
|
-
},
|
|
29
|
-
"./json": {
|
|
30
|
-
"import": "./lib/esm/json/types.js",
|
|
31
|
-
"require": "./lib/cjs/json/types.js",
|
|
32
|
-
"default": "./lib/esm/json/types.js"
|
|
33
|
-
},
|
|
34
|
-
"./iso": {
|
|
35
|
-
"import": "./lib/esm/iso/types.js",
|
|
36
|
-
"require": "./lib/cjs/iso/types.js",
|
|
37
|
-
"default": "./lib/esm/iso/types.js"
|
|
38
|
-
},
|
|
39
|
-
"./geojson": {
|
|
40
|
-
"import": "./lib/esm/geojson/types.js",
|
|
41
|
-
"require": "./lib/cjs/geojson/types.js",
|
|
42
|
-
"default": "./lib/esm/geojson/types.js"
|
|
43
|
-
},
|
|
44
|
-
"./string": {
|
|
45
|
-
"import": "./lib/esm/string/types.js",
|
|
46
|
-
"require": "./lib/cjs/string/types.js",
|
|
47
|
-
"default": "./lib/esm/string/types.js"
|
|
48
23
|
}
|
|
49
24
|
},
|
|
50
25
|
"files": [
|
package/lib/cjs/aws/types.d.ts
DELETED
package/lib/cjs/aws/types.js
DELETED
package/lib/cjs/aws/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/aws/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type { GeoJsonBoundingBox } from "./bounding-box.js";
|
|
2
|
-
export type { GeoJsonCoordinate } from "./coordinate.js";
|
|
3
|
-
export type { GeoJsonFeature } from "./feature.js";
|
|
4
|
-
export type { GeoJsonFeatureCollection } from "./feature-collection.js";
|
|
5
|
-
export type { GeoJson } from "./geojson.js";
|
|
6
|
-
export type { GeoJsonGeometry } from "./geometry.js";
|
|
7
|
-
export type { GeoJsonLineString } from "./line-string.js";
|
|
8
|
-
export type { GeoJsonMultiLineString } from "./multi-line-string.js";
|
|
9
|
-
export type { GeoJsonMultiPoint } from "./multi-point.js";
|
|
10
|
-
export type { GeoJsonMultiPolygon } from "./multi-polygon.js";
|
|
11
|
-
export type { GeoJsonPoint } from "./point.js";
|
|
12
|
-
export type { GeoJsonPolygon } from "./polygon.js";
|
package/lib/cjs/geojson/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/geojson/types.ts"],"names":[],"mappings":""}
|
package/lib/cjs/iso/types.d.ts
DELETED
package/lib/cjs/iso/types.js
DELETED
package/lib/cjs/iso/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/iso/types.ts"],"names":[],"mappings":""}
|
package/lib/cjs/json/types.d.ts
DELETED
package/lib/cjs/json/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/json/types.ts"],"names":[],"mappings":""}
|
package/lib/cjs/number/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/number/types.ts"],"names":[],"mappings":""}
|
package/lib/cjs/string/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/string/types.ts"],"names":[],"mappings":""}
|
package/lib/esm/aws/types.d.ts
DELETED
package/lib/esm/aws/types.js
DELETED
package/lib/esm/aws/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/aws/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type { GeoJsonBoundingBox } from "./bounding-box.js";
|
|
2
|
-
export type { GeoJsonCoordinate } from "./coordinate.js";
|
|
3
|
-
export type { GeoJsonFeature } from "./feature.js";
|
|
4
|
-
export type { GeoJsonFeatureCollection } from "./feature-collection.js";
|
|
5
|
-
export type { GeoJson } from "./geojson.js";
|
|
6
|
-
export type { GeoJsonGeometry } from "./geometry.js";
|
|
7
|
-
export type { GeoJsonLineString } from "./line-string.js";
|
|
8
|
-
export type { GeoJsonMultiLineString } from "./multi-line-string.js";
|
|
9
|
-
export type { GeoJsonMultiPoint } from "./multi-point.js";
|
|
10
|
-
export type { GeoJsonMultiPolygon } from "./multi-polygon.js";
|
|
11
|
-
export type { GeoJsonPoint } from "./point.js";
|
|
12
|
-
export type { GeoJsonPolygon } from "./polygon.js";
|
package/lib/esm/geojson/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/geojson/types.ts"],"names":[],"mappings":""}
|
package/lib/esm/iso/types.d.ts
DELETED
package/lib/esm/iso/types.js
DELETED
package/lib/esm/iso/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/iso/types.ts"],"names":[],"mappings":""}
|
package/lib/esm/json/types.d.ts
DELETED
package/lib/esm/json/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/json/types.ts"],"names":[],"mappings":""}
|
package/lib/esm/number/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/number/types.ts"],"names":[],"mappings":""}
|
package/lib/esm/string/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/string/types.ts"],"names":[],"mappings":""}
|