Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
deku-prop-types-immutable
Advanced tools
Immutable prop type validation for Deku components
npm install --save deku-prop-types-immutable
Note: These Prop Type Validators are meant to be used alongside deku-prop-types
function-component.jsx
import {element} from 'deku'
import ImmutablePropTypes from 'deku-prop-types-immutable'
import {PropTypes, validate} from 'deku-prop-types'
const Counter = ({props}) => <div>{props.count}</div>
Count.propTypes = {
count: PropTypes.number.isRequired,
config: ImmutablePropTypes.Map
}
export default validate(Counter)
object-component.jsx
import {element} from 'deku'
import ImmutablePropTypes from 'deku-prop-types-immutable'
import {PropTypes, validate} from 'deku-prop-types'
const Counter = {
propTypes: {
count: PropTypes.number.isRequired,
config: ImmutablePropTypes.Map
},
render({props}) {
return <div>{props.count}</div>
}
}
export default validate(Counter)
Validate prop is an Immutable.Iterable
Validate prop is an Immutable.List
Validate prop is an Immutable.Map
Validate prop is an Immutable.OrderedMap
Validate prop is an Immutable.OrderedSet
Validate prop is an Immutable.Record
Validate prop is an Immutable.Set
Validate prop is an Immutable.Seq
Validate prop is an Immutable.Stack
MIT © Dustin Specker
FAQs
Immutable prop type validation for Deku components
The npm package deku-prop-types-immutable receives a total of 1 weekly downloads. As such, deku-prop-types-immutable popularity was classified as not popular.
We found that deku-prop-types-immutable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.