silgi 0.37.5 → 0.37.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.37.5";
4
+ const version = "0.37.7";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -547,9 +547,9 @@ async function orchestrate(route, event) {
547
547
  route,
548
548
  earlyReturnValue
549
549
  });
550
- if (earlyReturnValue !== false) ;
551
550
  const cacheData = await cachePromise;
552
551
  await beforeHookPromise;
552
+ if (earlyReturnValue !== false) ;
553
553
  if (cacheData?.success) {
554
554
  await silgiCtx.callHook("fetch:after", {
555
555
  event,
@@ -826,7 +826,7 @@ type ModuleHookContext = Readonly<{
826
826
  success?: boolean;
827
827
  cached?: boolean;
828
828
  }> & {
829
- earlyReturnValue?: null | undefined | false;
829
+ earlyReturnValue?: any | false;
830
830
  };
831
831
  /** The options received. */
832
832
  type ModuleOptionsCustom = Record<string, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.37.5",
4
+ "version": "0.37.7",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {