validation-br 2.0.0-next-7 → 2.0.0-next-8

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/dist/pix-key.js CHANGED
@@ -7,7 +7,7 @@ const base_1 = require("./base");
7
7
  const cnpj_1 = require("./cnpj");
8
8
  const cpf_1 = require("./cpf");
9
9
  const email_1 = require("./email");
10
- const main_1 = require("./main");
10
+ const _1 = require(".");
11
11
  const phone_1 = require("./phone");
12
12
  const uuid_1 = require("./uuid");
13
13
  var PixKeys;
@@ -69,11 +69,11 @@ class PixKey extends base_1.Base {
69
69
  //
70
70
  validate() {
71
71
  return [
72
- { type: PixKeys.cpf, fn: main_1.isCPF },
73
- { type: PixKeys.cnpj, fn: main_1.isCNPJ },
74
- { type: PixKeys.evp, fn: main_1.isUUID },
75
- { type: PixKeys.email, fn: main_1.isEmail },
76
- { type: PixKeys.phone, fn: main_1.isPhone },
72
+ { type: PixKeys.cpf, fn: _1.isCPF },
73
+ { type: PixKeys.cnpj, fn: _1.isCNPJ },
74
+ { type: PixKeys.evp, fn: _1.isUUID },
75
+ { type: PixKeys.email, fn: _1.isEmail },
76
+ { type: PixKeys.phone, fn: _1.isPhone },
77
77
  ].some(({ type, fn }) => {
78
78
  if (fn(this._value)) {
79
79
  this._type = type;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "validation-br",
3
3
  "description": "Brazilian personal documents validation - cpf, cnpj, titulo, pis/pasep, cnh, renavam, processos judiciais, protocolo federal, código de rastreamento dos correios",
4
- "version": "2.0.0-next-7",
4
+ "version": "2.0.0-next-8",
5
5
  "author": "Cláudio Medeiros <klawdyo@gmail.com>",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
File without changes
File without changes