@sqb/connect
Advanced tools
Comparing version 4.5.1 to 4.5.2
@@ -55,3 +55,6 @@ "use strict"; | ||
destroy: instance => instance.close(), | ||
reset: instance => instance.reset(), | ||
reset: async (instance) => { | ||
await this.emitAsyncSerial('connection-return').catch(); | ||
return instance.reset(); | ||
}, | ||
validate: instance => instance.test() | ||
@@ -58,0 +61,0 @@ }; |
@@ -15,2 +15,3 @@ import { Pool as LightningPool } from 'lightning-pool'; | ||
terminate: () => void; | ||
'connection-return': () => Promise<void>; | ||
} | ||
@@ -17,0 +18,0 @@ declare const SqbClient_base: Type<import("strict-typed-events").TypedEventEmitter<any, SqbClientEvents, SqbClientEvents>>; |
@@ -51,3 +51,6 @@ import _debug from 'debug'; | ||
destroy: instance => instance.close(), | ||
reset: instance => instance.reset(), | ||
reset: async (instance) => { | ||
await this.emitAsyncSerial('connection-return').catch(); | ||
return instance.reset(); | ||
}, | ||
validate: instance => instance.test() | ||
@@ -54,0 +57,0 @@ }; |
{ | ||
"name": "@sqb/connect", | ||
"description": "Multi-dialect database connection framework written with TypeScript", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"author": "Panates", | ||
@@ -33,3 +33,3 @@ "contributors": [ | ||
"debug": "^4.3.4", | ||
"lightning-pool": "^3.1.4", | ||
"lightning-pool": "^4.0.0", | ||
"lodash": "^4.17.21", | ||
@@ -90,2 +90,2 @@ "putil-isplainobject": "^1.1.4", | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
333584
7990
+ Addedlightning-pool@4.10.0(transitive)
- Removedlightning-pool@3.1.4(transitive)
Updatedlightning-pool@^4.0.0