@bitfab/sdk 0.36.12 → 0.36.13
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-VUYTATF5.js → chunk-VOUV7ZTS.js} +8 -11
- package/dist/chunk-VOUV7ZTS.js.map +1 -0
- package/dist/{chunk-OCJSHTJR.js → chunk-XAQJOZMJ.js} +9 -4
- package/dist/{chunk-OCJSHTJR.js.map → chunk-XAQJOZMJ.js.map} +1 -1
- package/dist/index.cjs +13 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -14
- package/dist/index.d.ts +20 -14
- package/dist/index.js +2 -2
- package/dist/node.cjs +13 -11
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-P35CUNGH.js → replay-WHZFV6OB.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-VUYTATF5.js.map +0 -1
- /package/dist/{replay-P35CUNGH.js.map → replay-WHZFV6OB.js.map} +0 -0
|
@@ -314,7 +314,7 @@ function encodeRequestBody(body) {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
// src/version.generated.ts
|
|
317
|
-
var __version__ = "0.36.
|
|
317
|
+
var __version__ = "0.36.13";
|
|
318
318
|
|
|
319
319
|
// src/constants.ts
|
|
320
320
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -2446,20 +2446,17 @@ async function processItem(httpClient, serverItem, fn, testRunId, mockStrategy,
|
|
|
2446
2446
|
includeOutputs,
|
|
2447
2447
|
includeRootOutput: false
|
|
2448
2448
|
});
|
|
2449
|
-
if (treeResponse.root) {
|
|
2450
|
-
mockTree = buildMockTree(treeResponse.root);
|
|
2451
|
-
} else if (mockStrategy === "all" || hasOverrides) {
|
|
2449
|
+
if (!treeResponse.root) {
|
|
2452
2450
|
throw new BitfabError(
|
|
2453
2451
|
`Replay mock strategy "${mockStrategy}"${hasOverrides ? " with overrides" : ""} requires a span tree root for original span ${originalSpanId}.`
|
|
2454
2452
|
);
|
|
2455
|
-
} else {
|
|
2456
|
-
mockTree = void 0;
|
|
2457
2453
|
}
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2454
|
+
mockTree = buildMockTree(treeResponse.root);
|
|
2455
|
+
} catch (error2) {
|
|
2456
|
+
if (mockStrategy !== "marked" || hasOverrides) {
|
|
2457
|
+
throw error2;
|
|
2461
2458
|
}
|
|
2462
|
-
mockTree =
|
|
2459
|
+
mockTree = { spans: /* @__PURE__ */ new Map() };
|
|
2463
2460
|
}
|
|
2464
2461
|
}
|
|
2465
2462
|
const outputCache = /* @__PURE__ */ new Map();
|
|
@@ -2933,4 +2930,4 @@ export {
|
|
|
2933
2930
|
sleepForReplayPersistence,
|
|
2934
2931
|
replay
|
|
2935
2932
|
};
|
|
2936
|
-
//# sourceMappingURL=chunk-
|
|
2933
|
+
//# sourceMappingURL=chunk-VOUV7ZTS.js.map
|