Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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 each property's value is of a certain type
Validate prop is an Immutable.List
Validate each value is of a certain type
Validate prop is an Immutable.Map
Validate each property's value is of a certain type
Validate prop is an Immutable.OrderedMap
Validate each property's value is of a certain type
Validate prop is an Immutable.OrderedSet
Validate each value is of a certain type
Validate prop is an Immutable.Record
Validate prop is an Immutable.Set
Validate each value is of a certain type
Validate prop is an Immutable.Seq
Validate each value is of a certain type
Validate prop is an Immutable.Stack
Validate each value is of a certain type
MIT © Dustin Specker
FAQs
Immutable prop type validation for Deku components
The npm package deku-prop-types-immutable receives a total of 4 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.