New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

buttplug

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buttplug - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

CHANGELOG.md

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

8

dist/module/device.js

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

2

package.json

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc