@sqb/connect 4.20.1 → 4.20.3
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.
|
@@ -173,7 +173,8 @@ class SqbConnection extends (0, strict_typed_events_1.TypedEventEmitterClass)(st
|
|
|
173
173
|
error.query = query;
|
|
174
174
|
error.queryOptions = options;
|
|
175
175
|
error.request = request;
|
|
176
|
-
this.emit('error',
|
|
176
|
+
this.emit('error', error);
|
|
177
|
+
throw error;
|
|
177
178
|
}
|
|
178
179
|
finally {
|
|
179
180
|
this.release();
|
package/cjs/client/sqb-error.js
CHANGED
|
@@ -169,7 +169,8 @@ export class SqbConnection extends TypedEventEmitterClass(AsyncEventEmitter) {
|
|
|
169
169
|
error.query = query;
|
|
170
170
|
error.queryOptions = options;
|
|
171
171
|
error.request = request;
|
|
172
|
-
this.emit('error',
|
|
172
|
+
this.emit('error', error);
|
|
173
|
+
throw error;
|
|
173
174
|
}
|
|
174
175
|
finally {
|
|
175
176
|
this.release();
|
package/esm/client/sqb-error.js
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/connect",
|
|
3
3
|
"description": "Multi-dialect database connection framework written with TypeScript",
|
|
4
|
-
"version": "4.20.
|
|
4
|
+
"version": "4.20.3",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"debug": "^4.4.
|
|
8
|
+
"debug": "^4.4.3",
|
|
9
9
|
"doublylinked": "^2.5.6",
|
|
10
10
|
"fast-tokenizer": "^1.7.0",
|
|
11
11
|
"lightning-pool": "^4.11.1",
|
|
12
12
|
"lodash": "^4.17.21",
|
|
13
|
-
"power-tasks": "^1.11.
|
|
13
|
+
"power-tasks": "^1.11.1",
|
|
14
14
|
"putil-isplainobject": "^1.1.5",
|
|
15
15
|
"putil-merge": "^3.13.0",
|
|
16
16
|
"putil-promisify": "^1.10.1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"tslib": "^2.8.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@sqb/builder": "^4.20.
|
|
23
|
+
"@sqb/builder": "^4.20.3",
|
|
24
24
|
"reflect-metadata": "^0.2.2"
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
@@ -2,7 +2,7 @@ import { Query } from '@sqb/builder';
|
|
|
2
2
|
import { QueryExecuteOptions, QueryRequest } from './types.js';
|
|
3
3
|
export declare class SQBError extends Error {
|
|
4
4
|
cause?: Error;
|
|
5
|
-
query
|
|
5
|
+
query: string | Query;
|
|
6
6
|
queryOptions?: QueryExecuteOptions;
|
|
7
7
|
request?: QueryRequest;
|
|
8
8
|
constructor(message: string, cause?: Error);
|