smart-auth-validator 1.3.10 → 1.4.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/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# smart-auth-validator
|
|
2
2
|
Smart, type-safe, zero-regex validation middleware for Node.js backends. Supports Fastify and Express out-of-the-box. Provides standard rules for email, password, name, phone, and more. Built for backend developers to avoid repetitive validation logic.
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Smart Auth Validator
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/smart-auth-validator)
|
|
7
7
|
[](https://opensource.org/licenses/ISC)
|
|
@@ -14,7 +14,7 @@ Smart, type-safe, zero-regex validation middleware for Node.js backends. Support
|
|
|
14
14
|
|
|
15
15
|
- Type-safe validation with **TypeScript**
|
|
16
16
|
- Supports **Fastify** and **Express** out of the box
|
|
17
|
-
- Standard rules for common fields: `email`, `password`, `name`, `phone`, etc.
|
|
17
|
+
- Standard rules for common fields: `image`, `email`, `password`, `name`, `phone`, etc.
|
|
18
18
|
- Returns structured **errors** for each field
|
|
19
19
|
- Minimal and lightweight
|
|
20
20
|
- Easy to extend with custom rules
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smart-auth-validator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Zero-regex, type-safe authentication and form validation for Fastify and Express",
|
|
5
5
|
"author": "Muhammad Burhan Chughtai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"prepublishOnly": "npm run test && npm run build"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"express": "^4.18.2",
|
|
31
|
+
"express": "^4.18.2 || ^5.0.0",
|
|
32
32
|
"fastify": "^5.7.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
38
38
|
"@typescript-eslint/parser": "^8.56.1",
|
|
39
39
|
"eslint": "^10.0.2",
|
|
40
|
-
"express": "^
|
|
40
|
+
"express": "^5.0.0",
|
|
41
41
|
"fastify": "^5.7.4",
|
|
42
42
|
"tsup": "^8.5.1",
|
|
43
43
|
"typescript": "^5.9.3",
|