@clipboard-health/contract-core 0.7.11 → 0.8.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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@clipboard-health/contract-core",
3
3
  "description": "Shared Zod schemas for Clipboard Health's contracts.",
4
- "version": "0.7.11",
4
+ "version": "0.8.0",
5
5
  "dependencies": {
6
6
  "tslib": "2.8.0",
7
7
  "zod": "3.23.8"
8
8
  },
9
9
  "devDependencies": {
10
- "@clipboard-health/testing-core": "0.7.11"
10
+ "@clipboard-health/testing-core": "0.8.0"
11
11
  },
12
12
  "keywords": [],
13
13
  "license": "MIT",
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * Regular expressions from
4
- * {@link https://github.com/nestjs/nest/blob/master/packages/common/pipes/parse-uuid.pipe.ts}.
3
+ * A UUID string.
5
4
  */
6
5
  export declare const uuid: z.ZodString;
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uuid = void 0;
4
4
  const zod_1 = require("zod");
5
5
  /**
6
- * Regular expressions from
7
- * {@link https://github.com/nestjs/nest/blob/master/packages/common/pipes/parse-uuid.pipe.ts}.
6
+ * A UUID string.
8
7
  */
9
- exports.uuid = zod_1.z
10
- .string()
11
- .trim()
12
- // eslint-disable-next-line unicorn/better-regex
13
- .regex(/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i, {
14
- message: "Invalid UUID format",
15
- });
8
+ exports.uuid = zod_1.z.string().uuid();
16
9
  //# sourceMappingURL=uuid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../../../../packages/contract-core/src/lib/schemas/uuid.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;;GAGG;AACU,QAAA,IAAI,GAAG,OAAC;KAClB,MAAM,EAAE;KACR,IAAI,EAAE;IACP,gDAAgD;KAC/C,KAAK,CAAC,iEAAiE,EAAE;IACxE,OAAO,EAAE,qBAAqB;CAC/B,CAAC,CAAC"}
1
+ {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../../../../packages/contract-core/src/lib/schemas/uuid.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,IAAI,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC"}