@lenne.tech/nest-server 11.1.9 → 11.1.11
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/dist/core/common/interceptors/check-security.interceptor.js +1 -1
- package/dist/core/common/interceptors/check-security.interceptor.js.map +1 -1
- package/dist/core/modules/auth/services/core-auth.service.js +6 -1
- package/dist/core/modules/auth/services/core-auth.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/core/common/interceptors/check-security.interceptor.ts +1 -1
- package/src/core/modules/auth/services/core-auth.service.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.11",
|
|
4
4
|
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"husky": "9.1.7",
|
|
148
148
|
"jest": "29.7.0",
|
|
149
149
|
"npm-watch": "0.13.0",
|
|
150
|
-
"pm2": "6.0.
|
|
150
|
+
"pm2": "6.0.8",
|
|
151
151
|
"prettier": "3.5.3",
|
|
152
152
|
"pretty-quick": "4.1.1",
|
|
153
153
|
"supertest": "7.1.0",
|
|
@@ -57,7 +57,7 @@ export class CheckSecurityInterceptor implements NestInterceptor {
|
|
|
57
57
|
const dataJson = JSON.stringify(data);
|
|
58
58
|
const response = data.securityCheck(user, force);
|
|
59
59
|
new Promise(() => {
|
|
60
|
-
if (dataJson !== JSON.stringify(response)) {
|
|
60
|
+
if (this.config.debug && dataJson !== JSON.stringify(response)) {
|
|
61
61
|
const id = getStringIds(data);
|
|
62
62
|
console.debug(
|
|
63
63
|
'CheckSecurityInterceptor: securityCheck changed data of type',
|
|
@@ -289,7 +289,12 @@ export class CoreAuthService {
|
|
|
289
289
|
if (!deviceId) {
|
|
290
290
|
deviceId = payload.deviceId;
|
|
291
291
|
}
|
|
292
|
-
user.refreshTokens[deviceId] = {
|
|
292
|
+
user.refreshTokens[deviceId] = {
|
|
293
|
+
...data,
|
|
294
|
+
deviceDescription: payload.deviceDescription || data.deviceDescription,
|
|
295
|
+
deviceId,
|
|
296
|
+
tokenId: payload.tokenId,
|
|
297
|
+
};
|
|
293
298
|
user.tempTokens[deviceId] = { createdAt: new Date().getTime(), deviceId, tokenId: payload.tokenId };
|
|
294
299
|
await this.userService.update(
|
|
295
300
|
getStringIds(user),
|