@bitfab/sdk 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
|
@@ -683,7 +683,7 @@ __export(index_exports, {
|
|
|
683
683
|
module.exports = __toCommonJS(index_exports);
|
|
684
684
|
|
|
685
685
|
// src/version.generated.ts
|
|
686
|
-
var __version__ = "0.28.
|
|
686
|
+
var __version__ = "0.28.10";
|
|
687
687
|
|
|
688
688
|
// src/constants.ts
|
|
689
689
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -3129,8 +3129,11 @@ init_warnOnce();
|
|
|
3129
3129
|
var activeTraceStates = /* @__PURE__ */ new Map();
|
|
3130
3130
|
var pendingSpanPromises = /* @__PURE__ */ new Map();
|
|
3131
3131
|
var asyncLocalStorage = null;
|
|
3132
|
+
var initializeAsyncContext = () => {
|
|
3133
|
+
asyncLocalStorage ?? (asyncLocalStorage = createAsyncLocalStorage());
|
|
3134
|
+
};
|
|
3132
3135
|
var asyncLocalStorageReady = asyncStorageReady.then(() => {
|
|
3133
|
-
|
|
3136
|
+
initializeAsyncContext();
|
|
3134
3137
|
});
|
|
3135
3138
|
var browserSpanStack = [];
|
|
3136
3139
|
function getSpanStack() {
|
|
@@ -3899,6 +3902,7 @@ var Bitfab = class {
|
|
|
3899
3902
|
if (!self.isTracingEnabled()) {
|
|
3900
3903
|
return fn.apply(this, args);
|
|
3901
3904
|
}
|
|
3905
|
+
initializeAsyncContext();
|
|
3902
3906
|
if (!asyncLocalStorage && !isAsyncStorageInitDone()) {
|
|
3903
3907
|
return asyncLocalStorageReady.then(
|
|
3904
3908
|
() => wrappedFn.apply(this, args)
|