@@ -27,6 +27,18 @@ export function Installation() {
2727 yarn add multiform-validator
2828 </ SyntaxHighlighter >
2929 </ div >
30+
31+ < div className = "" >
32+ < SyntaxHighlighter
33+ customStyle = { {
34+ textAlign : "center" ,
35+ } }
36+ language = "bash"
37+ style = { a11yDark }
38+ >
39+ pnpm add multiform-validator
40+ </ SyntaxHighlighter >
41+ </ div >
3042 </ >
3143 ) ;
3244}
@@ -55,11 +67,10 @@ import { FUNCTION_NAME } from 'multiform-validator';
5567export function UsageCDNExample ( ) {
5668 return (
5769 < SyntaxHighlighter language = "html" style = { a11yDark } >
58- { `<script src="https://cdn.jsdelivr.net/npm/[email protected] /dist/bundle.min.js"></script> 59-
60- <script>
61- const emailResult = isEmail('123456');
62- const cpfResult = cpfIsValid('123456');
70+ { `<script type="module">
71+ import { isEmail, cpfIsValid } from "https://cdn.jsdelivr.net/npm/[email protected] /+esm"; 72+ const emailResult = isEmail("123456");
73+ const cpfResult = cpfIsValid("123456");
6374
6475 console.log(emailResult); // returns false
6576 console.log(cpfResult.isValid); // returns false
@@ -74,19 +85,21 @@ export function Cdns() {
7485 < div className = "mb-4" >
7586 < h3 className = "mb-2" > jsDelivr</ h3 >
7687 < SyntaxHighlighter language = "bash" style = { a11yDark } >
77- https://cdn.jsdelivr.net/npm/multiform-validator@2.1.2/dist/bundle.min.js
88+ https://cdn.jsdelivr.net/npm/multiform-validator@2.3.1/+esm
7889 </ SyntaxHighlighter >
7990 < SyntaxHighlighter language = "html" style = { a11yDark } >
80- { `<script src="https://cdn.jsdelivr.net/npm/[email protected] /dist/bundle.min.js"></script>` } 91+ { `<script type="module">
92+ import multiformValidator from "https://cdn.jsdelivr.net/npm/[email protected] /+esm" 93+ </script>` }
8194 </ SyntaxHighlighter >
8295 </ div >
8396 < div className = "mb-4" >
8497 < h3 className = "mb-2" > unpkg</ h3 >
8598 < SyntaxHighlighter language = "bash" style = { a11yDark } >
86- https://unpkg.com/multiform-validator@2.1.2 /dist/bundle.js
99+ https://unpkg.com/multiform-validator@2.3.1 /dist/cjs/index.cjs
87100 </ SyntaxHighlighter >
88101 < SyntaxHighlighter language = "html" style = { a11yDark } >
89- { `<script src="https://unpkg.com/multiform-validator@2.1.2 /dist/bundle.js "></script>` }
102+ { `<script src="https://unpkg.com/multiform-validator@2.3.1 /dist/cjs/index.cjs "></script>` }
90103 </ SyntaxHighlighter >
91104 </ div >
92105 </ >
0 commit comments