silgi 0.7.31 → 0.7.33
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 +1 -1
- package/dist/cli/types.mjs +1 -0
- package/dist/core/index.mjs +3 -0
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/types/index.d.mts +6 -5
- package/dist/types/index.d.ts +6 -5
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/types.mjs
CHANGED
|
@@ -634,6 +634,7 @@ async function silgiGenerateType(silgi) {
|
|
|
634
634
|
if (m.entryPath) {
|
|
635
635
|
const directory = getDirectory(m.entryPath);
|
|
636
636
|
acc[`${m.meta.name}/*`] = [`${relativeWithDot(tsconfigDir, directory)}/*`];
|
|
637
|
+
acc[`${m.meta.name}/types`] = [`${relativeWithDot(tsconfigDir, join(directory, "types"))}`];
|
|
637
638
|
}
|
|
638
639
|
return acc;
|
|
639
640
|
}, {})
|
package/dist/core/index.mjs
CHANGED
|
@@ -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> = {
|