bitfab 0.59.1 → 0.60.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-4F46OBRG.js → chunk-3UITH7F7.js} +3 -3
- package/dist/{chunk-GJCZABUC.js → chunk-BIDUQ6J7.js} +2 -2
- package/dist/{chunk-GJCZABUC.js.map → chunk-BIDUQ6J7.js.map} +1 -1
- package/dist/{chunk-NVOQ7YMI.js → chunk-EKTLX7JA.js} +6 -18
- package/dist/chunk-EKTLX7JA.js.map +1 -0
- package/dist/{chunk-3D5EEY47.js → chunk-GXLULQMK.js} +2 -2
- package/dist/{chunk-5MN6WIMW.js → chunk-RTPESK63.js} +2 -2
- package/dist/{chunk-5MN6WIMW.js.map → chunk-RTPESK63.js.map} +1 -1
- package/dist/{http-OXKVRA3E.js → http-7DMH2R6R.js} +2 -2
- package/dist/{http-2QEMP27E.js → http-DLZLN7UU.js} +2 -2
- package/dist/index.cjs +1 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +3 -3
- package/dist/node.cjs +1 -13
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-WYPFFXSU.js → replay-T6UBBOVN.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-NVOQ7YMI.js.map +0 -1
- /package/dist/{chunk-4F46OBRG.js.map → chunk-3UITH7F7.js.map} +0 -0
- /package/dist/{chunk-3D5EEY47.js.map → chunk-GXLULQMK.js.map} +0 -0
- /package/dist/{http-2QEMP27E.js.map → http-7DMH2R6R.js.map} +0 -0
- /package/dist/{http-OXKVRA3E.js.map → http-DLZLN7UU.js.map} +0 -0
- /package/dist/{replay-WYPFFXSU.js.map → replay-T6UBBOVN.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
serializeValue,
|
|
18
18
|
toJsonSafe,
|
|
19
19
|
toJsonSafeReport
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GXLULQMK.js";
|
|
21
21
|
import {
|
|
22
22
|
BitfabError,
|
|
23
23
|
CONTENT_OFF_KEY,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
readEnv,
|
|
37
37
|
recordCallerTraceMetadata,
|
|
38
38
|
retireTraceMetadata
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BIDUQ6J7.js";
|
|
40
40
|
import {
|
|
41
41
|
__privateAdd,
|
|
42
42
|
__privateGet,
|
|
@@ -5732,9 +5732,6 @@ var Bitfab = class {
|
|
|
5732
5732
|
return {
|
|
5733
5733
|
traceId,
|
|
5734
5734
|
addContext: (context) => {
|
|
5735
|
-
if (!this.shouldRecord()) {
|
|
5736
|
-
return Promise.resolve();
|
|
5737
|
-
}
|
|
5738
5735
|
if (typeof context !== "object" || context === null) {
|
|
5739
5736
|
return Promise.resolve();
|
|
5740
5737
|
}
|
|
@@ -5743,27 +5740,18 @@ var Bitfab = class {
|
|
|
5743
5740
|
});
|
|
5744
5741
|
},
|
|
5745
5742
|
setMetadata: (metadata) => {
|
|
5746
|
-
if (!this.shouldRecord()) {
|
|
5747
|
-
return Promise.resolve();
|
|
5748
|
-
}
|
|
5749
5743
|
if (typeof metadata !== "object" || metadata === null) {
|
|
5750
5744
|
return Promise.resolve();
|
|
5751
5745
|
}
|
|
5752
5746
|
return this.httpClient.patchTrace(traceId, { mergeMetadata: metadata });
|
|
5753
5747
|
},
|
|
5754
5748
|
setSessionId: (sessionId) => {
|
|
5755
|
-
if (!this.shouldRecord()) {
|
|
5756
|
-
return Promise.resolve();
|
|
5757
|
-
}
|
|
5758
5749
|
if (typeof sessionId !== "string" || sessionId.length === 0) {
|
|
5759
5750
|
return Promise.resolve();
|
|
5760
5751
|
}
|
|
5761
5752
|
return this.httpClient.patchTrace(traceId, { setSessionId: sessionId });
|
|
5762
5753
|
},
|
|
5763
5754
|
setName: (name) => {
|
|
5764
|
-
if (!this.shouldRecord()) {
|
|
5765
|
-
return Promise.resolve();
|
|
5766
|
-
}
|
|
5767
5755
|
if (typeof name !== "string" || name.length === 0) {
|
|
5768
5756
|
return Promise.resolve();
|
|
5769
5757
|
}
|
|
@@ -6147,7 +6135,7 @@ var Bitfab = class {
|
|
|
6147
6135
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6148
6136
|
} finally {
|
|
6149
6137
|
try {
|
|
6150
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6138
|
+
const { flushTraces: flushTraces2 } = await import("./http-DLZLN7UU.js");
|
|
6151
6139
|
await flushTraces2(3e4);
|
|
6152
6140
|
} finally {
|
|
6153
6141
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6206,7 +6194,7 @@ var Bitfab = class {
|
|
|
6206
6194
|
`Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
|
|
6207
6195
|
);
|
|
6208
6196
|
}
|
|
6209
|
-
const { replay: doReplay } = await import("./replay-
|
|
6197
|
+
const { replay: doReplay } = await import("./replay-T6UBBOVN.js");
|
|
6210
6198
|
return doReplay(
|
|
6211
6199
|
this.httpClient,
|
|
6212
6200
|
this.serviceUrl,
|
|
@@ -6526,7 +6514,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6526
6514
|
sessionId: seedCase.sessionId
|
|
6527
6515
|
})
|
|
6528
6516
|
);
|
|
6529
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6517
|
+
const { flushTraces: flushTraces2 } = await import("./http-DLZLN7UU.js");
|
|
6530
6518
|
await flushTraces2(3e4);
|
|
6531
6519
|
return { pipeline, traceFunctionKey, traceIds };
|
|
6532
6520
|
}
|
|
@@ -6570,4 +6558,4 @@ export {
|
|
|
6570
6558
|
reseedFromRegistry,
|
|
6571
6559
|
seedFromRegistry
|
|
6572
6560
|
};
|
|
6573
|
-
//# sourceMappingURL=chunk-
|
|
6561
|
+
//# sourceMappingURL=chunk-EKTLX7JA.js.map
|