silgi 0.7.30 → 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.
package/dist/_chunks/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -453,8 +453,8 @@ async function findAction(silgi, uri) {
|
|
|
453
453
|
if (result && Object.prototype.hasOwnProperty.call(result, part)) {
|
|
454
454
|
result = Object.assign({}, result[part]);
|
|
455
455
|
} else {
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
silgi.logger.fail("Action not found:", `${parts.join("/")}`);
|
|
457
|
+
continue;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
return result;
|
|
@@ -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;
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -466,18 +466,19 @@ interface ResolvedModuleMeta extends ModuleMeta {
|
|
|
466
466
|
configKey: string;
|
|
467
467
|
name: string;
|
|
468
468
|
}
|
|
469
|
-
|
|
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/dist/types/index.d.ts
CHANGED
|
@@ -466,18 +466,19 @@ interface ResolvedModuleMeta extends ModuleMeta {
|
|
|
466
466
|
configKey: string;
|
|
467
467
|
name: string;
|
|
468
468
|
}
|
|
469
|
-
|
|
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> = {
|