@chainfuse/types 2.11.2 → 2.11.3
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/zod/index.d.ts +1 -1
- package/dist/zod/index.js +3 -3
- package/package.json +2 -2
package/dist/zod/index.d.ts
CHANGED
package/dist/zod/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { z as z4 } from 'zod';
|
|
2
1
|
import { z as z3 } from 'zod/v3';
|
|
2
|
+
import { z as z4 } from 'zod/v4';
|
|
3
3
|
/**
|
|
4
4
|
* @link https://zod.dev/?id=json-type
|
|
5
5
|
*/
|
|
6
6
|
const literalSchema = z3.union([z3.string(), z3.number(), z3.boolean(), z3.null()]);
|
|
7
7
|
export const jsonSchema = z3.lazy(() => z3.union([literalSchema, z3.array(jsonSchema), z3.record(jsonSchema)]));
|
|
8
|
-
export const ZodCoordinate =
|
|
8
|
+
export const ZodCoordinate = z4
|
|
9
9
|
.string()
|
|
10
10
|
.trim()
|
|
11
11
|
.min(3)
|
|
12
|
-
.regex(new RegExp(/^-?\d+\.\d+$/i))
|
|
12
|
+
.regex(new RegExp(/^-?\d+\.\d+$/i));
|
|
13
13
|
const prefixedUuidRegex = /^((d|t|u)_)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(_p)?$/i;
|
|
14
14
|
const hexUuidRegex = /^[0-9a-f]{8}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{12}$/i;
|
|
15
15
|
const hexUuid4Regex = /^[0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[0-9a-f]{4}[0-9a-f]{12}$/i;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"@cloudflare/workers-types": "^4.20250813.0",
|
|
102
102
|
"@types/validator": "^13.15.2"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "272fc3db417dc26fdbce4e530d6c52338b6beedb"
|
|
105
105
|
}
|