@bitfab/sdk 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/{chunk-HWQB73HK.js → chunk-DPV6PBWE.js} +7 -4
- package/dist/chunk-DPV6PBWE.js.map +1 -0
- package/dist/{chunk-OMW6EFXC.js → chunk-JANSX65W.js} +4 -4
- package/dist/{chunk-OMW6EFXC.js.map → chunk-JANSX65W.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
|
@@ -542,8 +542,11 @@ __export(replay_exports, {
|
|
|
542
542
|
replay: () => replay,
|
|
543
543
|
reportReplayProgress: () => reportReplayProgress
|
|
544
544
|
});
|
|
545
|
+
function dbBranchEnabled(dbBranch) {
|
|
546
|
+
return dbBranch !== void 0 && dbBranch !== false;
|
|
547
|
+
}
|
|
545
548
|
function resolveDbBranchSettings(dbBranch) {
|
|
546
|
-
if (!dbBranch) {
|
|
549
|
+
if (!dbBranch || dbBranch === true) {
|
|
547
550
|
return void 0;
|
|
548
551
|
}
|
|
549
552
|
const { minCu, maxCu, warmupSql } = dbBranch;
|
|
@@ -812,7 +815,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
812
815
|
options?.name,
|
|
813
816
|
codeChangeDescription,
|
|
814
817
|
codeChangeFiles,
|
|
815
|
-
options?.dbBranch
|
|
818
|
+
dbBranchEnabled(options?.dbBranch),
|
|
816
819
|
// includeDbBranchLease
|
|
817
820
|
options?.experimentGroupId,
|
|
818
821
|
options?.datasetId,
|
|
@@ -835,7 +838,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
835
838
|
mockStrategy,
|
|
836
839
|
resolvedOverrides,
|
|
837
840
|
replayedTraceIds[index],
|
|
838
|
-
options?.dbBranch
|
|
841
|
+
dbBranchEnabled(options?.dbBranch),
|
|
839
842
|
resolveDbBranchSettings(options?.dbBranch),
|
|
840
843
|
options?.adaptInputs
|
|
841
844
|
)
|
|
@@ -1005,7 +1008,7 @@ __export(index_exports, {
|
|
|
1005
1008
|
module.exports = __toCommonJS(index_exports);
|
|
1006
1009
|
|
|
1007
1010
|
// src/version.generated.ts
|
|
1008
|
-
var __version__ = "0.33.
|
|
1011
|
+
var __version__ = "0.33.6";
|
|
1009
1012
|
|
|
1010
1013
|
// src/constants.ts
|
|
1011
1014
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|