logitech-craft-plugin
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -9,3 +9,3 @@ "use strict"; | ||
const events_1 = __importDefault(require("events")); | ||
const LOGITECH_OPTIONS_URL = 'ws://localhost:10134'; | ||
const LOGITECH_OPTIONS_URL = 'ws://127.0.0.1:10134'; | ||
const stringify = (obj) => JSON.stringify(obj); | ||
@@ -30,3 +30,5 @@ const sendRegister = (pluginGuid) => stringify({ | ||
this.emitter = new events_1.default(); | ||
this.connectWithManager(); | ||
setTimeout(() => { | ||
this.connectWithManager(); | ||
}, 1); | ||
} | ||
@@ -65,2 +67,3 @@ connectWithManager() { | ||
this.handleCrownTouch(message); | ||
break; | ||
default: | ||
@@ -67,0 +70,0 @@ break; |
{ | ||
"name": "logitech-craft-plugin", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A JavaScript (and TypeScript) API for creating a Logitech Craft plugin", | ||
@@ -23,10 +23,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"ws": "^6.2.1" | ||
"ws": "^7.2.3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^11.13.0", | ||
"@types/ws": "^6.0.1", | ||
"tslint": "^5.15.0", | ||
"typescript": "^3.4.2" | ||
"@types/node": "^12.12.31", | ||
"@types/ws": "^7.2.3", | ||
"tslint": "^6.1.0", | ||
"typescript": "^3.8.3" | ||
} | ||
} |
# logitech-craft-plugin | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/idolize/logitech-craft-plugin.svg)](https://greenkeeper.io/) | ||
A JavaScript (and TypeScript) API for creating a Logitech Options Craft keyboard plugin. | ||
@@ -71,1 +73,5 @@ | ||
``` | ||
### More Extensive Example | ||
This code is used in the [Logitech Craft VS Code extension](https://github.com/idolize/logitech-craft-vscode). |
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
17492
10
233
77
+ Addedws@7.5.10(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedws@6.2.3(transitive)
Updatedws@^7.2.3