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.
boldtrn-leaflet-sleep
Advanced tools
Please note, this is a fork of Leaflet.Sleep, it has a few minor adjustments that will be hopefully merged into the main repo soon
Leaflet's stock maps are event-greedy and interfere with scrolling.
Leaflet.Sleep
is an interaction manager, helping your
map do what you want when you want.
Available on npm, bower, and from the single source source file.
Leaflet.Sleep
is enabled on all maps by default,
but can be disabled with each map's sleep
option.
bower install leaflet-sleep
These are the new options available for L.map
(and the defaults).
{
// false if you want an unruly map
sleep: true,
// time(ms) until map sleeps on mouseout
sleepTime: 750,
// time(ms) until map wakes on mouseover
wakeTime: 750,
// should the user receive wake instructions?
sleepNote: true,
// should hovering wake the map? (non-touch devices only)
hoverToWake: true,
// a message to inform users about waking the map
wakeMessage: 'Click or Hover to Wake',
// a constructor for a control button
sleepButton: L.Control.sleepMapControl,
// opacity for the sleeping map
sleepOpacity: .7
}
FAQs
Leaflet plugin preventing unwanted scroll capturing
We found that boldtrn-leaflet-sleep 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
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.