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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.37.3";
4
+ const version = "0.37.4";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -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 returnNull = false;
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
- returnNull
548
+ earlyReturnValue
549
549
  });
550
- if (returnNull !== false) ;
550
+ if (earlyReturnValue !== false) ;
551
551
  const cacheData = await cachePromise;
552
552
  await beforeHookPromise;
553
553
  if (cacheData?.success) {
@@ -825,7 +825,7 @@ type ModuleHookContext = Readonly<{
825
825
  error?: Error;
826
826
  success?: boolean;
827
827
  cached?: boolean;
828
- returnNull?: null | undefined | false;
828
+ earlyReturnValue?: null | undefined | false;
829
829
  }>;
830
830
  /** The options received. */
831
831
  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.3",
4
+ "version": "0.37.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {