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

keypress-tool

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

keypress-tool - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

DOMService.js

12

package.json
{
"name": "keypress-tool",
"version": "2.0.0",
"version": "2.1.0",
"description": "Create custom keyboard shortcuts (in the browser)",

@@ -13,4 +13,4 @@ "keywords": [

"repository": "JannesMeyer/keypress-tool",
"main": "keypress-tool.js",
"types": "keypress-tool.ts",
"main": "KeyPress.js",
"types": "KeyPress.ts",
"scripts": {

@@ -22,6 +22,6 @@ "prepare": "tsc",

"devDependencies": {
"@types/jasmine": "^2.8.2",
"jasmine": "^2.8.0",
"typescript": "^2.6.2"
"@types/jasmine": "^3.5.14",
"jasmine": "^3.6.1",
"typescript": "^4.0.3"
}
}

@@ -24,3 +24,3 @@ # keypress-tool

// Set the second parameter to true if this listener should also fire during text input
KeyPress('A', 'meta').addListener(handleEvent, true);
KeyPress('A').addListener(handleEvent, true);

@@ -32,3 +32,3 @@ function handleEvent(event) {

// Clean up (very important to avoid memory leaks)
KeyPress('A', 'meta').removeListener(handleEvent);
KeyPress('A').removeListener(handleEvent);

@@ -61,3 +61,3 @@ // The default is to preventDefault. Pass 'executeDefault' if you want to change this

Or compile and watch for file changes:
Compile and watch for file changes:

@@ -64,0 +64,0 @@ ```sh

{
"compilerOptions": {
"target": "es2015",
"lib": [

@@ -7,5 +8,5 @@ "es2015", "dom"

"strict": true,
"noImplicitAny": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"types": []

@@ -12,0 +13,0 @@ },

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