silgi 0.7.31 → 0.7.32

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,4 +1,4 @@
1
- const version = "0.7.31";
1
+ const version = "0.7.32";
2
2
  const packageJson = {
3
3
  version: version};
4
4
 
@@ -637,6 +637,9 @@ async function execute(uriString, input, event, source) {
637
637
  result,
638
638
  source
639
639
  });
640
+ if (result === null || result === void 0) {
641
+ return result;
642
+ }
640
643
  const cacheData = await cacheExecute(input, operation, handler, event);
641
644
  if (cacheData?.success) {
642
645
  result = cacheData.data;
@@ -1,3 +1,3 @@
1
- const version = "0.7.31";
1
+ const version = "0.7.32";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "0.7.31";
1
+ const version = "0.7.32";
2
2
 
3
3
  export { version };
@@ -466,18 +466,19 @@ interface ResolvedModuleMeta extends ModuleMeta {
466
466
  configKey: string;
467
467
  name: string;
468
468
  }
469
- type ModuleHookContext = Readonly<{
470
- event?: SilgiEvents;
471
- operation?: SilgiOperation;
469
+ interface ModuleHookContext {
470
+ event?: Readonly<SilgiEvents>;
471
+ operation?: Readonly<SilgiOperation>;
472
472
  input?: unknown;
473
473
  source?: any;
474
474
  result?: unknown;
475
- modules?: SilgiRuntimeActions;
475
+ modules?: Readonly<SilgiRuntimeActions>;
476
476
  timestamp?: number;
477
477
  meta?: Record<string, unknown>;
478
478
  error?: Error;
479
479
  success?: boolean;
480
- }>;
480
+ cached?: boolean;
481
+ }
481
482
  /** The options received. */
482
483
  type ModuleOptionsCustom = Record<string, any>;
483
484
  type Prettify<T> = {
@@ -466,18 +466,19 @@ interface ResolvedModuleMeta extends ModuleMeta {
466
466
  configKey: string;
467
467
  name: string;
468
468
  }
469
- type ModuleHookContext = Readonly<{
470
- event?: SilgiEvents;
471
- operation?: SilgiOperation;
469
+ interface ModuleHookContext {
470
+ event?: Readonly<SilgiEvents>;
471
+ operation?: Readonly<SilgiOperation>;
472
472
  input?: unknown;
473
473
  source?: any;
474
474
  result?: unknown;
475
- modules?: SilgiRuntimeActions;
475
+ modules?: Readonly<SilgiRuntimeActions>;
476
476
  timestamp?: number;
477
477
  meta?: Record<string, unknown>;
478
478
  error?: Error;
479
479
  success?: boolean;
480
- }>;
480
+ cached?: boolean;
481
+ }
481
482
  /** The options received. */
482
483
  type ModuleOptionsCustom = Record<string, any>;
483
484
  type Prettify<T> = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.7.31",
4
+ "version": "0.7.32",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {