@hg-ts/validation 0.5.24 → 0.5.25

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/dist/schemas.d.ts CHANGED
@@ -6,4 +6,5 @@ export declare const baseExceptionSchema: z.ZodObject<{
6
6
  stack: z.ZodArray<z.ZodString>;
7
7
  }, z.core.$strip>;
8
8
  export declare const bufferSchema: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
9
+ export declare const uuidSchema: z.ZodUUID;
9
10
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,YAAY,+DAKtB,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,YAAY,+DAKtB,CAAC;AAEJ,eAAO,MAAM,UAAU,WAAa,CAAC"}
package/dist/schemas.js CHANGED
@@ -11,4 +11,5 @@ export const bufferSchema = z
11
11
  type: 'string',
12
12
  format: 'binary',
13
13
  });
14
+ export const uuidSchema = z.uuidv7();
14
15
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC3B,UAAU,CAAC,MAAM,CAAC;KAClB,IAAI,CAAC;IACL,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,QAAQ;CAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC3B,UAAU,CAAC,MAAM,CAAC;KAClB,IAAI,CAAC;IACL,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,QAAQ;CAChB,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hg-ts/validation",
3
- "version": "0.5.24",
3
+ "version": "0.5.25",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -16,10 +16,10 @@
16
16
  "lint:ts:fix": "lint-ts --fix"
17
17
  },
18
18
  "devDependencies": {
19
- "@hg-ts-config/typescript": "0.5.24",
20
- "@hg-ts/exception": "0.5.24",
21
- "@hg-ts/linter": "0.5.24",
22
- "@hg-ts/types": "0.5.24",
19
+ "@hg-ts-config/typescript": "0.5.25",
20
+ "@hg-ts/exception": "0.5.25",
21
+ "@hg-ts/linter": "0.5.25",
22
+ "@hg-ts/types": "0.5.25",
23
23
  "@types/node": "22.19.1",
24
24
  "eslint": "9.18.0",
25
25
  "reflect-metadata": "0.2.2",
@@ -28,7 +28,7 @@
28
28
  "typescript": "5.7.3"
29
29
  },
30
30
  "peerDependencies": {
31
- "@hg-ts/exception": "0.5.24",
31
+ "@hg-ts/exception": "0.5.25",
32
32
  "reflect-metadata": "*",
33
33
  "tslib": "*"
34
34
  },
package/src/schemas.ts CHANGED
@@ -13,3 +13,5 @@ export const bufferSchema = z
13
13
  type: 'string',
14
14
  format: 'binary',
15
15
  });
16
+
17
+ export const uuidSchema = z.uuidv7();