@cofondateurauchomage/libs 1.0.30 → 1.0.32
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/lib/db.model.d.ts +1 -0
- package/lib/utils/regex.d.ts +0 -4
- package/lib/utils/regex.js +0 -4
- package/package.json +1 -1
- package/lib/utils/checkSkills.d.ts +0 -7
- package/lib/utils/checkSkills.js +0 -19
package/lib/db.model.d.ts
CHANGED
package/lib/utils/regex.d.ts
CHANGED
package/lib/utils/regex.js
CHANGED
|
@@ -28,8 +28,4 @@ exports.RGX = {
|
|
|
28
28
|
pattern: `(?=.*[0-9])(?=.*[A-z])([^\\s]){8,24}`,
|
|
29
29
|
message: "Votre mot de passe doit contenir entre 8 et 24 caractères dont 1 chiffre et 1 lettre.",
|
|
30
30
|
},
|
|
31
|
-
Text: {
|
|
32
|
-
regex: /^(?=(.*[A-Za-z]){10}).{10,300}$/,
|
|
33
|
-
message: "Le texte doit contenir au moins 10 lettres et ne pas excéder 300 caractères.",
|
|
34
|
-
},
|
|
35
31
|
};
|
package/package.json
CHANGED
package/lib/utils/checkSkills.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkSkills = void 0;
|
|
4
|
-
const const_1 = require("../const");
|
|
5
|
-
/**
|
|
6
|
-
* Checks if at least one skill is checked and has the correct value
|
|
7
|
-
* @param skills
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
function checkSkills(skills) {
|
|
11
|
-
let valid = skills && skills.length > 0 ? true : false;
|
|
12
|
-
skills &&
|
|
13
|
-
skills.forEach((skill) => {
|
|
14
|
-
if (!const_1.SKILLS.includes(skill))
|
|
15
|
-
valid = false;
|
|
16
|
-
});
|
|
17
|
-
return valid;
|
|
18
|
-
}
|
|
19
|
-
exports.checkSkills = checkSkills;
|