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.
heatmap-filter
Advanced tools
A filter component to be used only by heatmap.com devs component export tutorial.
Install using your package manager of choice:
pnpm add heatmap-filter
https://matija-components.vercel.app/tri-state-checkbox
Import the component locally or define it globally and include the css file:
<template>
<!-- create a reset button that dispatched "reset-all-filters-event"-->
<button @click="resetAll">reset</button>
<!-- disabled comparison mode -->
<button @click="disabledComparison">disabled Comparison</button>
<!-- enabled comparison mode -->
<button @click="enabledComparison">enabled Comparison</button>
<!-- call the HeatmapFilter -->
<HeatmapFilter @on-filter-values-change="filterValueChanged" />
</template>
<script lang="ts" setup>
import { HeatmapFilter } from "heatmap-filter";
const filterValueChanged = (value: ReturnData[]) => {
console.log(value);
// do your stuff here
};
// when ever reset button is clicked, dispatch this event
const resetAll = () => {
const resetAllEvent = new CustomEvent("reset-all-filters-event");
document.dispatchEvent(resetAllEvent);
};
const disabledComparison = () => {
const resetAllEvent = new CustomEvent("disable-comparison-event", {
detail: { disabled: true },
});
document.dispatchEvent(resetAllEvent);
};
const enabledComparison = () => {
const resetAllEvent = new CustomEvent("disable-comparison-event", {
detail: { disabled: false },
});
document.dispatchEvent(resetAllEvent);
};
</script>
Name | Type | Default | Description |
---|---|---|---|
on-filter-values-change | func | get the selected filters by listening to this event |
Name | Type | Default | Description |
---|---|---|---|
reset-all-filters-event | func | for resetting all filters |
FAQs
## Adams
The npm package heatmap-filter receives a total of 2 weekly downloads. As such, heatmap-filter popularity was classified as not popular.
We found that heatmap-filter 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.