better-call 1.0.17 → 1.0.19

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/node.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IncomingMessage, ServerResponse } from 'node:http';
2
- import { j as Router } from './router-CLKBSbjV.cjs';
2
+ import { j as Router } from './router-DcqXHY8X.cjs';
3
3
 
4
4
  declare function getRequest({ request, base, bodySizeLimit, }: {
5
5
  base: string;
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IncomingMessage, ServerResponse } from 'node:http';
2
- import { j as Router } from './router-CLKBSbjV.js';
2
+ import { j as Router } from './router-DcqXHY8X.js';
3
3
 
4
4
  declare function getRequest({ request, base, bodySizeLimit, }: {
5
5
  base: string;
@@ -417,7 +417,7 @@ type InferInputMethod<Options extends EndpointOptions, Method = Options["method"
417
417
  } : {
418
418
  method: Method;
419
419
  };
420
- type InferParam<Path extends string> = IsEmptyObject<InferParamPath<Path> & InferParamWildCard<Path>> extends true ? {} : Prettify<InferParamPath<Path> & InferParamWildCard<Path>>;
420
+ type InferParam<Path extends string> = IsEmptyObject<InferParamPath<Path> & InferParamWildCard<Path>> extends true ? Record<string, any> | undefined : Prettify<InferParamPath<Path> & InferParamWildCard<Path>>;
421
421
  type InferParamInput<Path extends string> = IsEmptyObject<InferParamPath<Path> & InferParamWildCard<Path>> extends true ? {
422
422
  params?: Record<string, any>;
423
423
  } : {
@@ -417,7 +417,7 @@ type InferInputMethod<Options extends EndpointOptions, Method = Options["method"
417
417
  } : {
418
418
  method: Method;
419
419
  };
420
- type InferParam<Path extends string> = IsEmptyObject<InferParamPath<Path> & InferParamWildCard<Path>> extends true ? {} : Prettify<InferParamPath<Path> & InferParamWildCard<Path>>;
420
+ type InferParam<Path extends string> = IsEmptyObject<InferParamPath<Path> & InferParamWildCard<Path>> extends true ? Record<string, any> | undefined : Prettify<InferParamPath<Path> & InferParamWildCard<Path>>;
421
421
  type InferParamInput<Path extends string> = IsEmptyObject<InferParamPath<Path> & InferParamWildCard<Path>> extends true ? {
422
422
  params?: Record<string, any>;
423
423
  } : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-call",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,6 +30,7 @@
30
30
  "zod": "^4.0.1"
31
31
  },
32
32
  "dependencies": {
33
+ "@better-auth/utils": "^0.3.0",
33
34
  "@better-fetch/fetch": "^1.1.4",
34
35
  "rou3": "^0.5.1",
35
36
  "set-cookie-parser": "^2.7.1",