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 +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/{router-CyNMWgsC.d.cts → router-Bpb8tT1Y.d.cts} +1063 -4
- package/dist/{router-CyNMWgsC.d.ts → router-Bpb8tT1Y.d.ts} +1063 -4
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BetterFetchOption, BetterFetchResponse } from '@better-fetch/fetch';
|
|
2
|
-
import { j as Router,
|
|
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,
|
|
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),
|