bitfab 0.33.4 → 0.33.5
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-HWQB73HK.js → chunk-DPV6PBWE.js} +7 -4
- package/dist/chunk-DPV6PBWE.js.map +1 -0
- package/dist/{chunk-OMW6EFXC.js → chunk-LRWH3H5T.js} +4 -4
- package/dist/{chunk-OMW6EFXC.js.map → chunk-LRWH3H5T.js.map} +1 -1
- package/dist/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +2 -2
- package/dist/node.cjs +7 -4
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-4Y23OZYE.js → replay-SRQI4QMY.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-HWQB73HK.js.map +0 -1
- /package/dist/{replay-4Y23OZYE.js.map → replay-SRQI4QMY.js.map} +0 -0
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
|
|
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
|
|
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.
|
|
1020
|
+
var __version__ = "0.33.5";
|
|
1018
1021
|
|
|
1019
1022
|
// src/constants.ts
|
|
1020
1023
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|