better-call 1.0.4 → 1.0.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/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/index.cjs +36 -8
- 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 +36 -8
- package/dist/index.js.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/{router-uAmry411.d.cts → router-DQIhoWK3.d.cts} +9 -1
- package/dist/{router-uAmry411.d.ts → router-DQIhoWK3.d.ts} +9 -1
- package/package.json +5 -5
package/dist/node.d.cts
CHANGED
package/dist/node.d.ts
CHANGED
|
@@ -182,7 +182,15 @@ type CookieOptions = {
|
|
|
182
182
|
prefix?: CookiePrefixOptions;
|
|
183
183
|
};
|
|
184
184
|
declare const getCookieKey: (key: string, prefix?: CookiePrefixOptions) => string | undefined;
|
|
185
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Parse an HTTP Cookie header string and returning an object of all cookie
|
|
187
|
+
* name-value pairs.
|
|
188
|
+
*
|
|
189
|
+
* Inspired by https://github.com/unjs/cookie-es/blob/main/src/cookie/parse.ts
|
|
190
|
+
*
|
|
191
|
+
* @param str the string representing a `Cookie` header value
|
|
192
|
+
*/
|
|
193
|
+
declare function parseCookies(str: string): Map<string, string>;
|
|
186
194
|
declare const serializeCookie: (key: string, value: string, opt?: CookieOptions) => string;
|
|
187
195
|
declare const serializeSignedCookie: (key: string, value: string, secret: string, opt?: CookieOptions) => Promise<string>;
|
|
188
196
|
|
|
@@ -182,7 +182,15 @@ type CookieOptions = {
|
|
|
182
182
|
prefix?: CookiePrefixOptions;
|
|
183
183
|
};
|
|
184
184
|
declare const getCookieKey: (key: string, prefix?: CookiePrefixOptions) => string | undefined;
|
|
185
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Parse an HTTP Cookie header string and returning an object of all cookie
|
|
187
|
+
* name-value pairs.
|
|
188
|
+
*
|
|
189
|
+
* Inspired by https://github.com/unjs/cookie-es/blob/main/src/cookie/parse.ts
|
|
190
|
+
*
|
|
191
|
+
* @param str the string representing a `Cookie` header value
|
|
192
|
+
*/
|
|
193
|
+
declare function parseCookies(str: string): Map<string, string>;
|
|
186
194
|
declare const serializeCookie: (key: string, value: string, opt?: CookieOptions) => string;
|
|
187
195
|
declare const serializeSignedCookie: (key: string, value: string, secret: string, opt?: CookieOptions) => Promise<string>;
|
|
188
196
|
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-call",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@arethetypeswrong/cli": "^0.16.4",
|
|
10
|
-
"arktype": "^2.0.0",
|
|
11
|
-
"zod": "^3.24.1",
|
|
12
|
-
"valibot": "1.0.0-beta.15",
|
|
13
10
|
"@biomejs/biome": "^1.8.3",
|
|
14
11
|
"@types/bun": "latest",
|
|
15
12
|
"@types/set-cookie-parser": "^2.4.10",
|
|
13
|
+
"arktype": "^2.0.0",
|
|
16
14
|
"bumpp": "^9.4.1",
|
|
17
15
|
"tsup": "^8.3.5",
|
|
18
16
|
"type-fest": "^4.23.0",
|
|
19
17
|
"typescript": "^5.6.0-beta",
|
|
20
|
-
"
|
|
18
|
+
"valibot": "1.0.0-beta.15",
|
|
19
|
+
"vitest": "^3.0.3",
|
|
20
|
+
"zod": "^3.24.1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@better-fetch/fetch": "^1.1.4",
|