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

deku-prop-types-immutable

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deku-prop-types-immutable - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

15

lib/index.js

@@ -118,2 +118,17 @@ 'use strict';

},
get shape() {
return function (shape) {
return (0, _checkerFactory2.default)('shape', function (prop, key) {
var validators = Object.keys(shape);
for (var i = 0; i < validators.length; i++) {
var validatorResult = shape[validators[i]].validate(prop.get(validators[i]), key + '.' + validators[i]);
if (validatorResult instanceof Error) {
return validatorResult;
}
}
});
};
},
get stack() {

@@ -120,0 +135,0 @@ return immutableCheckerFactory('Stack');

2

package.json
{
"name": "deku-prop-types-immutable",
"version": "0.2.0",
"version": "0.2.1",
"description": "Immutable prop type validation for Deku components",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -84,2 +84,4 @@ # deku-prop-types-immutable

Validate each value is of a certain type
### ImmutablePropTypes.shape
Validate a property's value matches the specified type. This works with `Iterable`, `Map`, and `OrderedMap`.
### ImmutablePropTypes.stack

@@ -86,0 +88,0 @@ Validate prop is an [Immutable.Stack](https://facebook.github.io/immutable-js/docs/#/Stack)

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