bitfab 0.12.0 → 0.12.1

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.
@@ -8,7 +8,7 @@ import {
8
8
  getReplayContext,
9
9
  isAsyncStorageInitDone,
10
10
  serializeValue
11
- } from "./chunk-VMJPNYAG.js";
11
+ } from "./chunk-OOKZ6S64.js";
12
12
 
13
13
  // src/claudeAgentSdk.ts
14
14
  function nowIso() {
@@ -2107,6 +2107,9 @@ var Bitfab = class {
2107
2107
  });
2108
2108
  }
2109
2109
  void sendSpan({ result: output });
2110
+ if (fn.constructor.name === "AsyncFunction") {
2111
+ return Promise.resolve(output);
2112
+ }
2110
2113
  return output;
2111
2114
  }
2112
2115
  }
@@ -2252,7 +2255,7 @@ var Bitfab = class {
2252
2255
  * @returns ReplayResult with items, testRunId, and testRunUrl
2253
2256
  */
2254
2257
  async replay(traceFunctionKey, fn, options) {
2255
- const { replay: doReplay } = await import("./replay-6FKD2UEU.js");
2258
+ const { replay: doReplay } = await import("./replay-UQP2XXBZ.js");
2256
2259
  return doReplay(
2257
2260
  this.httpClient,
2258
2261
  this.serviceUrl,
@@ -2320,4 +2323,4 @@ export {
2320
2323
  Bitfab,
2321
2324
  BitfabFunction
2322
2325
  };
2323
- //# sourceMappingURL=chunk-QUCK3IU2.js.map
2326
+ //# sourceMappingURL=chunk-NU52P7HA.js.map