@cofondateurauchomage/libs 1.0.23 → 1.0.25
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/index.d.ts +3 -4
- package/lib/index.js +3 -3
- package/lib/utils/regex.d.ts +0 -5
- package/lib/utils/regex.js +2 -7
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { SKILLS, Collections, IUser, RGX };
|
|
1
|
+
export { SKILLS } from "./const";
|
|
2
|
+
export { Collections, IUser, TSkill } from "./db.model";
|
|
3
|
+
export { RGX } from "./utils/regex";
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RGX = exports.Collections = exports.SKILLS = void 0;
|
|
4
|
-
|
|
4
|
+
var const_1 = require("./const");
|
|
5
5
|
Object.defineProperty(exports, "SKILLS", { enumerable: true, get: function () { return const_1.SKILLS; } });
|
|
6
|
-
|
|
6
|
+
var db_model_1 = require("./db.model");
|
|
7
7
|
Object.defineProperty(exports, "Collections", { enumerable: true, get: function () { return db_model_1.Collections; } });
|
|
8
|
-
|
|
8
|
+
var regex_1 = require("./utils/regex");
|
|
9
9
|
Object.defineProperty(exports, "RGX", { enumerable: true, get: function () { return regex_1.RGX; } });
|
package/lib/utils/regex.d.ts
CHANGED
package/lib/utils/regex.js
CHANGED
|
@@ -6,18 +6,13 @@ exports.RGX = {
|
|
|
6
6
|
regex: /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,
|
|
7
7
|
},
|
|
8
8
|
Name: {
|
|
9
|
-
regex: /^[A-Za-z
|
|
10
|
-
pattern: "[A-Za-z
|
|
9
|
+
regex: /^[A-Za-z]{1,24}([ -]{1}[A-Za-z]{1,24}){0,8} ?$/,
|
|
10
|
+
pattern: "[A-Za-z]{1,24}([ -]{1}[A-Za-z]{1,24}){0,8} ?",
|
|
11
11
|
message: "Accepte les noms composés (espace ou -) et les accents. Les caractères spéciaux ne sont pas autorisés.",
|
|
12
12
|
},
|
|
13
13
|
Date: {
|
|
14
14
|
regex: /^([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))$/,
|
|
15
15
|
},
|
|
16
|
-
City: {
|
|
17
|
-
regex: /^(?=(.*[A-Za-z]){1,45})[A-Za-z]{1,20}([ -]{1}[A-Za-z]{1,24}){0,8}$/,
|
|
18
|
-
pattern: "(?=(.*[A-Za-z]){1,45})[A-Za-z]{1,20}([ -]{1}[A-Za-z]{1,24}){0,8}",
|
|
19
|
-
message: "Veuillez entrer un nom de ville valide.",
|
|
20
|
-
},
|
|
21
16
|
Tel: {
|
|
22
17
|
regex: /^([+]{1}[1-9]{2,3}[ .-]?)?[0-9]{1,3}([ .-]?[0-9]{2,3}){3,6}$/,
|
|
23
18
|
pattern: "([+]{1}[1-9]{2,3}[ .-]?)?[0-9]{1,3}([ .-]?[0-9]{2,3}){3,6}",
|