Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anshu-krishna committed Nov 24, 2021
1 parent 55b052b commit 01315ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ A JS module for simplifying complexly-structured-data validation.
## Installation:

```javascript
import {DataValidator} from 'https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.1/data-validator.min.js';
import {DataValidator} from 'https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.2/data-validator.min.js';

// OR

const {DataValidator} = await import('https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.1/data-validator.min.js');
const {DataValidator} = await import('https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.2/data-validator.min.js');
```

----
Expand Down Expand Up @@ -56,7 +56,7 @@ const {DataValidator} = await import('https://cdn.jsdelivr.net/gh/anshu-krishna/
```html
<script type="module">
// Load the DataValidator module;
import {DataValidator as DV} from 'https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.1/data-validator.min.js';
import {DataValidator as DV} from 'https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.2/data-validator.min.js';
// This is the expected structure
const structure = {
Expand Down Expand Up @@ -180,7 +180,6 @@ Data matches the structure:
]
}
Data doesnot match the structure:
[name]: Missing
[age]: Expected range [18, 45]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"email": "anshu.krishna5@gmail.com"
},
"license": "MIT",
"version": "1.1"
"version": "1.2"
}

0 comments on commit 01315ce

Please sign in to comment.