elgato-stream-deck
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -5,2 +5,14 @@ # Changelog | ||
## [3.1.0](https://github.com/lange/node-elgato-stream-deck/compare/v3.0.0...v3.1.0) (2019-09-29) | ||
### Bug Fixes | ||
* **xl:** resetToLogo not working ([2475726](https://github.com/lange/node-elgato-stream-deck/commit/2475726)) | ||
### Features | ||
* Add close method to cleanly close the HID device ([#72](https://github.com/lange/node-elgato-stream-deck/issues/72)) ([877b5da](https://github.com/lange/node-elgato-stream-deck/commit/877b5da)) | ||
## [3.0.0](https://github.com/lange/node-elgato-stream-deck/compare/v2.1.1...v3.0.0) (2019-06-03) | ||
@@ -7,0 +19,0 @@ |
@@ -73,2 +73,6 @@ /// <reference types="node" /> | ||
getSerialNumber(): string; | ||
/** | ||
* Close the Stream Deck | ||
*/ | ||
close(): void; | ||
on(event: 'down' | 'up', listener: (keyIndex: KeyIndex) => void): any; | ||
@@ -97,2 +101,3 @@ on(event: 'error', listener: (e: any) => void): any; | ||
getSerialNumber(): string; | ||
close(): void; | ||
protected abstract transformKeyIndex(keyIndex: KeyIndex): KeyIndex; | ||
@@ -99,0 +104,0 @@ protected abstract convertFillImage(imageBuffer: Buffer, sourceOffset: number, sourceStride: number): Buffer; |
@@ -7,20 +7,2 @@ "use strict"; | ||
class StreamDeckBase extends events_1.EventEmitter { | ||
get NUM_KEYS() { | ||
return this.KEY_COLUMNS * this.KEY_ROWS; | ||
} | ||
get KEY_COLUMNS() { | ||
return this.deviceProperties.COLUMNS; | ||
} | ||
get KEY_ROWS() { | ||
return this.deviceProperties.ROWS; | ||
} | ||
get ICON_SIZE() { | ||
return this.deviceProperties.ICON_SIZE; | ||
} | ||
get ICON_BYTES() { | ||
return this.ICON_SIZE * this.ICON_SIZE * 3; | ||
} | ||
get MODEL() { | ||
return this.deviceProperties.MODEL; | ||
} | ||
constructor(deviceInfo, properties, dataKeyOffset) { | ||
@@ -54,2 +36,20 @@ super(); | ||
} | ||
get NUM_KEYS() { | ||
return this.KEY_COLUMNS * this.KEY_ROWS; | ||
} | ||
get KEY_COLUMNS() { | ||
return this.deviceProperties.COLUMNS; | ||
} | ||
get KEY_ROWS() { | ||
return this.deviceProperties.ROWS; | ||
} | ||
get ICON_SIZE() { | ||
return this.deviceProperties.ICON_SIZE; | ||
} | ||
get ICON_BYTES() { | ||
return this.ICON_SIZE * this.ICON_SIZE * 3; | ||
} | ||
get MODEL() { | ||
return this.deviceProperties.MODEL; | ||
} | ||
fillColor(keyIndex, r, g, b) { | ||
@@ -129,2 +129,5 @@ this.checkValidKeyIndex(keyIndex); | ||
} | ||
close() { | ||
this.device.close(); | ||
} | ||
getFillImageCommandHeaderLength() { | ||
@@ -131,0 +134,0 @@ return 16; |
@@ -39,3 +39,7 @@ "use strict"; | ||
const resetCommandBuffer = [ | ||
0x03, 0x02 | ||
0x03, | ||
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
]; | ||
@@ -42,0 +46,0 @@ this.device.sendFeatureReport(resetCommandBuffer); |
{ | ||
"name": "elgato-stream-deck", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "An npm module for interfacing with the Elgato Stream Deck", | ||
@@ -96,4 +96,4 @@ "main": "dist/index.js", | ||
"pureimage": "^0.1.3", | ||
"sharp": "^0.22.1", | ||
"standard-version": "^6.0.1", | ||
"sharp": "^0.23.1", | ||
"standard-version": "^7.0.0", | ||
"stream-buffers": "^3.0.1", | ||
@@ -100,0 +100,0 @@ "trash-cli": "^3.0.0", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
55252
731
0