@sqb/connect 4.5.3 → 4.5.4

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.
@@ -81,8 +81,10 @@ class SqbConnection extends (0, strict_typed_events_1.TypedEventEmitterClass)(st
81
81
  await this.emitAsyncSerial('close');
82
82
  const intlcon = this._intlcon;
83
83
  this._intlcon = undefined;
84
- this.client.pool.release(intlcon)
85
- .catch(e => this.client.emit('error', e));
84
+ this.client.pool.release(intlcon, (e) => {
85
+ if (e)
86
+ this.client.emit('error', e);
87
+ });
86
88
  debug('[%s] closed', intlcon.sessionId);
87
89
  }
88
90
  async execute(query, options) {
@@ -77,8 +77,10 @@ export class SqbConnection extends TypedEventEmitterClass(AsyncEventEmitter) {
77
77
  await this.emitAsyncSerial('close');
78
78
  const intlcon = this._intlcon;
79
79
  this._intlcon = undefined;
80
- this.client.pool.release(intlcon)
81
- .catch(e => this.client.emit('error', e));
80
+ this.client.pool.release(intlcon, (e) => {
81
+ if (e)
82
+ this.client.emit('error', e);
83
+ });
82
84
  debug('[%s] closed', intlcon.sessionId);
83
85
  }
84
86
  async execute(query, options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/connect",
3
3
  "description": "Multi-dialect database connection framework written with TypeScript",
4
- "version": "4.5.3",
4
+ "version": "4.5.4",
5
5
  "author": "Panates",
6
6
  "contributors": [
7
7
  "Eray Hanoglu <e.hanoglu@panates.com>",
@@ -30,27 +30,25 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "debug": "^4.3.4",
33
- "lightning-pool": "^4.0.0",
33
+ "lightning-pool": "^4.2.0",
34
34
  "lodash": "^4.17.21",
35
35
  "putil-isplainobject": "^1.1.4",
36
- "putil-merge": "^3.8.0",
36
+ "putil-merge": "^3.9.0",
37
37
  "putil-promisify": "^1.8.5",
38
38
  "putil-taskqueue": "^2.5.4",
39
39
  "putil-varhelpers": "^1.6.4",
40
40
  "reflect-metadata": "^0.1.13",
41
- "strict-typed-events": "^2.2.0",
42
- "ts-gems": "^2.2.0"
41
+ "strict-typed-events": "^2.3.1",
42
+ "ts-gems": "^2.2.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/debug": "^4.1.7",
46
- "@types/lodash": "^4.14.185"
46
+ "@types/lodash": "^4.14.186"
47
47
  },
48
48
  "peerDependencies": {
49
- "@sqb/builder": "^4.5.0"
49
+ "@sqb/builder": "^4.5.4"
50
50
  },
51
51
  "type": "module",
52
- "main": "cjs/index.js",
53
- "module": "esm/index.js",
54
52
  "types": "esm/index.d.ts",
55
53
  "exports": {
56
54
  ".": {
@@ -86,4 +84,4 @@
86
84
  "sqlite",
87
85
  "mysql"
88
86
  ]
89
- }
87
+ }