better-call 1.1.4 → 1.1.5
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/README.md +209 -110
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.js.map +1 -1
- package/dist/router.d.cts +6 -0
- package/dist/router.d.ts +6 -0
- package/package.json +12 -4
package/dist/router.d.ts
CHANGED
|
@@ -1276,6 +1276,12 @@ interface RouterConfig {
|
|
|
1276
1276
|
* })
|
|
1277
1277
|
*/
|
|
1278
1278
|
allowedMediaTypes?: string[];
|
|
1279
|
+
/**
|
|
1280
|
+
* Skip trailing slashes
|
|
1281
|
+
*
|
|
1282
|
+
* @default false
|
|
1283
|
+
*/
|
|
1284
|
+
skipTrailingSlashes?: boolean;
|
|
1279
1285
|
/**
|
|
1280
1286
|
* Open API route configuration
|
|
1281
1287
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-call",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,20 +12,22 @@
|
|
|
12
12
|
"module": "./dist/index.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@arethetypeswrong/cli": "^0.
|
|
15
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
16
16
|
"@biomejs/biome": "^1.8.3",
|
|
17
17
|
"@types/body-parser": "^1.19.6",
|
|
18
18
|
"@types/bun": "latest",
|
|
19
19
|
"@types/express": "^5.0.3",
|
|
20
20
|
"@types/set-cookie-parser": "^2.4.10",
|
|
21
21
|
"@types/supertest": "^6.0.3",
|
|
22
|
-
"
|
|
22
|
+
"@vitest/coverage-v8": "3.1.1",
|
|
23
23
|
"body-parser": "^2.2.0",
|
|
24
24
|
"bumpp": "^9.4.1",
|
|
25
|
+
"cspell": "^9.4.0",
|
|
25
26
|
"express": "^5.1.0",
|
|
27
|
+
"knip": "^5.71.0",
|
|
28
|
+
"publint": "^0.3.15",
|
|
26
29
|
"supertest": "^7.1.4",
|
|
27
30
|
"tsdown": "^0.15.7",
|
|
28
|
-
"type-fest": "^4.23.0",
|
|
29
31
|
"typescript": "^5.6.0-beta",
|
|
30
32
|
"valibot": "1.0.0-beta.15",
|
|
31
33
|
"vitest": "^3.1.1"
|
|
@@ -81,7 +83,13 @@
|
|
|
81
83
|
],
|
|
82
84
|
"scripts": {
|
|
83
85
|
"test": "vitest",
|
|
86
|
+
"coverage": "vitest run --coverage",
|
|
87
|
+
"coverage:open": "open coverage/index.html",
|
|
84
88
|
"lint": "biome format",
|
|
89
|
+
"lint:spell": "cspell .",
|
|
90
|
+
"lint:dependencies": "knip --strict",
|
|
91
|
+
"lint:package": "publint --strict .",
|
|
92
|
+
"lint:types": "attw --profile node16 --pack .",
|
|
85
93
|
"lint:fix": "biome format --fix",
|
|
86
94
|
"format": "biome format --write",
|
|
87
95
|
"typecheck": "tsc --noEmit",
|