@cofondateurauchomage/libs 1.1.45 → 1.1.46

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.
@@ -14,7 +14,7 @@ const firstName = (0, validate_1.isMatchRegex)(regex_1.RGX.Name.regex);
14
14
  const invest = (0, validate_1.isNumber)().setMin(0).setMax(1000000).isOptional();
15
15
  const lastName = (0, validate_1.isMatchRegex)(regex_1.RGX.Name.regex);
16
16
  const linkedin = (0, validate_1.isMatchRegex)(regex_1.RGX.Linkedin.regex);
17
- const website = (0, validate_1.isMatchRegex)(regex_1.RGX.Website.regex).isOptional();
17
+ const website = (0, validate_1.isString)().isOptional();
18
18
  const motivations = (0, validate_1.isString)().setMin(10).setMax(500);
19
19
  const name = (0, validate_1.isString)().setMin(2).setMax(50);
20
20
  const partner = (0, validate_1.isString)().setMin(10).setMax(300);
package/build/regex.d.ts CHANGED
@@ -20,9 +20,4 @@ export declare const RGX: {
20
20
  pattern: string;
21
21
  message: string;
22
22
  };
23
- Website: {
24
- regex: RegExp;
25
- pattern: string;
26
- message: string;
27
- };
28
23
  };
package/build/regex.js CHANGED
@@ -7,7 +7,6 @@ const regex = {
7
7
  linkedin: /^(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profile)\/.+$/,
8
8
  name: /^[A-Za-zÜ-ü\s\-]{1,50}$/,
9
9
  tel: /^([+][1-9]{2,3}[ .\-]?)?[0-9]{1,3}([ .\-]?[0-9]{2,3}){3,6}$/,
10
- website: /^(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)$/,
11
10
  };
12
11
  const pattern = (regex) => String(regex).replace("/^", "").replace("$/", "");
13
12
  exports.RGX = {
@@ -32,9 +31,4 @@ exports.RGX = {
32
31
  pattern: pattern(regex.tel),
33
32
  message: `Veuillez entrer un numéro de téléphone valide.`,
34
33
  },
35
- Website: {
36
- regex: regex.website,
37
- pattern: pattern(regex.website),
38
- message: `Le lien doit être un URL valide. (ex: https://www.monsite.com)`,
39
- },
40
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {