Comparing version 0.0.6 to 0.0.7
@@ -21,2 +21,3 @@ /// <reference types="node" /> | ||
RequestLog: (aLogLevel: string) => Promise<void>; | ||
StopAllDevices: () => Promise<void>; | ||
SendDeviceMessage(aDevice: Device, aDeviceMsg: Messages.ButtplugDeviceMessage): Promise<void>; | ||
@@ -23,0 +24,0 @@ ParseJSONMessage: (aJSONMsg: string) => void; |
@@ -161,2 +161,10 @@ "use strict"; | ||
}); }; | ||
_this.StopAllDevices = function () { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.SendMsgExpectOk(new Messages.StopAllDevices())]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); }; | ||
_this.ParseJSONMessage = function (aJSONMsg) { | ||
@@ -163,0 +171,0 @@ var msgs = Messages.FromJSON(aJSONMsg); |
{ | ||
"name": "buttplug", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Javascript library for accessing buttplug servers via node.js or web sockets", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main/src/index.js", |
@@ -107,2 +107,6 @@ "use strict"; | ||
public StopAllDevices = async (): Promise<void> => { | ||
return await this.SendMsgExpectOk(new Messages.StopAllDevices()); | ||
} | ||
public async SendDeviceMessage(aDevice: Device, aDeviceMsg: Messages.ButtplugDeviceMessage): Promise<void> { | ||
@@ -109,0 +113,0 @@ if (this._ws === undefined) { |
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 not supported yet
Sorry, the diff of this file is not supported yet
884570
8792