
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@distributedlab/reactivity
Advanced tools
Implementation of the reactivity connections to propagate changes between objects
Implementation of the reactivity connections to propagate changes between objects.
Basic usage:
import { ref, computed, toRaw } from '@distributedlab/reactivity'
const newPerson = () => {
const age = ref(30)
const name = computed(() => 'John')
const changeAge = (newAge: number) => {
age.value = newAge
}
return toRaw({ age, name, changeAge })
}
const john = newPerson()
console.log(john.age) // 30
console.log(john.name) // John
obj.changeAge(35)
console.log(john.age) // 35
Usage with extending:
const newHuman = () => {
const age = ref(25)
const changeAge = (newAge: number) => {
age.value = newAge
}
return toRaw({ age, changeAge })
}
const newPerson = () => {
const parent = newHuman()
const name = computed(() => 'John')
return toRaw(extend(parent, { name }))
}
const person = newPerson()
console.log(person.age) // 25
person.changeAge(30)
console.log(person.age) // 30
For the change log, see CHANGELOG.md.
FAQs
Implementation of the reactivity connections to propagate changes between objects
We found that @distributedlab/reactivity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.