better-call 1.0.0 → 1.0.2

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-Bpb8tT1Y.cjs';
2
+ import { j as Router } from './router-DUkPVacX.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-Bpb8tT1Y.js';
2
+ import { j as Router } from './router-DUkPVacX.js';
3
3
 
4
4
  declare function getRequest({ request, base, bodySizeLimit, }: {
5
5
  base: string;
@@ -637,7 +637,7 @@ interface EndpointOptions {
637
637
  /**
638
638
  * Open API definition
639
639
  */
640
- openAPI?: {
640
+ openapi?: {
641
641
  summary?: string;
642
642
  description?: string;
643
643
  tags?: string[];
@@ -2273,7 +2273,7 @@ interface RouterConfig {
2273
2273
  /**
2274
2274
  * Open API route configuration
2275
2275
  */
2276
- openAPI?: {
2276
+ openapi?: {
2277
2277
  /**
2278
2278
  * Disable openapi route
2279
2279
  *
@@ -637,7 +637,7 @@ interface EndpointOptions {
637
637
  /**
638
638
  * Open API definition
639
639
  */
640
- openAPI?: {
640
+ openapi?: {
641
641
  summary?: string;
642
642
  description?: string;
643
643
  tags?: string[];
@@ -2273,7 +2273,7 @@ interface RouterConfig {
2273
2273
  /**
2274
2274
  * Open API route configuration
2275
2275
  */
2276
- openAPI?: {
2276
+ openapi?: {
2277
2277
  /**
2278
2278
  * Disable openapi route
2279
2279
  *
package/package.json CHANGED
@@ -1,21 +1,10 @@
1
1
  {
2
2
  "name": "better-call",
3
- "version": "1.0.0",
4
- "packageManager": "pnpm@9.15.0",
3
+ "version": "1.0.2",
5
4
  "type": "module",
6
5
  "main": "./dist/index.cjs",
7
6
  "module": "./dist/index.js",
8
7
  "types": "./dist/index.d.ts",
9
- "scripts": {
10
- "test": "vitest",
11
- "format": "biome format --write",
12
- "typecheck": "tsc --noEmit",
13
- "bump": "bumpp",
14
- "build": "tsup --dts --clean",
15
- "dev": "tsup --watch",
16
- "dev:dts": "tsup --watch --dts",
17
- "serve": "bun --hot example/hello.ts"
18
- },
19
8
  "devDependencies": {
20
9
  "@arethetypeswrong/cli": "^0.16.4",
21
10
  "arktype": "^2.0.0",
@@ -70,5 +59,17 @@
70
59
  },
71
60
  "files": [
72
61
  "dist"
73
- ]
62
+ ],
63
+ "scripts": {
64
+ "test": "vitest",
65
+ "lint": "biome format",
66
+ "lint:fix": "biome format --fix",
67
+ "format": "biome format --write",
68
+ "typecheck": "tsc --noEmit",
69
+ "bump": "bumpp",
70
+ "build": "tsup --dts --clean",
71
+ "dev": "tsup --watch",
72
+ "dev:dts": "tsup --watch --dts",
73
+ "serve": "bun --hot example/hello.ts"
74
+ }
74
75
  }