@sqb/nestjs 4.19.5 → 4.20.0
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.
- package/README.md +7 -7
- package/cjs/sqb.utils.js +6 -2
- package/esm/sqb-core.module.js +1 -1
- package/esm/sqb.utils.js +6 -2
- package/package.json +9 -7
- package/types/sqb-core.module.d.ts +1 -1
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ SQB is an extensible, multi-dialect SQL query builder and Database connection wr
|
|
|
18
18
|
|
|
19
19
|
## Main goals
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
21
|
+
- Single code base for any sql based database
|
|
22
|
+
- Powerful and simplified query coding scheme
|
|
23
|
+
- Fast applications with low memory requirements
|
|
24
|
+
- Let applications work with large data tables efficiently
|
|
25
|
+
- Support latest JavaScript language standards
|
|
26
|
+
- Lightweight and extensible framework.
|
|
27
27
|
|
|
28
28
|
You can report bugs and discuss features on the [GitHub issues](https://github.com/sqbjs/sqb/issues) page
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ $ npm install @sqb/nestjs --save
|
|
|
39
39
|
|
|
40
40
|
## Node Compatibility
|
|
41
41
|
|
|
42
|
-
-
|
|
42
|
+
- node >= 16.x
|
|
43
43
|
|
|
44
44
|
### License
|
|
45
45
|
|
package/cjs/sqb.utils.js
CHANGED
|
@@ -24,8 +24,12 @@ function handleRetry(connectionName, retryAttempts = 9, retryDelay = 3000, verbo
|
|
|
24
24
|
if (toRetry && !toRetry(error)) {
|
|
25
25
|
throw error;
|
|
26
26
|
}
|
|
27
|
-
const connectionInfo = !connectionName || connectionName === connect_1.SqbClient
|
|
28
|
-
|
|
27
|
+
const connectionInfo = !connectionName || connectionName === connect_1.SqbClient
|
|
28
|
+
? 'default'
|
|
29
|
+
: ` (${String(connectionName)})`;
|
|
30
|
+
const verboseMessage = verboseRetryLog
|
|
31
|
+
? ` Message: ${error.message}.`
|
|
32
|
+
: '';
|
|
29
33
|
logger.error(`Unable to connect to the database ${connectionInfo}.${verboseMessage} Retrying (${errorCount + 1})...`, error.stack);
|
|
30
34
|
if (errorCount + 1 >= retryAttempts) {
|
|
31
35
|
throw error;
|
package/esm/sqb-core.module.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var SqbCoreModule_1;
|
|
2
2
|
import { __decorate, __metadata, __param } from "tslib";
|
|
3
|
-
import { Global, Inject, Module } from '@nestjs/common';
|
|
3
|
+
import { Global, Inject, Module, } from '@nestjs/common';
|
|
4
4
|
import { ModuleRef } from '@nestjs/core';
|
|
5
5
|
import { SqbClient } from '@sqb/connect';
|
|
6
6
|
import * as crypto from 'crypto';
|
package/esm/sqb.utils.js
CHANGED
|
@@ -20,8 +20,12 @@ export function handleRetry(connectionName, retryAttempts = 9, retryDelay = 3000
|
|
|
20
20
|
if (toRetry && !toRetry(error)) {
|
|
21
21
|
throw error;
|
|
22
22
|
}
|
|
23
|
-
const connectionInfo = !connectionName || connectionName === SqbClient
|
|
24
|
-
|
|
23
|
+
const connectionInfo = !connectionName || connectionName === SqbClient
|
|
24
|
+
? 'default'
|
|
25
|
+
: ` (${String(connectionName)})`;
|
|
26
|
+
const verboseMessage = verboseRetryLog
|
|
27
|
+
? ` Message: ${error.message}.`
|
|
28
|
+
: '';
|
|
25
29
|
logger.error(`Unable to connect to the database ${connectionInfo}.${verboseMessage} Retrying (${errorCount + 1})...`, error.stack);
|
|
26
30
|
if (errorCount + 1 >= retryAttempts) {
|
|
27
31
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/nestjs",
|
|
3
3
|
"description": "Nestjs module for data connection using SQB",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.20.0",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@nestjs/common": ">=7.4.0",
|
|
12
12
|
"@nestjs/core": ">=7.4.0",
|
|
13
|
-
"@sqb/builder": "^4.
|
|
14
|
-
"@sqb/connect": "^4.
|
|
13
|
+
"@sqb/builder": "^4.20.0",
|
|
14
|
+
"@sqb/connect": "^4.20.0",
|
|
15
15
|
"reflect-metadata": "^0.2.2",
|
|
16
16
|
"rxjs": ">=6.6.0"
|
|
17
17
|
},
|
|
@@ -39,12 +39,11 @@
|
|
|
39
39
|
],
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|
|
42
|
-
"url": "https://github.com/
|
|
42
|
+
"url": "https://github.com/panates/sqb.git",
|
|
43
43
|
"directory": "packages/nestjs"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
47
|
-
"npm": ">=7.0.0"
|
|
46
|
+
"node": ">=18.0"
|
|
48
47
|
},
|
|
49
48
|
"files": [
|
|
50
49
|
"bin/",
|
|
@@ -58,5 +57,8 @@
|
|
|
58
57
|
"sqb",
|
|
59
58
|
"nestjs",
|
|
60
59
|
"nest"
|
|
61
|
-
]
|
|
60
|
+
],
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
}
|
|
62
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule, OnApplicationShutdown } from '@nestjs/common';
|
|
2
2
|
import { ModuleRef } from '@nestjs/core';
|
|
3
|
-
import { SqbModuleAsyncOptions, SqbModuleOptions } from './sqb.interface.js';
|
|
3
|
+
import type { SqbModuleAsyncOptions, SqbModuleOptions } from './sqb.interface.js';
|
|
4
4
|
export declare class SqbCoreModule implements OnApplicationShutdown {
|
|
5
5
|
private readonly options;
|
|
6
6
|
private readonly moduleRef;
|