Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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
The npm package boldtrn-leaflet-sleep receives a total of 13 weekly downloads. As such, boldtrn-leaflet-sleep popularity was classified as not popular.
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.