@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.
package/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var __version__;
42
42
  var init_version_generated = __esm({
43
43
  "src/version.generated.ts"() {
44
44
  "use strict";
45
- __version__ = "0.36.0";
45
+ __version__ = "0.36.1";
46
46
  }
47
47
  });
48
48
 
@@ -4181,12 +4181,20 @@ var ReplayBranch = class {
4181
4181
  // context can ride along into a log line or a serialized payload.
4182
4182
  __privateAdd(this, _url);
4183
4183
  __privateAdd(this, _context);
4184
- this.expiresAt = lease.expiresAt;
4185
- this.providerConsoleUrl = lease.providerConsoleUrl;
4186
- this.readOnly = lease.readOnly;
4187
- this.region = lease.region;
4188
- this.traceId = traceId;
4189
- __privateSet(this, _url, lease.databaseUrl);
4184
+ const { databaseUrl, ...exposed } = lease;
4185
+ for (const [key, value] of Object.entries(exposed)) {
4186
+ Object.defineProperty(this, key, {
4187
+ value,
4188
+ enumerable: true,
4189
+ configurable: true
4190
+ });
4191
+ }
4192
+ Object.defineProperty(this, "traceId", {
4193
+ value: traceId,
4194
+ enumerable: true,
4195
+ configurable: true
4196
+ });
4197
+ __privateSet(this, _url, databaseUrl);
4190
4198
  __privateSet(this, _context, context);
4191
4199
  }
4192
4200
  /**
@@ -5526,6 +5534,7 @@ var Bitfab = class {
5526
5534
  dbSnapshotUsage: {
5527
5535
  neonBranchId: replayCtx.dbBranchLease.neonBranchId,
5528
5536
  snapshotTimestamp: replayCtx.dbBranchLease.snapshotTimestamp,
5537
+ region: replayCtx.dbBranchLease.region,
5529
5538
  originalTraceId: replayCtx.sourceBitfabTraceId,
5530
5539
  accessed: replayCtx.dbSnapshotAccessed === true
5531
5540
  }
@@ -5801,6 +5810,9 @@ var Bitfab = class {
5801
5810
  ...params.dbSnapshotUsage.snapshotTimestamp && {
5802
5811
  snapshot_timestamp: params.dbSnapshotUsage.snapshotTimestamp
5803
5812
  },
5813
+ ...params.dbSnapshotUsage.region && {
5814
+ region: params.dbSnapshotUsage.region
5815
+ },
5804
5816
  ...params.dbSnapshotUsage.originalTraceId && {
5805
5817
  original_trace_id: params.dbSnapshotUsage.originalTraceId,
5806
5818
  // Deprecated wire alias, kept so this SDK still reports usage