vality-core 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +6 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -5,7 +5,7 @@ Value objects e validações para formulários (CPF, CNPJ, Email, Moeda, DatePic
5
5
  ## 📖 Documentação completa
6
6
 
7
7
  **Instalação, API, exemplos em Vue 3, React e Angular:**
8
- **[Documentação principal →](docs/README.md)**
8
+ **[Documentação principal →](https://github.com/weslanra/vality-core/tree/main/docs)**
9
9
 
10
10
  ## Instalação
11
11
 
@@ -19,8 +19,11 @@ npm install vality-core
19
19
  import { Cpf, Cnpj, Email, Moeda, DatePicker } from "vality-core";
20
20
 
21
21
  const cpf = new Cpf("123.456.789-09");
22
+ console.log(cpf.ehValido) // true
23
+
22
24
  const email = new Email("usuario@exemplo.com");
25
+ console.log(email.ehValido) // true
26
+
23
27
  const moeda = new Moeda(1000);
28
+ console.log(moeda.valor) // R$ 1000,00
24
29
  ```
25
-
26
- Antes de publicar no NPM, substitua `seu-usuario` na URL da documentação pelo seu usuário ou organização no GitHub.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vality-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Value objects e validações para formulários (CPF, CNPJ, Email, Moeda, DatePicker, etc.)",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",