
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@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.
1.2.9 (2025-10-08)
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 453 weekly downloads. As such, @gondel/plugin-media-queries popularity was classified as not popular.
We found that @gondel/plugin-media-queries demonstrated a healthy version release cadence and project activity because the last version was released less than 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.