Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
emits-change
Advanced tools
Plug-and-play node.js events integration to emit change events.
npm install emits-change
This package uses the node.js events API. Make sure your javascript bundler can handles importing core node modules (e.g. Browserify does this).
Calling emitsChange
on an object will add node's EventEmitter, a listen
, an unlisten
and an emitChange
function to the prototype.
import emitsChange from 'emits-change'
class Emitter {
constructor() {
emitsChange(this)
}
}
let emitter = new Emitter
function doSomethingOnChange() {
console.log('hodor')
}
emitter.listen(doSomethingOnChange)
emitter.emitChange()
// => hodor
emitter.unlisten(doSomethingOnChane)
emitter.emitChange()
// => *nothing*
You can run the tests (ESLint & Mocha) with:
npm run test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.
Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
The MIT License (MIT). Please see License File for more information.
FAQs
Plug-and-play node.js events integration to emit change events
The npm package emits-change receives a total of 3 weekly downloads. As such, emits-change popularity was classified as not popular.
We found that emits-change 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.