@phosphor/domutils
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -0,3 +1,4 @@ | ||
export * from './clipboard'; | ||
export * from './element'; | ||
export * from './platform'; | ||
export * from './selector'; |
@@ -13,4 +13,5 @@ "use strict"; | ||
|----------------------------------------------------------------------------*/ | ||
__export(require("./clipboard")); | ||
__export(require("./element")); | ||
__export(require("./platform")); | ||
__export(require("./selector")); |
@@ -21,2 +21,14 @@ /** | ||
const IS_EDGE: boolean; | ||
/** | ||
* Test whether the `accel` key is pressed. | ||
* | ||
* @param event - The keyboard or mouse event of interest. | ||
* | ||
* @returns Whether the `accel` key is pressed. | ||
* | ||
* #### Notes | ||
* On Mac the `accel` key is the command key. On all other | ||
* platforms the `accel` key is the control key. | ||
*/ | ||
function accelKey(event: KeyboardEvent | MouseEvent): boolean; | ||
} |
@@ -31,2 +31,17 @@ "use strict"; | ||
Platform.IS_EDGE = /Edge/.test(navigator.userAgent); | ||
/** | ||
* Test whether the `accel` key is pressed. | ||
* | ||
* @param event - The keyboard or mouse event of interest. | ||
* | ||
* @returns Whether the `accel` key is pressed. | ||
* | ||
* #### Notes | ||
* On Mac the `accel` key is the command key. On all other | ||
* platforms the `accel` key is the control key. | ||
*/ | ||
function accelKey(event) { | ||
return Platform.IS_MAC ? event.metaKey : event.ctrlKey; | ||
} | ||
Platform.accelKey = accelKey; | ||
})(Platform = exports.Platform || (exports.Platform = {})); |
{ | ||
"name": "@phosphor/domutils", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "PhosphorJS - DOM Utilities", | ||
@@ -57,3 +57,4 @@ "homepage": "https://github.com/phosphorjs/phosphor", | ||
"webpack": "^2.2.1" | ||
} | ||
}, | ||
"gitHead": "57aee96800e0df2d7502d5f0b7ed8cf6b502063c" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
25751
12
677
0