bitfab 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
@@ -51,7 +51,7 @@ var __version__;
51
51
  var init_version_generated = __esm({
52
52
  "src/version.generated.ts"() {
53
53
  "use strict";
54
- __version__ = "0.36.0";
54
+ __version__ = "0.36.1";
55
55
  }
56
56
  });
57
57
 
@@ -4190,12 +4190,20 @@ var ReplayBranch = class {
4190
4190
  // context can ride along into a log line or a serialized payload.
4191
4191
  __privateAdd(this, _url);
4192
4192
  __privateAdd(this, _context);
4193
- this.expiresAt = lease.expiresAt;
4194
- this.providerConsoleUrl = lease.providerConsoleUrl;
4195
- this.readOnly = lease.readOnly;
4196
- this.region = lease.region;
4197
- this.traceId = traceId;
4198
- __privateSet(this, _url, lease.databaseUrl);
4193
+ const { databaseUrl, ...exposed } = lease;
4194
+ for (const [key, value] of Object.entries(exposed)) {
4195
+ Object.defineProperty(this, key, {
4196
+ value,
4197
+ enumerable: true,
4198
+ configurable: true
4199
+ });
4200
+ }
4201
+ Object.defineProperty(this, "traceId", {
4202
+ value: traceId,
4203
+ enumerable: true,
4204
+ configurable: true
4205
+ });
4206
+ __privateSet(this, _url, databaseUrl);
4199
4207
  __privateSet(this, _context, context);
4200
4208
  }
4201
4209
  /**
@@ -5535,6 +5543,7 @@ var Bitfab = class {
5535
5543
  dbSnapshotUsage: {
5536
5544
  neonBranchId: replayCtx.dbBranchLease.neonBranchId,
5537
5545
  snapshotTimestamp: replayCtx.dbBranchLease.snapshotTimestamp,
5546
+ region: replayCtx.dbBranchLease.region,
5538
5547
  originalTraceId: replayCtx.sourceBitfabTraceId,
5539
5548
  accessed: replayCtx.dbSnapshotAccessed === true
5540
5549
  }
@@ -5810,6 +5819,9 @@ var Bitfab = class {
5810
5819
  ...params.dbSnapshotUsage.snapshotTimestamp && {
5811
5820
  snapshot_timestamp: params.dbSnapshotUsage.snapshotTimestamp
5812
5821
  },
5822
+ ...params.dbSnapshotUsage.region && {
5823
+ region: params.dbSnapshotUsage.region
5824
+ },
5813
5825
  ...params.dbSnapshotUsage.originalTraceId && {
5814
5826
  original_trace_id: params.dbSnapshotUsage.originalTraceId,
5815
5827
  // Deprecated wire alias, kept so this SDK still reports usage