silgi 0.41.34 → 0.41.35
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 +7 -9
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -1048,17 +1048,15 @@ async function middleware(event) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
event._chain = _chain;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
if (event._chain) {
|
|
1056
|
-
const data = await event._chain;
|
|
1057
|
-
if (data !== void 0 && data !== kNotFound) {
|
|
1058
|
-
return data;
|
|
1059
|
-
}
|
|
1051
|
+
if (event._chain) {
|
|
1052
|
+
const data = await event._chain;
|
|
1053
|
+
if (data !== void 0 && data !== kNotFound) {
|
|
1054
|
+
return data;
|
|
1060
1055
|
}
|
|
1061
1056
|
}
|
|
1057
|
+
}
|
|
1058
|
+
async function handler(event, middlewareMode = false, input, parent, info, callBack) {
|
|
1059
|
+
await middleware(event);
|
|
1062
1060
|
const silgiContext = useSilgi();
|
|
1063
1061
|
if (silgiContext.router) {
|
|
1064
1062
|
const match = findRoute(silgiContext.router, event.req.method, event.url.pathname);
|