electron-localshortcut
Advanced tools
Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "electron-localshortcut", | ||
"version": "0.5.0", | ||
"description": "register/unregister a keyboard shortcut locally to a BrowserWindow instance, without using a Menu", | ||
"repository": "https://github.com/parro-it/electron-localshortcut.git", | ||
"bugs": { | ||
"url": "https://github.com/parro-it/electron-localshortcut/issues" | ||
"repository": "parro-it/electron-localshortcut", | ||
"license": "MIT", | ||
"main": "src/index.js", | ||
"author": "andrea@parro.it", | ||
"scripts": { | ||
"test": "eslint ." | ||
}, | ||
"eslintConfig": { | ||
"extends": "eslint-config-devenv" | ||
}, | ||
"keywords": [ | ||
@@ -13,19 +20,5 @@ "electron", | ||
], | ||
"version": "0.4.0", | ||
"main": "src/index.js", | ||
"author": "andrea@parro.it", | ||
"scripts": { | ||
"test": "electron test", | ||
"release-minor": "release-minor", | ||
"release-patch": "release-patch", | ||
"lint": "lint", | ||
"prepublish": "lint" | ||
}, | ||
"eslintConfig": { | ||
"extends": "devenv" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"electron-debug": "^0.3.0" | ||
"electron-debug": "^0.5.0" | ||
} | ||
} |
@@ -10,2 +10,3 @@ # electron-localshortcut | ||
[![Travis Build Status](https://img.shields.io/travis/parro-it/electron-localshortcut.svg)](http://travis-ci.org/parro-it/electron-localshortcut) | ||
[![NPM module](https://img.shields.io/npm/v/electron-localshortcut.svg)](https://npmjs.org/package/electron-localshortcut) | ||
@@ -25,3 +26,3 @@ [![NPM downloads](https://img.shields.io/npm/dt/electron-localshortcut.svg)](https://npmjs.org/package/electron-localshortcut) | ||
const electronLocalshortcut = require('electron-localshortcut'); | ||
const BrowserWindow = require('browser-window'); | ||
const BrowserWindow = require('electron').BrowserWindow; | ||
@@ -28,0 +29,0 @@ const win = new BrowserWindow(); |
'use strict'; | ||
const globalShortcut = require('global-shortcut'); | ||
const BrowserWindow = require('browser-window'); | ||
const app = require('app'); | ||
const electron = require('electron'); | ||
const globalShortcut = electron.globalShortcut; | ||
const BrowserWindow = electron.BrowserWindow; | ||
const app = electron.app; | ||
const windowsWithShortcuts = new WeakMap(); | ||
@@ -7,0 +8,0 @@ |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
10230
6
123
135
1