better-call 1.0.22 → 1.0.24
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 +0 -6
- 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 +0 -6
- package/dist/index.js.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/{router-BPTd8L-P.d.ts → router-BFJOSfmb.d.cts} +6 -7
- package/dist/{router-IP1pntSS.d.cts → router-D0KeMgM6.d.ts} +6 -7
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Endpoint, HasRequiredKeys, Router, UnionToIntersection } from "./router-
|
|
1
|
+
import { Endpoint, HasRequiredKeys, Router, UnionToIntersection } from "./router-BFJOSfmb.cjs";
|
|
2
2
|
import { BetterFetchOption, BetterFetchResponse } from "@better-fetch/fetch";
|
|
3
3
|
|
|
4
4
|
//#region src/client.d.ts
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Endpoint, HasRequiredKeys, Router, UnionToIntersection } from "./router-
|
|
1
|
+
import { Endpoint, HasRequiredKeys, Router, UnionToIntersection } from "./router-D0KeMgM6.js";
|
|
2
2
|
import { BetterFetchOption, BetterFetchResponse } from "@better-fetch/fetch";
|
|
3
3
|
|
|
4
4
|
//#region src/client.d.ts
|
package/dist/index.cjs
CHANGED
|
@@ -555,12 +555,6 @@ const createEndpoint = (path, options, handler) => {
|
|
|
555
555
|
response
|
|
556
556
|
} : response;
|
|
557
557
|
};
|
|
558
|
-
internalHandler.wrap = (fn) => {
|
|
559
|
-
const wrappedFn = async (context) => {
|
|
560
|
-
return fn(context, handler);
|
|
561
|
-
};
|
|
562
|
-
return createEndpoint(path, options, wrappedFn);
|
|
563
|
-
};
|
|
564
558
|
internalHandler.options = options;
|
|
565
559
|
internalHandler.path = path;
|
|
566
560
|
return internalHandler;
|