@win2win/shared 1.0.248 → 1.0.249

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,8 @@ export declare enum PropValidatorKeys {
14
14
  DNI = "dni",
15
15
  IBAN = "iban",
16
16
  INE = "ine",
17
- RFC = "rfc"
17
+ RFC = "rfc",
18
+ CURP = "curp"
18
19
  }
19
20
  export declare const VALIDATORS: {
20
21
  fn: (val: number) => (control: GamaPropModel) => boolean;
@@ -104,6 +104,13 @@ exports.GamaPropValidatorsMap = {
104
104
  message: "El INE no es válido",
105
105
  label: "Identificación México (INE)",
106
106
  },
107
+ curp: {
108
+ fn: () => (control) => {
109
+ return true;
110
+ },
111
+ message: "El CURP no es válido",
112
+ label: "Identificación México (CURP)",
113
+ },
107
114
  rfc: {
108
115
  fn: () => (control) => {
109
116
  return true;
@@ -126,5 +133,6 @@ var PropValidatorKeys;
126
133
  // ID México
127
134
  PropValidatorKeys["INE"] = "ine";
128
135
  PropValidatorKeys["RFC"] = "rfc";
136
+ PropValidatorKeys["CURP"] = "curp";
129
137
  })(PropValidatorKeys || (exports.PropValidatorKeys = PropValidatorKeys = {}));
130
138
  exports.VALIDATORS = Object.entries(exports.GamaPropValidatorsMap).map(([key, value]) => ({ value: key, ...value }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.248",
3
+ "version": "1.0.249",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/README.md DELETED
@@ -1,11 +0,0 @@
1
- # README #
2
- version 1.0.1
3
-
4
- ### Como hacer deploy del repo
5
-
6
- * Correr el comando
7
- `npm run deploy`
8
-
9
- * [Enlace al repo](https://www.npmjs.com/package/@win2win/shared)
10
-
11
-