Comparing version 0.1.6 to 0.1.7
@@ -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) { |
{ | ||
"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) { |
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
20039
9
619
4