@optique/valibot 1.0.0-dev.1500 → 1.0.0-dev.1510
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/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -397,6 +397,7 @@ function valibot$1(schema, options) {
|
|
|
397
397
|
} : {},
|
|
398
398
|
parse(input) {
|
|
399
399
|
const result = (0, valibot.safeParse)(schema, input);
|
|
400
|
+
if (typeof result.typed !== "boolean") throw new TypeError("Async Valibot schemas (e.g., async validations) are not supported by valibot(). Use synchronous schemas instead.");
|
|
400
401
|
if (result.success) return {
|
|
401
402
|
success: true,
|
|
402
403
|
value: result.output
|
package/dist/index.js
CHANGED
|
@@ -374,6 +374,7 @@ function valibot(schema, options) {
|
|
|
374
374
|
} : {},
|
|
375
375
|
parse(input) {
|
|
376
376
|
const result = safeParse(schema, input);
|
|
377
|
+
if (typeof result.typed !== "boolean") throw new TypeError("Async Valibot schemas (e.g., async validations) are not supported by valibot(). Use synchronous schemas instead.");
|
|
377
378
|
if (result.success) return {
|
|
378
379
|
success: true,
|
|
379
380
|
value: result.output
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/valibot",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.1510+f054ad59",
|
|
4
4
|
"description": "Valibot value parsers for Optique",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"valibot": "^1.2.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@optique/core": "1.0.0-dev.
|
|
60
|
+
"@optique/core": "1.0.0-dev.1510+f054ad59"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "^20.19.9",
|