New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.4 to 1.1.5

lib/validators/elementWithType.js

10

lib/index.js

@@ -25,2 +25,6 @@ "use strict";

var _validatorsElementWithType = require("./validators/elementWithType");
var _validatorsElementWithType2 = _interopRequireDefault(_validatorsElementWithType);
var _validatorsEmailAddress = require("./validators/emailAddress");

@@ -70,2 +74,6 @@

var _validatorsPrimative = require("./validators/primative");
var _validatorsPrimative2 = _interopRequireDefault(_validatorsPrimative);
var _validatorsStringMatching = require("./validators/stringMatching");

@@ -93,2 +101,3 @@

cssSize: _validatorsCssSize2["default"],
elementWithType: _validatorsElementWithType2["default"],
emailAddress: _validatorsEmailAddress2["default"],

@@ -105,2 +114,3 @@ hex: _validatorsHex2["default"],

percent: _validatorsPercent2["default"],
primative: _validatorsPrimative2["default"],
stringMatching: _validatorsStringMatching2["default"],

@@ -107,0 +117,0 @@ stringWithLength: _validatorsStringWithLength2["default"],

5

package.json
{
"name": "extended-proptypes",
"version": "1.1.4",
"version": "1.1.5",
"description": "Useful proptypes for react components",

@@ -25,3 +25,4 @@ "main": "lib/index.js",

"mocha-lcov-reporter": "^1.2.0",
"proptypes": "^0.14.3"
"proptypes": "^0.14.3",
"react": "^15.4.1"
},

@@ -28,0 +29,0 @@ "keywords": [

4

README.md

@@ -55,2 +55,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)

### React:
- `elementWithType(Type)`: A react element matching the provided type, which may be a class or a function.
### Collections

@@ -65,2 +68,3 @@ - `collection`: An array or a plain object.

### General Primatives
- `primative`: a number, a string, or a boolean.
- `stringMatching(regex)`: A string that matches the provided regex.

@@ -67,0 +71,0 @@ - `stringWithLength(min, max=Infinity)`: A string with length between min and max.

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