
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
Namespaces are one honking great idea -- let's do more of those!
composeNS is namespaced compose function that can be used with recompose to avoid prop name collision.
compose(
opts: string | { namespace: string, propMap: Array<string> | { [string]: string } },
...functions: Array<Function>,
): Function
import ReactDOM from 'react-dom'
import { compose, withProps, mapProps, withState } from 'recompose';
import composeNS from 'composens';
const App = compose(
withState('state', 'setState', { location: 'france' }),
composeNS(
{
namespace: 'toulon',
propMap: { 'state': 'parentState' }, // you can still access props passed in using a the propMap option that is a array of props you want passed in, or an object `{ key: alias }`
},
withState('state', 'setState', { prisoner: 24601 })
mapProps(props => ({ description: `location: ${props.parentState.location}, prisoner: ${props.state.prisoner}` }))
)
)((props) => <div>description: {props.toulon.description}</div>);
ReactDom.render(<App />, document.querySelector('#container'));
FAQs
A name spaced compose function to avoid prop collision
We found that composens 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.