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/{chunk-QUCK3IU2.js → chunk-NU52P7HA.js} +6 -3
- package/dist/{chunk-QUCK3IU2.js.map → chunk-NU52P7HA.js.map} +1 -1
- package/dist/{chunk-VMJPNYAG.js → chunk-OOKZ6S64.js} +2 -2
- package/dist/{chunk-VMJPNYAG.js.map → chunk-OOKZ6S64.js.map} +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/node.cjs +5 -4
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-6FKD2UEU.js → replay-UQP2XXBZ.js} +3 -5
- package/dist/replay-UQP2XXBZ.js.map +1 -0
- package/package.json +1 -1
- package/dist/replay-6FKD2UEU.js.map +0 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
BitfabOpenAITracingProcessor,
|
|
7
7
|
getCurrentSpan,
|
|
8
8
|
getCurrentTrace
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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
|
-
|
|
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
|
}
|