Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
boxes
Advanced tools
Readme
(Work in progress)
Reactive state containers focused on DOM performance
import { getBox, on } from 'Boxes'
const origin = {
a: 1
}
const box = getBox(origin)
box // { a: 1 }
box === origin // false
on(box, 'a', (...change) => console.log(change))
box.a = 'hello'
// logs: [{ a: 'hello' }, 'a', 'set', 1, 'hello']
Adds handler
to box
const box = getBox({ a: 1 })
const handler = (...change) => console.log(change)
boxes.on(box, 'a', handler)
box.a = 'hello'
// logs: [{ a: 'hello' }, 'a', 'set', 1, 'hello']
It also works with dot notation:
const box = getBox({ o: { a: 1 } })
const handler = (...change) => console.log(change)
boxes.on(box, 'o.a', handler)
box.o.a = 'hello'
['set', 'a', 1, 'hello', { a: 'hello' }]
box.o = { a: 'bye' }
// logs: [{ a: 'bye' }, 'a', 'set', 'hello', 'bye']
Removes handler
from the box
boxes.off(box, 'propName', action)
Boxes will emit the changes made in the observed objects.
Generic signature: [box, property, changeType, oldValue, newValue]
Object:
[box, property, 'set', oldValue, newValue]
[box, property, 'delete', oldValue, undefined]
Array:
[box, property, 'set', oldValue, newValue]
[box, property, 'delete', oldValue, undefined]
[box, property, 'insert', undefined, newValue]
[box, property, 'remove', oldValue, undefined]
[box, property, 'swap', oldValue, newValue]
[box, firstIndexChanged || undefined, 'length', oldLength, newLength]
firstIndexChanged
will be passed only on shift, splice and unshift
because on pop and push no index will changeFAQs
Reactive state containers for js apps
The npm package boxes receives a total of 67 weekly downloads. As such, boxes popularity was classified as not popular.
We found that boxes 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.