@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.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
|
@@ -324,9 +324,12 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
if (options?.limit !== void 0 && options?.traceIds !== void 0) {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
327
|
+
try {
|
|
328
|
+
console.warn(
|
|
329
|
+
"Bitfab: limit is ignored when traceIds is passed: the explicit trace ID list already determines how many traces replay."
|
|
330
|
+
);
|
|
331
|
+
} catch {
|
|
332
|
+
}
|
|
330
333
|
}
|
|
331
334
|
await replayContextReady;
|
|
332
335
|
const {
|
|
@@ -443,7 +446,7 @@ registerAsyncLocalStorageClass(
|
|
|
443
446
|
);
|
|
444
447
|
|
|
445
448
|
// src/version.generated.ts
|
|
446
|
-
var __version__ = "0.16.
|
|
449
|
+
var __version__ = "0.16.1";
|
|
447
450
|
|
|
448
451
|
// src/constants.ts
|
|
449
452
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3233,9 +3236,9 @@ var Bitfab = class {
|
|
|
3233
3236
|
*
|
|
3234
3237
|
* @param traceFunctionKey - The trace function key to replay
|
|
3235
3238
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
3236
|
-
* @param options - Optional replay options.
|
|
3237
|
-
*
|
|
3238
|
-
*
|
|
3239
|
+
* @param options - Optional replay options. When `traceIds` is passed,
|
|
3240
|
+
* `limit` is ignored (with a warning): an explicit ID list already
|
|
3241
|
+
* determines how many traces replay.
|
|
3239
3242
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
3240
3243
|
*/
|
|
3241
3244
|
async replay(traceFunctionKey, fn, options) {
|