@tanstack/react-router 1.82.2 → 1.82.8
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/cjs/router.cjs +3 -2
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +3 -2
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +4 -3
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -584,12 +584,13 @@ function validateSearch(validateSearch: AnyValidator, input: unknown): unknown {
|
|
|
584
584
|
if ('~standard' in validateSearch) {
|
|
585
585
|
const result = validateSearch['~standard'].validate(input)
|
|
586
586
|
|
|
587
|
-
if ('value' in result) return result.value
|
|
588
|
-
|
|
589
587
|
if (result instanceof Promise)
|
|
590
588
|
throw new SearchParamError('Async validation not supported')
|
|
591
589
|
|
|
592
|
-
|
|
590
|
+
if (result.issues)
|
|
591
|
+
throw new SearchParamError(JSON.stringify(result.issues, undefined, 2))
|
|
592
|
+
|
|
593
|
+
return result.value
|
|
593
594
|
}
|
|
594
595
|
|
|
595
596
|
if ('parse' in validateSearch) {
|