-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update multiform-validator to version 2.6.0 in README and pack…
…age.json
- Loading branch information
1 parent
43fa305
commit abf550d
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
``` | ||
|
||
|
@@ -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"); | ||
|
@@ -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 | ||
|
@@ -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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters