@squiz/db-lib 1.2.1-alpha.102 → 1.2.1-alpha.103

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.1-alpha.103](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.2.1-alpha.90...v1.2.1-alpha.103) (2022-08-23)
7
+
8
+ **Note:** Version bump only for package @squiz/db-lib
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.2.1-alpha.102](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.2.1-alpha.90...v1.2.1-alpha.102) (2022-08-23)
7
15
 
8
16
  **Note:** Version bump only for package @squiz/db-lib
package/lib/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from './Migrator';
4
4
  export * from './Repositories';
5
5
  export * from './getConnectionInfo';
6
6
  export * from './PostgresErrorCodes';
7
+ export { Pool } from 'pg';
package/lib/index.js CHANGED
@@ -3626,7 +3626,7 @@ var require_pg_pool = __commonJS({
3626
3626
  pool.emit("error", err, client);
3627
3627
  };
3628
3628
  }
3629
- var Pool2 = class extends EventEmitter {
3629
+ var Pool3 = class extends EventEmitter {
3630
3630
  constructor(options, Client) {
3631
3631
  super();
3632
3632
  this.options = Object.assign({}, options);
@@ -3939,7 +3939,7 @@ var require_pg_pool = __commonJS({
3939
3939
  return this._clients.length;
3940
3940
  }
3941
3941
  };
3942
- module2.exports = Pool2;
3942
+ module2.exports = Pool3;
3943
3943
  }
3944
3944
  });
3945
3945
 
@@ -4395,10 +4395,10 @@ var require_lib2 = __commonJS({
4395
4395
  var Client = require_client();
4396
4396
  var defaults = require_defaults();
4397
4397
  var Connection = require_connection();
4398
- var Pool2 = require_pg_pool();
4398
+ var Pool3 = require_pg_pool();
4399
4399
  var { DatabaseError } = require_dist();
4400
4400
  var poolFactory = (Client2) => {
4401
- return class BoundPool extends Pool2 {
4401
+ return class BoundPool extends Pool3 {
4402
4402
  constructor(options) {
4403
4403
  super(options, Client2);
4404
4404
  }
@@ -30931,6 +30931,7 @@ __export(src_exports, {
30931
30931
  AbstractRepository: () => AbstractRepository,
30932
30932
  ConnectionManager: () => ConnectionManager,
30933
30933
  Migrator: () => Migrator,
30934
+ Pool: () => import_pg2.Pool,
30934
30935
  PostgresErrorCode: () => PostgresErrorCode,
30935
30936
  getConnectionInfo: () => getConnectionInfo
30936
30937
  });
@@ -31512,11 +31513,15 @@ var PostgresErrorCode = /* @__PURE__ */ ((PostgresErrorCode2) => {
31512
31513
  PostgresErrorCode2["INDEX_CORRUPTED"] = "XX002";
31513
31514
  return PostgresErrorCode2;
31514
31515
  })(PostgresErrorCode || {});
31516
+
31517
+ // src/index.ts
31518
+ var import_pg2 = __toESM(require_lib2());
31515
31519
  // Annotate the CommonJS export names for ESM import in node:
31516
31520
  0 && (module.exports = {
31517
31521
  AbstractRepository,
31518
31522
  ConnectionManager,
31519
31523
  Migrator,
31524
+ Pool,
31520
31525
  PostgresErrorCode,
31521
31526
  getConnectionInfo
31522
31527
  });