better-call 1.0.16 → 1.0.18

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-c8myTmx-.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-c8myTmx-.js';
2
+ import { j as Router } from './router-DcqXHY8X.js';
3
3
 
4
4
  declare function getRequest({ request, base, bodySizeLimit, }: {
5
5
  base: string;
@@ -106,7 +106,7 @@ type InferParamWildCard<Path> = Path extends `${infer _Start}/*:${infer Param}/$
106
106
  [K in Param | keyof InferParamPath<Rest>]: string;
107
107
  } : Path extends `${infer _Start}/*` ? {
108
108
  [K in "_"]: string;
109
- } : Path extends `${infer _Start}/${infer Rest}` ? InferParamPath<Rest> : {};
109
+ } : Path extends `${infer _Start}/${infer Rest}` ? InferParamWildCard<Rest> : {};
110
110
 
111
111
  interface MiddlewareOptions extends Omit<EndpointOptions, "method"> {
112
112
  }
@@ -106,7 +106,7 @@ type InferParamWildCard<Path> = Path extends `${infer _Start}/*:${infer Param}/$
106
106
  [K in Param | keyof InferParamPath<Rest>]: string;
107
107
  } : Path extends `${infer _Start}/*` ? {
108
108
  [K in "_"]: string;
109
- } : Path extends `${infer _Start}/${infer Rest}` ? InferParamPath<Rest> : {};
109
+ } : Path extends `${infer _Start}/${infer Rest}` ? InferParamWildCard<Rest> : {};
110
110
 
111
111
  interface MiddlewareOptions extends Omit<EndpointOptions, "method"> {
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-call",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",