extended-proptypes
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "extended-proptypes", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Useful proptypes for react components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -61,6 +61,5 @@ [![Build Status](https://travis-ci.org/peterkhayes/extended-proptypes.svg?branch=master)](https://travis-ci.org/peterkhayes/extended-proptypes) [![Coverage Status](https://coveralls.io/repos/github/peterkhayes/extended-proptypes/badge.svg?branch=master)](https://coveralls.io/github/peterkhayes/extended-proptypes?branch=master) | ||
- `collectionOf(validator)`: An array or a plain object whose values match the provided validator. | ||
- `iterable`: An iterable. Errors if enviroment does not support symbols. | ||
- `iterableOf(validator)`: An iterable whose values match the provided validator. Errors if enviroment does not support symbols. | ||
- `keyedObject(regex)`: An object whose keys match the provided regex. | ||
- `keyedObjectOf(regex, validator)`: An object whose keys match the provided regex and whose values match the provided validator. | ||
- `iterable`: An iterable. Errors if enviroment does not support symbols. | ||
@@ -71,3 +70,3 @@ ### General Primatives | ||
- `stringMatching(regex)`: A string that matches the provided regex. | ||
- `stringWithLength(min, max=Infinity)`: A string with length between min and max. | ||
- `stringWithLength(min, max=Infinity)`: A string with length between min and max, inclusive. If only one argument is provided, requires exactly that length. | ||
- `hex`: A string consisting of hex characters, with an optional 0x at the beginning. | ||
@@ -85,3 +84,3 @@ - `date`: A date object. | ||
- `cssLength`: A single css length, like `24px`, `43%` or `4rem`. | ||
- `cssSize`: Between 1 and 4 css sizes. | ||
- `cssSize`: Between 1 and 4 css lengths. | ||
- `color`: A hex or rgb(a) string | ||
@@ -88,0 +87,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37676
88