pg-mvc-service 2.1.11 → 2.1.12

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PoolManager.d.ts","sourceRoot":"","sources":["../src/PoolManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B,MAAM,CAAC,OAAO,OAAO,WAAW;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO,CAA4B;IAElD,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI;WAkBzH,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAUxC"}
1
+ {"version":3,"file":"PoolManager.d.ts","sourceRoot":"","sources":["../src/PoolManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B,MAAM,CAAC,OAAO,OAAO,WAAW;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO,CAA4B;IAElD,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI;WAkBrH,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAY5C"}
@@ -39,6 +39,7 @@ class PoolManager {
39
39
  console.error(`Error closing pool ${key}`, e);
40
40
  }
41
41
  }
42
+ this.poolMap = {};
42
43
  });
43
44
  }
44
45
  }
package/dist/Service.js CHANGED
@@ -291,12 +291,11 @@ class Service {
291
291
  }
292
292
  release() {
293
293
  return __awaiter(this, void 0, void 0, function* () {
294
- var _a;
295
294
  yield this.rollback();
296
295
  if (this.client !== undefined) {
297
296
  yield this.client.release();
298
297
  if (this.Module === 'hono') {
299
- yield ((_a = this.pool) === null || _a === void 0 ? void 0 : _a.end());
298
+ yield PoolManager_1.default.shutdownAll();
300
299
  }
301
300
  }
302
301
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {