Skip to content

Commit

Permalink
chore: update version to 2.5.2 in README and package.json; fix: inclu…
Browse files Browse the repository at this point in the history
…de index.ts in tsconfig
  • Loading branch information
gabriel-logan committed Feb 5, 2025
1 parent d0fed3e commit 1a3131b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
12 changes: 6 additions & 6 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/[email protected].1/+esm
https://cdn.jsdelivr.net/npm/[email protected].2/+esm
```

```html
<script type="module">
import multiform-validator from "https://cdn.jsdelivr.net/npm/[email protected].1/+esm"
import multiform-validator from "https://cdn.jsdelivr.net/npm/[email protected].2/+esm"
</script>
```

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

```bash
https://unpkg.com/[email protected].1/dist/cjs/index.cjs
https://unpkg.com/[email protected].2/dist/cjs/index.cjs
```

```html
<script src="https://unpkg.com/[email protected].1/dist/cjs/index.cjs"></script>
<script src="https://unpkg.com/[email protected].2/dist/cjs/index.cjs"></script>
```

### Example of use with CDN

using cjs:

```html
<script src="https://unpkg.com/[email protected].1/dist/cjs/index.cjs"></script>
<script src="https://unpkg.com/[email protected].2/dist/cjs/index.cjs"></script>
<script>
const emailResult = isEmail("123456");
const cpfResult = cpfIsValid("123456");
Expand All @@ -61,7 +61,7 @@ using esm:

```html
<script type="module">
import multiformValidator from "https://cdn.jsdelivr.net/npm/[email protected].1/+esm";
import multiformValidator from "https://cdn.jsdelivr.net/npm/[email protected].2/+esm";
const emailResult = multiformValidator.isEmail("123456");
const cpfResult = multiformValidator.cpfIsValid("123456");
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.1",
"version": "2.5.2",
"description": "Javascript library made to validate, several form fields, such as: email, images, phone, password, cpf etc.",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"removeComments": true,
"moduleResolution": "node",
},
"include": ["src/**/*"]
"include": ["src/**/*", "index.ts"],
}

0 comments on commit 1a3131b

Please sign in to comment.