Socket
Socket
Sign inDemoInstall

is-hotkey

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-hotkey - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

.github/workflows/actions.yml

4

lib/index.js

@@ -155,2 +155,6 @@ 'use strict';

if (value.length > 1 && !modifier && !ALIASES[value] && !CODES[name]) {
throw new TypeError('Unknown modifier: "' + value + '"');
}
if (length === 1 || !modifier) {

@@ -157,0 +161,0 @@ if (byKey) {

6

package.json
{
"name": "is-hotkey",
"description": "Check whether a browser event matches a hotkey.",
"version": "0.1.6",
"version": "0.1.7",
"license": "MIT",

@@ -10,4 +10,5 @@ "repository": "git://github.com/ianstormtaylor/is-hotkey.git",

"build": "babel ./src --out-dir ./lib",
"build:umd": "babel --plugins transform-es2015-modules-umd ./src -o ./lib/is-hotkey.umd.js",
"clean": "rm -rf ./lib ./node_modules",
"prepublish": "yarn run build",
"prepublish": "yarn run build && yarn run build:umd",
"release": "np",

@@ -19,2 +20,3 @@ "test": "yarn run build && mocha",

"babel-cli": "^6.10.1",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-preset-env": "^1.6.1",

@@ -21,0 +23,0 @@ "mocha": "^3.2.0"

@@ -139,2 +139,6 @@

if (value.length > 1 && !modifier && !ALIASES[value] && !CODES[name]) {
throw new TypeError(`Unknown modifier: "${value}"`)
}
if (length === 1 || !modifier) {

@@ -141,0 +145,0 @@ if (byKey) {

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