silgi 0.37.45 → 0.37.46

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.37.45";
4
+ const version = "0.37.46";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -537,8 +537,8 @@ async function orchestrate(route, event, _input) {
537
537
  const silgiURL = getUrlPrefix(route.route, route.method);
538
538
  const input = _input || (route.service.routerRule?.readBeforeBody === false ? {} : await parseRequestInput(event.req));
539
539
  const hookContext = { earlyReturnValue: false };
540
- const routerParams = _input.path ?? getRouterParams(event);
541
- const queryParams = _input.query ?? getQuery(event);
540
+ const routerParams = _input ? input.path : getRouterParams(event);
541
+ const queryParams = _input ? input.query : getQuery(event);
542
542
  if (_input.path) {
543
543
  delete _input.path;
544
544
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.37.45",
4
+ "version": "0.37.46",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {