silgi 0.41.13 → 0.41.14
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 +2 -2
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -932,7 +932,7 @@ async function middleware(event, url) {
|
|
|
932
932
|
return _previous;
|
|
933
933
|
}
|
|
934
934
|
const allowedMethod = m.method ?? "";
|
|
935
|
-
const methodIsAllowed = allowedMethod === "ALL" || allowedMethod === event.req.method;
|
|
935
|
+
const methodIsAllowed = allowedMethod === "ALL" || allowedMethod === event.req.method || allowedMethod === "GRAPHQL";
|
|
936
936
|
if (!methodIsAllowed) {
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
@@ -967,7 +967,7 @@ async function middleware(event, url) {
|
|
|
967
967
|
return _previous;
|
|
968
968
|
}
|
|
969
969
|
const allowedMethod = match.data.method ?? "";
|
|
970
|
-
const methodIsAllowed = allowedMethod === "ALL" || allowedMethod === event.req.method;
|
|
970
|
+
const methodIsAllowed = allowedMethod === "ALL" || allowedMethod === event.req.method || allowedMethod === "GRAPHQL";
|
|
971
971
|
if (!methodIsAllowed || !match.data.middleware) {
|
|
972
972
|
return;
|
|
973
973
|
}
|