@carecard/validate 3.24.0 → 3.25.0

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.
Files changed (2) hide show
  1. package/lib/validate.js +1 -0
  2. package/package.json +2 -2
package/lib/validate.js CHANGED
@@ -100,6 +100,7 @@ const isJwtString = jwt => {
100
100
  return jwtRegex.test(jwt);
101
101
  };
102
102
 
103
+ // Pattern: Policy Function - owns normalization, length, and blocklist decisions for passwords.
103
104
  const validatePassword = password => {
104
105
  if (typeof password !== 'string') {
105
106
  return { isValid: false, reason: 'invalid_type' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carecard/validate",
3
- "version": "3.24.0",
3
+ "version": "3.25.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/CareCard-ca/pkg-validate.git"
@@ -47,7 +47,7 @@
47
47
  "typescript": "6.0.3"
48
48
  },
49
49
  "dependencies": {
50
- "@carecard/common-util": "3.24.0"
50
+ "@carecard/common-util": "3.25.0"
51
51
  },
52
52
  "nyc": {
53
53
  "all": true,