Skip to content

Commit 9455f5b

Browse files
committed
Pinpoint version and fix Buffer allocation problem on Electron
1 parent 29ea843 commit 9455f5b

File tree

9 files changed

+25
-21
lines changed

9 files changed

+25
-21
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Alexandre MONIER <[email protected]>"]
33
edition = "2021"
44
name = "ddc-node"
5-
version = "1.0.0"
5+
version = "1.0.1"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

@@ -13,11 +13,11 @@ crate-type = ["cdylib"]
1313
ddc = "0.2.2"
1414
ddc-hi = "0.4.1"
1515
mccs-db = "0.1.2"
16-
napi = {version = "2", features = ["async"]}
17-
napi-derive = "2"
16+
napi = {version = "2.10.9", features = ["async"]}
17+
napi-derive = "2.9.5"
1818

1919
[build-dependencies]
20-
napi-build = "2"
20+
napi-build = "2.0.1"
2121

2222
[profile.release]
2323
lto = true

index.d.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
export const enum VcpValueType {
77
Continuous = 0,
88
NonContinuous = 1,
9-
Table = 2
9+
Table = 2,
1010
}
1111
export interface Continuous {
1212
currentValue: number
@@ -28,7 +28,7 @@ export const enum JsQueryType {
2828
Id = 1,
2929
ManufacturerId = 2,
3030
ModelName = 3,
31-
SerialNumber = 4
31+
SerialNumber = 4,
3232
}
3333
export interface Query {
3434
queryType: JsQueryType
@@ -52,7 +52,11 @@ export class Display {
5252
capabilities?: string
5353
constructor(index: number)
5454
getVcpFeature(featureCode: number): Promise<Continuous | NonContinuous | Table>
55-
setVcpFeature(featureCode: number, valueOrOffset: number, bytes?: Array<number> | undefined | null): Promise<undefined>
55+
setVcpFeature(
56+
featureCode: number,
57+
valueOrOffset: number,
58+
bytes?: Array<number> | undefined | null,
59+
): Promise<undefined>
5660
}
5761
export type JsDisplayManager = DisplayManager
5862
export class DisplayManager {
@@ -72,7 +76,7 @@ export namespace VCPFeatureCode {
7276
RestoreFactoryGeometryDefaults = 6,
7377
RestoreFactoryLuminanceContrastDefaults = 5,
7478
RestoreFactoryTvDefaults = 10,
75-
SaveRestoreSettings = 176
79+
SaveRestoreSettings = 176,
7680
}
7781
export const enum ImageAdjustment {
7882
SixAxisHueControlBlue = 159,
@@ -133,7 +137,7 @@ export namespace VCPFeatureCode {
133137
WindowControlOnOff = 164,
134138
WindowSelect = 165,
135139
WindowSize = 166,
136-
WindowTransparency = 167
140+
WindowTransparency = 167,
137141
}
138142
export const enum DisplayControl {
139143
DisplayControllerId = 200,
@@ -147,7 +151,7 @@ export namespace VCPFeatureCode {
147151
SourceColorCoding = 181,
148152
SourceTimingMode = 180,
149153
Version = 223,
150-
VerticalFrequency = 174
154+
VerticalFrequency = 174,
151155
}
152156
export const enum Geometry {
153157
BottomCornerFlare = 74,
@@ -182,7 +186,7 @@ export namespace VCPFeatureCode {
182186
WindowPositionBrX = 151,
183187
WindowPositionBrY = 152,
184188
WindowPositionTlX = 149,
185-
WindowPositionTlY = 150
189+
WindowPositionTlY = 150,
186190
}
187191
export const enum Miscellaneous {
188192
ActiveControl = 82,
@@ -207,7 +211,7 @@ export namespace VCPFeatureCode {
207211
SoftControls = 3,
208212
StatusIndicators = 205,
209213
TransmitDisplayDescriptor = 195,
210-
TvChannelUpDown = 139
214+
TvChannelUpDown = 139,
211215
}
212216
export const enum Audio {
213217
BalanceLR = 147,
@@ -218,7 +222,7 @@ export namespace VCPFeatureCode {
218222
ProcessorMode = 148,
219223
SpeakerSelect = 99,
220224
SpeakerVolume = 98,
221-
Treble = 143
225+
Treble = 143,
222226
}
223227
export const enum Dpvl {
224228
BodyCrcErrorCount = 188,
@@ -228,6 +232,6 @@ export namespace VCPFeatureCode {
228232
MonitorStatus = 183,
229233
MonitorXOrigin = 185,
230234
MonitorYOrigin = 186,
231-
PacketCount = 184
235+
PacketCount = 184,
232236
}
233237
}

npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ddc-node/ddc-node-darwin-arm64",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"os": [
55
"darwin"
66
],

npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ddc-node/ddc-node-darwin-x64",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"os": [
55
"darwin"
66
],

npm/linux-arm64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ddc-node/ddc-node-linux-arm64-gnu",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"os": [
55
"linux"
66
],

npm/linux-x64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ddc-node/ddc-node-linux-x64-gnu",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"os": [
55
"linux"
66
],

npm/win32-arm64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ddc-node/ddc-node-win32-arm64-msvc",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"os": [
55
"win32"
66
],

npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ddc-node/ddc-node-win32-x64-msvc",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"os": [
55
"win32"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ddc-node/ddc-node",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"author": "Alexandre MONIER <[email protected]>",
55
"description": "A high-level DDC/CI library for Node written in Rust for efficient and fast control of hardware",
66
"main": "index.js",

0 commit comments

Comments
 (0)