@mastra/temporal 0.4.17-alpha.8 → 0.4.17
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/worker.cjs +6 -4
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.js +5 -3
- package/dist/worker.js.map +1 -1
- package/package.json +5 -5
package/dist/worker.cjs
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
@@ -423,7 +423,7 @@ function hasLocalMastraBinding(ast) {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
function createTemporalActivitiesHelperStatements(mastraImportPath, hasMastraBinding, requestContextClassName) {
|
|
426
|
-
|
|
426
|
+
const helperSource = `
|
|
427
427
|
function withRequestContext(params) {
|
|
428
428
|
const { requestContext, initData, ...rest } = params;
|
|
429
429
|
return {
|
|
@@ -453,7 +453,8 @@ function createTemporalActivitiesHelperStatements(mastraImportPath, hasMastraBin
|
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
`}
|
|
456
|
-
|
|
456
|
+
`;
|
|
457
|
+
return (0, _babel_parser.parse)(helperSource, {
|
|
457
458
|
sourceType: "module",
|
|
458
459
|
plugins: parserPlugins
|
|
459
460
|
}).program.body;
|
|
@@ -701,7 +702,8 @@ function getWorkflowIdMetadata(workflowConfig, workflowName, filePath) {
|
|
|
701
702
|
* which keeps fixture output stable under Vitest/Vite instrumentation.
|
|
702
703
|
*/
|
|
703
704
|
function createTemporalWorkflowHelperStatements() {
|
|
704
|
-
|
|
705
|
+
const temporalWorkflowRuntimeSource = (0, fs.readFileSync)(new URL("./temporal-workflow-runtime.mjs", require("url").pathToFileURL(__filename).href), "utf8");
|
|
706
|
+
return (0, _babel_parser.parse)(temporalWorkflowRuntimeSource, {
|
|
705
707
|
sourceType: "module",
|
|
706
708
|
plugins: parserPlugins
|
|
707
709
|
}).program.body.flatMap((statement) => {
|