Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
pcln-codemods
Advanced tools
This package uses a modified version of Facebook's [react-codemod](https://github.com/reactjs/react-codemod) to run JSCodeshift transforms that can help you upgrade projects from DS4 to DS5.
This package uses a modified version of Facebook's react-codemod to run JSCodeshift transforms that can help you upgrade projects from DS4 to DS5.
npx pcln-codemods <transform> <path> [...options]
transform
- name of transform, see available transforms below.path
- files or directory to transform--dry
option for a dry-run and use --print
to print the output for comparisonThis will start an interactive wizard, and then run the specified transform.
Note: It's recommended to run the transforms in this order because some props conflict (e.g. align
on Flex
and Text
) and may require manual intervention after running each transform.
Caution: These codemods will not catch everything (e.g. passing a variable as a prop instead of a primitive value). Please review the changes they produce carefully and confirm that they'll behave as expected.
button-fullwidth-to-width
Replaces the fullWidth
prop with width={1}
on Button
elements.
npx pcln-codemods button-fullwidth-to-width <path>
rename-deprecated-props-flex
Renames deprecated props on Flex
elements.
npx pcln-codemods rename-deprecated-props-flex <path>
rename-deprecated-props-text
Renames deprecated props on Text
elements.
npx pcln-codemods rename-deprecated-props-text <path>
stamp-variation-solid-to-fill
Replaces the deprecated solid
variation on Stamp
elements with fill
.
npx pcln-codemods stamp-variation-solid-to-fill <path>
FAQs
This package uses a modified version of Facebook's [react-codemod](https://github.com/reactjs/react-codemod) to run JSCodeshift transforms that can help you upgrade projects from DS4 to DS5.
The npm package pcln-codemods receives a total of 20 weekly downloads. As such, pcln-codemods popularity was classified as not popular.
We found that pcln-codemods demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.