@sqb/nestjs 4.19.4 → 4.19.5
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/cjs/sqb-core.module.js +2 -10
- package/esm/sqb-core.module.js +2 -10
- package/package.json +4 -4
package/cjs/sqb-core.module.js
CHANGED
|
@@ -95,19 +95,11 @@ let SqbCoreModule = SqbCoreModule_1 = class SqbCoreModule {
|
|
|
95
95
|
// @ts-ignore
|
|
96
96
|
if (rxjs.lastValueFrom) {
|
|
97
97
|
// @ts-ignore
|
|
98
|
-
return await rxjs.lastValueFrom((0, rxjs_1.defer)(async () =>
|
|
99
|
-
const client = new connect_1.SqbClient(options);
|
|
100
|
-
await client.test();
|
|
101
|
-
return client;
|
|
102
|
-
}).pipe((0, sqb_utils_js_1.handleRetry)(connectionToken, options.retryAttempts, options.retryDelay, options.verboseRetryLog, options.toRetry)));
|
|
98
|
+
return await rxjs.lastValueFrom((0, rxjs_1.defer)(async () => new connect_1.SqbClient(options)).pipe((0, sqb_utils_js_1.handleRetry)(connectionToken, options.retryAttempts, options.retryDelay, options.verboseRetryLog, options.toRetry)));
|
|
103
99
|
}
|
|
104
100
|
// NestJS 7
|
|
105
101
|
// @ts-ignore
|
|
106
|
-
return await (0, rxjs_1.defer)(async () =>
|
|
107
|
-
const client = new connect_1.SqbClient(options);
|
|
108
|
-
await client.test();
|
|
109
|
-
return client;
|
|
110
|
-
})
|
|
102
|
+
return await (0, rxjs_1.defer)(async () => new connect_1.SqbClient(options))
|
|
111
103
|
.pipe((0, sqb_utils_js_1.handleRetry)(connectionToken, options.retryAttempts, options.retryDelay, options.verboseRetryLog, options.toRetry))
|
|
112
104
|
.toPromise();
|
|
113
105
|
}
|
package/esm/sqb-core.module.js
CHANGED
|
@@ -92,19 +92,11 @@ let SqbCoreModule = SqbCoreModule_1 = class SqbCoreModule {
|
|
|
92
92
|
// @ts-ignore
|
|
93
93
|
if (rxjs.lastValueFrom) {
|
|
94
94
|
// @ts-ignore
|
|
95
|
-
return await rxjs.lastValueFrom(defer(async () =>
|
|
96
|
-
const client = new SqbClient(options);
|
|
97
|
-
await client.test();
|
|
98
|
-
return client;
|
|
99
|
-
}).pipe(handleRetry(connectionToken, options.retryAttempts, options.retryDelay, options.verboseRetryLog, options.toRetry)));
|
|
95
|
+
return await rxjs.lastValueFrom(defer(async () => new SqbClient(options)).pipe(handleRetry(connectionToken, options.retryAttempts, options.retryDelay, options.verboseRetryLog, options.toRetry)));
|
|
100
96
|
}
|
|
101
97
|
// NestJS 7
|
|
102
98
|
// @ts-ignore
|
|
103
|
-
return await defer(async () =>
|
|
104
|
-
const client = new SqbClient(options);
|
|
105
|
-
await client.test();
|
|
106
|
-
return client;
|
|
107
|
-
})
|
|
99
|
+
return await defer(async () => new SqbClient(options))
|
|
108
100
|
.pipe(handleRetry(connectionToken, options.retryAttempts, options.retryDelay, options.verboseRetryLog, options.toRetry))
|
|
109
101
|
.toPromise();
|
|
110
102
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/nestjs",
|
|
3
3
|
"description": "Nestjs module for data connection using SQB",
|
|
4
|
-
"version": "4.19.
|
|
4
|
+
"version": "4.19.5",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"tslib": "^2.8.
|
|
8
|
+
"tslib": "^2.8.1"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@nestjs/common": ">=7.4.0",
|
|
12
12
|
"@nestjs/core": ">=7.4.0",
|
|
13
|
-
"@sqb/builder": "^4.19.
|
|
14
|
-
"@sqb/connect": "^4.19.
|
|
13
|
+
"@sqb/builder": "^4.19.5",
|
|
14
|
+
"@sqb/connect": "^4.19.5",
|
|
15
15
|
"reflect-metadata": "^0.2.2",
|
|
16
16
|
"rxjs": ">=6.6.0"
|
|
17
17
|
},
|