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

@phosphor/domutils

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phosphor/domutils - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

lib/clipboard.d.ts

1

lib/index.d.ts

@@ -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 = {}));

5

package.json
{
"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"
}
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