@lenne.tech/nest-server 11.16.0 → 11.16.1

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.16.0",
3
+ "version": "11.16.1",
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",
@@ -689,6 +689,12 @@ export class MapAndValidatePipe implements PipeTransform {
689
689
  }
690
690
 
691
691
  async transform(value: any, metadata: ArgumentMetadata) {
692
+ // Skip custom decorator parameters (e.g. @CurrentUser()) — they are not user input
693
+ // and must not be mutated by whitelist stripping or validation
694
+ if (metadata.type === 'custom') {
695
+ return value;
696
+ }
697
+
692
698
  const { metatype } = metadata;
693
699
 
694
700
  if (DEBUG_VALIDATION) {