Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
vega-event-selector
Advanced tools
A CSS-inspired language to select, sequence, and compose DOM events.
A CSS-inspired language to select, sequence, and compose DOM events into "streams". The following syntax is supported:
eventType
-- captures event of a specific type, for example mousedown
or touchmove
. By default, this captures all events of the given type, that occur anywhere on the visualization.
target:eventType
-- only captures events that occur on the given target. The following targets are recognized:
markType
-- only captures events that occur on any mark instance of the given type. For example rect:mousedown
captures all mousedown
events that occur on rect marks. Supported mark types include rect
, symbol
, path
, arc
, area
, line
, rule
, image
, and text
.
@markName
-- only captures events that occur on mark instances with the given name. For example, @cell:mousemove
captures all mousemove
events that occur on instances of the mark named cell
.
CSS selector
-- the full gamut of CSS selectors can be used to capture events on elements that exist outside the visualization. For example, #header:mousemove
captures mouseover
events that occur on the HTML element with ID header
.
eventStream[filterExpr]
-- filters for events in the stream that match the given expression. The filter expression should be specified using the Vega Expression subset of the JavaScript syntax. Multiple expressions can also be specified through concatenation. For example, mousedown[event.pageX > 5][event.pageY < 100] captures
mousedown` events which occur at least 5px horizontally, and no more than 100px vertically on the page.
streamA, streamB
-- merges individual event streams into a single stream, with the constituent events interleaved correctly. For example, @cell:mousemove, mousedown[event.pageX > 5]
produces a single stream of @cell:mousedown
and mousedown[event.pageX > 5]
events, interleaved as they occur.
[streamA, streamB] > streamC
-- captures streamC
events that occur between streamA
and streamB
. For example, [mousedown, mouseup] > mousemove
captures mousemove
events that occur between a mousedown
and mouseup
(i.e., a stream of "drag" events).
FAQs
A CSS-inspired language to select, sequence, and compose DOM events.
The npm package vega-event-selector receives a total of 157,247 weekly downloads. As such, vega-event-selector popularity was classified as popular.
We found that vega-event-selector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.