silgi 0.41.12 → 0.41.13
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/cli/index.mjs +1 -1
- package/dist/core/index.mjs +6 -9
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -651,14 +651,11 @@ async function orchestrate(route, event, _input) {
|
|
|
651
651
|
}
|
|
652
652
|
silgiCtx.shared.$fetch = silgiFetch;
|
|
653
653
|
silgiCtx.shared.silgi = silgiCtx;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
event
|
|
660
|
-
);
|
|
661
|
-
}
|
|
654
|
+
const result = await route.service?.setup.handler?.(
|
|
655
|
+
inputData,
|
|
656
|
+
silgiCtx.shared,
|
|
657
|
+
event
|
|
658
|
+
);
|
|
662
659
|
await silgiCtx.callHook("fetch:after", {
|
|
663
660
|
event,
|
|
664
661
|
url: silgiURL,
|
|
@@ -934,7 +931,7 @@ async function middleware(event, url) {
|
|
|
934
931
|
if (_previous !== void 0 && _previous !== kNotFound) {
|
|
935
932
|
return _previous;
|
|
936
933
|
}
|
|
937
|
-
|
|
934
|
+
const allowedMethod = m.method ?? "";
|
|
938
935
|
const methodIsAllowed = allowedMethod === "ALL" || allowedMethod === event.req.method;
|
|
939
936
|
if (!methodIsAllowed) {
|
|
940
937
|
return;
|