better-call 1.0.4-beta.2 → 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/node.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IncomingMessage, ServerResponse } from 'node:http';
2
- import { j as Router } from './router-uAmry411.cjs';
2
+ import { j as Router } from './router-DQIhoWK3.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-uAmry411.js';
2
+ import { j as Router } from './router-DQIhoWK3.js';
3
3
 
4
4
  declare function getRequest({ request, base, bodySizeLimit, }: {
5
5
  base: string;
@@ -182,7 +182,15 @@ type CookieOptions = {
182
182
  prefix?: CookiePrefixOptions;
183
183
  };
184
184
  declare const getCookieKey: (key: string, prefix?: CookiePrefixOptions) => string | undefined;
185
- declare function parseCookies(cookieHeader: string): Map<string, string>;
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
- declare function parseCookies(cookieHeader: string): Map<string, string>;
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.4-beta.2",
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
- "vitest": "^3.0.3"
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",