Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
sling-web-sdk
Advanced tools
The sling-web-sdk is a front-end layer of abstraction for communicating with all kinds of back-end services. Built with Redux, it's usable in any framework in the front-end, now and in the future.
npm install --save sling-web-sdk
Import and pass the store to your application. This step depends on the framework (or the lack of) that you are using, but in most cases, you can just import it at the entry point.
import { Store } from 'sling-web-sdk';
The actions are generic functions that, most of the time, consume endpoints and populate data. For example, the globalActions contains the login action.
The login action in particular will call the stabilished endpoint and set the token at the localStorage. To use it, you just have to:
import { Store, globalActions } from 'sling-web-sdk';
Store.dispatch(globalActions.logIn('user@email.com', 'userpass');
By default this action will point to the portal API.
FAQs
A front end SDK built with Redux and Axios
The npm package sling-web-sdk receives a total of 2 weekly downloads. As such, sling-web-sdk popularity was classified as not popular.
We found that sling-web-sdk 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
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.