@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
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
toJsonSafe,
|
|
17
17
|
toJsonSafeReport,
|
|
18
18
|
warnOnce
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VOUV7ZTS.js";
|
|
20
20
|
|
|
21
21
|
// src/processorPayload.ts
|
|
22
22
|
var SERIALIZATION_DEGRADED_STEP = "serialization_degraded";
|
|
@@ -3051,7 +3051,12 @@ var Bitfab = class {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
}
|
|
3053
3053
|
const shouldMock = replayCtxForMock.mockStrategy === "all" || replayCtxForMock.mockStrategy === "marked" && options.mockOnReplay === true;
|
|
3054
|
-
if (shouldMock && mockSpan) {
|
|
3054
|
+
if (shouldMock && !mockSpan) {
|
|
3055
|
+
throw new BitfabError(
|
|
3056
|
+
`Replay selected span "${traceFunctionKey}:${baseSpanParams.spanName}" for mocking, but recorded occurrence ${callIndex + 1} is unavailable. The real span was not executed.`
|
|
3057
|
+
);
|
|
3058
|
+
}
|
|
3059
|
+
if (shouldMock) {
|
|
3055
3060
|
const recorded = resolveRecordedOutput();
|
|
3056
3061
|
if (recorded instanceof Promise) {
|
|
3057
3062
|
return emitMockAsync(recorded, "recorded");
|
|
@@ -3383,7 +3388,7 @@ var Bitfab = class {
|
|
|
3383
3388
|
`Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
|
|
3384
3389
|
);
|
|
3385
3390
|
}
|
|
3386
|
-
const { replay: doReplay } = await import("./replay-
|
|
3391
|
+
const { replay: doReplay } = await import("./replay-WHZFV6OB.js");
|
|
3387
3392
|
return doReplay(
|
|
3388
3393
|
this.httpClient,
|
|
3389
3394
|
this.serviceUrl,
|
|
@@ -3621,4 +3626,4 @@ export {
|
|
|
3621
3626
|
BitfabFunction,
|
|
3622
3627
|
finalizers
|
|
3623
3628
|
};
|
|
3624
|
-
//# sourceMappingURL=chunk-
|
|
3629
|
+
//# sourceMappingURL=chunk-XAQJOZMJ.js.map
|