Skip to content

Commit

Permalink
chore: update multiform-validator to version 2.6.0 in README and pack…
Browse files Browse the repository at this point in the history
…age.json
  • Loading branch information
gabriel-logan committed Feb 15, 2025
1 parent 43fa305 commit abf550d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Feel free to find bugs and report them to me. Your feedback is highly appreciate
jsDelivr:

```bash
https://cdn.jsdelivr.net/npm/multiform-validator@2.5.2/+esm
https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm
```

```html
<script type="module">
import multiform-validator from "https://cdn.jsdelivr.net/npm/multiform-validator@2.5.2/+esm"
import multiform-validator from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm"
</script>
```

Expand All @@ -34,19 +34,19 @@ https://cdn.jsdelivr.net/npm/[email protected]/+esm
unpkg:

```bash
https://unpkg.com/multiform-validator@2.5.2/dist/cjs/index.cjs
https://unpkg.com/multiform-validator@2.6.0/dist/cjs/index.cjs
```

```html
<script src="https://unpkg.com/multiform-validator@2.5.2/dist/cjs/index.cjs"></script>
<script src="https://unpkg.com/multiform-validator@2.6.0/dist/cjs/index.cjs"></script>
```

### Example of use with CDN

using cjs:

```html
<script src="https://unpkg.com/multiform-validator@2.5.2/dist/cjs/index.cjs"></script>
<script src="https://unpkg.com/multiform-validator@2.6.0/dist/cjs/index.cjs"></script>
<script>
const emailResult = isEmail("123456");
const cpfResult = cpfIsValid("123456");
Expand All @@ -61,9 +61,9 @@ using esm:

```html
<script type="module">
import multiformValidator from "https://cdn.jsdelivr.net/npm/multiform-validator@2.5.2/+esm";
const emailResult = multiformValidator.isEmail("123456");
const cpfResult = multiformValidator.cpfIsValid("123456");
import mv from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm";
const emailResult = mv.isEmail("123456");
const cpfResult = mv.cpfIsValid("123456");
console.log(emailResult); // returns false
console.log(cpfResult.isValid); // returns false
Expand Down Expand Up @@ -140,9 +140,9 @@ This package contains various modules for validating different types of data. Be
### For better information, read the documentation

```javascript
const validator = require("multiform-validator");
const mv = require("multiform-validator");
// or
import validator from "multiform-validator";
import mv from "multiform-validator";

or;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multiform-validator",
"version": "2.5.2",
"version": "2.6.0",
"description": "Javascript library made to validate, several form fields, such as: email, images, phone, password, cpf etc.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down

0 comments on commit abf550d

Please sign in to comment.