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.
redux-local-storage
Advanced tools
Redux middleware for accessing local storage
npm install --save redux-api-request
Using redux-local-storage in your application is easy:
# install middleware
import createLocalStorage from 'redux-local-storage'
import thunkMiddleware from 'redux-thunk'
import reducer from './reducer'
const localStorageMiddleware = createLocalStorage()
const createStoreWithMiddleware = applyMiddleware(
thunkMiddleware,
localStorageMiddleware
)(createStore)
const store = createStoreWithMiddleware(reducer)
# action creator
import { LOCAL_GET, LOCAL_SET, LOCAL_REMOVE } from 'redux-local-storage/action_types'
export const getSession = () => ({
type: LOCAL_GET,
key: 'session',
request: GET_SESSION_REQUEST,
success: GET_SESSION_SUCCESS,
failure: GET_SESSION_FAILURE
})
export const setSession = (session) => ({
type: LOCAL_SET,
key: 'session',
value: session,
request: SET_SESSION_REQUEST,
success: SET_SESSION_SUCCESS,
failure: SET_SESSION_FAILURE
})
export const removeSession = () => ({
type: LOCAL_REMOVE,
key: 'session',
request: REMOVE_SESSION_REQUEST,
success: REMOVE_SESSION_SUCCESS,
failure: REMOVE_SESSION_FAILURE
})
redux-local-storage was originally written by Greg Kops and is based upon his work with Think Topography and The Cornell Cooperative Extension of Tompkins County
FAQs
Redux middleware for accessing local storage
The npm package redux-local-storage receives a total of 19 weekly downloads. As such, redux-local-storage popularity was classified as not popular.
We found that redux-local-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.