Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
babel-plugin-vdux-transform
Advanced tools
Babel plugin to instrument vdux components with custom transforms
Forked from the excellent babel-plugin-react-transform. Does the same thing but works with components that aren't passed to any sort of constructor (e.g. React.createClass
) so that it can be used with vdux and other things like deku.
This plugin doesn't do anything on its own, it just enables you to write transforms for your components. You apply those transforms like this:
{
plugins: [
["react-transform", {
"transforms": [{
// can be an NPM module name or a local path
"transform": "vdux-transform-hmr"
}, {
// can be an NPM module name or a local path
"transform": "./src/my-custom-transform"
}]
}]
]
}
A trivial transform to add displayName's to components looks like this:
function transform (opts) {
return (component) => {
const parts = opts.filename.split('/')
const file = parts[parts.length - 1]
const name = file.slice(0, file.indexOf('.'))
const displayName = name[0].toUpperCase() + name.slice(1)
return {
displayName,
...component,
}
}
}
FAQs
Babel plugin to instrument vdux components with custom transforms
The npm package babel-plugin-vdux-transform receives a total of 3 weekly downloads. As such, babel-plugin-vdux-transform popularity was classified as not popular.
We found that babel-plugin-vdux-transform 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.
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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.