bitfab 0.28.9 → 0.28.10
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-VQ4GMKQ7.js → chunk-SK4TNXRC.js} +7 -3
- package/dist/chunk-SK4TNXRC.js.map +1 -0
- package/dist/index.cjs +6 -2
- 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 +1 -1
- package/dist/node.cjs +6 -2
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-VQ4GMKQ7.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -692,7 +692,7 @@ __export(index_exports, {
|
|
|
692
692
|
module.exports = __toCommonJS(index_exports);
|
|
693
693
|
|
|
694
694
|
// src/version.generated.ts
|
|
695
|
-
var __version__ = "0.28.
|
|
695
|
+
var __version__ = "0.28.10";
|
|
696
696
|
|
|
697
697
|
// src/constants.ts
|
|
698
698
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3138,8 +3138,11 @@ init_warnOnce();
|
|
|
3138
3138
|
var activeTraceStates = /* @__PURE__ */ new Map();
|
|
3139
3139
|
var pendingSpanPromises = /* @__PURE__ */ new Map();
|
|
3140
3140
|
var asyncLocalStorage = null;
|
|
3141
|
+
var initializeAsyncContext = () => {
|
|
3142
|
+
asyncLocalStorage ?? (asyncLocalStorage = createAsyncLocalStorage());
|
|
3143
|
+
};
|
|
3141
3144
|
var asyncLocalStorageReady = asyncStorageReady.then(() => {
|
|
3142
|
-
|
|
3145
|
+
initializeAsyncContext();
|
|
3143
3146
|
});
|
|
3144
3147
|
var browserSpanStack = [];
|
|
3145
3148
|
function getSpanStack() {
|
|
@@ -3908,6 +3911,7 @@ var Bitfab = class {
|
|
|
3908
3911
|
if (!self.isTracingEnabled()) {
|
|
3909
3912
|
return fn.apply(this, args);
|
|
3910
3913
|
}
|
|
3914
|
+
initializeAsyncContext();
|
|
3911
3915
|
if (!asyncLocalStorage && !isAsyncStorageInitDone()) {
|
|
3912
3916
|
return asyncLocalStorageReady.then(
|
|
3913
3917
|
() => wrappedFn.apply(this, args)
|