Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extended-proptypes

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extended-proptypes - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc