Socket
Socket
Sign inDemoInstall

webbluetooth

Package Overview
Dependencies
22
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

5

lib/adapter.js

@@ -187,2 +187,4 @@ "use strict";

const baseDevice = this.deviceHandles[handle];
baseDevice.removeAllListeners("connect");
baseDevice.removeAllListeners("disconnect");
baseDevice.once("connect", connectFn);

@@ -199,3 +201,4 @@ baseDevice.once("disconnect", () => {

disconnect(handle, errorFn) {
this.deviceHandles[handle].disconnect(this.checkForError(errorFn));
const baseDevice = this.deviceHandles[handle];
baseDevice.disconnect(this.checkForError(errorFn));
}

@@ -202,0 +205,0 @@ discoverServices(handle, serviceUUIDs, completeFn, errorFn) {

2

package.json
{
"name": "webbluetooth",
"version": "1.0.6",
"version": "1.0.7",
"description": "Node.js implementation of the Web Bluetooth Specification",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/thegecko/webbluetooth",

@@ -229,2 +229,4 @@ /*

const baseDevice = this.deviceHandles[handle];
baseDevice.removeAllListeners("connect");
baseDevice.removeAllListeners("disconnect");
baseDevice.once("connect", connectFn);

@@ -242,3 +244,4 @@ baseDevice.once("disconnect", () => {

public disconnect(handle: string, errorFn?: (errorMsg: string) => void): void {
this.deviceHandles[handle].disconnect(this.checkForError(errorFn));
const baseDevice = this.deviceHandles[handle];
baseDevice.disconnect(this.checkForError(errorFn));
}

@@ -245,0 +248,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc