@lenne.tech/nest-server 11.1.12 → 11.1.14
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.14",
|
|
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",
|
|
@@ -65,19 +65,19 @@
|
|
|
65
65
|
"node": ">= 20"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@apollo/gateway": "2.
|
|
68
|
+
"@apollo/gateway": "2.11.2",
|
|
69
69
|
"@getbrevo/brevo": "1.0.1",
|
|
70
70
|
"@lenne.tech/mongoose-gridfs": "1.4.2",
|
|
71
|
-
"@lenne.tech/multer-gridfs-storage": "5.0.
|
|
71
|
+
"@lenne.tech/multer-gridfs-storage": "5.0.8",
|
|
72
72
|
"@nestjs/apollo": "13.1.0",
|
|
73
|
-
"@nestjs/common": "11.1.
|
|
74
|
-
"@nestjs/core": "11.1.
|
|
73
|
+
"@nestjs/common": "11.1.6",
|
|
74
|
+
"@nestjs/core": "11.1.6",
|
|
75
75
|
"@nestjs/graphql": "13.1.0",
|
|
76
76
|
"@nestjs/jwt": "11.0.0",
|
|
77
77
|
"@nestjs/mongoose": "11.0.3",
|
|
78
78
|
"@nestjs/passport": "11.0.5",
|
|
79
|
-
"@nestjs/platform-express": "11.1.
|
|
80
|
-
"@nestjs/schedule": "6.0.
|
|
79
|
+
"@nestjs/platform-express": "11.1.6",
|
|
80
|
+
"@nestjs/schedule": "6.0.1",
|
|
81
81
|
"@nestjs/swagger": "11.2.0",
|
|
82
82
|
"@nestjs/terminus": "11.0.0",
|
|
83
83
|
"apollo-server-core": "3.13.0",
|
|
@@ -87,21 +87,21 @@
|
|
|
87
87
|
"class-validator": "0.14.2",
|
|
88
88
|
"compression": "1.8.1",
|
|
89
89
|
"cookie-parser": "1.4.7",
|
|
90
|
-
"dotenv": "
|
|
90
|
+
"dotenv": "17.2.3",
|
|
91
91
|
"ejs": "3.1.10",
|
|
92
92
|
"graphql": "16.11.0",
|
|
93
93
|
"graphql-query-complexity": "1.1.0",
|
|
94
94
|
"graphql-subscriptions": "3.0.0",
|
|
95
95
|
"graphql-upload": "15.0.2",
|
|
96
|
-
"js-sha256": "0.11.
|
|
96
|
+
"js-sha256": "0.11.1",
|
|
97
97
|
"json-to-graphql-query": "2.3.0",
|
|
98
98
|
"light-my-request": "6.6.0",
|
|
99
99
|
"lodash": "4.17.21",
|
|
100
|
-
"mongodb": "6.
|
|
100
|
+
"mongodb": "6.20.0",
|
|
101
101
|
"mongoose": "7.8.7",
|
|
102
102
|
"multer": "1.4.5-lts.2",
|
|
103
|
-
"node-mailjet": "6.0.
|
|
104
|
-
"nodemailer": "7.0.
|
|
103
|
+
"node-mailjet": "6.0.9",
|
|
104
|
+
"nodemailer": "7.0.9",
|
|
105
105
|
"nodemon": "3.1.10",
|
|
106
106
|
"passport": "0.7.0",
|
|
107
107
|
"passport-jwt": "4.0.1",
|
|
@@ -113,31 +113,31 @@
|
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@babel/plugin-proposal-private-methods": "7.18.6",
|
|
116
|
-
"@compodoc/compodoc": "1.1.
|
|
117
|
-
"@lenne.tech/eslint-config-ts": "2.
|
|
118
|
-
"@nestjs/cli": "11.0.
|
|
119
|
-
"@nestjs/schematics": "11.0.
|
|
120
|
-
"@nestjs/testing": "11.1.
|
|
121
|
-
"@swc/cli": "0.7.
|
|
122
|
-
"@swc/core": "1.
|
|
123
|
-
"@swc/jest": "0.2.
|
|
124
|
-
"@types/compression": "1.
|
|
125
|
-
"@types/cookie-parser": "1.4.
|
|
116
|
+
"@compodoc/compodoc": "1.1.31",
|
|
117
|
+
"@lenne.tech/eslint-config-ts": "2.1.3",
|
|
118
|
+
"@nestjs/cli": "11.0.10",
|
|
119
|
+
"@nestjs/schematics": "11.0.8",
|
|
120
|
+
"@nestjs/testing": "11.1.6",
|
|
121
|
+
"@swc/cli": "0.7.8",
|
|
122
|
+
"@swc/core": "1.13.5",
|
|
123
|
+
"@swc/jest": "0.2.39",
|
|
124
|
+
"@types/compression": "1.8.1",
|
|
125
|
+
"@types/cookie-parser": "1.4.9",
|
|
126
126
|
"@types/ejs": "3.1.5",
|
|
127
127
|
"@types/express": "4.17.21",
|
|
128
128
|
"@types/jest": "29.5.14",
|
|
129
|
-
"@types/lodash": "4.17.
|
|
129
|
+
"@types/lodash": "4.17.20",
|
|
130
130
|
"@types/multer": "1.4.12",
|
|
131
131
|
"@types/node": "22.15.17",
|
|
132
132
|
"@types/nodemailer": "6.4.17",
|
|
133
133
|
"@types/passport": "1.0.17",
|
|
134
134
|
"@types/supertest": "6.0.3",
|
|
135
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
136
|
-
"@typescript-eslint/parser": "8.
|
|
135
|
+
"@typescript-eslint/eslint-plugin": "8.46.0",
|
|
136
|
+
"@typescript-eslint/parser": "8.46.0",
|
|
137
137
|
"coffeescript": "2.7.0",
|
|
138
|
-
"eslint": "9.
|
|
139
|
-
"eslint-config-prettier": "10.1.
|
|
140
|
-
"eslint-plugin-unused-imports": "4.
|
|
138
|
+
"eslint": "9.37.0",
|
|
139
|
+
"eslint-config-prettier": "10.1.8",
|
|
140
|
+
"eslint-plugin-unused-imports": "4.2.0",
|
|
141
141
|
"find-file-up": "2.0.1",
|
|
142
142
|
"grunt": "1.6.1",
|
|
143
143
|
"grunt-bg-shell": "2.3.3",
|
|
@@ -147,12 +147,12 @@
|
|
|
147
147
|
"husky": "9.1.7",
|
|
148
148
|
"jest": "29.7.0",
|
|
149
149
|
"npm-watch": "0.13.0",
|
|
150
|
-
"pm2": "6.0.
|
|
151
|
-
"prettier": "3.
|
|
152
|
-
"pretty-quick": "4.
|
|
153
|
-
"supertest": "7.1.
|
|
154
|
-
"ts-jest": "29.
|
|
155
|
-
"ts-loader": "9.5.
|
|
150
|
+
"pm2": "6.0.13",
|
|
151
|
+
"prettier": "3.6.2",
|
|
152
|
+
"pretty-quick": "4.2.2",
|
|
153
|
+
"supertest": "7.1.4",
|
|
154
|
+
"ts-jest": "29.4.4",
|
|
155
|
+
"ts-loader": "9.5.4",
|
|
156
156
|
"ts-morph": "25.0.1",
|
|
157
157
|
"ts-node": "10.9.2",
|
|
158
158
|
"tsconfig-paths": "4.2.0",
|
|
@@ -30,16 +30,29 @@ export function updateLanguage<T extends Record<string, any>, K extends readonly
|
|
|
30
30
|
translatableFields: string[],
|
|
31
31
|
): T {
|
|
32
32
|
const changedFields: Partial<Pick<T, K[number]>> = {};
|
|
33
|
-
|
|
34
33
|
for (const key of translatableFields) {
|
|
35
|
-
const k = key
|
|
34
|
+
const k = key;
|
|
35
|
+
|
|
36
|
+
// For languages other than 'de', compare with existing translation value instead of main value
|
|
37
|
+
let compareValue;
|
|
38
|
+
if (language !== 'de' && oldValue._translations?.[language]?.[k] !== undefined) {
|
|
39
|
+
compareValue = oldValue._translations[language][k];
|
|
40
|
+
} else {
|
|
41
|
+
compareValue = oldValue[k];
|
|
42
|
+
}
|
|
36
43
|
|
|
37
|
-
if (input[k] !==
|
|
44
|
+
if (input[k] !== compareValue && input[k] !== undefined) {
|
|
38
45
|
changedFields[k] = input[k];
|
|
39
|
-
|
|
46
|
+
// Only reset if the current field isn't in german
|
|
47
|
+
if (language !== 'de') {
|
|
48
|
+
input[k] = oldValue[k];
|
|
49
|
+
}
|
|
50
|
+
} else if (language !== 'de' && input[k] !== undefined) {
|
|
51
|
+
// If no change detected but we have input for this field, reset to original value
|
|
52
|
+
// to prevent overwriting the default with translation values
|
|
53
|
+
input[k] = oldValue[k];
|
|
40
54
|
}
|
|
41
55
|
}
|
|
42
|
-
|
|
43
56
|
input._translations = input._translations ?? {};
|
|
44
57
|
input._translations[language] = {
|
|
45
58
|
...(input._translations[language] ?? {}),
|