stackseed 1.0.0 → 1.0.3
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/README.md
CHANGED
|
@@ -73,7 +73,7 @@ nano .env
|
|
|
73
73
|
npm run dev
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
Your backend is now running at `http://localhost:5000`
|
|
76
|
+
Your backend is now running at `http://localhost:5000`
|
|
77
77
|
|
|
78
78
|
## Project Structure
|
|
79
79
|
|
|
@@ -412,12 +412,4 @@ A: Absolutely! The generated code is yours to modify.
|
|
|
412
412
|
|
|
413
413
|
MIT License - see [LICENSE](LICENSE) file for details.
|
|
414
414
|
|
|
415
|
-
## Support
|
|
416
415
|
|
|
417
|
-
- 📖 [Documentation](https://github.com/yourusername/stackseed/wiki)
|
|
418
|
-
- 🐛 [Issue Tracker](https://github.com/yourusername/stackseed/issues)
|
|
419
|
-
- 💬 [Discussions](https://github.com/yourusername/stackseed/discussions)
|
|
420
|
-
|
|
421
|
-
---
|
|
422
|
-
|
|
423
|
-
**Built with ❤️ for developers who value clean architecture and fast iteration.**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stackseed",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "CLI-first backend boilerplate generator for production-ready Node.js applications",
|
|
5
5
|
"bin": {
|
|
6
6
|
"stackseed": "./dist/index.js"
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"@types/node": "^25.0.9",
|
|
52
52
|
"typescript": "^5.9.3"
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|
|
@@ -11,13 +11,11 @@ import { ApiError } from '../utils/ApiError';
|
|
|
11
11
|
export const validateDto = (dtoClass: any) => {
|
|
12
12
|
return async (req: Request, res: Response, next: NextFunction) => {
|
|
13
13
|
try {
|
|
14
|
-
// Transform plain object to class instance
|
|
15
14
|
const dtoInstance = plainToInstance(dtoClass, req.body);
|
|
16
15
|
|
|
17
|
-
// Validate the instance
|
|
18
16
|
const errors: ValidationError[] = await validate(dtoInstance, {
|
|
19
|
-
whitelist: true,
|
|
20
|
-
forbidNonWhitelisted: true,
|
|
17
|
+
whitelist: true,
|
|
18
|
+
forbidNonWhitelisted: true,
|
|
21
19
|
skipMissingProperties: false,
|
|
22
20
|
});
|
|
23
21
|
|