Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Hierarchical event dispatcher
flow
.create()
.create('name') // create a new leaf node from flow
.create('name', data)
flow
.name()
.name('test')
flow
.data() // getter
.data({}) // setter
.data({},{},{}) //setter with multiple payloads
flow
.emit() // emit current flow object
.emit('name') // create and emit 'name'
.emit('name', data) // create and emit 'name' with data as the payload
.emit(flow2) // detach and emit an existing flow object
flow
.parent() // return the parent flow object
.parent(null) // detach the flow object, creating a new subtree
.parent(flow) // re-parent the flow object
flow.parents() // return all upstream flow objects
flow
.direction()
.direction(flow.direction.DEFAULT)
.direction(flow.direction.UPSTREAM)
.direction(flow.direction.DOWNSTREAM)
.direction(flow.direction.NONE)
flow
.children() //return all direct descendant nodes
.children.all() // return all child nodes recursively
flow
.cancel()
.cancelled()
.cancelled(true)
flow
.stopPropagation()
flow
.on('name')
.on('name', handler)
.on('name', handler1, handler 2)
When a flow object mutates in any way, all connected flow objects are notified of the change.
.data(newData)
triggers:
.on('flow.data', newData, oldData)
on the current flow object.on('flow.children.data', flow, newData, oldData)
on all parent objects.on('flow.parent.data', flow, newData, oldData)
on all child objects (recursively)FAQs
event/data/control flow
The npm package nflow receives a total of 18 weekly downloads. As such, nflow popularity was classified as not popular.
We found that nflow 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.