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.
@dexhunterio/swaps
Advanced tools
## How to development - Update your code in `/src/main.tsx` - Run the demo by editing the code in `src/App.tsx` - Build the library to test with the command: ```console npm run build-lib ``` Your library will be located in `/lib` - To test
/src/main.tsx
src/App.tsx
npm run build-lib
Your library will be located in /lib
src/App.tsx
- import Swap from "./app/main";
+ import Swap from '../lib/main'
+ import '../lib/assets/style.css'
npm version patch
npm publish
npm i @dexhunterio/swaps
import Swap from '@dexhunterio/swaps'
import '@dexhunterio/swaps/lib/assets/style.css'
...
function App() {
const [isOpenWallet, setIsOpenWallet] = useState(false)
return <div>
<Swap openWallet={isOpenWallet} onOpenWallet={(open) => setIsOpenWallet(open)} />
<button onClick={() => setIsOpenWallet(true)} className="text-white">OpenWallet</button>
</div>;
}
FAQs
### How to use library (with React)
The npm package @dexhunterio/swaps receives a total of 881 weekly downloads. As such, @dexhunterio/swaps popularity was classified as not popular.
We found that @dexhunterio/swaps 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.
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.