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.d.cts
CHANGED
|
@@ -343,9 +343,9 @@ declare class ReplayEnvironment {
|
|
|
343
343
|
type MockStrategy = "none" | "all" | "marked";
|
|
344
344
|
interface ReplayOptions {
|
|
345
345
|
/**
|
|
346
|
-
* Maximum number of traces to replay (1
|
|
347
|
-
*
|
|
348
|
-
* many traces replay
|
|
346
|
+
* Maximum number of traces to replay (1-100, default 5). Ignored when
|
|
347
|
+
* `traceIds` is passed (with a warning): an explicit ID list already
|
|
348
|
+
* determines how many traces replay.
|
|
349
349
|
*/
|
|
350
350
|
limit?: number;
|
|
351
351
|
/** Optional list of specific trace IDs to replay (max 100). */
|
|
@@ -959,9 +959,9 @@ declare class Bitfab {
|
|
|
959
959
|
*
|
|
960
960
|
* @param traceFunctionKey - The trace function key to replay
|
|
961
961
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
962
|
-
* @param options - Optional replay options.
|
|
963
|
-
*
|
|
964
|
-
*
|
|
962
|
+
* @param options - Optional replay options. When `traceIds` is passed,
|
|
963
|
+
* `limit` is ignored (with a warning): an explicit ID list already
|
|
964
|
+
* determines how many traces replay.
|
|
965
965
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
966
966
|
*/
|
|
967
967
|
replay<TReturn>(traceFunctionKey: string, fn: (...args: any[]) => TReturn | Promise<TReturn>, options?: ReplayOptions): Promise<ReplayResult<TReturn>>;
|
|
@@ -1027,7 +1027,7 @@ declare class BitfabFunction {
|
|
|
1027
1027
|
/**
|
|
1028
1028
|
* SDK version from package.json (injected at build time)
|
|
1029
1029
|
*/
|
|
1030
|
-
declare const __version__ = "0.16.
|
|
1030
|
+
declare const __version__ = "0.16.1";
|
|
1031
1031
|
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -343,9 +343,9 @@ declare class ReplayEnvironment {
|
|
|
343
343
|
type MockStrategy = "none" | "all" | "marked";
|
|
344
344
|
interface ReplayOptions {
|
|
345
345
|
/**
|
|
346
|
-
* Maximum number of traces to replay (1
|
|
347
|
-
*
|
|
348
|
-
* many traces replay
|
|
346
|
+
* Maximum number of traces to replay (1-100, default 5). Ignored when
|
|
347
|
+
* `traceIds` is passed (with a warning): an explicit ID list already
|
|
348
|
+
* determines how many traces replay.
|
|
349
349
|
*/
|
|
350
350
|
limit?: number;
|
|
351
351
|
/** Optional list of specific trace IDs to replay (max 100). */
|
|
@@ -959,9 +959,9 @@ declare class Bitfab {
|
|
|
959
959
|
*
|
|
960
960
|
* @param traceFunctionKey - The trace function key to replay
|
|
961
961
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
962
|
-
* @param options - Optional replay options.
|
|
963
|
-
*
|
|
964
|
-
*
|
|
962
|
+
* @param options - Optional replay options. When `traceIds` is passed,
|
|
963
|
+
* `limit` is ignored (with a warning): an explicit ID list already
|
|
964
|
+
* determines how many traces replay.
|
|
965
965
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
966
966
|
*/
|
|
967
967
|
replay<TReturn>(traceFunctionKey: string, fn: (...args: any[]) => TReturn | Promise<TReturn>, options?: ReplayOptions): Promise<ReplayResult<TReturn>>;
|
|
@@ -1027,7 +1027,7 @@ declare class BitfabFunction {
|
|
|
1027
1027
|
/**
|
|
1028
1028
|
* SDK version from package.json (injected at build time)
|
|
1029
1029
|
*/
|
|
1030
|
-
declare const __version__ = "0.16.
|
|
1030
|
+
declare const __version__ = "0.16.1";
|
|
1031
1031
|
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
package/dist/node.cjs
CHANGED
|
@@ -333,9 +333,12 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
if (options?.limit !== void 0 && options?.traceIds !== void 0) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
336
|
+
try {
|
|
337
|
+
console.warn(
|
|
338
|
+
"Bitfab: limit is ignored when traceIds is passed: the explicit trace ID list already determines how many traces replay."
|
|
339
|
+
);
|
|
340
|
+
} catch {
|
|
341
|
+
}
|
|
339
342
|
}
|
|
340
343
|
await replayContextReady;
|
|
341
344
|
const {
|
|
@@ -452,7 +455,7 @@ registerAsyncLocalStorageClass(
|
|
|
452
455
|
);
|
|
453
456
|
|
|
454
457
|
// src/version.generated.ts
|
|
455
|
-
var __version__ = "0.16.
|
|
458
|
+
var __version__ = "0.16.1";
|
|
456
459
|
|
|
457
460
|
// src/constants.ts
|
|
458
461
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3242,9 +3245,9 @@ var Bitfab = class {
|
|
|
3242
3245
|
*
|
|
3243
3246
|
* @param traceFunctionKey - The trace function key to replay
|
|
3244
3247
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
3245
|
-
* @param options - Optional replay options.
|
|
3246
|
-
*
|
|
3247
|
-
*
|
|
3248
|
+
* @param options - Optional replay options. When `traceIds` is passed,
|
|
3249
|
+
* `limit` is ignored (with a warning): an explicit ID list already
|
|
3250
|
+
* determines how many traces replay.
|
|
3248
3251
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
3249
3252
|
*/
|
|
3250
3253
|
async replay(traceFunctionKey, fn, options) {
|