@mastra/temporal 0.2.8-alpha.4 → 0.2.8
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 +107 -0
- package/dist/transforms/activities.d.ts.map +1 -1
- package/dist/transforms/shared.d.ts +1 -1
- package/dist/transforms/shared.d.ts.map +1 -1
- package/dist/worker.cjs +6 -12
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.js +6 -12
- package/dist/worker.js.map +1 -1
- package/package.json +13 -14
package/dist/worker.js
CHANGED
|
@@ -8,16 +8,7 @@ import { parse } from '@babel/parser';
|
|
|
8
8
|
import * as t3 from '@babel/types';
|
|
9
9
|
import { rollup } from 'rollup';
|
|
10
10
|
|
|
11
|
-
var parserPlugins = [
|
|
12
|
-
"typescript",
|
|
13
|
-
"jsx",
|
|
14
|
-
"classProperties",
|
|
15
|
-
"classPrivateProperties",
|
|
16
|
-
"classPrivateMethods",
|
|
17
|
-
"topLevelAwait",
|
|
18
|
-
"importAttributes",
|
|
19
|
-
"decorators-legacy"
|
|
20
|
-
];
|
|
11
|
+
var parserPlugins = ["typescript", "jsx", "decorators-legacy"];
|
|
21
12
|
function parseModule(filePath, sourceText) {
|
|
22
13
|
if (!sourceText) {
|
|
23
14
|
sourceText = readFileSync(filePath, "utf8");
|
|
@@ -267,7 +258,7 @@ function shouldCountIdentifierAsReference(parent, key) {
|
|
|
267
258
|
if (t3.isAssignmentPattern(parent) && key === "left") {
|
|
268
259
|
return false;
|
|
269
260
|
}
|
|
270
|
-
if (t3.isTSPropertySignature(parent) || t3.isTSMethodSignature(parent) || t3.
|
|
261
|
+
if (t3.isTSPropertySignature(parent) || t3.isTSMethodSignature(parent) || t3.isTSInterfaceHeritage(parent)) {
|
|
271
262
|
return false;
|
|
272
263
|
}
|
|
273
264
|
return true;
|
|
@@ -754,7 +745,10 @@ async function buildTemporalActivitiesModule(entryFile, outputDirectory, outputF
|
|
|
754
745
|
const transformedSource = generate(t3.file(t3.program(pruneUnusedTopLevelBindings(statements), [], "module")), {
|
|
755
746
|
sourceMaps: true
|
|
756
747
|
});
|
|
757
|
-
return
|
|
748
|
+
return {
|
|
749
|
+
code: transformedSource.code,
|
|
750
|
+
map: transformedSource.map ? { ...transformedSource.map, file: transformedSource.map.file ?? void 0 } : void 0
|
|
751
|
+
};
|
|
758
752
|
}
|
|
759
753
|
}
|
|
760
754
|
]
|