New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/keyboard

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/keyboard - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

dist/index.js

@@ -20,3 +20,3 @@ import { makeEventListener } from '@solid-primitives/event-listener';

makeEventListener(window, "keydown", (e) => {
if (e.repeat)
if (e.repeat || typeof e.key !== "string")
return;

@@ -32,2 +32,4 @@ const key = e.key.toUpperCase();

makeEventListener(window, "keyup", (e) => {
if (typeof e.key !== "string")
return;
const key = e.key.toUpperCase();

@@ -34,0 +36,0 @@ setPressedKeys((prev) => prev.filter((_key) => _key !== key));

{
"name": "@solid-primitives/keyboard",
"version": "1.0.4",
"version": "1.0.5",
"description": "A library of reactive promitives helping handling user's keyboard input.",

@@ -5,0 +5,0 @@ "author": "Damian Tarnwski <gthetarnav@gmail.com>",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc