silgi 0.37.3 → 0.37.4
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 +3 -3
- package/dist/types/index.d.mts +1 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -538,16 +538,16 @@ async function orchestrate(route, event) {
|
|
|
538
538
|
const routerParams = getRouterParams(event);
|
|
539
539
|
const queryParams = getQuery(event);
|
|
540
540
|
const service = route.service;
|
|
541
|
-
const
|
|
541
|
+
const earlyReturnValue = false;
|
|
542
542
|
const cachePromise = cacheExecute(input, route, silgiURL, event);
|
|
543
543
|
const beforeHookPromise = silgiCtx.callHook("fetch:before", {
|
|
544
544
|
url: silgiURL,
|
|
545
545
|
input,
|
|
546
546
|
event,
|
|
547
547
|
route,
|
|
548
|
-
|
|
548
|
+
earlyReturnValue
|
|
549
549
|
});
|
|
550
|
-
if (
|
|
550
|
+
if (earlyReturnValue !== false) ;
|
|
551
551
|
const cacheData = await cachePromise;
|
|
552
552
|
await beforeHookPromise;
|
|
553
553
|
if (cacheData?.success) {
|
package/dist/types/index.d.mts
CHANGED
|
@@ -825,7 +825,7 @@ type ModuleHookContext = Readonly<{
|
|
|
825
825
|
error?: Error;
|
|
826
826
|
success?: boolean;
|
|
827
827
|
cached?: boolean;
|
|
828
|
-
|
|
828
|
+
earlyReturnValue?: null | undefined | false;
|
|
829
829
|
}>;
|
|
830
830
|
/** The options received. */
|
|
831
831
|
type ModuleOptionsCustom = Record<string, any>;
|