Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@vonage/vvd-context
Advanced tools
Vivid components are fully taking care of their styling. Yet there are also a simple native HTML elements, that should also comply with the Vivid Design System.
For this reason we are providing Vivid Context service, responsible of mounting the Vivid styling into a document.
The service is optional, but most likely will be needed in any Vonage application.
Attention!
vvd-context
uses internallyvvd-core
, which sets up the core services like theming and typography, thusvvd-context
user may safely omit any own setup of the core.
Attention! As an initial step, to provide smoother migration and lesser friction with an existing systems (especially those heavily dependent on Volta's legacy), we are scoping most of the Vivid context impact by special class: vivid-scope
.
Please, put vivid-scope
class at the root of the DOM tree, that is ready to be styled by Vivid.
Any new application should just safely put that class on the application DOM root (usually
body
).
mount(target)
Description:
Mounts Vivid context (styles) into the target scope / document. Default target is the document visible in the current scope. The API is idempotent, the style/s will be mounted only once, even if API called multiple times.
Params:
target
- Document
or DocumentFragment
(including ShadowRoot
); optional; defaults to document
Throws:
null
or not of a type Document
or DocumentFragment
import vvdContext from '@vonage/vvd-context';
vvdContext.mount();
const shadowRoot = someElement.shadowRoot;
vvdContext.mount(shadowRoot);
FAQs
> TODO: description
The npm package @vonage/vvd-context receives a total of 274 weekly downloads. As such, @vonage/vvd-context popularity was classified as not popular.
We found that @vonage/vvd-context demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.