bitfab 0.33.4 → 0.33.6

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.cjs CHANGED
@@ -551,8 +551,11 @@ __export(replay_exports, {
551
551
  replay: () => replay,
552
552
  reportReplayProgress: () => reportReplayProgress
553
553
  });
554
+ function dbBranchEnabled(dbBranch) {
555
+ return dbBranch !== void 0 && dbBranch !== false;
556
+ }
554
557
  function resolveDbBranchSettings(dbBranch) {
555
- if (!dbBranch) {
558
+ if (!dbBranch || dbBranch === true) {
556
559
  return void 0;
557
560
  }
558
561
  const { minCu, maxCu, warmupSql } = dbBranch;
@@ -821,7 +824,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
821
824
  options?.name,
822
825
  codeChangeDescription,
823
826
  codeChangeFiles,
824
- options?.dbBranch !== void 0,
827
+ dbBranchEnabled(options?.dbBranch),
825
828
  // includeDbBranchLease
826
829
  options?.experimentGroupId,
827
830
  options?.datasetId,
@@ -844,7 +847,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
844
847
  mockStrategy,
845
848
  resolvedOverrides,
846
849
  replayedTraceIds[index],
847
- options?.dbBranch !== void 0,
850
+ dbBranchEnabled(options?.dbBranch),
848
851
  resolveDbBranchSettings(options?.dbBranch),
849
852
  options?.adaptInputs
850
853
  )
@@ -1014,7 +1017,7 @@ __export(index_exports, {
1014
1017
  module.exports = __toCommonJS(index_exports);
1015
1018
 
1016
1019
  // src/version.generated.ts
1017
- var __version__ = "0.33.4";
1020
+ var __version__ = "0.33.6";
1018
1021
 
1019
1022
  // src/constants.ts
1020
1023
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";