@bsv/wallet-toolbox-client 2.4.20 → 2.4.21

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.
@@ -16540,23 +16540,6 @@ function logCreateActionArgs(args) {
16540
16540
  return o;
16541
16541
  }
16542
16542
  //#endregion
16543
- //#region ../src/utility/traceContext.ts
16544
- function validTraceId(value) {
16545
- return /^[0-9a-f]{32}$/i.test(value) && !/^0{32}$/.test(value);
16546
- }
16547
- function validSpanId(value) {
16548
- return /^[0-9a-f]{16}$/i.test(value) && !/^0{16}$/.test(value);
16549
- }
16550
- /**
16551
- * Package-local compatibility helpers keep remoting loadable with older SDK
16552
- * peers while the equivalent public SDK helpers roll out.
16553
- */
16554
- function formatTraceparent(context) {
16555
- if (!validTraceId(context.traceId) || !validSpanId(context.spanId)) return void 0;
16556
- const flags = Math.max(0, Math.min(255, context.traceFlags ?? 1));
16557
- return `00-${context.traceId.toLowerCase()}-${context.spanId.toLowerCase()}-${flags.toString(16).padStart(2, "0")}`;
16558
- }
16559
- //#endregion
16560
16543
  //#region ../src/storage/remoting/entityValidationHelpers.ts
16561
16544
  /**
16562
16545
  * Shared entity-validation helpers used by both client-side storage remoting
@@ -17227,13 +17210,12 @@ var StorageClient = class extends StorageClientBase {
17227
17210
  const requestBody = await this.traceRpcStep("wallet.storage.request.serialize", rpcSpan, () => stringifyJsonRpc(body, requestUsesBinary), { "rpc.encoding": requestUsesBinary ? "binary-json" : "json" });
17228
17211
  let response;
17229
17212
  try {
17230
- response = await this.traceRpcStep("wallet.storage.http", rpcSpan, async (httpSpan) => await this.authClient.fetch(this.endpointUrl, {
17213
+ response = await this.traceRpcStep("wallet.storage.http", rpcSpan, async () => await this.authClient.fetch(this.endpointUrl, {
17231
17214
  method: "POST",
17232
17215
  headers: {
17233
17216
  "Content-Type": "application/json",
17234
17217
  [BINARY_ENCODING_HEADER]: BINARY_ENCODING,
17235
- ...requestUsesBinary ? { [BINARY_REQUEST_ENCODING_HEADER]: BINARY_ENCODING } : {},
17236
- ...httpSpan == null || formatTraceparent(httpSpan.context) == null ? {} : { traceparent: formatTraceparent(httpSpan.context) }
17218
+ ...requestUsesBinary ? { [BINARY_REQUEST_ENCODING_HEADER]: BINARY_ENCODING } : {}
17237
17219
  },
17238
17220
  body: requestBody
17239
17221
  }), {