@bitfab/sdk 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
|
@@ -317,9 +317,12 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
if (options?.limit !== void 0 && options?.traceIds !== void 0) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
try {
|
|
321
|
+
console.warn(
|
|
322
|
+
"Bitfab: limit is ignored when traceIds is passed: the explicit trace ID list already determines how many traces replay."
|
|
323
|
+
);
|
|
324
|
+
} catch {
|
|
325
|
+
}
|
|
323
326
|
}
|
|
324
327
|
await replayContextReady;
|
|
325
328
|
const {
|
|
@@ -429,7 +432,7 @@ __export(index_exports, {
|
|
|
429
432
|
module.exports = __toCommonJS(index_exports);
|
|
430
433
|
|
|
431
434
|
// src/version.generated.ts
|
|
432
|
-
var __version__ = "0.16.
|
|
435
|
+
var __version__ = "0.16.1";
|
|
433
436
|
|
|
434
437
|
// src/constants.ts
|
|
435
438
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3219,9 +3222,9 @@ var Bitfab = class {
|
|
|
3219
3222
|
*
|
|
3220
3223
|
* @param traceFunctionKey - The trace function key to replay
|
|
3221
3224
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
3222
|
-
* @param options - Optional replay options.
|
|
3223
|
-
*
|
|
3224
|
-
*
|
|
3225
|
+
* @param options - Optional replay options. When `traceIds` is passed,
|
|
3226
|
+
* `limit` is ignored (with a warning): an explicit ID list already
|
|
3227
|
+
* determines how many traces replay.
|
|
3225
3228
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
3226
3229
|
*/
|
|
3227
3230
|
async replay(traceFunctionKey, fn, options) {
|