Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

key

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

key - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

8

lib/code/punctuation.js

@@ -16,11 +16,11 @@ // Generated by CoffeeScript 1.3.3

tilde: ref('Tilde/Back Tick', [96, 192]),
apostrophe: ref('Apostrophe/Quote', [96, 192]),
apostrophe: ref('Apostrophe/Quote', [39, 222]),
slash: {
forward: ref('Forward Slash/Question Mark', [47, 191]),
backward: ref('Backward Slash/Pipe', [92, 220])
backward: ref('Backward Slash/Pipe', 220)
},
brace: {
square: {
open: ref('Open Square/Curly Brace', [91, 219]),
close: ref('Close Square/Curly Brace', [93, 221])
open: ref('Open Square/Curly Brace', 219),
close: ref('Close Square/Curly Brace', 221)
}

@@ -27,0 +27,0 @@ }

{
"name": "key",
"version": "0.1.10",
"version": "0.1.11",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A tiny little keycode library",

@@ -25,3 +25,3 @@ #Key

You can even use it to limit the keypresses allowed in a form field
You can even assert against a collection of keys, not just a specific key.

@@ -32,5 +32,5 @@ ```js

input.on('keydown', function (event) {
if (!key.is(key.code.alnum, event.which)) {
if (key.is(key.code.punctuation, event.which)) {
event.preventDefault();
window.alert('Alphanumeric characters only!');
window.alert('No punctuation allowed!');
}

@@ -37,0 +37,0 @@ });

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