1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-08 04:03:12 +03:00
Ghost/core/server/data/validation
Hannah Wolfe 1688b17c49
Refactored + cleaned up validation tools
- General code cleanup
- Removed unused notContains rule
- Swapped custom empty rule for builtin isEmpty rule
- Dropped usage of .extend on validator, as this was removed 2 years ago!
   - This will allow us to upgrade the validator dependency to a much newer version
- Changed our internal validator module to only expose the functions we use.
   - This gives us a clearer Public API
   - It makes it easier to see if we are affected by changes in validator
   - It's still easy to add another validator, we just have to update what we require
   - We can potentially use this to make smaller builds esp for client-side usage
   - Once ripped out into a module we can use ES imports :D
- Rejigged and _slightly_ improved the tests
2021-06-15 15:17:20 +01:00
..
index.js Moved password validation into a library 2021-06-15 12:33:14 +01:00
validate.js Refactored + cleaned up validation tools 2021-06-15 15:17:20 +01:00
validator.js Refactored + cleaned up validation tools 2021-06-15 15:17:20 +01:00