
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
layout-queue
Advanced tools
A queue for javascript actions that affect layout, which need to execute on browser window resize and need to execute in a specific order.
This library was created to eliminate race conditions when multiple JavaScript applied style changes need to occur on window resize. By adding actions to the queue it can be assured that each action will be called in the order they were added every time the queue is triggerd. By default the queue will execute on window load and window resize, but additional triggers can be added, for example on the loading of ajax content that affects the layout.
Install via npm (or yarn), or copy bundle.js to your project and include via a script tag.
npm install layout-queue
OR
yarn add layout-queue
OR
<script src="path/to/file/bundle.js">
Add a function to the queue with the add()
method, by passing in the function and an array of it's argument.
LayoutQueue.add(nameOfYourFunction, [argument1, argument2]);
If you need the queue to execute on other events, for example when loading ajax content, or when an iframe is loaded, the trigger()
method can be used. Example:
document.querySelectorAll('iframe').forEach(function(element) {
element.addEventListener('load', function() {
LayoutQueue.trigger();
});
});
LayoutQueue.list() // Returns an array of queued functions.
LayoutQueue.clear() // Empties the queue.
FAQs
A queue for javascript actions that affect layout, which need to execute on browser window resize and need to execute in a specific order.
The npm package layout-queue receives a total of 153 weekly downloads. As such, layout-queue popularity was classified as not popular.
We found that layout-queue 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.