silgi 0.41.6 → 0.41.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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.41.6";
4
+ const version = "0.41.7";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -578,7 +578,15 @@ function getUrlPrefix(path, method) {
578
578
 
579
579
  async function orchestrate(route, event, _input) {
580
580
  const silgiCtx = useSilgi();
581
- const silgiURL = getUrlPrefix(route.route || event.req.url, route.method);
581
+ const silgiURL = !route.graphql ? getUrlPrefix(route.route || event.req.url, route.method) : {
582
+ methodName: route.method || "GET",
583
+ namespaceName: "graphql",
584
+ prefixName: "/api",
585
+ path: route.route || "",
586
+ raw: route.route || "",
587
+ pathParams: {},
588
+ queryParams: {}
589
+ };
582
590
  const input = _input || (route.service?.setup.rules?.readBeforeBody === false || route.graphql ? {} : await parseRequestInput(event.req));
583
591
  const hookContext = { earlyReturnValue: false };
584
592
  const routerParams = _input ? input.path : getRouterParams(event);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.41.6",
4
+ "version": "0.41.7",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {