@mastra/dsql 1.0.0 → 1.0.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.js CHANGED
@@ -81,6 +81,7 @@ var PoolAdapter = class {
81
81
  constructor($pool) {
82
82
  this.$pool = $pool;
83
83
  }
84
+ $pool;
84
85
  connect() {
85
86
  return this.$pool.connect();
86
87
  }
@@ -149,6 +150,7 @@ var TransactionClient = class {
149
150
  constructor(client) {
150
151
  this.client = client;
151
152
  }
153
+ client;
152
154
  async none(query, values) {
153
155
  await this.client.query(query, values);
154
156
  return null;
@@ -356,6 +358,11 @@ function resolveDsqlConfig(config) {
356
358
  host: config.host,
357
359
  database: config.database,
358
360
  user: config.user,
361
+ // AuroraDSQLClient's constructor type doesn't match pg.PoolClient's,
362
+ // but it's compatible at runtime. The `as any` avoids a TS error in
363
+ // pnpm v11's stricter lockfile layout, where the connector's ESM-only
364
+ // type exports (`.d.mts`) aren't resolved by tsc when the consumer uses
365
+ // CommonJS module resolution.
359
366
  Client: AuroraDSQLClient
360
367
  });
361
368
  return {