@bitfab/sdk 0.38.9 → 0.38.10

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
@@ -2209,6 +2209,12 @@ interface TraceOptions {
2209
2209
  name?: string;
2210
2210
  /** Root span type. Descendants are always `function` spans. */
2211
2211
  type?: SpanType;
2212
+ /**
2213
+ * Default replay-mocking policy for automatically captured descendants.
2214
+ * When true, those descendants are mocked by the default "marked" strategy
2215
+ * unless a node explicitly sets `mockOnReplay: false`. Defaults to false.
2216
+ */
2217
+ mockOnReplayDefault?: boolean;
2212
2218
  /** Maximum number of recorded descendant levels. Defaults to 30. */
2213
2219
  maxDepth?: number;
2214
2220
  /** Maximum descendant spans recorded per root invocation. Defaults to 500. */
@@ -2885,7 +2891,7 @@ declare class BitfabFunction {
2885
2891
  /**
2886
2892
  * SDK version from package.json (injected at build time)
2887
2893
  */
2888
- declare const __version__ = "0.38.9";
2894
+ declare const __version__ = "0.38.10";
2889
2895
 
2890
2896
  /**
2891
2897
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -2209,6 +2209,12 @@ interface TraceOptions {
2209
2209
  name?: string;
2210
2210
  /** Root span type. Descendants are always `function` spans. */
2211
2211
  type?: SpanType;
2212
+ /**
2213
+ * Default replay-mocking policy for automatically captured descendants.
2214
+ * When true, those descendants are mocked by the default "marked" strategy
2215
+ * unless a node explicitly sets `mockOnReplay: false`. Defaults to false.
2216
+ */
2217
+ mockOnReplayDefault?: boolean;
2212
2218
  /** Maximum number of recorded descendant levels. Defaults to 30. */
2213
2219
  maxDepth?: number;
2214
2220
  /** Maximum descendant spans recorded per root invocation. Defaults to 500. */
@@ -2885,7 +2891,7 @@ declare class BitfabFunction {
2885
2891
  /**
2886
2892
  * SDK version from package.json (injected at build time)
2887
2893
  */
2888
- declare const __version__ = "0.38.9";
2894
+ declare const __version__ = "0.38.10";
2889
2895
 
2890
2896
  /**
2891
2897
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  getCurrentReplayBranch,
14
14
  getCurrentSpan,
15
15
  getCurrentTrace
16
- } from "./chunk-B4XXAK74.js";
16
+ } from "./chunk-UE4GGPM6.js";
17
17
  import "./chunk-ZUD7OFYB.js";
18
18
  import {
19
19
  BITFAB_PROGRESS_PREFIX,
@@ -27,7 +27,7 @@ import {
27
27
  flushTraces,
28
28
  reportReplayProgress,
29
29
  serializeReplayResult
30
- } from "./chunk-2I5TFNGK.js";
30
+ } from "./chunk-BNOVHUQB.js";
31
31
  import "./chunk-H6LZRFMN.js";
32
32
  export {
33
33
  BITFAB_PROGRESS_PREFIX,
package/dist/node.cjs CHANGED
@@ -88,7 +88,7 @@ var __version__, __packageName__;
88
88
  var init_version_generated = __esm({
89
89
  "src/version.generated.ts"() {
90
90
  "use strict";
91
- __version__ = "0.38.9";
91
+ __version__ = "0.38.10";
92
92
  __packageName__ = "@bitfab/sdk";
93
93
  }
94
94
  });
@@ -6176,6 +6176,7 @@ var Bitfab = class {
6176
6176
  return invokeWithoutNode();
6177
6177
  }
6178
6178
  spansUsed += 1;
6179
+ const mockOnReplay = nodeConfiguration?.mockOnReplay ?? options.mockOnReplayDefault;
6179
6180
  const childOptions = {
6180
6181
  name: nodeConfiguration?.name ?? definition.name,
6181
6182
  type: nodeConfiguration?.type ?? "function",
@@ -6186,8 +6187,8 @@ var Bitfab = class {
6186
6187
  ...nodeConfiguration?.testRunId !== void 0 && {
6187
6188
  testRunId: nodeConfiguration.testRunId
6188
6189
  },
6189
- ...nodeConfiguration?.mockOnReplay !== void 0 && {
6190
- mockOnReplay: nodeConfiguration.mockOnReplay
6190
+ ...mockOnReplay !== void 0 && {
6191
+ mockOnReplay
6191
6192
  },
6192
6193
  ...nodeConfiguration?.finalize !== void 0 && {
6193
6194
  finalize: nodeConfiguration.finalize