@bitfab/sdk 0.36.0 → 0.36.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.
@@ -16,7 +16,7 @@ import {
16
16
  toJsonSafe,
17
17
  toJsonSafeReport,
18
18
  warnOnce
19
- } from "./chunk-4YTIVUYX.js";
19
+ } from "./chunk-6ZBZBR5K.js";
20
20
 
21
21
  // src/processorPayload.ts
22
22
  var SERIALIZATION_DEGRADED_STEP = "serialization_degraded";
@@ -1614,12 +1614,20 @@ var ReplayBranch = class {
1614
1614
  // context can ride along into a log line or a serialized payload.
1615
1615
  __privateAdd(this, _url);
1616
1616
  __privateAdd(this, _context);
1617
- this.expiresAt = lease.expiresAt;
1618
- this.providerConsoleUrl = lease.providerConsoleUrl;
1619
- this.readOnly = lease.readOnly;
1620
- this.region = lease.region;
1621
- this.traceId = traceId;
1622
- __privateSet(this, _url, lease.databaseUrl);
1617
+ const { databaseUrl, ...exposed } = lease;
1618
+ for (const [key, value] of Object.entries(exposed)) {
1619
+ Object.defineProperty(this, key, {
1620
+ value,
1621
+ enumerable: true,
1622
+ configurable: true
1623
+ });
1624
+ }
1625
+ Object.defineProperty(this, "traceId", {
1626
+ value: traceId,
1627
+ enumerable: true,
1628
+ configurable: true
1629
+ });
1630
+ __privateSet(this, _url, databaseUrl);
1623
1631
  __privateSet(this, _context, context);
1624
1632
  }
1625
1633
  /**
@@ -2951,6 +2959,7 @@ var Bitfab = class {
2951
2959
  dbSnapshotUsage: {
2952
2960
  neonBranchId: replayCtx.dbBranchLease.neonBranchId,
2953
2961
  snapshotTimestamp: replayCtx.dbBranchLease.snapshotTimestamp,
2962
+ region: replayCtx.dbBranchLease.region,
2954
2963
  originalTraceId: replayCtx.sourceBitfabTraceId,
2955
2964
  accessed: replayCtx.dbSnapshotAccessed === true
2956
2965
  }
@@ -3226,6 +3235,9 @@ var Bitfab = class {
3226
3235
  ...params.dbSnapshotUsage.snapshotTimestamp && {
3227
3236
  snapshot_timestamp: params.dbSnapshotUsage.snapshotTimestamp
3228
3237
  },
3238
+ ...params.dbSnapshotUsage.region && {
3239
+ region: params.dbSnapshotUsage.region
3240
+ },
3229
3241
  ...params.dbSnapshotUsage.originalTraceId && {
3230
3242
  original_trace_id: params.dbSnapshotUsage.originalTraceId,
3231
3243
  // Deprecated wire alias, kept so this SDK still reports usage
@@ -3325,7 +3337,7 @@ var Bitfab = class {
3325
3337
  `Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
3326
3338
  );
3327
3339
  }
3328
- const { replay: doReplay } = await import("./replay-CVMULH7T.js");
3340
+ const { replay: doReplay } = await import("./replay-ZR4KIZIB.js");
3329
3341
  return doReplay(
3330
3342
  this.httpClient,
3331
3343
  this.serviceUrl,
@@ -3542,4 +3554,4 @@ export {
3542
3554
  BitfabFunction,
3543
3555
  finalizers
3544
3556
  };
3545
- //# sourceMappingURL=chunk-JECWMVJG.js.map
3557
+ //# sourceMappingURL=chunk-HD4DRDRE.js.map