@bitfab/sdk 0.34.1 → 0.36.0
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/README.md +0 -17
- package/dist/{chunk-5ZMEY5NX.js → chunk-4YTIVUYX.js} +307 -208
- package/dist/chunk-4YTIVUYX.js.map +1 -0
- package/dist/{chunk-KO373TDH.js → chunk-JECWMVJG.js} +3 -3
- package/dist/index.cjs +328 -213
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +2 -2
- package/dist/node.cjs +328 -213
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-YI2BUPCV.js → replay-CVMULH7T.js} +2 -2
- package/package.json +1 -2
- package/dist/chunk-5ZMEY5NX.js.map +0 -1
- /package/dist/{chunk-KO373TDH.js.map → chunk-JECWMVJG.js.map} +0 -0
- /package/dist/{replay-YI2BUPCV.js.map → replay-CVMULH7T.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -288,9 +288,7 @@ interface ReplayContext {
|
|
|
288
288
|
*
|
|
289
289
|
* Returns `false` when delivery failed or the deadline expired, so a caller
|
|
290
290
|
* that depends on persistence (replay does) can react instead of assuming a
|
|
291
|
-
* drained queue means the server has the data.
|
|
292
|
-
* Collector, `true` means the Collector accepted the spans; it is not proof
|
|
293
|
-
* that Bitfab committed them.
|
|
291
|
+
* drained queue means the server has the data.
|
|
294
292
|
*
|
|
295
293
|
* @param timeoutMs - Maximum total time to wait in milliseconds (default: 5000)
|
|
296
294
|
*/
|
|
@@ -399,6 +397,15 @@ declare class HttpClient {
|
|
|
399
397
|
timeout?: number;
|
|
400
398
|
method?: "POST" | "PATCH" | "PUT";
|
|
401
399
|
}): Promise<T>;
|
|
400
|
+
/**
|
|
401
|
+
* POST an already-encoded body. The span transport encodes its own batches,
|
|
402
|
+
* so routing them back through {@link HttpClient.request} would encode the
|
|
403
|
+
* same data twice.
|
|
404
|
+
*/
|
|
405
|
+
sendEncoded<T>(endpoint: string, body: string, options?: {
|
|
406
|
+
timeout?: number;
|
|
407
|
+
method?: "POST" | "PATCH" | "PUT";
|
|
408
|
+
}): Promise<T>;
|
|
402
409
|
/**
|
|
403
410
|
* Look up a function by name.
|
|
404
411
|
* Blocks until complete - needed for function execution.
|
|
@@ -2329,7 +2336,7 @@ declare class BitfabFunction {
|
|
|
2329
2336
|
/**
|
|
2330
2337
|
* SDK version from package.json (injected at build time)
|
|
2331
2338
|
*/
|
|
2332
|
-
declare const __version__ = "0.
|
|
2339
|
+
declare const __version__ = "0.36.0";
|
|
2333
2340
|
|
|
2334
2341
|
/**
|
|
2335
2342
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -288,9 +288,7 @@ interface ReplayContext {
|
|
|
288
288
|
*
|
|
289
289
|
* Returns `false` when delivery failed or the deadline expired, so a caller
|
|
290
290
|
* that depends on persistence (replay does) can react instead of assuming a
|
|
291
|
-
* drained queue means the server has the data.
|
|
292
|
-
* Collector, `true` means the Collector accepted the spans; it is not proof
|
|
293
|
-
* that Bitfab committed them.
|
|
291
|
+
* drained queue means the server has the data.
|
|
294
292
|
*
|
|
295
293
|
* @param timeoutMs - Maximum total time to wait in milliseconds (default: 5000)
|
|
296
294
|
*/
|
|
@@ -399,6 +397,15 @@ declare class HttpClient {
|
|
|
399
397
|
timeout?: number;
|
|
400
398
|
method?: "POST" | "PATCH" | "PUT";
|
|
401
399
|
}): Promise<T>;
|
|
400
|
+
/**
|
|
401
|
+
* POST an already-encoded body. The span transport encodes its own batches,
|
|
402
|
+
* so routing them back through {@link HttpClient.request} would encode the
|
|
403
|
+
* same data twice.
|
|
404
|
+
*/
|
|
405
|
+
sendEncoded<T>(endpoint: string, body: string, options?: {
|
|
406
|
+
timeout?: number;
|
|
407
|
+
method?: "POST" | "PATCH" | "PUT";
|
|
408
|
+
}): Promise<T>;
|
|
402
409
|
/**
|
|
403
410
|
* Look up a function by name.
|
|
404
411
|
* Blocks until complete - needed for function execution.
|
|
@@ -2329,7 +2336,7 @@ declare class BitfabFunction {
|
|
|
2329
2336
|
/**
|
|
2330
2337
|
* SDK version from package.json (injected at build time)
|
|
2331
2338
|
*/
|
|
2332
|
-
declare const __version__ = "0.
|
|
2339
|
+
declare const __version__ = "0.36.0";
|
|
2333
2340
|
|
|
2334
2341
|
/**
|
|
2335
2342
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getCurrentReplayBranch,
|
|
12
12
|
getCurrentSpan,
|
|
13
13
|
getCurrentTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JECWMVJG.js";
|
|
15
15
|
import {
|
|
16
16
|
BITFAB_PROGRESS_PREFIX,
|
|
17
17
|
BitfabError,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
__version__,
|
|
21
21
|
flushTraces,
|
|
22
22
|
reportReplayProgress
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4YTIVUYX.js";
|
|
24
24
|
export {
|
|
25
25
|
BITFAB_PROGRESS_PREFIX,
|
|
26
26
|
Bitfab,
|