-
-
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.
fix: esm and cjs import and require, update multiform-validator to ve…
…rsion 2.2.9 and package.json to reflect the change
- Loading branch information
1 parent
f2c33fe
commit 0698ade
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
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/[email protected].7/+esm | ||
https://cdn.jsdelivr.net/npm/[email protected].9/+esm | ||
``` | ||
|
||
```html | ||
<script type="module"> | ||
import multiform-validator from "https://cdn.jsdelivr.net/npm/[email protected].7/+esm" | ||
import multiform-validator from "https://cdn.jsdelivr.net/npm/[email protected].9/+esm" | ||
</script> | ||
``` | ||
|
||
|
@@ -44,11 +44,11 @@ https://cdn.jsdelivr.net/npm/[email protected]/dist/cjs/index.min.js | |
unpkg: | ||
|
||
```bash | ||
https://unpkg.com/[email protected].0/dist/cjs/index.js | ||
https://unpkg.com/[email protected].9/dist/cjs/index.cjs | ||
``` | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].0/dist/cjs/index.js"></script> | ||
<script src="https://unpkg.com/[email protected].9/dist/cjs/index.cjs"></script> | ||
``` | ||
|
||
### Example of use with CDN | ||
|
@@ -71,7 +71,7 @@ using esm: | |
|
||
```html | ||
<script type="module"> | ||
import multiformValidator from "https://cdn.jsdelivr.net/npm/[email protected].7/+esm"; | ||
import multiformValidator from "https://cdn.jsdelivr.net/npm/[email protected].9/+esm"; | ||
const emailResult = multiformValidator.isEmail("123456"); | ||
const cpfResult = multiformValidator.cpfIsValid("123456"); | ||
|
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