Comparing version 1.0.4 to 1.0.5
@@ -0,1 +1,7 @@ | ||
# 1.0.5 (2021/01/22) | ||
## Bugfixes | ||
- #49: Fix issue with incorrect type check on linear commands. | ||
# 1.0.4 (2021/01/21) | ||
@@ -2,0 +8,0 @@ |
@@ -140,3 +140,3 @@ /*! | ||
async linear(position, duration) { | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.RotateCmd); | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.LinearCmd); | ||
let msgVectors; | ||
@@ -166,2 +166,3 @@ if (typeof (position) === "number" && duration !== undefined) { | ||
var _a, _b, _c, _d; | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.BatteryLevelCmd); | ||
let batteryMsg = await batteryLevel(this._sorter, this._devicePtr); | ||
@@ -176,2 +177,3 @@ if ((_b = (_a = batteryMsg.message) === null || _a === void 0 ? void 0 : _a.deviceEvent) === null || _b === void 0 ? void 0 : _b.batteryLevelReading) { | ||
var _a, _b, _c, _d; | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.RSSILevelCmd); | ||
let rssiMsg = await rssiLevel(this._sorter, this._devicePtr); | ||
@@ -185,2 +187,3 @@ if ((_b = (_a = rssiMsg.message) === null || _a === void 0 ? void 0 : _a.deviceEvent) === null || _b === void 0 ? void 0 : _b.rssiLevelReading) { | ||
var _a, _b; | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.RawReadCmd); | ||
let readingMsg = await rawRead(this._sorter, this._devicePtr, endpoint, expectedLength, timeout); | ||
@@ -193,8 +196,11 @@ if ((_b = (_a = readingMsg.message) === null || _a === void 0 ? void 0 : _a.deviceEvent) === null || _b === void 0 ? void 0 : _b.rawReading) { | ||
async rawWrite(endpoint, data, writeWithResponse) { | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.RawWriteCmd); | ||
await rawWrite(this._sorter, this._devicePtr, endpoint, data, writeWithResponse); | ||
} | ||
async rawSubscribe(endpoint) { | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.RawSubscribeCmd); | ||
await rawSubscribe(this._sorter, this._devicePtr, endpoint); | ||
} | ||
async rawUnsubscribe(endpoint) { | ||
this.checkAllowedMessageType(ButtplugDeviceMessageType.RawUnsubscribeCmd); | ||
await rawUnsubscribe(this._sorter, this._devicePtr, endpoint); | ||
@@ -201,0 +207,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"description": "Buttplug WASM library for web applications (Node/Web). Does not work for native node at the moment.", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"license": "BSD-3-Clause", | ||
@@ -10,0 +10,0 @@ "homepage": "https://buttplug.io", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
13043506
32557