bitfab 0.16.0 → 0.16.1
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-53G5GR7B.js → chunk-P4WFJ5O3.js} +6 -6
- package/dist/{chunk-53G5GR7B.js.map → chunk-P4WFJ5O3.js.map} +1 -1
- package/dist/index.cjs +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/node.cjs +10 -7
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -1
- package/dist/{replay-WIBKB3BK.js → replay-BIPIDXX6.js} +7 -4
- package/dist/replay-BIPIDXX6.js.map +1 -0
- package/package.json +1 -1
- package/dist/replay-WIBKB3BK.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -326,9 +326,12 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
if (options?.limit !== void 0 && options?.traceIds !== void 0) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
try {
|
|
330
|
+
console.warn(
|
|
331
|
+
"Bitfab: limit is ignored when traceIds is passed: the explicit trace ID list already determines how many traces replay."
|
|
332
|
+
);
|
|
333
|
+
} catch {
|
|
334
|
+
}
|
|
332
335
|
}
|
|
333
336
|
await replayContextReady;
|
|
334
337
|
const {
|
|
@@ -438,7 +441,7 @@ __export(index_exports, {
|
|
|
438
441
|
module.exports = __toCommonJS(index_exports);
|
|
439
442
|
|
|
440
443
|
// src/version.generated.ts
|
|
441
|
-
var __version__ = "0.16.
|
|
444
|
+
var __version__ = "0.16.1";
|
|
442
445
|
|
|
443
446
|
// src/constants.ts
|
|
444
447
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3228,9 +3231,9 @@ var Bitfab = class {
|
|
|
3228
3231
|
*
|
|
3229
3232
|
* @param traceFunctionKey - The trace function key to replay
|
|
3230
3233
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
3231
|
-
* @param options - Optional replay options.
|
|
3232
|
-
*
|
|
3233
|
-
*
|
|
3234
|
+
* @param options - Optional replay options. When `traceIds` is passed,
|
|
3235
|
+
* `limit` is ignored (with a warning): an explicit ID list already
|
|
3236
|
+
* determines how many traces replay.
|
|
3234
3237
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
3235
3238
|
*/
|
|
3236
3239
|
async replay(traceFunctionKey, fn, options) {
|