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.
package/dist/index.d.cts CHANGED
@@ -822,7 +822,7 @@ declare class BitfabFunction {
822
822
  /**
823
823
  * SDK version from package.json (injected at build time)
824
824
  */
825
- declare const __version__ = "0.12.0";
825
+ declare const __version__ = "0.12.1";
826
826
 
827
827
  /**
828
828
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -822,7 +822,7 @@ declare class BitfabFunction {
822
822
  /**
823
823
  * SDK version from package.json (injected at build time)
824
824
  */
825
- declare const __version__ = "0.12.0";
825
+ declare const __version__ = "0.12.1";
826
826
 
827
827
  /**
828
828
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -6,13 +6,13 @@ import {
6
6
  BitfabOpenAITracingProcessor,
7
7
  getCurrentSpan,
8
8
  getCurrentTrace
9
- } from "./chunk-QUCK3IU2.js";
9
+ } from "./chunk-NU52P7HA.js";
10
10
  import {
11
11
  BitfabError,
12
12
  DEFAULT_SERVICE_URL,
13
13
  __version__,
14
14
  flushTraces
15
- } from "./chunk-VMJPNYAG.js";
15
+ } from "./chunk-OOKZ6S64.js";
16
16
  export {
17
17
  Bitfab,
18
18
  BitfabClaudeAgentHandler,
package/dist/node.cjs CHANGED
@@ -81,7 +81,7 @@ var __version__;
81
81
  var init_version_generated = __esm({
82
82
  "src/version.generated.ts"() {
83
83
  "use strict";
84
- __version__ = "0.12.0";
84
+ __version__ = "0.12.1";
85
85
  }
86
86
  });
87
87
 
@@ -485,9 +485,7 @@ function buildMockTree(rootNode) {
485
485
  walk(child);
486
486
  }
487
487
  }
488
- for (const child of rootNode.children) {
489
- walk(child);
490
- }
488
+ walk(rootNode);
491
489
  return { spans };
492
490
  }
493
491
  async function processItem(httpClient, serverItem, fn, testRunId, mockStrategy) {
@@ -2725,6 +2723,9 @@ var Bitfab = class {
2725
2723
  });
2726
2724
  }
2727
2725
  void sendSpan({ result: output });
2726
+ if (fn.constructor.name === "AsyncFunction") {
2727
+ return Promise.resolve(output);
2728
+ }
2728
2729
  return output;
2729
2730
  }
2730
2731
  }