Socket
Socket
Sign inDemoInstall

elgato-stream-deck

Package Overview
Dependencies
72
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.1.0

12

CHANGELOG.md

@@ -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;

39

dist/models/base.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc