@mastra/temporal 0.2.8-alpha.3 → 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/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.isTSExpressionWithTypeArguments(parent)) {
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 transformedSource;
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
  ]