better-call 1.0.0-beta.4 → 1.0.0-beta.6

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/client.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BetterFetchOption, BetterFetchResponse } from '@better-fetch/fetch';
2
- import { j as Router, U as UnionToIntersection, b as Endpoint, N as HasRequiredKeys } from './router-CyNMWgsC.cjs';
2
+ import { j as Router, W as UnionToIntersection, b as Endpoint, T as HasRequiredKeys } from './router-Bpb8tT1Y.cjs';
3
3
 
4
4
  type HasRequired<T extends {
5
5
  body?: any;
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BetterFetchOption, BetterFetchResponse } from '@better-fetch/fetch';
2
- import { j as Router, U as UnionToIntersection, b as Endpoint, N as HasRequiredKeys } from './router-CyNMWgsC.js';
2
+ import { j as Router, W as UnionToIntersection, b as Endpoint, T as HasRequiredKeys } from './router-Bpb8tT1Y.js';
3
3
 
4
4
  type HasRequired<T extends {
5
5
  body?: any;
package/dist/index.cjs CHANGED
@@ -4843,7 +4843,7 @@ var createRouter = (endpoints, config) => {
4843
4843
  path,
4844
4844
  method: request.method,
4845
4845
  headers: request.headers,
4846
- params: route.params,
4846
+ params: route.params ? JSON.parse(JSON.stringify(route.params)) : {},
4847
4847
  request,
4848
4848
  body: await getBody(handler.options.cloneRequest ? request.clone() : request),
4849
4849
  query: Object.fromEntries(url.searchParams),