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.
@gathertown/floating-ui-devtools
Advanced tools
This is the platform-agnostic devtools package of Floating UI, exposing mechanisms to be used together with [Chrome devtools extension](https://chromewebstore.google.com/detail/floating-ui-devtools/ninlhpbnkjidaokbmgebblaehpokdmgb?hl=en) to help debugging
This is the platform-agnostic devtools package of Floating UI, exposing mechanisms to be used together with Chrome devtools extension to help debugging Floating UI
This package exposes a middleware to be added at the end of the middleware chain, which will inject the data to be consumed by the devtools extension.
⚠️ Do not forget to remove the middleware before shipping to production
npm install @floating-ui/devtools
// example with @floating-ui/react
import {devtools} from '@floating-ui/devtools';
export const Default = () => {
const [isOpen, setIsOpen] = useState(false);
const {refs, floatingStyles, context} = useFloating({
open: isOpen,
onOpenChange: setIsOpen,
// add the middleware to the end of the middleware chain if in dev mode
middleware: [import.meta.env.DEV && devtools(document)],
});
const click = useClick(context);
const {getReferenceProps, getFloatingProps} = useInteractions([click]);
return (
<>
<button ref={refs.setReference} {...getReferenceProps()}>
Reference element
</button>
{isOpen && (
<div
ref={refs.setFloating}
style={floatingStyles}
{...getFloatingProps()}
>
Floating element
</div>
)}
</>
);
};
pnpm --filter @floating-ui/devtools run build
from root folderFAQs
This is the platform-agnostic devtools package of Floating UI, exposing mechanisms to be used together with [Chrome devtools extension](https://chromewebstore.google.com/detail/floating-ui-devtools/ninlhpbnkjidaokbmgebblaehpokdmgb?hl=en) to help debugging
The npm package @gathertown/floating-ui-devtools receives a total of 0 weekly downloads. As such, @gathertown/floating-ui-devtools popularity was classified as not popular.
We found that @gathertown/floating-ui-devtools 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
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.