
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).
solid-transition-size
Advanced tools
SolidJS utility which makes it possible to transition the width and height of elements that don't have a fixed size applied.
SolidJS utility which makes it possible to transition the width and height of elements that don't have a fixed size applied.
The utility returns two signals: transitioning
and transitionSize
. transitioning
can be used to know when the transition is happening, and transitionSize
returns the fixed size of the element while transitioning. You have to use it to style the element you want to transition.
import createTransitionSize from 'solid-transition-size';
For a very simple example we can take the <details>
element and transition the height when it is toggled:
const Details = () => {
const [ref, setRef] = createSignal<HTMLElement | null>(null)
const { transitionSize } = createTransitionSize({
element: ref,
dimension: 'height',
})
const height = () => {
if (!transitionSize()) return undefined
return transitionSize() + 'px'
}
return (
<details
ref={setRef}
class="transition-[height]"
style={{
height: height(),
}}
>
<summary>Show detail</summary>
Detail
</details>
)
}
This utility is from the maintainers of corvu, a collection of unstyled, accessible and customizable UI primitives for SolidJS. It is also documented in the corvu docs under Transition Size.
FAQs
SolidJS utility which makes it possible to transition the width and height of elements that don't have a fixed size applied.
We found that solid-transition-size 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.