
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
a redux-inspired state mutator.
npm install immutator
be aware: immutator uses Proxy. see node support and browser support.
const immutator = require('immutator')
const state = immutator({ count: 0 })
try {
state.count++
} catch (err) {
console.log('Error: state cannot be mutated directly. please define a mutator.')
}
console.log(state) // { count: 0 }
// define mutator `increment`
state.increment = state => state.count++
// call mutator
state.increment()
console.log(state) // { count: 1 }
state is a proxy whose target can only be mutated by defining and calling a mutator.
functions defined on the immutator are mutators. mutators are passed a mutable copy of state as their first argument when they are called. while they share the same namespace, defining a mutator does not affect state.
const immutable_state = immutator(initial_state={})immutable_state[mutation_type] = mutator(mutable_state, ...mutation_data)immutable_state[mutation_type](...mutation_data)FAQs
a redux-inspired state mutator
We found that immutator 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.