@bitfab/sdk 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-ZC6TZ2IM.js → chunk-4A4CS6AG.js} +3 -3
- package/dist/{chunk-MK756TJL.js → chunk-AZYUW3CU.js} +2 -2
- package/dist/{chunk-ERS4TBD6.js → chunk-DUTNBVPP.js} +2 -2
- package/dist/{chunk-ERS4TBD6.js.map → chunk-DUTNBVPP.js.map} +1 -1
- package/dist/{chunk-5IQ3KQLI.js → chunk-Q6EHVHYH.js} +2 -2
- package/dist/{chunk-5IQ3KQLI.js.map → chunk-Q6EHVHYH.js.map} +1 -1
- package/dist/{chunk-AYSXJGAZ.js → chunk-XPIWASNP.js} +6 -18
- package/dist/chunk-XPIWASNP.js.map +1 -0
- package/dist/{http-SMGYDRGR.js → http-7TL55CDT.js} +2 -2
- package/dist/{http-JBKOOV7C.js → http-CSXQXDVX.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-OQN464ZF.js → replay-Y6L4GEYS.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-AYSXJGAZ.js.map +0 -1
- /package/dist/{chunk-ZC6TZ2IM.js.map → chunk-4A4CS6AG.js.map} +0 -0
- /package/dist/{chunk-MK756TJL.js.map → chunk-AZYUW3CU.js.map} +0 -0
- /package/dist/{http-JBKOOV7C.js.map → http-7TL55CDT.js.map} +0 -0
- /package/dist/{http-SMGYDRGR.js.map → http-CSXQXDVX.js.map} +0 -0
- /package/dist/{replay-OQN464ZF.js.map → replay-Y6L4GEYS.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
flushTraces,
|
|
8
8
|
parseRetryAfterMs,
|
|
9
9
|
serializePayloadBody
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DUTNBVPP.js";
|
|
11
11
|
export {
|
|
12
12
|
BitfabError,
|
|
13
13
|
HttpClient,
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
parseRetryAfterMs,
|
|
19
19
|
serializePayloadBody
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=http-
|
|
21
|
+
//# sourceMappingURL=http-7TL55CDT.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
flushTraces,
|
|
8
8
|
parseRetryAfterMs,
|
|
9
9
|
serializePayloadBody
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q6EHVHYH.js";
|
|
11
11
|
import "./chunk-BAOIRE5T.js";
|
|
12
12
|
export {
|
|
13
13
|
BitfabError,
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
parseRetryAfterMs,
|
|
20
20
|
serializePayloadBody
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=http-
|
|
22
|
+
//# sourceMappingURL=http-CSXQXDVX.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -42,7 +42,7 @@ var __version__, __packageName__;
|
|
|
42
42
|
var init_version_generated = __esm({
|
|
43
43
|
"src/version.generated.ts"() {
|
|
44
44
|
"use strict";
|
|
45
|
-
__version__ = "0.
|
|
45
|
+
__version__ = "0.60.1";
|
|
46
46
|
__packageName__ = "@bitfab/sdk";
|
|
47
47
|
}
|
|
48
48
|
});
|
|
@@ -10380,9 +10380,6 @@ var Bitfab = class {
|
|
|
10380
10380
|
return {
|
|
10381
10381
|
traceId,
|
|
10382
10382
|
addContext: (context) => {
|
|
10383
|
-
if (!this.shouldRecord()) {
|
|
10384
|
-
return Promise.resolve();
|
|
10385
|
-
}
|
|
10386
10383
|
if (typeof context !== "object" || context === null) {
|
|
10387
10384
|
return Promise.resolve();
|
|
10388
10385
|
}
|
|
@@ -10391,27 +10388,18 @@ var Bitfab = class {
|
|
|
10391
10388
|
});
|
|
10392
10389
|
},
|
|
10393
10390
|
setMetadata: (metadata) => {
|
|
10394
|
-
if (!this.shouldRecord()) {
|
|
10395
|
-
return Promise.resolve();
|
|
10396
|
-
}
|
|
10397
10391
|
if (typeof metadata !== "object" || metadata === null) {
|
|
10398
10392
|
return Promise.resolve();
|
|
10399
10393
|
}
|
|
10400
10394
|
return this.httpClient.patchTrace(traceId, { mergeMetadata: metadata });
|
|
10401
10395
|
},
|
|
10402
10396
|
setSessionId: (sessionId) => {
|
|
10403
|
-
if (!this.shouldRecord()) {
|
|
10404
|
-
return Promise.resolve();
|
|
10405
|
-
}
|
|
10406
10397
|
if (typeof sessionId !== "string" || sessionId.length === 0) {
|
|
10407
10398
|
return Promise.resolve();
|
|
10408
10399
|
}
|
|
10409
10400
|
return this.httpClient.patchTrace(traceId, { setSessionId: sessionId });
|
|
10410
10401
|
},
|
|
10411
10402
|
setName: (name) => {
|
|
10412
|
-
if (!this.shouldRecord()) {
|
|
10413
|
-
return Promise.resolve();
|
|
10414
|
-
}
|
|
10415
10403
|
if (typeof name !== "string" || name.length === 0) {
|
|
10416
10404
|
return Promise.resolve();
|
|
10417
10405
|
}
|