@mastra/inngest 0.0.0-vnext-inngest-20250506123700 → 0.0.0-vnext-inngest-20250506132005
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/CHANGELOG.md +2 -2
- package/dist/_tsup-dts-rollup.d.cts +2 -2
- package/dist/_tsup-dts-rollup.d.ts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
- package/src/index.test.ts +278 -168
- package/src/index.ts +2 -2
package/src/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { randomUUID } from 'crypto';
|
|
|
27
27
|
|
|
28
28
|
import { createStep } from '@mastra/core/workflows/vNext';
|
|
29
29
|
|
|
30
|
-
export function serve({ mastra,
|
|
30
|
+
export function serve({ mastra, inngest }: { mastra: Mastra; inngest: Inngest }): ReturnType<typeof inngestServe> {
|
|
31
31
|
const wfs = mastra.vnext_getWorkflows();
|
|
32
32
|
const functions = Object.values(wfs).flatMap(wf => {
|
|
33
33
|
if (wf instanceof InngestWorkflow) {
|
|
@@ -36,7 +36,7 @@ export function serve({ mastra, ingest }: { mastra: Mastra; ingest: Inngest }):
|
|
|
36
36
|
return [];
|
|
37
37
|
});
|
|
38
38
|
return inngestServe({
|
|
39
|
-
client:
|
|
39
|
+
client: inngest,
|
|
40
40
|
functions,
|
|
41
41
|
});
|
|
42
42
|
}
|