@lenne.tech/nest-server 10.8.2 → 10.8.4
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": "10.8.
|
|
3
|
+
"version": "10.8.4",
|
|
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",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"node": ">= 20"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@apollo/gateway": "2.
|
|
65
|
+
"@apollo/gateway": "2.10.0",
|
|
66
66
|
"@getbrevo/brevo": "1.0.1",
|
|
67
67
|
"@lenne.tech/mongoose-gridfs": "1.4.2",
|
|
68
68
|
"@lenne.tech/multer-gridfs-storage": "5.0.6",
|
|
@@ -75,36 +75,36 @@
|
|
|
75
75
|
"@nestjs/passport": "10.0.3",
|
|
76
76
|
"@nestjs/platform-express": "10.4.15",
|
|
77
77
|
"@nestjs/schedule": "4.1.2",
|
|
78
|
-
"@nestjs/terminus": "10.
|
|
78
|
+
"@nestjs/terminus": "10.3.0",
|
|
79
79
|
"apollo-server-core": "3.13.0",
|
|
80
80
|
"apollo-server-express": "3.13.0",
|
|
81
81
|
"bcrypt": "5.1.1",
|
|
82
82
|
"class-transformer": "0.5.1",
|
|
83
83
|
"class-validator": "0.14.1",
|
|
84
|
-
"compression": "1.
|
|
84
|
+
"compression": "1.8.0",
|
|
85
85
|
"cookie-parser": "1.4.7",
|
|
86
86
|
"dotenv": "16.4.7",
|
|
87
87
|
"ejs": "3.1.10",
|
|
88
|
-
"graphql": "16.
|
|
88
|
+
"graphql": "16.10.0",
|
|
89
89
|
"graphql-query-complexity": "1.0.0",
|
|
90
90
|
"graphql-subscriptions": "3.0.0",
|
|
91
91
|
"graphql-upload": "15.0.2",
|
|
92
92
|
"js-sha256": "0.11.0",
|
|
93
93
|
"json-to-graphql-query": "2.3.0",
|
|
94
|
-
"light-my-request": "6.
|
|
94
|
+
"light-my-request": "6.6.0",
|
|
95
95
|
"lodash": "4.17.21",
|
|
96
|
-
"mongodb": "6.
|
|
97
|
-
"mongoose": "7.8.
|
|
96
|
+
"mongodb": "6.13.1",
|
|
97
|
+
"mongoose": "7.8.6",
|
|
98
98
|
"multer": "1.4.5-lts.1",
|
|
99
99
|
"node-mailjet": "6.0.6",
|
|
100
|
-
"nodemailer": "6.
|
|
101
|
-
"nodemon": "3.1.
|
|
100
|
+
"nodemailer": "6.10.0",
|
|
101
|
+
"nodemon": "3.1.9",
|
|
102
102
|
"passport": "0.7.0",
|
|
103
103
|
"passport-jwt": "4.0.1",
|
|
104
104
|
"reflect-metadata": "0.2.2",
|
|
105
105
|
"rfdc": "1.4.1",
|
|
106
106
|
"rimraf": "6.0.1",
|
|
107
|
-
"rxjs": "7.8.
|
|
107
|
+
"rxjs": "7.8.2",
|
|
108
108
|
"yuml-diagram": "1.2.0"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
@@ -115,16 +115,16 @@
|
|
|
115
115
|
"@nestjs/schematics": "10.2.3",
|
|
116
116
|
"@nestjs/testing": "10.4.15",
|
|
117
117
|
"@swc/cli": "0.5.2",
|
|
118
|
-
"@swc/core": "1.10.
|
|
118
|
+
"@swc/core": "1.10.18",
|
|
119
119
|
"@swc/jest": "0.2.37",
|
|
120
120
|
"@types/compression": "1.7.5",
|
|
121
121
|
"@types/cookie-parser": "1.4.8",
|
|
122
122
|
"@types/ejs": "3.1.5",
|
|
123
123
|
"@types/express": "4.17.21",
|
|
124
124
|
"@types/jest": "29.5.14",
|
|
125
|
-
"@types/lodash": "4.17.
|
|
125
|
+
"@types/lodash": "4.17.15",
|
|
126
126
|
"@types/multer": "1.4.12",
|
|
127
|
-
"@types/node": "22.
|
|
127
|
+
"@types/node": "22.13.5",
|
|
128
128
|
"@types/nodemailer": "6.4.17",
|
|
129
129
|
"@types/passport": "1.0.17",
|
|
130
130
|
"@types/supertest": "6.0.2",
|
|
@@ -144,15 +144,15 @@
|
|
|
144
144
|
"jest": "29.7.0",
|
|
145
145
|
"npm-watch": "0.13.0",
|
|
146
146
|
"pm2": "5.4.3",
|
|
147
|
-
"prettier": "3.
|
|
147
|
+
"prettier": "3.5.2",
|
|
148
148
|
"pretty-quick": "4.0.0",
|
|
149
149
|
"supertest": "7.0.0",
|
|
150
|
-
"ts-jest": "29.2.
|
|
151
|
-
"ts-loader": "9.5.
|
|
150
|
+
"ts-jest": "29.2.6",
|
|
151
|
+
"ts-loader": "9.5.2",
|
|
152
152
|
"ts-morph": "24.0.0",
|
|
153
153
|
"ts-node": "10.9.2",
|
|
154
154
|
"tsconfig-paths": "4.2.0",
|
|
155
|
-
"typescript": "5.7.
|
|
155
|
+
"typescript": "5.7.3",
|
|
156
156
|
"yalc": "1.0.0-pre.53"
|
|
157
157
|
},
|
|
158
158
|
"overrides": {
|
|
@@ -332,6 +332,21 @@ export function getPopulateOptions(info: GraphQLResolveInfo, dotSeparatedSelect?
|
|
|
332
332
|
return result;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
+
/**
|
|
336
|
+
* Get next field nodes
|
|
337
|
+
*/
|
|
338
|
+
export function getNextFieldNodes(nodes: readonly SelectionNode[]): FieldNode[] {
|
|
339
|
+
const result = [];
|
|
340
|
+
for (const node of nodes as FieldNode[]) {
|
|
341
|
+
if (node.name?.value) {
|
|
342
|
+
result.push(node);
|
|
343
|
+
} else if (node.selectionSet?.selections) {
|
|
344
|
+
result.push(...getNextFieldNodes(node.selectionSet.selections));
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return result;
|
|
348
|
+
}
|
|
349
|
+
|
|
335
350
|
/**
|
|
336
351
|
* Get populate options from selections
|
|
337
352
|
*/
|
|
@@ -342,10 +357,19 @@ export function getPopulatOptionsFromSelections(selectionNodes: readonly Selecti
|
|
|
342
357
|
return populateOptions;
|
|
343
358
|
}
|
|
344
359
|
|
|
360
|
+
const nodes: FieldNode[] = [];
|
|
345
361
|
for (const node of selectionNodes as FieldNode[]) {
|
|
362
|
+
if (node.name?.value) {
|
|
363
|
+
nodes.push(node);
|
|
364
|
+
} else if (node.selectionSet?.selections) {
|
|
365
|
+
nodes.push(...getNextFieldNodes(node.selectionSet.selections));
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
for (const node of nodes) {
|
|
346
370
|
// Set main path
|
|
347
371
|
const option: PopulateOptions = {
|
|
348
|
-
path: node.name
|
|
372
|
+
path: node.name?.value || '',
|
|
349
373
|
};
|
|
350
374
|
|
|
351
375
|
// Check for subfields
|