bitfab 0.58.4 → 0.58.5
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/autoTrace.cjs +50 -4
- package/dist/autoTrace.cjs.map +1 -1
- package/dist/autoTrace.d.cts +2 -1
- package/dist/autoTrace.d.ts +2 -1
- package/dist/autoTrace.js +4 -2
- package/dist/{chunk-KADON3SF.js → chunk-7SPNHC33.js} +6 -21
- package/dist/chunk-7SPNHC33.js.map +1 -0
- package/dist/{chunk-VCRFFCLY.js → chunk-BAOIRE5T.js} +20 -2
- package/dist/chunk-BAOIRE5T.js.map +1 -0
- package/dist/{chunk-RCHSYWKI.js → chunk-ETZUSSF6.js} +38 -8
- package/dist/chunk-ETZUSSF6.js.map +1 -0
- package/dist/{chunk-UOW7VDNB.js → chunk-OTQA6MCF.js} +3 -3
- package/dist/{chunk-32ZY3DYR.js → chunk-QIBFNIIF.js} +2 -2
- package/dist/{chunk-32ZY3DYR.js.map → chunk-QIBFNIIF.js.map} +1 -1
- package/dist/{chunk-NSD5YKCE.js → chunk-TAEWAXPA.js} +6 -6
- package/dist/{chunk-IVF7JQHF.js → chunk-UYAQRSCB.js} +11 -11
- package/dist/{http-TIOONTDB.js → http-F6QV3YLY.js} +3 -3
- package/dist/{http-XQGMIDFR.js → http-XDKEIZNV.js} +2 -2
- package/dist/index.cjs +26 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/node.cjs +26 -5
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +5 -5
- package/dist/{replay-CUHT4GUT.js → replay-WLJFWS6T.js} +4 -4
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-KADON3SF.js.map +0 -1
- package/dist/chunk-RCHSYWKI.js.map +0 -1
- package/dist/chunk-VCRFFCLY.js.map +0 -1
- /package/dist/{chunk-UOW7VDNB.js.map → chunk-OTQA6MCF.js.map} +0 -0
- /package/dist/{chunk-NSD5YKCE.js.map → chunk-TAEWAXPA.js.map} +0 -0
- /package/dist/{chunk-IVF7JQHF.js.map → chunk-UYAQRSCB.js.map} +0 -0
- /package/dist/{http-TIOONTDB.js.map → http-F6QV3YLY.js.map} +0 -0
- /package/dist/{http-XQGMIDFR.js.map → http-XDKEIZNV.js.map} +0 -0
- /package/dist/{replay-CUHT4GUT.js.map → replay-WLJFWS6T.js.map} +0 -0
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
getCurrentTrace,
|
|
32
32
|
reseedFromRegistry,
|
|
33
33
|
seedFromRegistry
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-UYAQRSCB.js";
|
|
35
|
+
import "./chunk-ETZUSSF6.js";
|
|
36
36
|
import {
|
|
37
37
|
BITFAB_PROGRESS_PREFIX,
|
|
38
38
|
DbBranchReplayError,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
ReplayError,
|
|
41
41
|
reportReplayProgress,
|
|
42
42
|
serializeReplayResult
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TAEWAXPA.js";
|
|
44
44
|
import {
|
|
45
45
|
BitfabError,
|
|
46
46
|
DEFAULT_SERVICE_URL,
|
|
@@ -48,8 +48,8 @@ import {
|
|
|
48
48
|
MixedTracingError,
|
|
49
49
|
__version__,
|
|
50
50
|
flushTraces
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-7SPNHC33.js";
|
|
52
|
+
import "./chunk-BAOIRE5T.js";
|
|
53
53
|
export {
|
|
54
54
|
AssertionCategoriesClient,
|
|
55
55
|
BITFAB_PROGRESS_PREFIX,
|
package/dist/node.cjs
CHANGED
|
@@ -97,7 +97,7 @@ var __version__, __packageName__;
|
|
|
97
97
|
var init_version_generated = __esm({
|
|
98
98
|
"src/version.generated.ts"() {
|
|
99
99
|
"use strict";
|
|
100
|
-
__version__ = "0.58.
|
|
100
|
+
__version__ = "0.58.5";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -5120,6 +5120,7 @@ init_asyncStorage();
|
|
|
5120
5120
|
// src/autoTrace.ts
|
|
5121
5121
|
init_asyncStorage();
|
|
5122
5122
|
init_captureSuppression();
|
|
5123
|
+
init_warnOnce();
|
|
5123
5124
|
var autoTraceGlobal = globalThis;
|
|
5124
5125
|
var autoTraceState = autoTraceGlobal.__bitfabAutoTraceStateV4 ?? {
|
|
5125
5126
|
storage: null,
|
|
@@ -5187,6 +5188,26 @@ function runWithAutoTraceNodeConfiguration(nodeConfiguration, fn) {
|
|
|
5187
5188
|
}
|
|
5188
5189
|
return result;
|
|
5189
5190
|
}
|
|
5191
|
+
var SUBTREE_TRACING_DOCS_URL = "https://docs.bitfab.ai/typescript-sdk#experimental-subtree-tracing";
|
|
5192
|
+
function transformInstalled() {
|
|
5193
|
+
return autoTraceGlobal.__bitfab_auto_trace_transformed_v1__ === true;
|
|
5194
|
+
}
|
|
5195
|
+
function runsOnNode() {
|
|
5196
|
+
return typeof process !== "undefined" && Boolean(process.versions?.node);
|
|
5197
|
+
}
|
|
5198
|
+
function closeAutoTraceRoot() {
|
|
5199
|
+
autoTraceState.activeRoots -= 1;
|
|
5200
|
+
}
|
|
5201
|
+
function settleAutoTraceRoot(context) {
|
|
5202
|
+
closeAutoTraceRoot();
|
|
5203
|
+
if (transformInstalled() || !runsOnNode()) {
|
|
5204
|
+
return;
|
|
5205
|
+
}
|
|
5206
|
+
warnOnce(
|
|
5207
|
+
"auto-trace-transform-missing",
|
|
5208
|
+
`trace root "${context.traceFunctionKey}" recorded only its own span. No module in this build was compiled by @bitfab/transform, so calls beneath the root were not discovered. Install @bitfab/transform and add its adapter to the server build: ${SUBTREE_TRACING_DOCS_URL}`
|
|
5209
|
+
);
|
|
5210
|
+
}
|
|
5190
5211
|
function runWithAutoTraceRootContext(context, spanStack, fn) {
|
|
5191
5212
|
autoTraceState.activeRoots += 1;
|
|
5192
5213
|
const entries = [
|
|
@@ -5197,19 +5218,19 @@ function runWithAutoTraceRootContext(context, spanStack, fn) {
|
|
|
5197
5218
|
try {
|
|
5198
5219
|
result = runWithAutoTraceScope({ entries }, fn);
|
|
5199
5220
|
} catch (error) {
|
|
5200
|
-
|
|
5221
|
+
settleAutoTraceRoot(context);
|
|
5201
5222
|
throw error;
|
|
5202
5223
|
}
|
|
5203
5224
|
if (isAutoTraceAsyncGenerator(result)) {
|
|
5204
|
-
|
|
5225
|
+
closeAutoTraceRoot();
|
|
5205
5226
|
return wrapAutoTraceAsyncGenerator(context, spanStack, result);
|
|
5206
5227
|
}
|
|
5207
5228
|
if (result instanceof Promise) {
|
|
5208
5229
|
return result.finally(() => {
|
|
5209
|
-
|
|
5230
|
+
settleAutoTraceRoot(context);
|
|
5210
5231
|
});
|
|
5211
5232
|
}
|
|
5212
|
-
|
|
5233
|
+
settleAutoTraceRoot(context);
|
|
5213
5234
|
return result;
|
|
5214
5235
|
}
|
|
5215
5236
|
function invokeThroughAutoTraceEntries(entries, step, fn) {
|