hono 3.11.10 → 3.11.11

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.
@@ -190,8 +190,11 @@ const _getQueryParam = (url, key, multiple) => {
190
190
  }
191
191
  }
192
192
  if (multiple) {
193
+ if (!(results[name] && Array.isArray(results[name]))) {
194
+ results[name] = [];
195
+ }
193
196
  ;
194
- (results[name] ?? (results[name] = [])).push(value);
197
+ results[name].push(value);
195
198
  } else {
196
199
  results[name] ?? (results[name] = value);
197
200
  }
@@ -19,6 +19,8 @@ export type ClientRequest<S extends Schema> = {
19
19
  };
20
20
  type BlankRecordToNever<T> = T extends any ? (keyof T extends never ? never : T) : never;
21
21
  export interface ClientResponse<T> {
22
+ readonly body: ReadableStream | null;
23
+ readonly bodyUsed: boolean;
22
24
  ok: boolean;
23
25
  status: number;
24
26
  statusText: string;
package/dist/utils/url.js CHANGED
@@ -158,8 +158,11 @@ var _getQueryParam = (url, key, multiple) => {
158
158
  }
159
159
  }
160
160
  if (multiple) {
161
+ if (!(results[name] && Array.isArray(results[name]))) {
162
+ results[name] = [];
163
+ }
161
164
  ;
162
- (results[name] ?? (results[name] = [])).push(value);
165
+ results[name].push(value);
163
166
  } else {
164
167
  results[name] ?? (results[name] = value);
165
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "3.11.10",
3
+ "version": "3.11.11",
4
4
  "description": "Ultrafast web framework for the Edges",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",
@@ -450,7 +450,7 @@
450
450
  "@types/node": "^20.8.2",
451
451
  "@types/node-fetch": "^2.6.2",
452
452
  "@types/supertest": "^2.0.12",
453
- "@vitest/coverage-v8": "^1.0.4",
453
+ "@vitest/coverage-v8": "^1.1.0",
454
454
  "arg": "^5.0.2",
455
455
  "crypto-js": "^4.1.1",
456
456
  "denoify": "^1.6.6",
@@ -469,7 +469,7 @@
469
469
  "tsx": "^3.11.0",
470
470
  "typescript": "^5.3.3",
471
471
  "vite-plugin-fastly-js-compute": "^0.4.2",
472
- "vitest": "^1.0.4",
472
+ "vitest": "^1.1.0",
473
473
  "wrangler": "3.17.1",
474
474
  "zod": "^3.20.2"
475
475
  },
@@ -1,7 +0,0 @@
1
- export * from './helper/adapter';
2
- export * from './helper/cookie';
3
- export * from './helper/factory';
4
- export * from './helper/html';
5
- export * from './helper/streaming';
6
- export * from './helper/testing';
7
- export * from './helper/dev';
@@ -1 +0,0 @@
1
- export {};