@kaito-http/core 3.0.0-beta.6 → 3.0.0-beta.7

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -101,13 +101,9 @@ var Router = class _Router {
101
101
  return {};
102
102
  }
103
103
  const result = {};
104
- for (const [key, value] of url.searchParams.entries()) {
105
- const parsable2 = schema[key];
106
- if (!parsable2) {
107
- continue;
108
- }
109
- const parsed = parsable2.parse(value);
110
- result[key] = parsed;
104
+ for (const [key, parsable2] of Object.entries(schema)) {
105
+ const value = url.searchParams.get(key);
106
+ result[key] = parsable2.parse(value);
111
107
  }
112
108
  return result;
113
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaito-http/core",
3
- "version": "3.0.0-beta.6",
3
+ "version": "3.0.0-beta.7",
4
4
  "type": "module",
5
5
  "author": "Alistair Smith <hi@alistair.sh>",
6
6
  "description": "Functional HTTP Framework for TypeScript",