Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@gondel/plugin-media-queries
Advanced tools
Provide a custom gondel event which will fire once a given media query is met
import {initMediaQueriesPlugin} from '@gondel/plugin-media-queries';
initMediaQueriesPlugin({
breakPoints: {
xxsmall: 480,
xsmall: 768,
small: 992,
medium: 1240,
large: 1440,
xlarge: 1920,
xxlarge: Infinity,
}
});
Please note: the provided breakpoints need to be the maximum value of each viewport in px.
import { VIEWPORT_ENTERED } from '@gondel/plugin-media-queries';
The general viewport entered event is fired if the viewport switches into one of the provided breakpoints
@EventListener(VIEWPORT_ENTERED)
handleViewportChange(event) {
console.log(event.viewport);
}
Additionally, the event listener can be restricted to just one specific viewport
@EventListener(VIEWPORT_ENTERED, 'medium')
handleViewportChange(event) {
console.log('You are now on the medium viewport');
}
import { getCurrentViewport } from '@gondel/plugin-media-queries';
Additionally you can always get the current viewport name by using the
getCurrentViewport
helper.
start() {
console.log(getCurrentViewport());
// output's e.g. "medium"
}
The initMediaQueriesPlugin
has to be called before you call startComponents
.
FAQs
Provide a custom gondel event which will fire once a given media query is met
The npm package @gondel/plugin-media-queries receives a total of 330 weekly downloads. As such, @gondel/plugin-media-queries popularity was classified as not popular.
We found that @gondel/plugin-media-queries demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.