Comparing version 0.1.7 to 0.1.8
@@ -155,6 +155,2 @@ 'use strict'; | ||
if (value.length > 1 && !modifier && !ALIASES[value] && !CODES[name]) { | ||
throw new TypeError('Unknown modifier: "' + value + '"'); | ||
} | ||
if (length === 1 || !modifier) { | ||
@@ -161,0 +157,0 @@ if (byKey) { |
{ | ||
"name": "is-hotkey", | ||
"description": "Check whether a browser event matches a hotkey.", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"license": "MIT", | ||
@@ -10,5 +10,4 @@ "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 && yarn run build:umd", | ||
"prepublish": "yarn run build", | ||
"release": "np", | ||
@@ -20,3 +19,2 @@ "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", | ||
@@ -23,0 +21,0 @@ "mocha": "^3.2.0" |
@@ -139,6 +139,2 @@ | ||
if (value.length > 1 && !modifier && !ALIASES[value] && !CODES[name]) { | ||
throw new TypeError(`Unknown modifier: "${value}"`) | ||
} | ||
if (length === 1 || !modifier) { | ||
@@ -145,0 +141,0 @@ if (byKey) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
19317
8
613