
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
validate-prop-types
Advanced tools
This package is a modified version of PropTypes.checkPropTypes(), the difference
being that it returns errors as an object instead of issuing a console.error.
ExampleComponent.js
const PropTypes = require('prop-types')
const ExampleComponent = () => 'hello'
ExampleComponent.propTypes = {
a: PropTypes.string.isRequired,
b: PropTypes.number,
c: PropTypes.object
}
ExampleComponent.test.js
const assert = require('assert')
const validatePropTypes = require('validate-prop-types')
const ExampleComponent = require('./ExampleComponent')
const data = {
b: 'a string',
c: 'another string'
}
assert.deepEqual(validatePropTypes(ExampleComponent.propTypes, data), {
a: 'The prop `a` is marked as required in `Component`, but its value is `undefined`.',
b: 'Invalid prop `b` of type `string` supplied to `Component`, expected `number`.',
c: 'Invalid prop `c` of type `string` supplied to `Component`, expected `object`.'
})
FAQs
Validate React Prop Types, return errors as an object.
The npm package validate-prop-types receives a total of 28 weekly downloads. As such, validate-prop-types popularity was classified as not popular.
We found that validate-prop-types 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.