@tanstack/react-router 1.82.2 → 1.82.10

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.
@@ -28,10 +28,11 @@ function validateSearch(validateSearch2, input) {
28
28
  if (validateSearch2 == null) return {};
29
29
  if ("~standard" in validateSearch2) {
30
30
  const result = validateSearch2["~standard"].validate(input);
31
- if ("value" in result) return result.value;
32
31
  if (result instanceof Promise)
33
32
  throw new SearchParamError("Async validation not supported");
34
- throw new SearchParamError(JSON.stringify(result.issues, void 0, 2));
33
+ if (result.issues)
34
+ throw new SearchParamError(JSON.stringify(result.issues, void 0, 2));
35
+ return result.value;
35
36
  }
36
37
  if ("parse" in validateSearch2) {
37
38
  return validateSearch2.parse(input);