@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.
@@ -16,7 +16,7 @@ import {
16
16
  toJsonSafe,
17
17
  toJsonSafeReport,
18
18
  warnOnce
19
- } from "./chunk-VUYTATF5.js";
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-P35CUNGH.js");
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-OCJSHTJR.js.map
3629
+ //# sourceMappingURL=chunk-XAQJOZMJ.js.map