joi 17.1.1 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +8 -10
- package/dist/joi-browser.min.js +1 -1
- package/lib/base.js +35 -0
- package/lib/common.js +5 -2
- package/lib/extend.js +3 -2
- package/lib/index.d.ts +2207 -0
- package/lib/manifest.js +1 -1
- package/lib/ref.js +8 -6
- package/lib/schemas.js +8 -1
- package/lib/template.js +27 -10
- package/lib/trace.js +1 -1
- package/lib/types/alternatives.js +12 -8
- package/lib/types/any.js +1 -1
- package/lib/types/array.js +35 -3
- package/lib/types/date.js +4 -4
- package/lib/types/keys.js +13 -8
- package/lib/types/number.js +7 -3
- package/lib/types/string.js +45 -20
- package/lib/validator.js +37 -4
- package/package.json +35 -33
package/LICENSE.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Copyright (c) 2012-2020, Sideway Inc, and project contributors
|
|
2
|
-
Copyright (c) 2012-2014, Walmart
|
|
1
|
+
Copyright (c) 2012-2020, Sideway. Inc, and project contributors.<br>
|
|
2
|
+
Copyright (c) 2012-2014, Walmart.<br>
|
|
3
3
|
All rights reserved.
|
|
4
4
|
|
|
5
5
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
package/README.md
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# @hapi/joi
|
|
1
|
+
# joi
|
|
4
2
|
|
|
5
3
|
#### The most powerful schema description language and data validator for JavaScript.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
## Installation
|
|
6
|
+
`npm install joi`
|
|
8
7
|
|
|
9
|
-
### Visit the [
|
|
8
|
+
### Visit the [joi.dev](https://joi.dev) Developer Portal for tutorials, documentation, and support
|
|
10
9
|
|
|
11
10
|
## Useful resources
|
|
12
11
|
|
|
13
|
-
- [Documentation and API](https://
|
|
14
|
-
- [Versions status](https://
|
|
15
|
-
- [Changelog](https://
|
|
16
|
-
- [Project policies](https://
|
|
17
|
-
- [Free and commercial support options](https://hapi.dev/support/)
|
|
12
|
+
- [Documentation and API](https://joi.dev/api/)
|
|
13
|
+
- [Versions status](https://joi.dev/resources/status/#joi)
|
|
14
|
+
- [Changelog](https://joi.dev/resources/changelog/)
|
|
15
|
+
- [Project policies](https://joi.dev/policies/)
|